Trouble starting my RAID5 at bootup
Hi!
I can't seem to figure out how to autostart my RAID 5 on bootup. (I'm using Debian 6.0) I've tried a few things, but I'm worried that tinkering too much would make me loose my data. The raid has to be started manually (within Gnome) after every reboot. The raid consists of 3 x 2tb disks; Code:
# blkid -Martin |
@ Reply
Hi maan75,
Welcome to LQ!!! What are the things that you have already tried? Paste the output of the following commands: 1. Code:
df -h Code:
fdisk -l Code:
mdadm --detail Code:
cat /proc/mdstat Code:
cat /etc/fstab |
1 df -h
Quote:
Quote:
Quote:
Quote:
Quote:
|
@ Reply
Did you run these commands when your RAID was up? For mdadm --detail you have to mention the device as well as follows:
mdadm --detail /dev/md0 I do not see any out for cat /proc/mdstat which makes me think that you ran the commands when RAID was not up. It would be good if you could paste the output of mdadm.conf file as well. And you did not mention what are the things that you already tried. Just want to know so that we do not suggest what you already tried. |
Perhaps the content of mdadm.conf is of interest as well?
C Quote:
---------- Post added 02-18-12 at 10:12 PM ---------- Perhaps the content of mdadm.conf is of interest as well? C Quote:
|
@ Reply
Alright. Run the following command:
Code:
mdadm --detail --scan >> /etc/mdadm/mdadm.conf #ARRAY /dev/md0 metadata=1.2 UUID=8a0a4f78:8c878d94:7063b77d:d9bcbf92 name=:New RAID Array and then reboot the system. Note: Make sure that you take a backup of existing mdadm.conf file. Make sure that you use double redirector >>. If you will use single then you will loose the existing stuff in that file. |
I've been trying some changes to the mdadm.conf, enableing/disableing services related to mdadm and a whole lot of rebooting to see if i were going somewhere..
Thought it had to be down; here are mdadm --detail while up-and-running Quote:
Quote:
|
Done..
However; when i open the disctool, it reports the raid as not running.. :-/ |
@ Reply
Alright.
Add the following line to /etc/fstab: Code:
8a0a4f78:8c878d94:7063b77d:d9bcbf92 /jadda ext4 defaults 0 0 Code:
/dev/md0 /jadda ext4 defaults 0 0 Another thing that I noticed about your RAID is the name. Did you give it a name New Raid Array because I have seen people using giving one word name to their RAID array. If the above does not work then we can think of putting a script to run at boot time to automatically mount it using the command. Make sure that you take a backup of existing /etc/fstab before making any modifications. It is better to be safe then sorry ;-) |
The name was the default suggestion; I would have given it another name with just one word.. :-)
Anyway; after reboot, the raid is still not up and running.. |
@ Reply
Alright. One more thing we can try before we jump on to script section. When the system comes up (without RAID) and if you type the command:
Code:
mount -a If not, then run the following command and see if your RAID comes up or not: Code:
mdadm --assemble --scan |
This IS one of the things i've tried earlier.. Still; tried again, but to no avail..
Quote:
Quote:
|
@ Reply
Try this command and see if this works.
Code:
mdadm /dev/md0 --assemble -u 8a0a4f78-8c87-8d94-7063-b77dd9bcbf92 Another thing that you could try is putting the uuid in the following format in /etc/fstab: Code:
uuid=8a0a4f78-8c87-8d94-7063-b77dd9bcbf92 /jadda ext4 defaults 0 0 |
Success.. :-)
Quote:
|
The fstab-thingy did'nt work however..
|
All times are GMT -5. The time now is 08:19 AM. |