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

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

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

你可能感兴趣的:(LVM逻辑卷扩容实践---解决根目录空间满的问题)