Raid0 AND ITS CONFIGURATION

Raid0 also know as disk stripping,it is basically a teachnique that breaks up a file and spreads the data across all the disk drives in a raid system.


The actual benefit you get is performance,because its data stripping spreads data to multiple disks and these disks can access contents of a file, allowing writes and reads to be completed more quickly.
Drawback to Raid 0 is that there is no redundancy(no parity), that means if one drive fails your all data would be lost.

raid0

Now how to configure it :

  • Create two 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): 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+  fd  Linux raid autodetect
/dev/sda6            2230        2291      497983+  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 going to create raid 0

#mdadm   – -create   /dev/md0   – -level=0  – -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 we want it to connect

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

#cat    /proc/mdstat

 

DIFFERENCE BETWEEN RAID01 AND RAID10

RAID6 AND ITS COFIGURTION

RAID1 AND ITS CONFIGURATION

RAID5 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