Linux – How to verify mirror configuration

bladecenteribmlinuxredhat

I have an IBM blade server and we've installed RedHat Linux on the machine.

How can we check if we have both disks running as a mirror, or if everything is only running on a single disk? What commands can I use to discover this?

Diana

Best Answer

Use the cfggen utility to manipulate the onboard RAID controller from Linux.

cfggen 0 status will show you what, if any, RAID volumes you have.

As a quick check, if you have a mirror, sda should have a Vendor/Product ID of: LSILOGIC Logical Volume.

With the onboard controller, the raw disks behind the mirror are also exposed to the OS via sg devnodes. See the output of lsscsi -g to find what they are.