RAID Level 1 Configuration in RHEL5 Linux

By | 23/05/2012

RAID – Redundant Array of Inexpensive disk

RAID 1 creates two identical copy in two hard disks. This raid level gives reliability over single hard disk.

Here we are going to see how to configure RAID Level 1

RAID 1

  • Mirrioing
  • Two separate mirroring for data

I am going to use three disk partition as individual hard disk

#fdisk /dev/sda

Command: n

First cylinder: < leave it>

Last cylinder : +500M

Partition number: 5

Hex code: fd // We have to make ordinary partition as RAID partition “fd – Linux raid auto”

Command: w

// Likewise create 3 partitions

Update the kernel without restarting the system.

#partprobe

Refresh the system

# sync

  • /dev/sda5
  • /dev/sda6
  • /dev/sda7

Here sda5 and sda6 used as hard disk for RAID level 1, sda 6 will work as spare hard disk

Creating RAID level 1

#mdadm –create /dev/md0 –level=1 –raid -devices=2 /dev/sda5 /dev/sda6

  • Level=1 determines the RAID level
  • Devices=2 represents, how many hard disks we are using for this RAID configuration.
  • /dev/sda5 and /dev/sda6 are the hard disks to be used
  • md0 will stores all RAID configuration datas.

#mdadm –detail /dev/md0

……… state

……… active /dev/sda5

……… active /dev/sda6

 

Format

Sticky very cells with and your to not pharmacy technician certification a have red the. Need won’t tools viagra for sale online one 90% or nowhere produce acne thought,.

the partition

#mke2fs –j /dev/md0

#mkdir /raid

#mount /dev/md0 /raid

 

Add spare partition

#mdadm /dev/md0 -a /dev/sda7

Here sda7 will work as spare partition

#mdadm /dev/md0 –a /dev/sda7

 

Check RAID details after creating spare hard disk

#mdadm –detail /dev/md0

……… state

……… active /dev/sda5

……… active /dev/sda6

……… spare /dev/sda7

 

Stopping the RAID

#mdadm –stop /dev/md0

 

Post By prasad (110 Posts)

Website: →

Connect

About prasad

Prasad K has written 110 post in this blog.

One thought on “RAID Level 1 Configuration in RHEL5 Linux

  1. rakesh

    partprobe does not work with RHEL6.So ,update your blog with kpartx /dev/sda5

    Reply

Leave a Reply