CENTOS7 reduce/boot partition space, expand/space

Source: Internet
Author: User

1. back up the /home content

2. Then delete the logical volume where the/home file system resides

3. Expand the/root file system

4. New/Home

Tar cvf/tmp/home.tar/home #备份/home

Umount/home #卸载/home, if unable to uninstall, first terminate the process using the/home file system

lvremove/dev/centos/home #删除/home where LV
lvextend-l +50g/dev/centos/root #扩展/root, added 50G
xfs_growfs/dev/centos/root #扩展/root file System
lvcreate-l 56g-n Home centos #重新创建home LV
mkfs.xfs/dev/centos/home #创建文件系统
mount/dev/centos/home/home #挂载
df-h

This article is from the "Ming Linux blog" blog, be sure to keep this source http://zhaijunming5.blog.51cto.com/10668883/1702938

CENTOS7 reduce/boot partition space, expand/space

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.