mysql df -h_lvextend 扩容后, df -h 看到的却还是原来的大小

[root@stb ~]# df -h

Filesystem                  Size  Used Avail Use% Mounted on

/dev/mapper/vg_stb-lv_u01   9.9G  6.5G  3.0G  69% /u01

[root@stb ~]# pvcreate /dev/sdc1

dev_is_mpath: failed to get device for 8:33

Physical volume "/dev/sdc1" successfully created

[root@stb ~]# vgextend vg_stb /dev/sdc1

Volume group "vg_stb" successfully extended

[root@stb ~]# lvextend -l +100%FREE  /dev/vg_stb/lv_u01

Extending logical volume lv_u01 to 14.99 GiB

Logical volume lv_u01 successfully resized

[root@stb ~]# df -h

Filesystem                  Size  Used Avail Use% Mounted on

/dev/mapper/vg_stb-lv_u01   9.9G  6.5G  3.0G  69% /u01

###  lvextend扩展的是lv, df看到的是文件系统,  看来还需要扩展文件系统

[root@stb ~]# resize2fs -p -F /dev/mapper/vg_stb-lv_u01

resize2fs 1.41.12 (17-May-2010)

Filesystem at /dev/mapper/vg_stb-lv_u01 is mounted on /u01; on-line resizing required

old desc_blocks = 1, new_desc_blocks = 1

Performing an on-line resize of /dev/mapper/vg_stb-lv_u01 to 3930112 (4k) blocks.

The filesystem on /dev/mapper/vg_stb-lv_u01 is now 3930112 blocks long.

[root@stb ~]# df -h

Filesystem                  Size  Used Avail Use% Mounted on

/dev/mapper/vg_stb-lv_u01    15G  6.5G  7.6G  46% /u01

xfs_growfs /dev/vg_root/lv_root

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值