Thursday 19 December 2013

Managing LVM

You are using LVM and running out of disk space? Check if you still have some left and increase space if you can.

First check used space
df -h 

Check available space in LV:
vgdisplay 

Check LV layout:
lvs 

Increase space for example on var:
lvresize -L +3GB /dev/VG01/LV_VAR
resize2fs -p /dev/VG01/LV_VAR 

Check
lvs df -h

Be happy

No comments: