命令

lvextend -l +100%FREE /dev/vg1/lv_data
resize2fs /dev/vg1/lv_data
xfs_growfs /dev/mapper/vg1-lv_data
# lvextend -l +100%FREE /dev/vg1/lv_data
  Size of logical volume vg1/lv_data changed from 5.00 TiB (1310720 extents) to 7.18 TiB (1882557 extents).
  Logical volume lv_data successfully resized.
# resize2fs /dev/vg1/lv_data
resize2fs 1.41.12 (17-May-2010)
resize2fs: Bad magic number in super-block while trying to open /dev/vg1/lv_data
Couldn't find valid filesystem superblock.

# df -T
Filesystem           Type   1K-blocks       Used Available Use% Mounted on
/dev/sda3            ext4    95495980   41840856  48797476  47% /
tmpfs                tmpfs  264577452         28 264577424   1% /dev/shm
/dev/sda2            ext4      475754      54104    396665  13% /boot
/dev/mapper/vg1-lv_data
                     xfs   5366622208 5096291792 270330416  95% /data

# xfs_growfs /dev/mapper/vg1-lv_data
meta-data=/dev/mapper/vg1-lv_data isize=256    agcount=32, agsize=41943040 blks
         =                       sectsz=4096  attr=2, projid32bit=0
data     =                       bsize=4096   blocks=1342177280, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0
log      =internal               bsize=4096   blocks=521728, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 1342177280 to 1927738368
0 回复
需要 登录 后方可回复, 如果你还没有账号你可以 注册 一个帐号。