Dear All,
I am trying to configure RAID 1 on Fedora12 Virtual Machine.
Initially I had two drives /dev/sda and /dev/sdb which are configured with RAID 1.
Now I have attached two more hard drives /dev/sdc and /dev/sdd in which I am trying to configure RAID1. I have followed following steps to mount newly created Raid array on /var
1. Created /dev/sdc1 and /dev/sdd1 as Linuxraid (ID:fd) with 200MB of space
2. Created raid array
Code:
# mdadm --create /dev/md2 --level=1 --raid-devices=2 /dev/hdc1 /dev/hdd1
3. Created ext3 filesystem
Code:
# mkfs.ext3 /dev/md2
4. Mount it on a test directory
Code:
# mount /dev/md2 /mnt/var
5. Copy the files of /var to /mnt/var/
Code:
cp -ar /var/. /mnt/var/
6. Unmount the volume
7. mount on /var
Code:
mount -t ext3 /dev/md2 /var
Now I could see all the files in side /var and /dev/md2 is properly mounted on /var
Also I added following line to /etc/fstab
Code:
/dev/md2 /var ext3 defaults 1 2
Even after
mount -a I can see the /dev/md2 mounted on /var
But when I reboot the machine system goes to maintainance mode and asks for root password, because created raid arrary /dev/md2 is not sustaining after reboot.
What additional command I have to execute to make /dev/md2 permanent after reboot ?
Thanks in advance.