Question:
Linux and RAID 5 question.?
samrramsey
2007-07-27 01:40:23 UTC
I replaced a bad drive on a server that has four RAID 5 drives + 1 hot swapable drive. It is running centOS 5.0 How do I confirm that the new drive is re-building and when it is finished re-building? Is there a linux command that will show this?
Three answers:
bambamitsdead
2007-07-27 01:56:23 UTC
Depends very much what version of Linux you are running and what raid card you've got... and how you configured it.



Try pvdisplay -v or lvdisplay -v if you've got the disks under lvm control.



Otherwise you may need to connect to the raid controller to find out what it's up to.



And it also depends how the RAID controller functions. Some of them don't re-build in the way you expect... they rebuild onto the hot spare when the original disk fails and the replacement disk is treated as a hot spare.
2007-07-27 02:24:58 UTC
Hi,



You can use the mdadm command



# mdadm --query /dev/mdX



Will show you the RAID config



# cat /proc/mdstat



Will show you the status of the RAID, like Rebuilding ....



Have a look at the man-page for command-line options.



R.
Carling
2007-07-27 01:49:45 UTC
goto the user support group forum for the linux version you have and ask the question there,, now linux support is second to none, so you should get your answers very fast,,,


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...