uTools-Manuals/docs/linux/vgreduce.html
2019-04-21 11:50:48 +08:00

21 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="vgreduce">vgreduce</h1>
<p>从卷组中删除物理卷</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>vgreduce命令</strong> 通过删除LVM卷组中的物理卷来减少卷组容量。不能删除LVM卷组中剩余的最后一个物理卷。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">vgreduce(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-a如果命令行中没有指定要删除的物理卷则删除所有的空物理卷
--removemissing删除卷组中丢失的物理卷使卷组恢复正常状态。</code></pre>
<h3 id="参数">参数</h3>
<ul>
<li>卷组:指定要操作的卷组名称;</li>
<li>物理卷列表:指定要删除的物理卷列表。</li>
</ul>
<h3 id="实例">实例</h3>
<p>使用vgreduce命令从卷组“vg2000”中移除物理卷<code>/dev/sdb2</code>。在命令行中输入下面的命令:</p>
<pre><code class="language-bash">[root@localhost ~]# vgreduce vg2000 /dev/sdb2 #将物理卷&quot;/dev/sdb2&quot;从卷组&quot;vg2000&quot;中删除</code></pre>
<p>输出信息如下:</p>
<pre><code class="language-bash">Removed &quot;/dev/sdb2&quot; from volume group &quot;vg2000&quot;</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->