Ubuntu Server 6.06 LTS RAID 1 mirror and LVM
From LinuxNewbie
Contents |
Setup RAID
$ cat /proc/diskstats
To set up a partitition, run fdisk twice, each one for each disk and do the following:
$ fdisk /dev/hdX
Type ‘n’, create a logic partition. Write down the cylinders you used because the partitions on the others disk have to fill the same exact ammount of space. Set it’s type to ‘fd’ by typing t. Finally, save the changes by typing w.
I’ll remember once again than you have to follow this procedure twice, once of earch hard drive.
Now it’s time to create the virtual disk. Make sure mdadm is installed. If it isn’t, I can lend you a hand on that. Just do
Then, fire up the following command
$ mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/hda1 /dev/hdc1
Missing MDx devices
If you should encounter messages like: mdadm: error opening /dev/md1: No such file or directory when you try to create several arrays you will have to create the devices on your own using
mknod /dev/md0 b 9 0 mknod /dev/md1 b 9 1 mknod /dev/md2 b 9 2 ...
Create /boot
$ fdisk /dev/md0
Create a new partition with 'n', make it a primary and partition number 1.
Change the type to Linux with 't' and 83.
grub boot loader on both hard drives
LVM
credits
RAID configuration
How to fix missing MD device entries
