lsblk

By Eric Lathrop on

I installed some old hard drives into my server to get some files off them. They were a RAID 1 array, using LVM and encrypted with LUKS. It was confusing to figure out which /dev entries belonged to what, and in what order RAID/LVM/LUKS was setup. After some searching I found the lsblk command which gives a nice visual layout of how the devices are laid out:

NAME             MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                8:0    0  10.9T  0 disk
└─md0              9:0    0  10.9T  0 raid1
  └─dm_crypt-0   253:0    0  10.9T  0 crypt
    └─vg0-home   253:1    0  10.9T  0 lvm