Files
uTools-Manuals/docs/linux/vgconvert.html
T
fofolee 38dcd51d8a v0.0.2
2019-04-21 11:50:48 +08:00

23 lines
1.7 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<h1 id="vgconvert">vgconvert</h1>
<p>转换卷组元数据格式</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>vgconvert命令</strong> 用于转换指定LVM卷组的元数据格式,通常将“LVM1”格式的卷组转换为“LVM2”格式。转换卷组元数据前必须保证卷组处于非活动状态,否则无法完成转换操作。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">vgconvert(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-M:要转换的卷组格式。</code></pre>
<h3 id="参数">参数</h3>
<p>卷组:指定要转换格式的卷组。</p>
<h3 id="实例">实例</h3>
<p>转换卷组元数据格式前,使用vgchange命令将卷组设置为非活动状态。在命令行中输入下面的命令:</p>
<pre><code class="language-bash">[root@localhost lvm]# vgchange -an vg1000 #设置卷组状态为非活动状态
0 logical volume(s) in volume group &quot;vg1000&quot; now active 
</code></pre>
<p>使用vgconvert命令将卷组“vg1000”从“LVM1”格式转换为“LVM2”格式。在命令行中输入下面的命令:</p>
<pre><code class="language-bash">[root@localhost lvm]# vgconvert -M2 vg1000 #转换卷组为&quot;LVM2&quot;格式
Volume group vg1000 successfully converted</code></pre>
<p>使用vgchange命令将卷组设置为活动状态。在命令行中输入下面的命令:</p>
<pre><code class="language-bash">[root@localhost lvm]# vgchange -ay vg1000 #设置卷组状态为活动状态
0 logical volume(s) in volume group &quot;vg1000&quot; now active</code></pre>
<!-- Linux命令行搜索引擎:https://jaywcjlove.github.io/linux-command/ -->