Wednesday, August 20, 2014

raid1 - How to determine if a CentOS system is Raid-1?




I've tried searching for this answer, but haven't found anything elegant.



I have numerous servers in a colo that is in another state. I need to find a way to check that the servers have RAID-1 on them, so that I can determine if they were setup correctly by my colo.



df -h shows:
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
442G 1.5G 418G 1% /
/dev/sda1 99M 19M 75M 20% /boot

tmpfs 4.0G 0 4.0G 0% /dev/shm



however as CentOS uses LVM by default, this doesn't indicate if a RAID-1 is present.



it is supposed to be a software raid, so I'm pretty sure there should be a way to check.



Thanks


Answer



cat /proc/mdstat will give you
raid usage on your machine




dmesg | grep raid will tell you if raid is
enabled in your kernel


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...