Last active
November 22, 2023 19:28
-
-
Save dvanders/ebe124cf9bdf0af9621cc2c6c6d450bf to your computer and use it in GitHub Desktop.
efi software md raid1 for kickstart
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ignoredisk --only-use=sda,sdb | |
clearpart --all --initlabel --drives sda,sdb | |
# for /boot | |
partition raid.01 --size 1024 --ondisk sda | |
partition raid.02 --size 1024 --ondisk sdb | |
# for /boot/efi | |
partition raid.11 --size 256 --ondisk sda | |
partition raid.12 --size 256 --ondisk sdb | |
# for / | |
partition raid.21 --size 1 --ondisk sda --grow | |
partition raid.22 --size 1 --ondisk sdb --grow | |
raid /boot --level=1 --device=boot --fstype=xfs raid.01 raid.02 | |
raid /boot/efi --level=1 --device=boot_efi --fstype=efi raid.11 raid.12 | |
raid / --level=1 --device=root --fstype=xfs raid.21 raid.22 | |
######## | |
Here is the resulting mdraid and filesystems: | |
# cat /proc/mdstat | |
Personalities : [raid1] | |
md125 : active raid1 sdax2[1] sda2[0] | |
262080 blocks super 1.0 [2/2] [UU] | |
resync=DELAYED | |
bitmap: 1/1 pages [4KB], 65536KB chunk | |
md126 : active raid1 sda3[0] sdax3[1] | |
1873930240 blocks super 1.2 [2/2] [UU] | |
[==>..................] resync = 13.2% (248890240/1873930240) finish=134.3min speed=201633K/sec | |
bitmap: 13/14 pages [52KB], 65536KB chunk | |
md127 : active raid1 sda1[0] sdax1[1] | |
1046528 blocks super 1.2 [2/2] [UU] | |
resync=DELAYED | |
bitmap: 1/1 pages [4KB], 65536KB chunk | |
unused devices: <none> | |
# df -h | |
Filesystem Size Used Avail Use% Mounted on | |
devtmpfs 94G 0 94G 0% /dev | |
tmpfs 94G 0 94G 0% /dev/shm | |
tmpfs 94G 21M 94G 1% /run | |
tmpfs 94G 0 94G 0% /sys/fs/cgroup | |
/dev/md126 1.8T 2.4G 1.8T 1% / | |
/dev/md127 1016M 128M 889M 13% /boot | |
/dev/md125 256M 12M 245M 5% /boot/efi | |
tmpfs 19G 0 19G 0% /run/user/0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment