Show LVM logical volumes

List logical volumes with device paths

lvs -o +devices

tool
linux133 commands
tags
linuxlvmdisk

More linux commands

  • lvextend -L +10G /dev/vg0/lv_data && resize2fs /dev/vg0/lv_data

    Extend LVM logical volume by 10G and grow ext4 filesystem online

  • fallocate -l 2G /swapfile && chmod 600 /swapfile && mkswap /swapfile && swapon /swapfile

    Allocate 2G swap file, set permissions, format and enable

  • swapon --show && free -h

    List active swap spaces and overall memory/swap stats

  • ip -br a

    Brief list of all interfaces with IPs

  • ip route show table all

    All routing rules including policy routes

all 133 linux commands