1826187 Members
2658 Online
109691 Solutions
New Discussion

Checking root mirror

 
Shahul
Esteemed Contributor

Checking root mirror


HI,

Could some one tell me how can I check which is the root HDD and is it mirrored or not? I don't have much experience in Linux.

TIA
Shahul
7 REPLIES 7
Claudio Cilloni
Honored Contributor

Re: Checking root mirror

run the df command. the disk/partition of the root filesystem is in the first column of the 'Mounted on /' line (last column).

if the device name is something like /dev/md0 (md means 'multiple device') it could be a software-mirrored device.

hth,
Claudio
Jeroen Peereboom
Honored Contributor

Re: Checking root mirror

Shahul,

you could be using hardware mirroring on a RAID controller. You need to get the configuration of the controller. I think that means rebooting.

JP.
Roberto Polli
Trusted Contributor

Re: Checking root mirror

Hi,
Clausio is right if you have a software raid but you have to chek which kind of raid it is (can be a stripe!)

Jerome,
you don't need to reboot to check hw-raid.
You can
#lsmod
to understand which kind of controller are you using.
Then look in
/proc/drivers/MODULENAME

mine gives the following output

localhost#:/proc$cat driver/cciss/cciss0
cciss0: HP Smart Array 5312 Controller
Board ID: 0x4432qsa11
Firmware Version: 2.36
IRQ: 18
Logical drives: 2
Current Q depth: 0
Current # commands on controller: 0
Max Q depth since init: 128
Max # commands on controller since init: 130
Max SG entries since init: 31
Monitor thread period: 0
Monitor thread deadline: 0
Status: operational
Sequential access devices: 0

cciss/c0d0: 17.35GB RAID 1(0+1)
cciss/c0d1: 173.61GB RAID 0

Hope it helps.
Peace, R.
Roberto Polli
Trusted Contributor

Re: Checking root mirror

Jeroen,
sorry to have misspelt your name :_( Hope you'll forgive!
KC_22
New Member

Re: Checking root mirror

Hi

I check not see the status of raid hard when i type /proc/driver/cciss/cciss0

the following it the output. How I can check the raid disk stautus

cciss0: Compaq Smart Array 5i Controller
Board ID: 0x40800e11
Firmware Version: 2.36
Memory Address: 0xf883a000
IRQ: 10
Logical drives: 1
Highest Logical Volume ID: 0
Current Q depth: 0
Current # commands on controller 0
Max Q depth since init: 128
Max # commands on controller since init: 129
Max SG entries since init: 31
Sequential access devices: 0

cciss/c0d0: blksz=512 nr_blocks=142239510
nr_allocs = 14815924
nr_frees = 14815924

Thanks
KC
Ivan Ferreira
Honored Contributor

Re: Checking root mirror

If you use software raid, use cat /proc/mdstat to verify the status of the raid devices.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Jack Baruth_1
New Member

Re: Checking root mirror

KC,

The Compaq SmartArray has some built in utilities. Reboot the system and enter the utility menu to see how your drives are mirrored.
Replaces my unrecoverable 2001 profile.