Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PART A : Identify the disks available 1 . Display all the hard disks ( SCREENSHOT ) 2 . Identify the disks ( except /

PART A : Identify the disks available
1. Display all the hard disks (SCREENSHOT)
2. Identify the disks (except/dev/sda) and note down the disk name and size.
PART B : RAID 1
3. Using the 2 x 300MB hard disks, partition each disk as single partition and then create RAID1 as /dev/md1 and create
xfs file system on it and mount it on /raid1 directory.
4. Assign user and group ownership to yourself for /raid1, create files r1test1 by redirecting the output of man mdadm to
r1test1, similarly for r1test2 using man gdisk and r1test3 using man useradd /raid1 without using sudo,
5. Simulate any one of the disks in /dev/md1 array for failure, remove it and replace it with the unused 300M
disk.Following SCREENSHOTS required at each stage given below.
Aftersetting 1 disk as failed After failed disk removed After replacing failed disk
cat /proc/mdstat
mdadm -D /dev/md1
mdadm -E /dev/md1 disk_failed
ls -ld /raid1;ls -l /raid1;df -Th /raid
cat /proc/mdstat
mdadm -D /dev/md1
mdadm -E /dev/md1 any_arraydisk
ls -ld /raid1;ls -l /raid1;df -Th /raid1
cat /proc/mdstat
mdadm -D /dev/md1
mdadm -E /dev/md1 disk_replaced
ls -ld /raid1;ls -l /raid1;df -Th /raid1
6. Check the /raid1 directory for the presence of the files you have created earlier
7. Edit file r1test1 to check for redundancy.
PART C : RAID 5
8. Using the 5 x 200MB hard disks, partition each disk as single partition and then create RAID5 as /dev/md5 with one
of the 5 disks as spare disk and mount it on /raid5 with file system xfs.
9. Assign user and group ownership to yourself and populate /raid5 with non-zero size files r5test1, r5test2 and r5test3
without using sudo
SCREENSHOTS:
a) cat /proc/mdstat b) mdadm -D /dev/md5 c) mdadm -E /dev/md5 anydisk d) ls-ld /raid5;ls-l /raid5;df -Th /raid5
NEST207 LAB 03 Linux Storage RAID
Page 2 of 2
10. Simulate any one of the disks in /dev/md5 array for failure, and note the spare disk being replaced for the faulty
disk.Following SCREENSHOTS required at each stage given below
Aftersetting 1 disk as failed After failed disk removed After spare disk replaced
cat /proc/mdstat
mdadm -D /dev/md5
mdadm -E /dev/md5 disk_failed
ls -ld /raid5;ls -l /raid5;df -Th /raid5
cat /proc/mdstat
mdadm -D /dev/md5
mdadm -E /dev/md5 any_arraydisk
ls -ld /raid5;ls -l /raid5;df -Th /raid5
cat /proc/mdstat
mdadm -D /dev/md5
mdadm -E /dev/md5 disk_replaced
ls -ld /raid5;ls -l /raid5;df -Th /raid5
PART D : RAID 6( same PART-B SCREENSHOTS are required using RAID6)
11. Using the 6 x 100MB hard disks, partition each disk as single partition and then create RAID6 as /dev/md6 with two
of the 6 disks as spare disk and mount it on /raid6 with file system xfs.
12. Take user and group ownership for yourself and populate with files greater than zero at r6test1, r6test2, r6test3 in
/raid6
13. Display raid6 information by using all three ways. (SCREENSHOT)
14. Demonstrate Raid6 redundancy of two disks and the functioning ofspare disks in raid array. Following SCREENSHOTS
required at each stage given below
Aftersetting 2 disks as failed After 2 failed disks removed After spare disks are replaced
cat /proc/mdstat
mdadm -D /dev/md6
mdadm -E /dev/md6 any_disk_failed
ls -ld /raid6;ls -l /raid6;df -Th /raid
cat /proc/mdstat
mdadm -D /dev/md6
mdadm -E /dev/md6 any_arraydisk
ls -ld /raid6;ls -l /raid6;df -Th /raid6
cat /proc/mdstat
mdadm -D /dev/md6
mdadm -E /dev/md6 any_disk_replaced
ls -ld /raid6;ls -l /raid6;df -Th /raid6
SCREENSHOTS After completing the lab the following screenshots need to be taken.
a. cat /proc/mdstat b. cat /etc/mdadm.conf c. df -Th /raid1/raid5/raid6 d. ls -ld /raid1/raid5/raid6
e. ls -l /raid1/raid5/raid6
PART-E: CONFIGURE MOUNT POINT TO BE PERSISTENT
1. Change root password to a password you can remember
NOTE : (in case system fails to restart after entries in /etc/fstab)
2. Due to entries in /etc/fstab, the system may enter in emergency mode or rescue mode due to entries in
/etc/fstab file.
3. In the emergency mode, enter root password to log in as root user.
4. Now edit /etc/fstab file, correct error in the line you have added, save and reboot OR you can comment
the line you have added by typing # at start of that line to correct it later after successful boot up.
5. Do not comment or alter the lines that has been added by system (/boot,/, swap

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions