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?
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.Sign up to join this community
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.
If it's hardware RAID as I suspect, your RHEL will only see a single disk to the OS side.
If you don't yet have any production stuff running on the server, just go ahead and physically test that thing. Remove one disk, see if your server continues working. Put disk back in, remove another disk, see if it still works. Anyway if during production one of your disk goes bad, you'll encounter this little test.