Page 74 - RHEL8 BOOK
P. 74
CONFIGURE THE RAID LEVEL 5 USING PARTITION
1. To create the partition (4 partition)
[root@sun ~]# fdisk -l
[root@sun ~]# fdisk /dev/sda
Command (m for help) : n
: +1g
Command (m for help) : n
: +1g
Command (m for help) : n
: +1g
Command (m for help) : n
: +1g
Command (m for help) : t
Partition number (1-12) : 9
Hex code (type L to list codes): fd
Command (m for help) : t
Partition number (1-12) : 10
Hex code (type L to list codes): fd
Command (m for help) : t
Partition number (1-12) : 11
Hex code (type L to list codes): fd
Command (m for help) : t
Partition number (1-12) : 12
[root@sun ~]# partx –v -a /dev/sda
2. To create the RAID disk
[root@sun ~]# mdadm -C /dev/md0 -n3 /dev/sda9 /dev/sda10 /dev/sda11 -l5
Continue creating array?
Continue creating array? (y/n) y
To see the RAID this information
[root@sun ~]# mdadm -D /dev/md0
3. Format the RAID disk
[root@sun ~]# mkfs.ext3 /dev/md0
4. To create the mount point
[root@sun ~]# mkdir /Raid5
[root@sun ~]# mount /dev/md0 /Raid5
[root@sun ~]# cd /Raid5
[root@sun Raid5]# touch t1 t2 t3
5. Add a new disk into RAID disk
[root@sun Raid5]# mdadm -a /dev/md0 /dev/sda12
S. Pradhan
(MCA, MBA-IT, BCA, CCNA, MCSA 2012, RHCE, ETHICAL HACKING)
Email Id:-spradhan.iiht@gmail.com
74