• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

现有磁盘挂载的扩展和现有逻辑卷resize2fs的扩展


Recommended Posts

安装了新系统Ubuntu20.04,发现系统安装的磁盘没有完全使用。服务器装了2T硬盘,但是df -h显示根目录上只装了100G。

因此,应该将现有的已挂载逻辑卷扩展到最大容量。

查看现有的逻辑分区

lvdisplay

t1yhsfo4pxh3664.png

在下面的操作中使用的逻辑分区的名称可以从下面的命令行中看到。

扩展逻辑卷意味着将硬盘剩余可用容量的100%添加到逻辑卷/dev/ubuntu-vg/ubuntu-lv中。

lvextend-l 100%免费/开发/ubuntu-vg/ubuntu-lv

革新

resize 2fs/dev/Ubuntu-VG/Ubuntu-LV

再查一遍。

显示分区空间

发现已经达到最大容量。

q43hzofsbfa3665.png

在这里参考学习。

https://blog.csdn.net/john1337/article/details/119749350

这位同行的宝贵经验,感谢所有在网上无私分享经验和知识的同行。

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now