2019-04-21 11:50:48 +08:00

22 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="pvck">pvck</h1>
<p>检测物理卷的LVM元数据的一致性</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>pvck命令</strong> 用来检测物理卷的LVM元数据的一致性。默认情况下物理卷中的前4个扇区保存着LVM卷标可以使用<code>--labelsector</code>选项指定其他的位置(例如:数据恢复时)。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">pvck(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-d调试模式
-v详细信息模式
--labelsector指定LVE卷标所在扇区。</code></pre>
<h3 id="参数">参数</h3>
<p>物理卷:指定要检查的物理卷对应的设备文件。</p>
<h3 id="实例">实例</h3>
<p>使用pvck命令检查物理卷<code>/dev/sdb1</code>。在命令行中输入下面的命令:</p>
<pre><code class="language-bash">pvck -v /dev/sdb1 #检查物理卷元数据
Scanning /dev/sdb1
Found label on /dev/sdb1, sector 1, type=LVM2 001
Found text metadata area: offset=4096, size=192512
Found LVM2 metadata record at offset=125952,
size=70656, offset2=0 size2=0</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->