Operating System - Linux
1828335 Members
3562 Online
109976 Solutions
New Discussion

root disk mirror in linux

 
John Guster
Trusted Contributor

root disk mirror in linux

want write up a script to check if the root disk is mirrored or not, stuck with which command(s) to use? Any suggestions are appreciated.
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: root disk mirror in linux

You must identify if the root file syste is an md (software raid) device from the mount command or fstab file. To check the status consult the /proc/mdstat file.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John Guster
Trusted Contributor

Re: root disk mirror in linux

the root file system is under LVM. In such case how to find out if it is mirrored?
Ivan Ferreira
Honored Contributor

Re: root disk mirror in linux

In that case, there are two options.

If you are using software raid, consult which physical volumes are in your root volume group:

vgdisplay -v vg00 | grep "PV Name"

You should see something like /dev/md* in the physical device if it's a software RAID.

If you are using a hardware raid, then the procedure is different depending of your hardware provider.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
John Guster
Trusted Contributor

Re: root disk mirror in linux

It is Dell PowerEdge 3xxx hardware. vgdisplay shows Cur PV=Act PV=1. it is not mirrored at software level. any steps available in checking hardware mirroring from you? Thanks
Ivan Ferreira
Honored Contributor

Re: root disk mirror in linux

This page may help you:

http://tools.rapidsoft.de/perc/
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?