Online expansion of LVM volumes in Linux

Source: Internet
Author: User
LVM is a good volume manager in Linux. The file system size can be expanded online. This article describes how to expand a space. Check the current usage. LVM is a good volume manager in Linux. The file system size can be expanded online. This article describes how to expand a space. Check the current usage [root @ host ~] # Df-h | grepdata01

LVM is a good volume manager in Linux. The file system size can be expanded online. This article describes how to expand a space.

Check Current usage

LVM is a good volume manager in Linux. The file system size can be expanded online. This article describes how to expand a space.

Check Current usage

[root@host ~]# df -h | grep data01/dev/mapper/datavg-ora-data01                      90G  85G  5G  94% /ora/data01

Check the remaining space:

[root@host ~]# vgs  VG         #PV #LV #SN Attr   VSize  VFree  datavg       1   2   0 wz--n- 201.88G 80g

Extended volume

[root@host ~]# lvextend -L +30G /dev/mapper/datavg-ora-data01  Extending logical volume datavol-ora-data01 to 120.00 GB  Logical volume datavg-ora-data01 successfully resized

Online volume size adjustment

[root@host ~]# resize2fs /dev/mapper/datavg-ora-data01resize2fs 1.39 (29-May-2006)Filesystem at /dev/mapper/datavg-ora-data01 is mounted on /ora/data01;on-line resizing requiredPerforming an on-line resize of /dev/mapper/datavg-ora-data01 to 2883584 (4k) blocks.The filesystem on /dev/mapper/datavg-ora-data01 is now 2883584 blocks long.

Adjusted

[root@host ~]# df -h | grep data01/dev/mapper/datavg-ora-data01                      120G  85G  35G  71% /ora/data01

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.