--执行resize2fs命令,磁盘新容量300G,但客户端仍然显示200G [root@mdg /]# resize2fs -help resize2fs 1.41.12 (17-May-2010) Usage: resize2fs [-d debug_flags] [-f] [-F] [-M] [-P] [-p] device [new_size] [root@mdg /]# resize2fs /dev/mapper/3600a098038303867635d4a48624e5467 300G resize2fs 1.41.12 (17-May-2010) The containing partition (or device) is only 52428800 (4k) blocks. You requested a new size of 78643200 blocks. [root@mdg /]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467 Disk /dev/mapper/3600a098038303867635d4a48624e5467: 214.7 GB, 214748364800 bytes [root@mdg ~]# df -h |grep /u02test /dev/mapper/3600a098038303867635d4a48624e5467 197G 216M 187G 1% /u02test
--重启后,磁盘在客户端正常显示300G [root@mdg /]# reboot Broadcast message from root@mdg (/dev/pts/0) at 14:39 ... The system is going down for reboot NOW! [root@mdg /]# login as: root root@192.168.8.8's password: Last login: Wed May 16 14:24:51 2018 from 192.168.1.3 [root@mdg ~]# fdisk -l |grep /dev/mapper/3600a098038303867635d4a48624e5467 Disk /dev/mapper/3600a098038303867635d4a48624e5467: 322.1 GB, 322122547200 bytes