You are not logged in.
Pages: 1
Hi all.
I'm trying to set up software raid, following this guide: http://wiki2.archlinux.org/index.php/In … d-or%20LVM
My setup is sda & sdb.
/dev/md/0 /boot (sda1 & sdb1)
/dev/md/1 swap (sda2 & sdb2)
/dev/md/2 / (sda3 & sdb3)
/dev/md/3 /mnt/storage (sda4 & sdb4)
I'm running it as raid level 0 and reiserfs.
Partitioning the drives, setting up raid arrays, making file system, installing and configuring the system, copying the grub part, mounting devfs, proc and chrooting into /mnt works whit out any problem.
My problem begins whit setting up grub.
grub> root (hd0,0) (and other combos) gives me :file system unknown partition type 0xfd.
grub> setup (hd0) (and other combos) gives me :error 17 cannot mount selected partition.
I used to run an hda disc as swap & / and my sata discs as a large md/0 storage whit no problem, but after running hdparm -t on the devices, I thought why let it go to waste storing stuff that I don't use regularly.
/cat /proc/mdstat gives me:
Personalities : [linear] [raid0] [raid1] [raid5] [multipath] [raid6] [raid10]
md1 : active raid0 sdb2[1] sda2[0] 1959680 blocks 64k chunks
md2 : active raid0 sdb3[1] sda3[0] 17382144 blocks 64k chunks
md3 : active raid0 sdb4[1] sda4[0] 293041536 blocks 64k chunks
md0 : active raid0 sdb1[1] sda1[0] 192512 blocks 64k chunks
unused devices: <none>
both under the grub install session and booting up arch on my hda disk.
I disconnected my hda during the attempt to configure the software raid.
So if anyone knows what I'm doing wrong, please let me know.
PS: If the problem lies with grub and sata disks in software raid setup, I wouldn't mind making an boot partition on my hda and use the rest for a backup and important files drive, I just dont want to destroy my working arch install, just to find it wont work anyway.
Thanks.
Offline
Hmm, after some reading it seems that the /boot partition cannot be raid0, is this correct?
I'll try to change my /dev/md/0 /boot (sda1 & sdb1) to raid1 a little later and let you know.
Offline
Uh. After reading the general approach in the wiki I see this part "Why RAID 1? For boot, it's so you can boot the kernel from grub (which has no RAID drivers!)"
Damn, someone should have replied with RTFM :oops: :oops: :oops:
Offline
If anyone is interested, I finally got it up and running with some small modifications.
Instead of whats in the wiki.
root (hd0,0)
kernel /boot/vmlinuz26 root=/dev/md/2 ro
I used.
root (hd1,0)
kernel /vmlinuz26 root=/dev/md/2 ro
(my sdb is detected as drive 0 and sda as drive 1)
And it works 8)
Offline
Where did you install Grub to?
A bus station is where a bus stops.
A train station is where a train stops.
On my desk I have a workstation.
Offline
I installed it on (hd0) under GRUB setup.
Offline
Pages: 1