Redhat: How to list all disks availble

On Redhat, run this command

lsblk

You will see this

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 1024M 0 rom
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part
 ├─rootvg-swaplv (dm-0) 253:0 0 8G 0 lvm [SWAP]
 ├─rootvg-rootlv (dm-1) 253:1 0 14G 0 lvm /
 ├─rootvg-homelv (dm-2) 253:2 0 6G 0 lvm /home
 ├─rootvg-varlv (dm-3) 253:3 0 8G 0 lvm /var
 └─rootvg-tmplv (dm-4) 253:4 0 8G 0 lvm /tmp
sdb 8:16 0 250G 0 disk

Leave a Reply

Your email address will not be published. Required fields are marked *