Re: debian testing and mdadm
On Saturday 26 March 2005 06:02 pm, Adam Olsen wrote:
> Hello,
>
> I just recently attempted to use this method:
> http://synic.ath.cx/raid1.txt to create full software raid 1 on our
> server running debian testing. I replaced all the references to
> raidtools with mdadm.
mdadm is a program all unto itself, so I wouldn't just substitute mdadm for
raidtools. There are a number of tutorials on the web for mdadm which are
VERY easy to follow. Just google for "+mdadm +linux +tutorial" and you
should have no problem making sure it's set up right. If you set it up
right, then it will start automatically.
Hal
> It seems to be working, cat /proc/mdstat shows:
>
> Personalities : [raid1]
> md2 : active raid1 sda2[1] sdb2[0]
> 155308288 blocks [2/2] [UU]
>
> unused devices: <none>
>
> However, when I reboot, sda2 does not come up - I have to mdadm -a
> /dev/md2 /dev/sda2 to get it to come up. It has to rebuild, which takes
> about an hour.
>
> My /etc/mdadm/mdadm.conf looks like this:
>
> DEVICE /dev/sda2,/dev/sdb2
> ARRAY /dev/md2 level=raid1 num-devices=2 devices=/dev/sda1,/dev/sda2
>
> How can I get /dev/sda2 to come up automatically?
>
> Adam
Reply to: