Document TypeㅣTechnical Information
CategoryㅣUtility
Applicable Product Versionㅣ 7FS02PS
Document Numberㅣ TUTTI001
Overview
This guide provides methods you can refer to when you need to expand LVM size due to disk size shortage in a cloud environment.
NotePlease refer to the following manual.
Method
1. Increase the existing disk size from the console
Increase the disk size from the cloud console screen.
2. Install required packages
- Check with the lsblk command
- Install the package
root# yum install cloud-utils-growpart
3. Execute the growpart [storage] [partition number] command
ex) root# growpart /dev/xvdb 1
4. Check with the pvdisplay command
5. lv inactive (optional)
root# lvchange -a n [lvm name]
→ Check inactive status with lvscan
Caution
This is not mandatory, and cannot be performed if the LVM is mounted. (Possible after umount)
6. pv resize
root# pvresize [pv name] ex) root# pvresize /dev/xvdb1
7. Check with lvdisplay
8. Change lv to active → After changing to active, mounting is required (only if step 5 was performed)
root# lvchange -a y [lvm name]
→ Check inactive status with lvscan
9. Extend lvextent
root# lvextend -L[additional size] [lvm name] ex) root# lvextend -L200G /dev/mapper/db_vg01-tibero
10. If there is no size change when checked with df -hT, execute the file system resize command as follows
#. For xfs root# xfs_growfs [disk name or lvm name] ex1) root# xfs_growfs /dev/xvdb1 ex2) root# xfs_growfs /dev/mapper/db_vg01-tibero #. For ext4 root# resize2fs [disk name or lvm name]