Skip to content

Commit 0f17e1f

Browse files
authored
Auto deploy from GitHub Actions build 378
iBug: [d79f63f] zfs: Add zvol and reorganize sections
1 parent a7669f5 commit 0f17e1f

File tree

3 files changed

+293
-134
lines changed

3 files changed

+293
-134
lines changed

ops/storage/lvm/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ <h2 id="basic">基础概念<a class="headerlink" href="#basic" title="Permanent
19181918
<p>这里我们创建三个 1GB 的文件作为物理卷,并且加入到一个卷组中:</p>
19191919
<div class="admonition warning">
19201920
<p class="admonition-title">避免在物理磁盘上创建无分区表的文件系统/物理卷</p>
1921-
<p>在实践中,尽管没有什么阻止这么做,但是不创建分区表、直接将整个磁盘格式化为某个文件系统,或者加入 LVM 中是不建议的。
1921+
<p>在实践中,尽管技术上可行,但是不创建分区表、直接将整个磁盘格式化为某个文件系统,或者加入 LVM 中是不建议的。
19221922
这会给其他人带来困惑,并且如果未来有在对应磁盘上启动系统等需要多分区的需求,会带来很多麻烦(可能只能备份数据后从头再来)。</p>
19231923
<p>直接对物理磁盘设备格式化为文件系统也是操作时常见的输入错误:</p>
19241924
<div class="highlight"><pre><span></span><code><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="gp">$ </span>mkfs.ext4<span class="w"> </span>/dev/sdz<span class="w"> </span><span class="c1"># 错误 ❌</span>
@@ -2093,7 +2093,7 @@ <h2 id="raid">创建 RAID<a class="headerlink" href="#raid" title="Permanent lin
20932093
<p class="admonition-title">不要使用 <code>--type mirror</code></p>
20942094
<p><code>mirror</code><code>raid1</code> 是两个<strong>不同</strong>的 type。除非有特殊需要,否则应该使用 <code>--type raid1</code> 创建 RAID 1 阵列。
20952095
可以使用 <code>lvconvert</code> 将 mirror 转换为 raid1。</p>
2096-
<p>相关讨论可查看 <a href="https://unix.stackexchange.com/questions/697364/in-what-cases-will-type-mirror-continue-to-be-a-good-choice-is-not-depre">In what case(s) will <code>--type mirror</code> continue to be a good choice / is not deprecated?</a></p>
2096+
<p>相关讨论可查看 <a href="https://unix.stackexchange.com/q/697364">In what case(s) will <code>--type mirror</code> continue to be a good choice / is not deprecated?</a></p>
20972097
<p>在后文的缺盘测试中,<code>mirror</code> 的行为也与预期不同——LVM 默认会拒绝挂载,如果强行挂载,会直接将缺失的盘丢掉。</p>
20982098
</div>
20992099
<div class="admonition note">

0 commit comments

Comments
 (0)