Manual Configuration Examples; Raid-0; Raid-1 - HP xw4400 Mini White Paper

Software raid in linux workstations
Hide thumbs Also See for xw4400:
Table of Contents

Advertisement

mkdir /raid
mount /dev/md0 /raid
where /raid is wherever the filesystem you created in step 5 will reside.
Edit your /etc/fstab file. You will need to comment out the lines containing the partitions that
7.
are now in the RAID array, such as /dev/sda1 and /dev/sdb2, by adding a # at the
beginning of the line. Add a line for the RAID array filesystem:
/dev/md0

Manual Configuration Examples

Most of the work in manual configuration of a software RAID array comes from the creation of the
appropriate /etc/raidtab file. The following are examples of /etc/raidtab files and the
corresponding mdadm commands needed to set up each of the basic RAID configurations supported
by HP.

RAID-0

/etc/raidtab file:
raiddev /dev/md0
raid-level
nr-raid-disks
nr-spare-disks
persistent-superblock
chunk-size
device
raid-disk
device
raid-disk
Command:
mdadm -Cv /dev/md0 --level=0 --raid-devices=2 /dev/hda1 /dev/hdb1

RAID-1

/etc/raidtab file:
raiddev /dev/md0
raid-level
nr-raid-disks
nr-spare-disks
persistent-superblock
chunk-size
device
raid-disk
device
raid-disk
Command:
mdadm -Cv /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
/raid
ext3
0
2
0
1
4
/dev/hda1
0
/dev/hdb1
1
1
2
0
1
4
/dev/sda1
0
/dev/sdb1
1
defaults
0 1
12

Advertisement

Table of Contents
loading

Table of Contents