Manual Configuration Examples - HP xw3400 User Manual

User manual for linux
Hide thumbs Also See for xw3400:
Table of Contents

Advertisement

6. Mount the filesystem like a normal block file device:
mkdir /raid
mount /dev/md0 /raid
where /raid is wherever the filesystem you created in step 5 will reside.
7. Edit your /etc/fstab file. You will need to comment out the lines containing the partitions
that 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

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Xw4100Xw4300Xw4400Xw4550Xw4600Xw6000 ... Show all

Table of Contents