On 06/03/13 02:06 PM, Gary Dale wrote:
On 06/03/13 01:55 PM, Dick Thomas wrote:About.me http://about.me/dick.thomas Blog: www.xpd259.co.uk G+: www.google.com/profiles/xpd259 gpg key: C791809B On 6 March 2013 18:47, Adam Wolfe<kadamwolfe@gmail.com> wrote:I had one h**l of a time doing this over the weekend.What finally worked for me was creating LOGICAL partitions on each drive andsetting them as used for RAID volume devices. This gave me /dev/sda5, /dev/sdb5 etc etc.When grub did it's install, it added all the /dev/sda1 etc partitions andrebooted fine. When I tried primary partitions, grub would just fail and I'd have to restart the whole install process over.NOTE: when booting from the install cd i had to [tab] the 'install' menuentry and add "dmraid=true". Then after the initial install, it would still fail to boot.Back to the install cd, choose 'rescue', [tab] and add 'dmraid=true' again. Then get thee to a shell and 'grub-install --recheck /dev/sdaX' for eachpartition. On 03/06/2013 01:37 PM, Dick Thomas wrote:What is the best way to setup a raid 5 array (4* 2TB drives) should I make raid 5 for my system and /home then raid 0 or 1 for the boot, or should I buy a 5th drive for system/boot and install in the standard way? as this is my 1st time on debian and not sure what would be best Dick Thomas About.me http://about.me/dick.thomas Blog: www.xpd259.co.uk G+: www.google.com/profiles/xpd259 gpg key: C791809B--To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subjectof "unsubscribe". Trouble? Contact listmaster@lists.debian.org Archive: [🔎] 51378F3E.20206@gmail.com">http://lists.debian.org/[🔎] 51378F3E.20206@gmail.comI've tried installing from my "hardware" motherboard raid and that just fails even with dmraid=true atm i've got a raid 0 /boot raid 5 encrypted then /lvm /lvm/swap /lvm/root //var/log but wasn't sure if that was the way to do it or am I just confusing matters more :)Do NOT use the hardware RAID. It's just a crippled form of software RAID.Ignore the advice from Adam Wolfe - it's nonsense. Use the Debian installer (advanced mode) to create the RAID 5 array on drives with just one partition (whole disk) as /dev/md0. Then partition the RAID 5 array into / and /home. Install and reboot.If you are using Wheezy this will work directly. If you are using Squeeze then you may need to fix the UUID in /boot/grub.cfg.I've done this successfully several times. It just works.
You can also boot from a live CD such as system rescue CD and create the RAID array before installation. This allows you to use the normal install path - just select /dev/md0 as the disk to install to, partition it, and install.
I like to do this from the command line:1) fdisk /dev/sda, ensure that there is only one whole-disk primary partition on the drive (from 2048 to last sector on disk). Set type to "fd".
2) Repeat for all 4 drives. 3) mdadm --create /dev/md0 -n 4 -l 5 /dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1 then reboot into the Debian installer and proceed normally. NOTE: the BIOS should have the drives set to AHCI, not RAID.