Top Ad unit 728 × 90

Latest updates

recent

RAID PRACTICAL STEPS



#### TO IMPLEMMENT RAID 5 ON PARTITIONS ####

'Step 1:-Create 3 Raw Partitions for Raid 5'
# fdisk /dev/sda (to create)
# partx -a /dev/sda (to update kernel)

'Step 2:-Create a Metadisk'
# mdadm -C <metadisk_name> -n3 <partition_no's> -l5
# mdadm -C /dev/md0 -n3 /dev/sda{15..17} -l5
# mdadm -D /dev/md0 (to check)

'Step 3:-Format & Mount the Metadisk to Use'
# mkfs.ext4 /dev/md0 (to format)
# mkdir /raid (create new mount point)
# mount /dev/md0 /raid (to mount)
# mount (to check)
# cd /raid (to access the metadisk)
# mkdir zoom{1..100} (create some data)
# ls (to check)
# cd (come out)

'Step 4:-To check Raid-5 is Working or Not-Then in this case
make one partition faulty & remove'
# mdadm -D /dev/md0 (to check the status)
# mdadm -f /dev/md0 /dev/sda15 (to make faulty)
# mdadm -D /dev/md0 (to check)
# mdadm -r /dev/md0 /dev/sda15 (to remove)
# mdadm -D /dev/md0 (to check)
# ls /raid (to check the data in metadisk)

'Step 5:-To work with Raid-5,add one Partition'
# fdisk /dev/sda (to create)
# partx -a /dev/sda (to updat kernel)
# mkfs.ext4 /dev/sda18 (for example-to format)
# mdadm -a /dev/md0 /dev/sda18 (to add in metadisk)
# mdadm -D /dev/md0 (to check)
# ls /raid (check the data)

'Step 6:-To Stop the Raid Level 5'
# umount /raid (un mount the metadisk)
# mdadm -S /dev/md0 (to stop)
# mdadm -D /dev/md0 (to check)
# ls /raid (to check data in mount point)

'Step 7:-To Start the Raid Level 5'
# mdadm -A /dev/md0 /dev/sda{16..18} (to start)
# mdadm -D /dev/md0 (to check)
# mount /dev/md0 /raid (to access metadisk)
# ls /raid (to check the data in metadisk)
RAID PRACTICAL STEPS Reviewed by Unknown on 3:47 PM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.