Linux + how to verify mirror configuration on linux red-hat

5,353

Solution 1

If you are using software raid in linux, look at mdadm --detail /dev/md0

If its hardware raid, you'll need to look in the bios / raid controller config during boot up to check what raid level it is using.

Solution 2

There are several possible RAID configurations and it's not always obvious where to look.

If it is Linux software RAID, it will likely show up in the device name. If you run mount and look at the devices that you have mounted at various places, you will probably notice entries like /dev/sdaN. This is the standard representation for ATA hard disk devices these days. On the other hand if you see /dev/mdN, that is the conventional notation for software based RAID array devices under Linux.

If you are using hardware based RAID it's a little more complicated. Many of these devices will show up as if they were single drive devices. You should start with physically looking at the box to see if the drives are plugged into a RAID capable device. If so there might be indications from the POST messages during boot as well.

Share:
5,353

Related videos on Youtube

david
Author by

david

Updated on September 18, 2022

Comments

  • david
    david almost 2 years

    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?

  • david
    david almost 13 years
    sorry but in my linux I not have the mdadm command - you have other command?
  • tcoolspy
    tcoolspy almost 13 years
    @david: That's one clue that you are probably NOT running software RAID! Like Sirex said your next step is to look at the hardware and boot time messages to see if some hardware device is setting up an array.