mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-08 15:04:05 +08:00
23 lines
1.4 KiB
HTML
23 lines
1.4 KiB
HTML
<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/ -->
|