I have setup software RAID1-arrays using two 250GB harddrives. There's two arrays - one named md0 in which the system is kept and the other, md1 works as swap:# cat /proc/mdstat md0 : active raid1 sda1[1] sdb1[0]      239256512 blocks [2/2] [UU]md1 : active raid1 sda2[1] sdb2[0]      4940736 blocks [2/2] [UU]To keep things a bit more organized, I would like to use separate partitions for /tmp, /home, /var, /opt & and so on in the future. Do I need to create separate arrays for each partition or can I someway let my current md0 contain all these partitions without creating a dozen additional arrays?Thanks
Software raid + separate partitions?
debian;partition;raid;software raid
Mat already said it. I will give you a quick example of a standard layout for software raid and LVM:sd[ab]1: /boot, 256MB - can be run as Raid1 (md0), install grub on both partitionssd[ab]2: /, 3GB - run as Raid1 (md1)sd[ab]3: md2 - use for VG system:After you created md2:pvcreate /dev/md2vgcreate system /dev/md2lvcreate -n vartmp -L 2G systemmkfs -t ext3 -L vartemp /dev/system/vartempmount /dev/system/vartemp /var/tmpI hope that is enough to get the idea. You can use LVs just like you would use a partition. If / is big enough, you can start by installing everything there, then set up your LVs and move the contents there after you booted from a rescue ISO/DVD/CD.