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

18 lines
1.2 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="vgscan">vgscan</h1>
<p>扫描并显示系统中的卷组</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>vgscan命令</strong> 查找系统中存在的LVM卷组并显示找到的卷组列表。vgscan命令仅显示找到的卷组的名称和LVM元数据类型要得到卷组的详细信息需要使用vgdisplay命令。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">vgscan(选项)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-d调试模式
--ignorerlockingfailure忽略锁定失败的错误。</code></pre>
<h3 id="实例">实例</h3>
<p>使用vgscan命令扫描系统中所有的卷组。在命令行中输入下面的命令</p>
<pre><code class="language-bash">[root@localhost ~]# vgscan #扫描并显示LVM卷组列表</code></pre>
<p>输出信息如下:</p>
<pre><code class="language-bash">Found volume group &quot;vg2000&quot; using metadata type lvm2
Found volume group &quot;vg1000&quot; using metadata type lvm2 </code></pre>
<p>说明本例中vgscan指令找到了两个LVM2卷组“vg1000”和“vg2000”。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->