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

17 lines
1.1 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="vgchange">vgchange</h1>
<p>修改卷组属性</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>vgchange命令</strong> 用于修改卷组的属性经常被用来设置卷组是处于活动状态或非活动状态。处于活动状态的卷组无法被删除必须使用vgchange命令将卷组设置为非活动状态后才能删除。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">vgchange(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-a设置卷组的活动状态。</code></pre>
<h3 id="参数">参数</h3>
<p>卷组:指定要设置属性的卷组。</p>
<h3 id="实例">实例</h3>
<p>使用vgchange命令将卷组状态改为活动的。在命令行中输入下面的命令</p>
<pre><code class="language-bash">[root@localhost ~]# vgchange -ay vg1000 #将卷组&quot;vg1000&quot;设置为活动状态</code></pre>
<p>输出信息如下:</p>
<pre><code class="language-bash">1 logical volume(s) in volume group &quot;vg1000&quot; now active</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->