- Raidtools Instructions:
Set up the /etc/raidtab file similar to this:
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
device /dev/sdb6
raid-disk 0
device /dev/sdc5
raid-disk 1
Issue command to begin mirror initialization:
mkraid /dev/md0
Check progress with:
/proc/mdstat
____________________________
- MDAdm Instructions
Create (initialize) two partitions.
(Do this w/fdisk or the gui tool LVM tool.)
Create new device:
mdadm --create /dev/md0 --chunk=64 --level=raid1 --raid-devices=2 /dev/hda1 /dev/hdc1
(Where md0 is first raid set, hda1 and hdc1 are partitions to combine to raid 1. Dashes for parameters are - - double dashes (w/o space)!)
Check progress with:
cat /proc/mdstat
Save the updated info into mdadm.conf:
mdadm --detail --scan >> /etc/mdadm.conf
# cat /etc/mdadm.conf
DEVICE /dev/hd* /dev/sd*
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=d876333b:694e852b:e9a6f40f:0beb90f9
Run save-config to save current configuration.
previous page
|