LVM

Here are some useful commands to manage LVM.

Intro

Environment

Commands

Display informations

root@host:~# pvdisplay
root@host:~# vgdisplay
root@host:~# lvdisplay

Extend a ext2/ext3/ext4 volume (here with /tmp)

root@host:~# umount /tmp
root@host:~# lvextend -L+10G /dev/mapper/tmp
root@host:~# resize2fs /dev/mapper/tmp
root@host:~# mount /tmp

Activate logicals volumes

root@host:~# vgchange -ay VGNAME
root@host:~# lvchange -ay LVNAME
Licence Creative Commons
This website http://shebangthedolphins.net is licensed to the public under a licence Creative Commons Attribution licence.
Contact :