用到的命令
df fdisk pvcreate pvdisplay vgdisplay vgextend lvdisplay lvextend resize2fs
在 重新识别大小的时候报错: resize2fs /dev/mapper/centos-root
[[email protected] ~]# resize2fs /dev/mapper/centos-root 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. [[email protected] ~]#
查看文件类型,我的是 xfs 类型,需要用xfs_drowfs 来识别
[[email protected] ~]# cat /etc/fstab | grep centos-root /dev/mapper/centos-root / xfs defaults 0 0 [[email protected] ~]#
[[email protected] ~]# xfs_growfs /dev/mapper/centos-root #重新识别大小centos-root 大小
参考文章:
原文地址:https://www.cnblogs.com/dafei4/p/11116268.html
时间: 2024-11-10 18:55:49