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