RAID1 AND ITS CONFIGURATION

Raid 1 also known as disk mirroring, is the replication of data to two or more disk. Its good to choose Raid 1 because both disks are operational.the raid array will continue to operate if one disk is operational.


Means if primary array is damaged, traffic is switched to secondary or mirrored backup arrays.

raid1

Now how to configure it:

  •    Create 2 partitions
[root@localhost ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 2640.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (2168-2640, default 2168):
Using default value 2168
Last cylinder or +size or +sizeM or +sizeK (2168-2640, default 2640): +500M

Command (m for help): n
Command action
   l   logical (5 or over)
   p   primary partition (1-4)
l
First cylinder (2230-2640, default 2230):
Using default value 2230
Last cylinder or +size or +sizeM or +sizeK (2230-2640, default 2640): +500M

Command (m for help): p
Disk /dev/sda: 21.7 GB, 21719023616 bytes
255 heads, 63 sectors/track, 2640 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1912    15358108+  83  Linux
/dev/sda2            1913        2167     2048287+  82  Linux swap / Solaris
/dev/sda4            2168        2640     3799372+   5  Extended
/dev/sda5            2168        2229      497983+  83  Linux
/dev/sda6            2230        2291      497983+  83  Linux

Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
  •   Change its type to raid linux. To change its type follow these steps:
[root@localhost ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 2640.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)


Command (m for help): t
Partition number (1-6): 5
Hex code (type L to list codes): fd
Changed system type of partition 5 to fd (Linux raid autodetect)


Command (m for help): t
Partition number (1-6): 6
Hex code (type L to list codes): fd
Changed system type of partition 6 to fd (Linux raid autodetect)


Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
  • After making partition raid type we are are going to create Raid1

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

In this entry, – -level means what type of raid we want it to be ,- –raid-devices means how many devices you want  to connect.

  • Your raid 0 is ready  you can can check it by typing

#cat    /proc/mdstat

 

DIFFERENCE BETWEEN RAID01 AND RAID10

RAID5 AND ITS CONFIGURATION

RAID6 AND ITS COFIGURTION

Raid0 AND ITS CONFIGURATION

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s