Hello, I have a question about ubuntu server 10.04 software raid with MDADM. I have server with 3 hdd's. First one, where is OS located (160gb) and two hdd's (500gb each) which I want to put in RAID1. I don't want to touch anything on my OS hdd, so what should I do different in this tutorial to put only my 500gb hdds in RAID1? I'm asking here, because I am afraid to mess things up if I directly follow that tutorial. http://www.howtoforge.com/how-to-se...-system-incl-grub2-configuration-ubuntu-10.04
Let's assume your two 500GB HDDs are named /dev/sdb and /dev/sdc. First your format /dev/sdb with fd (Linux RAID Autodetect): Code: fdisk /dev/sdb For example, if you create two Linux RAID Autodetect partitions on /dev/sdb (/dev/sdb1 and /dev/sdb2), you can set up RAID1 as follows: Code: sfdisk -d /dev/sdb | sfdisk --force /dev/sdc mdadm --zero-superblock /dev/sdb1 mdadm --zero-superblock /dev/sdb2 mdadm --zero-superblock /dev/sdc1 mdadm --zero-superblock /dev/sdc2 mdadm --create /dev/md0 --level=1 --raid-disks=2 /dev/sdb1 /dev/sdc1 mdadm --create /dev/md1 --level=1 --raid-disks=2 /dev/sdb2 /dev/sdc2 Afterwards you can create file systems on /dev/md0 and /dev/md1 and mount them (you might also want to add them to /etc/fstab). Finally run Code: cp /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf_orig mdadm --examine --scan >> /etc/mdadm/mdadm.conf