Skip to contentSkip to conversation

Problems setting up RAID1

DISCUSSION Tyler 1 participant 1 message May 19, 2005 MD RAID

lore
Share & tools
lore

Tyler

author
#0 lore raw

I posted this response about 2 weeks ago, for someone trying to do the same thing.

Regards,
Tyler.

Try this howto:

http://www.linuxsa.org.au/mailing-list/2003-07/1270.html

Regards,
Tyler.

Quoted 63 lines · Glatzel Tino

hello list,

my system is a Debian GNU Linux Sarge. The kernelversion is 2.6.10 without modulsupport.
The partion id is fd.
In the first step, the complete system is installed on /dev/hda3. In the second step, i have created a raid 1 device:
mdadm --create /dev/md0 --level 1 --raid-device=2 /dev/hda1 /dev/hdc1 mkfs -t ext3 /dev/md0
mount /dev/md0 /mnt
cp -pr /boot /mnt
umount /mnt

I want to mount /dev/md0 in /boot
change in the /etc/fstab
/dev/md0 /boot ext3 defaults 0 2

after a reboot, i see the mounted devices:

/dev/hda3 on / type ext3 (rw,errors=remount-ro)
/dev/md0 on /boot type ext3 (rw)

so, i think i will never need the files in the old /boot directory.

umount /boot
cd /boot
ls
System.map-2.6.8-1-386

config-2.6.8-1-386      vmlinuz-2.6.10
grub                    vmlinuz-2.6.10-raid-grsec
initrd.img-2.6.8-1-386  vmlinuz-2.6.10-raid-grsec-hotplug
lost+found              vmlinuz-2.6.8-1-386

System.map-2.6.10

rm -r *
cd ..
mount /boot
ls /boot
System.map-2.6.8-1-386

config-2.6.8-1-386      vmlinuz-2.6.10
grub                    vmlinuz-2.6.10-raid-grsec
initrd.img-2.6.8-1-386  vmlinuz-2.6.10-raid-grsec-hotplug
lost+found              vmlinuz-2.6.8-1-386

System.map-2.6.10

after a reboot, i see the following message from Grub:

GRUB Loading Stage1.5

GRUB loading, please wait ...
Error 15

Ok, i think GRUB can`t access to /dev/md0
what can i do?

Quoted 9 lines

Tino
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html