xfs_growfs 提示is not a mounted XFS filesystem

分类:技术 8.13k浏览

一台机器扩容xfs时提示 is not a mounted XFS filesystem,通过/etc/fstab看到挂载到 / ,直接换个姿势

[root@centos ~]# xfs_growfs /dev/mapper/centos-root

xfs_growfs: /dev/mapper/centos-root is not a mounted XFS filesystem

[root@centos ~]# vi /etc/fstab

[root@centos ~]# xfs_growfs  /

meta-data=/dev/mapper/centos-root isize=512    agcount=4, agsize=524032 blks

         =                       sectsz=512   attr=2, projid32bit=1

         =                       crc=1        finobt=1, sparse=1, rmapbt=0

         =                       reflink=1

data     =                       bsize=4096   blocks=2096128, imaxpct=25

         =                       sunit=0      swidth=0 blks

naming   =version 2              bsize=4096   ascii-ci=0, ftype=1

log      =internal log           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 2096128 to 30930944