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

19 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="lvextend">lvextend</h1>
<p>扩展逻辑卷空间</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>lvextend命令</strong> 用于在线扩展逻辑卷的空间大小而不中断应用程序对逻辑卷的访问。使用lvextend命令动态在线扩展磁盘空间整个空间扩展过程对于应用程序来说是完全透明的。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">lvextend(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-L指定逻辑卷的大小单位为“kKmMgGtT”字节
-l指定逻辑卷的大小LE数</code></pre>
<h3 id="参数">参数</h3>
<p>逻辑卷:指定要扩展空间的逻辑卷。</p>
<h3 id="实例">实例</h3>
<p>使用lvextend命令为逻辑卷<code>/dev/vg1000/lvol0</code>增加100M空间。在命令行中输入下面的命令</p>
<pre><code class="language-bash">[root@localhost ~]# lvextend -L +100M /dev/vg1000/lvol0 #为了解决增加100M空间</code></pre>
<p>输出信息如下:</p>
<pre><code class="language-bash">Extending logical volume lvol0 to 300.00 MB
Logical volume lvol0 successfully resized</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->