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

23 lines
1.4 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="pvscan">pvscan</h1>
<p>扫描系统中所有硬盘的物理卷列表</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pvscan命令</strong> 会扫描系统中连接的所有硬盘列出找到的物理卷列表。使用pvscan命令的<code>-n</code>选项可以显示硬盘中的不属于任何卷组的物理卷,这些物理卷是未被使用的。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pvscan(选项)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-d调试模式
-e仅显示属于输出卷组的物理卷
-n仅显示不属于任何卷组的物理卷
-s短格式输出
-u显示UUID。</code></pre>
<h3 id="实例">实例</h3>
<p>使用pvscan命令扫描当前系统中所有硬盘的物理卷在命令行中输入下面的命令</p>
<pre><code class="language-bash">[root@localhost ~]# pvscan #扫描所有硬盘上的物理卷 </code></pre>
<p>输出信息如下:</p>
<pre><code class="language-bash">PV /dev/sdb1 lvm2 [101.94 MB]
PV /dev/sdb2 lvm2 [101.98 MB]
Total: 2 [203.92 MB] / in use: 0 [0 ] / in no VG: 2 [203.92
MB] </code></pre>
<p>说明:本例中,输出了两个物理卷,它们不属于任何卷组,是可被利用的物理卷。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->