Show LVM volume groups linux
List LVM volume groups with free PE
vgs && vgdisplay
more linux
all 133 commands →
Show LVM logical volumes
lvs -o +devices
Extend LV and resize FS
lvextend -L +10G /dev/vg0/lv_data && resize2fs /dev/vg0/lv_data
Create swap file
fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile
Show swap usage
swapon --show && free -h
Show all IP addresses
ip -br a