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

19 lines
1.1 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="lvremove">lvremove</h1>
<p>删除指定LVM逻辑卷</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>lvremove命令</strong> 用于删除指定LVM逻辑卷。如果逻辑卷已经使用mount命令加载则不能使用lvremove命令删除。必须使用umount命令卸载后逻辑卷方可被删除。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">lvremove(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-f强制删除。</code></pre>
<h3 id="参数">参数</h3>
<p>逻辑卷:指定要删除的逻辑卷。</p>
<h3 id="实例">实例</h3>
<p>使用lvremove命令删除指定的逻辑卷。在命令行中输入下面的命令</p>
<pre><code class="language-bash">[root@localhost ~]# lvremove /dev/vg1000/lvol0 #删除逻辑卷&quot;lvol0&quot;</code></pre>
<p>输出信息如下:</p>
<pre><code class="language-bash">Do you really want to remove active logical
volume &quot;lvol0&quot;? [y/n]: y #确认删除
Logical volume &quot;lvol0&quot; successfully removed</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->