Differences between revisions 1 and 2
Revision 1 as of 2005-07-20 11:23:37
Size: 654
Editor: anonymous
Comment:
Revision 2 as of 2008-09-21 06:06:05
Size: 598
Comment: clean up
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## Auto-converted by kwiki2moinmoin v2005-10-07
Line 4: Line 3:
  * apt-get install mdadm
  * fdisk and create partitions type 0xfd
  * mdadm --zero-superblock /dev/hda /dev/hdc
  * mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hd["ac"]1
  * mkfs.ext3 /dev/md0
  *add entry to fstab
apt-get install mdadm
fdisk and create partitions type 0xfd
mdadm --zero-superblock /dev/hda /dev/hdc
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hd["ac"]1
mkfs.ext3 /dev/md0
Line 11: Line 9:
/dev/md0 /home ext3 noatime,rw 0 0{{{
  * Create mdadm config file:
Add entry to fstab:
{{{
/dev/md0 /home ext3 noatime,rw 0 0
Line 14: Line 13:

panther:~# cat /etc/mdadm/mdadm.conf{{{
 ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 level=1 num-devices=2 auto=yes
 DEVICE /dev/hda1 /dev/hdc1
Create mdadm config file:
{{{

panther:~# cat /etc/mdadm/mdadm.conf
ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 level=1 num-devices=2 auto=yes
DEVICE /dev/hda1 /dev/hdc1

Creating Software RAID arrays on Debian systems:

apt-get install mdadm
fdisk and create partitions type 0xfd
mdadm --zero-superblock /dev/hda /dev/hdc
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/hd["ac"]1
mkfs.ext3 /dev/md0 

Add entry to fstab:

/dev/md0 /home ext3 noatime,rw 0 0

Create mdadm config file:

panther:~# cat /etc/mdadm/mdadm.conf
ARRAY /dev/md0 devices=/dev/hda1,/dev/hdc1 level=1 num-devices=2 auto=yes
DEVICE /dev/hda1 /dev/hdc1

Note that the array is actually started in /etc/rc0.d/S50mdadm (via mdadm -A -s) or mdrun command