Hi guys!
Trying to get a software RAID-1 array to work the way I want it to...
I'm using the program mdadm to create my array
I use this program because it's under development and supports a feature to send a mail when something goes wrong in the array...
I used this command to create the array:
That works just fine, the array is created and the mirror made (takes a while of course)
When it's done the array is started...
But if I shut down my server and then start it again the array will not automatically start...
So I need to manually give it this command:
However I would want this to happen automatically... (I assume the array should also be stopped when the server is shutdown/restarted?)
I could of course just add it to the same file I use to start apache and everything else but I'm not sure that is the right thing to do...
I.e. what runlevel would be the right one to initiate it on?
Keep in mind that I'm a total newbie to Linux, this is being done on a Red Hat 9 test server but when successfull will also be implemented on the Techspot server running RH7.3...
I guess what I'm really looking for is a guide on this(a book perhaps?) i.e. you should do it like this and that because of that and that...
Trying to get a software RAID-1 array to work the way I want it to...
I'm using the program mdadm to create my array
I use this program because it's under development and supports a feature to send a mail when something goes wrong in the array...
I used this command to create the array:
Code:
# mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda /dev/sdb
That works just fine, the array is created and the mirror made (takes a while of course)
When it's done the array is started...
But if I shut down my server and then start it again the array will not automatically start...
So I need to manually give it this command:
Code:
# mdadm -A /dev/md0 /dev/sda /dev/sdb
However I would want this to happen automatically... (I assume the array should also be stopped when the server is shutdown/restarted?)
I could of course just add it to the same file I use to start apache and everything else but I'm not sure that is the right thing to do...
I.e. what runlevel would be the right one to initiate it on?
Keep in mind that I'm a total newbie to Linux, this is being done on a Red Hat 9 test server but when successfull will also be implemented on the Techspot server running RH7.3...
I guess what I'm really looking for is a guide on this(a book perhaps?) i.e. you should do it like this and that because of that and that...