/dev/mapper/centos-root expansion

Source: Internet
Author: User

System CentOS 7

  1. Df-h view current partition usage;
  2. Dfisk/dev/xvda operation of the/DEV/XVDA disk (new partition and formatting)
  3. N
  4. P
  5. Enter the default partition number;
  6. Enter the default disk creation start location;
  7. Enter the default disk creation end location;
  8. T set the partition type
  9. 8e LVM Type
  10. W Save
  11. Restart
  12. LVM into LVM Management
  13. Lvm>pvcreate/dev/sda3 Creating a logical volume
  14. Lvm>vgextend Centos/dev/sda3//Adding an initialized partition to a virtual volume group CentOS
  15. lvm>vgdisplay -v
  16. lvm>lvextend -l+1298 /dev/mapper/centos-root
  17. lvm>pvdisplay   //查看卷容量
  18. lvm>quit   
  19. Use the command Xfs_growfs/dev/mapper/centos-root to expand the capacity.
  20. Df-h after viewing the expansion

/dev/mapper/centos-root expansion

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.