Re: [gentoo-user] RAID 10 help
On Sunday 30 October 2005 05:42, Qiangning Hong wrote: Did you use mdadm to make the arrays? No, I create /etc/raidtab by hand and run mkraid for each md device, following the steps of http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID You can ignore any howto that tells you to use raidtab, it's almost completely unnecessary. Use mdadm to create a RAID10 array, not a RAID0 of 2 RAID1s. If you have the drivers all compiled in, and give the partitions the correct partition type (fd, linux raid autodetect), they'll get built by the kernel on startup. -- Mike Williams -- gentoo-user@gentoo.org mailing list
[gentoo-user] RAID 10 help
I have four identical SATA disks and want to create a Software RAID 10 array for my new gentoo system. But I am quite a newbie for the RAID area. I googled but found nothing teach me how to setup a RAID10 on four disks -- all the tutorials, howto, etc. are talking about setup RAID1 or RAID0 or mix these two up on two disks. I fdisk all my four disks to the following: livecd ~ # sfdisk -d /dev/sda # partition table of /dev/sda unit: sectors /dev/sda1 : start= 63, size= 144522, Id=fd /dev/sda2 : start= 144585, size= 1975995, Id=82 /dev/sda3 : start= 2120580, size= 39086145, Id=fd /dev/sda4 : start= 41206725, size=115089660, Id=fd /dev/sdb, /dev/sdc and /dev/sdd are all fdisk'ed as the same as /dev/sda. As grub cannot be setup on RAID0 (neither RAID 1+0 nor RAID 0+1), I have to create a four-partion RAID1 with /dev/sd[abcd]1 and mount it as /boot. Then I want both my / and /var are RAID10. I use the following schema: /dev/sda3/dev/sdb3/dev/sdc3/dev/sdd3 |||| +--(RAID1)---++---(RAID1)--+ | | /dev/md3 /dev/md4 | | +-(RAID0)--+ | /dev/md5 and mount /dev/md5 as /. The same as /dev/sd[abcd]4 for a /dev/md8 as /var. After mkraid, I followed the Gentoo Handbook and installed system, build all RAID and driver mapping options into kernel. But after reboot, kernel panic! The error message says it can not mount / on /dev/md5 because it doesn't exist. From the messages on the boot screen, it seems the kernel can assemble the two RAID1's and create /dev/md3 and /dev/md4, but it can not assemble /dev/md5. Maybe because /dev/md5 is based on two md devices? I tried RAID1 on two RAID0's but with no luck, either. How can I create a system which root partion is RAID10? -- Qiangning Hong http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn) Registered Linux User #396996 Get Firefox! http://www.spreadfirefox.com/?q=affiliatesid=67907t=1 Thunderbird! http://www.spreadfirefox.com/?q=affiliatesid=67907t=183 -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] RAID 10 help
On Sun, 30 Oct 2005, Qiangning Hong wrote: As grub cannot be setup on RAID0 (neither RAID 1+0 nor RAID 0+1), I have to create a four-partion RAID1 with /dev/sd[abcd]1 and mount it as /boot. Then I want both my / and /var are RAID10. I use the following schema: /dev/sda3/dev/sdb3/dev/sdc3/dev/sdd3 |||| +--(RAID1)---++---(RAID1)--+ | | /dev/md3 /dev/md4 | | +-(RAID0)--+ | /dev/md5 and mount /dev/md5 as /. The same as /dev/sd[abcd]4 for a /dev/md8 as /var. After mkraid, I followed the Gentoo Handbook and installed system, build all RAID and driver mapping options into kernel. But after reboot, kernel panic! The error message says it can not mount / on /dev/md5 because it doesn't exist. Is RAID support in your kernel? Did you use mdadm to make the arrays? -- -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] RAID 10 help
A. Khattri wrote: On Sun, 30 Oct 2005, Qiangning Hong wrote: As grub cannot be setup on RAID0 (neither RAID 1+0 nor RAID 0+1), I have to create a four-partion RAID1 with /dev/sd[abcd]1 and mount it as /boot. Then I want both my / and /var are RAID10. I use the following schema: /dev/sda3/dev/sdb3/dev/sdc3/dev/sdd3 |||| +--(RAID1)---++---(RAID1)--+ | | /dev/md3 /dev/md4 | | +-(RAID0)--+ | /dev/md5 and mount /dev/md5 as /. The same as /dev/sd[abcd]4 for a /dev/md8 as /var. After mkraid, I followed the Gentoo Handbook and installed system, build all RAID and driver mapping options into kernel. But after reboot, kernel panic! The error message says it can not mount / on /dev/md5 because it doesn't exist. Is RAID support in your kernel? Yes, I compiled in (not as module) all the options under Device Driver -- Multi-device support (RAID and LVM) Did you use mdadm to make the arrays? No, I create /etc/raidtab by hand and run mkraid for each md device, following the steps of http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID -- Qiangning Hong http://www.hn.org/hongqn (RSS: http://feeds.feedburner.com/hongqn) Registered Linux User #396996 Get Firefox! http://www.spreadfirefox.com/?q=affiliatesid=67907t=1 Thunderbird! http://www.spreadfirefox.com/?q=affiliatesid=67907t=183 -- gentoo-user@gentoo.org mailing list