Use lvm to expand existing partitions

Source: Internet
Author: User
Use lvm to expand existing partitions-Linux Enterprise Application-Linux server application information. The following is a detailed description. When we find that the disk is not enough, we can do a good job of dynamic resizing, so when you partition, we need to consider the future growth of the partition, if not determined growth, use LVM to manage disks.

When you add a new hard disk, add it as/dev/hdb.

1. Create a physical volume/dev/hdb
Pvcreate/dev/hdb

2. Add the physical volume to the volume group vg0
Vgextend vg0/dev/hdb

3. Expand the logical volume/dev/vg0/lv1 by MB.
Lvextend-L + 5000 M/dev/vg0/lv1

4, ext2online/dev/vg0/lv1 (redhat 4) or
Resize2fs/dev/vg0/lv1 (redhat 5)

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.