用到的命令html
df fdisk pvcreate pvdisplay vgdisplay vgextend lvdisplay lvextend resize2fscentos
在 從新識別大小的時候報錯: resize2fs /dev/mapper/centos-root bash
[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 來識別app
[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 大小
參考文章: htm