centos7 LVM扩展分区
环境centos 7
- 原传统resize2fs报错 [root@vvgit ~]# resize2fs /dev/centos_nic/home resize2fs 1.42.9 (28-Dec-2013) resize2fs: Bad magic number in super-block while trying to open /dev/centos_nic/home Couldn’t find valid filesystem superblock.
- XFS文件系统使用xfs_growfs [root@vvgit ~]# xfs_growfs /dev/centos_nic/ home root swap [root@vvgit ~]# xfs_growfs /dev/mapper/centos_nic-home meta-data=/dev/mapper/centos_nic-home isize=256 agcount=4, agsize=1227776 blks = sectsz=512 attr=2, projid32bit=1 = crc=0 data = bsize=4096 blocks=4911104, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 ftype=0 log =internal bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 data blocks changed from 4911104 to 16777216
参考:http://stackoverflow.com/questions/13362910/trying-to-resize2fs-eb-volume-fails