Use lsblk Command for Storage Analysis
As I’m working through my very first ebook under the Unix Tutorial brand, I’m learning lots of very interesting things about managing software RAID devices.
Part of effective RAID management is knowing where you stand. I’ve shown you how to use /proc/mdstat already, but today’s command is a higher level one (works with all storage devices, not just RAID).
I use lsblk to report sizes of all the storage devices in my Linux system along with mount points (if known) and RAID membership info.
For each RAID device, you’ll see the following:
type of RAID array – raid0, raid5, etc
RAID array that any device is a member of
Check this out:
In this output you can see that sdb and sdc are members of RAID0 array md0. sdd and sde are forming RAID1 called md1. Finally, sdf/sdg/sdh are members of RAID5 array.
As I’m working through my very first ebook under the Unix Tutorial brand, I’m learning lots of very interesting things about managing software RAID devices.
Part of effective RAID management is knowing where you stand. I’ve shown you how to use /proc/mdstat already, but today’s command is a higher level one (works with all storage devices, not just RAID).
I use lsblk to report sizes of all the storage devices in my Linux system along with mount points (if known) and RAID membership info.
For each RAID device, you’ll see the following:
type of RAID array – raid0, raid5, etc RAID array that any device is a member of Check this out:
In this output you can see that sdb and sdc are members of RAID0 array md0. sdd and sde are forming RAID1 called md1. Finally, sdf/sdg/sdh are members of RAID5 array.