LVM Commands

Table of Contents

Some LVM commands.

Display Virtual Group Info

vgdisplay

Extend Virtual Disk

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
Minimize the Effort, Maximize the Effect!
comments powered by Disqus