• raid means redundant arrays of independent

Upload: muitnep4

Post on 30-May-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    1/35

    RAID

    RAID means Redundant Arrays ofIndependent Disk.

    RAID is a method of storing data across

    several disks to provide greater

    performance and redundancy.

    In effect, you can have several hard disks

    treated as just as one hard disk by your

    operating system.

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    2/35

    Types of RAID

    RAID can be implemented on a

    Hardware level

    or

    Software level

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    3/35

    Hardware RAID

    On a hardware level, you can have hard

    disk connected to a RAID controller,

    usually a special PC card.

    Your operating system can accesses

    storage though the RAID hardware

    controller.

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    4/35

    Software RAID

    You can implement RAID as software

    controller, letting a software RAID controller

    program.

    The controller program manage access to

    hard disks treated as RAID device.

    The software version lets you use IDE hard

    disks as RAID disk.

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    5/35

    Software RAID Levels

    RAID levels Capabilities Description

    Linear Appending Simply treat RAID hard drives as one virtualdrive with no striping, mirroring.

    0 Striping Implements disk stripping across drives with

    no redundancy.

    1 Mirroring Implements a high level of redundancy. Eachdrive is treated as mirror for all data.

    5 Distributed Parity Implements data reconstruction capabilityusing parity information. Parity information isdistributed across all drives.

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    6/35

    Here we see each raid

    disk major & minor

    no. .

    Its show the raid disk

    status (weather raid disk

    active or not active ).

    Raid Configuration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    7/35

    Here you can see mdadm

    detail command show disk

    /dev/hda9 is active.

    Raid Configuration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    8/35

    RAID

    rpm -q command checks,

    whether the mdadm installed

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    9/35

    RAID

    The partition is created

    using fdisk command.

    Now the screen lists the

    partitions.

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    10/35

    The partition is created

    using fdisk command.Now the screen lists the

    partitions.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    11/35

    4 Partitions is createdusing n option with

    equal size of 100 mb

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    12/35

    Now use p to check

    created partitions.

    The l option, lists the file

    system. The fd denotes linux

    raid

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    13/35

    The l option, lists the file

    system. The fd denotes linux

    raid

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    14/35

    To set the partition type

    use t options.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    15/35

    Option p lists the partition

    id and show the changes.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    16/35

    We save the raid

    partition through w

    option.

    Previous versions of redhat

    needed to restart system after

    creating partition. In current

    version to avoid restart we use

    partprobe.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    17/35

    Using mdadm tool creating raid

    level 5 it use four partition

    /dev/hda6,7,8&9 and creating raid

    device is /dev/md0.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    18/35

    Watch command shows

    the online status of raid

    devices.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    19/35

    Here we see status of

    each raid disk.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    20/35

    Creating ext3 file system for

    raid device /dev/md0 using

    mke2fs command.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    21/35

    Here we see the ext3

    file system is created.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    22/35

    mdadm detail command

    show the detail

    information about the raid

    devices.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    23/35

    Now raid device

    (/dev/md0) is mounted

    on /data directory.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    24/35

    Now raid device (/dev/md0) is

    mounted on /data directory in/etc/fstab file for permanently.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    25/35

    Now go to /data directory

    and create the file name

    is file1 using dd

    command.

    df command show free &

    used space for the raiddevices & partitions.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    26/35

    Mdadm query command

    show the information about

    particular raid device &

    partitions.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    27/35

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    28/35

    Mdadm manage command

    set fault or fail particular

    partitions (/dev/hda9).

    Cat /proc/mdstat commandshow disk the disk is failed.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    29/35

    Here see mdadm detail

    command show disk

    /dev/hda9 is faulty.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    30/35

    Now remove the /dev/hda9

    partition from the raid device

    /dev/md0 using Mdadm

    manage command .

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    31/35

    Here you can see mdadm

    detail command show disk

    /dev/hda9 is removed.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    32/35

    Now add the /dev/hda9

    partition from the raid device

    /dev/md0 using Mdadm

    manage command .

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    33/35

    Watch command shows

    the online status of raid

    devices.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    34/35

    Here we can see the status of

    online synchronization of raid

    disks.

    RaidConfiguration

  • 8/14/2019 RAID Means Redundant Arrays of Independent

    35/35

    Now the faulty disk is

    replaced and we can

    see the data.

    RaidConfiguration