CentOS-7 disk resizing, centos-7 resizing
* 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.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.