Wednesday, February 24, 2010

Configure RAID using /etc/raidtab

Click Here For Free Windows Downloads
mywindowsdownloads.blogspot.com

Click here for all Free Linux Downloads



Blog address for Linux in Hindi



2. Configure RAID using /etc/raidtab


After creating RAID partitions, we will have to configure /etc/raidtab file, which is very simple to configure. For configuring any of RAID level we will have to edit this file only. There are few pre defined commands to use in this file, which are as follows:


Commands used in /etc/raidtab


Command Details


raiddev: File name of RAID device

raid-level: RAID level, generally 0, 1 or 5

persistent-superblock 1: to detect this RAID array

chunk-size: Amount of data in KB, to be read or written

nr-raid-disks: Number of disks assigned to this array

nr-spare-disks: Number of extra disks assigned to this array

device: RAID partition device name

raid-disk Number (starting with 0): assigned to the partition in RAID array

spare-disk Number (starting with 0): assigned to the reserve partition in RAID array


Examples of configuring /etc/raidtab for different RAID levels:


# vi /etc/raidtab (To edit raidtab file)


RAID 0


To configure this level we will assume that we have two partitions named as /dev/sdb1 and /dev/sdc1. We also assume that we want to setup a chunk size of 16 KB:


raiddev /dev/md0

raid-level 0

persistent-superblock 1

chunk-size 16

nr-raid-disks 2

nr-spare-disks 0

device /dev/sdb1

raid-disk 0

device /dev/sdc1

raid-disk 1

No comments:

Post a Comment