* 1. we also want to resize the hard disk on CentOS7 installed in VMWare, and do not restart the virtual machine. The size of the/home directory before resizing is 348 GB, as shown in ** 2. for details about how to add a hard disk in the middle, see & rdquo; how to add a virtual disk without restarting vmwarevm (on) & ldquo; ** 3. disk resizing started at the operating system layer.
* 1. here we also want to resize the hard disk on CentOS7 installed in VMWare, and do not restart the virtual machine. The size of the/home directory before resizing is 348 GB, as shown in :*
* 2. for details about how to add a hard disk in the middle, see "how to add a virtual disk without restarting vmwarevm (on)" *
* 3. the operation of disk resizing on the operating system layer is officially started. the operations at the beginning are the same as those of common LVM operations. I will not repeat them here. *
(1) use the normal LVM creation process for operations.
(2)If you follow the previous steps, the following error occurs:
Inform me that no valid file system superblock is found. The cause is that the default file system in CentOS 7 is XFS, which is different from CentOS 6. Therefore, the command used here is xfs_growfs, instead of resize2fs:
It can be seen that the space of the/home partition has been expanded from 348G to 548G.