John Siu Blog

Tech - Business Tool, Personal Toys

LVM Commands

☰ Table of Content

Some LVM commands.

Display Virtual Group Info

1
vgdisplay

Extend Virtual Disk

1
2
3
4
5
6
lvextend -L+99G /dev/ubuntu-vg/ubuntu-lv
lvextend -l+100%FREE /dev/ubuntu-vg/ubuntu-lv
# Manually extend filesystem after extending virtual disk
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
# -r : Auto extend filesystem after extending virtual disk
lvextend -l+100%FREE -r /dev/ubuntu-vg/ubuntu-lv

John Siu

Update: 2022-05-12
comments powered by Disqus