LVM逻辑卷扩容实践---解决根目录空间满的问题

本文介绍了解决根目录空间不足的问题,提供了LVM逻辑卷扩容的具体步骤,并针对CentOS 7环境下出现的resize2fs错误,给出了使用xfs_growfs命令进行解决的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当我们想做一些需要下载大容量包的实验时,有时会发现根目录空间不足,那么该如何是好?当然是给根目录扩容了。

LVM逻辑卷扩容实践 ------------这个链接经本人实验可用,将它分享给大家。

注意: 当作到第8部后时,VG Name 可能和链接上的不同;当重新计算一下LV的空间resize2fs /dev/zabbix-vg/root报下面错时

I am trying to resize a logical volume on CentOS7 but am running into the following error:

resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root
Couldn’t find valid filesystem superblock.

solution:

After a bit of trial and error… as mentioned in the possible answers, it turned out to require xfs_growfs rather than resize2fs.

xfs_growfs /dev/centos/root
df -h

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值