How to configure RAID in GUI mode during installation of Red Hat Enterprise Linux 7?
Environment
- Red Hat Enterprise Linux 7
Issue
- How to setup RAID in GUI mode during installation of Red Hat Enterprise Linux 7?
Resolution
Following method of installation has worked for us to configure software RAID1. Below method could be used as a reference to configure any other type of RAID.
1. At the screen to create partitions, select the two disks and select the option to configure the partitions manually
See below image
2. Create the partitions as shown in below imgaes. Make sure all the parameters are seen as shown in the screenshot. This is just for 2 partitions, you could configure as many partitions as you want
The final result would be similar to
# cat /proc/mdstat
Personalities : [raid1]
md125 : active raid1 vdb3[1] vda3[0]
1048576 blocks super 1.2 [2/2] [UU]
md126 : active raid1 vdb2[1] vda2[0]
1049536 blocks super 1.0 [2/2] [UU]
bitmap: 0/1 pages [0KB], 65536KB chunk
md127 : active raid1 vda1[0] vdb1[1]
20480000 blocks super 1.2 [2/2] [UU]
bitmap: 1/1 pages [4KB], 65536KB chunk
unused devices: <none>
# fdisk -l
Disk /dev/vda: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x0004db5f
Device Boot Start End Blocks Id System
/dev/vda1 2048 40994815 20496384 fd Linux raid autodetect
/dev/vda2 * 40994816 43094015 1049600 fd Linux raid autodetect
/dev/vda3 43094016 45193215 1049600 fd Linux raid autodetect
Disk /dev/vdb: 42.9 GB, 42949672960 bytes, 83886080 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x000587c4
Device Boot Start End Blocks Id System
/dev/vdb1 2048 40994815 20496384 fd Linux raid autodetect
/dev/vdb2 * 40994816 43094015 1049600 fd Linux raid autodetect
/dev/vdb3 43094016 45193215 1049600 fd Linux raid autodetect
Disk /dev/md127: 21.0 GB, 20971520000 bytes, 40960000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md126: 1074 MB, 1074724864 bytes, 2099072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/md125: 1073 MB, 1073741824 bytes, 2097152 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md127 20G 3.4G 17G 17% /
devtmpfs 488M 0 488M 0% /dev
tmpfs 497M 84K 497M 1% /dev/shm
tmpfs 497M 7.1M 490M 2% /run
tmpfs 497M 0 497M 0% /sys/fs/cgroup
/dev/md126 1015M 113M 903M 12% /boot
# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed Dec 9 11:03:28 2015
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=16bfe7ce-be90-4f29-8713-7291fa0e7f69 / xfs defaults 0 0
UUID=5fd864fe-f18b-4abc-8823-b78ed2f2b84e /boot xfs defaults 0 0
UUID=77d4e244-55c4-48c9-920e-a6d0a30617c7 swap swap defaults 0 0
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments