CentOS-7 disk resizing, centos-7 resizing

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.