raid disk not running
Hello,
I just configured two raid setups but after a reboot they are not mounted and seem to be inactive. md127 = sde1, sdf1 and sdi1 (raid 5) md0 = sda1 and sdh1 (raid 0) Code:
root@server /]# cat /proc/mdstat Code:
[root@server /]# fdisk -l | grep "Disk /" Code:
[root@server /]# cat /etc/mdadm.conf To make matters worse I placed some important data on them, and even if I was clever enough to keep an extra copy on another drive, guess which drive that was? So, I need to get them activated as is (at least so I can get the data of them) before I can rebuild them from scratch. Any assistance is much appreciated! PS. I'm running Mandriva 2010.1 and rated tehm using the built in disk partitioner. |
No doubt a dumb question, but have you tried assembling and mounting them manually at the command line with mdadm, something like mdadm -assemble -scan or even mdadm -assemble {manually add raid parameters and devices}
If not, you could try the posting the output of mdadm -Ebsc partitions and we can try to figure it out |
Hello again,
After your suggestion I dared running some mdadm commands and got it working. I had to do mdadm --stop first before assembling them with --assemble -v. The only remaining problem is that I have to do this manually each time the computer is restarted. Is there any way to have them assembled automatically? |
You may need to edit your mdadm.conf file. Something like this:
Quote:
|
My mdadm.conf says:
Code:
DEVICE /dev/sdi1 /dev/sdf1 /dev/sde1 /dev/sda1 /dev/sdh1 |
From the mdadm.conf man page:
Quote:
|
Quote:
|
my mdadm.conf now says:
Code:
DEVICE /dev/sdi1 /dev/sdf1 /dev/sde1 /dev/sda1 /dev/sdh1 mdadm --assemble -scan says it only finds one drive for each set. [root@hserver /]# mdadm --assemble -scan Code:
mdadm: /dev/md/127_0 assembled from 1 drive - not enough to start the array. (unless /etc/mdadm.conf is the wrong config file?) It feels like there are some conflicting configurations somehow? |
Adding additional output as requested previously.
[root@server /]# mdadm -Ebsc partitions ARRAY /dev/md/0 metadata=1.2 UUID=65c49170:733df717:435e470b:3334ee94 name=holisrv3:0 ARRAY /dev/md127 UUID=5dc0cf7a:8c715104:04894333:532a878b This sure looks like another config file? But... [root@server /]# locate mdadm.conf /etc/mdadm.conf /usr/share/doc/mdadm/mdadm.conf-example /usr/share/man/man5/mdadm.conf.5.lzma Btw. "holisrv3" is the name of the computer. |
I noticed my error of stating level=5 instead of level=raid5 and have corrected it. Have not rebooted yet.
Perhaps I should give up on salvaging the current situation, simply erase all traces of the raid sets and do them all over again but manually instead of using the guide? What say you? (since I could assemble them manually I have removed all my important data from them). |
If you create them manually, you are also responsible for adding entries to the mdadm.conf file so it would be useful to check whether what you have now works or not, if only to give you an idea. Re-creating the raid devices without knowing exactly what the entries should be like would be pointless.
|
I have now rebooted after correcting the error with level=5. Still same result.
|
Run mdadm --detail --scan and compare with what you put into mdadm.conf.
|
Ok.
I removed all sets and rebuilt everything from scratch using this guide. Still no luck. Current details: fdisk -l | grep "Disk /" (The disks are there) Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Code:
# mdadm --stop /dev/md0 After assembling manually I get the following output: cat /proc/mdstat Quote:
Quote:
Quote:
PS. I noticed that the mdadm service is not started automatically. But starting it with 'service mdadm start' did no difference. |
I have used that same how-to without any problem so I am beginning to wonder whether you are not affected by a bug. Maybe it is time for a little detour. I would check with another distro.
|
All times are GMT -5. The time now is 06:23 AM. |