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