resize and mount LVM volume in Linux
extend or mount your existing LVM volume without any downtime
run sudo pvs
to get a volume group (column VG) for your device
run sudo lvdisplay ⟨your VG⟩
to get a LV Path.
to extend the lvm volume you can run:
sudo lvextend -l +100FREE /path/to/your/lvmvolume
then extend your fs with:
sudo resize2fs /same/path/to/your/lvmvolume
if you want to mount an lvm volume to check out the fs, you can do so:
run sudo vgchange -a y
to activate all groups
now you can mount it: sudo mount ⟨your LV Path⟩ /mnt/somepoint
This post is licensed under
CC BY 4.0
by the author.