Line 548: |
Line 548: |
| sdc | | sdc |
| | | |
− | </syntaxhighlight>then you can create the Raid array. We assume you only need one Raid partition, and hence do not need to partition it.<syntaxhighlight lang="bash"> | + | </syntaxhighlight>then you can create the Raid array. We assume you only need onethen you need to rebuild the grub.conf, depending on your system is EFI or legacy use the appropriate command#EFI |
| + | grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg |
| + | <nowiki>#</nowiki>Legacy |
| + | grub2-mkconfig -o /boot/grub2/grub.cfg |
| + | Raid partition, and hence do not need to partition it.<syntaxhighlight lang="bash"> |
| #create array | | #create array |
| mdadm --create --verbose /dev/md11 --level=1 --raid-devices=2 /dev/sdb /dev/sdc | | mdadm --create --verbose /dev/md11 --level=1 --raid-devices=2 /dev/sdb /dev/sdc |
Line 574: |
Line 578: |
| UUID=0ab4fe2a-aa81-4728-90d8-2f96d4624af8 /home/e-smith/files xfs uquota,gquota 0 0 | | UUID=0ab4fe2a-aa81-4728-90d8-2f96d4624af8 /home/e-smith/files xfs uquota,gquota 0 0 |
| | | |
− | </syntaxhighlight>finally to have the disk mounted on reboot, you need to alter grub | + | </syntaxhighlight>To have the disk mounted on reboot, you need to alter grub<syntaxhighlight lang="bash"> |
| + | vim /etc/default/grub |
| + | </syntaxhighlight>and alter the command line to add either "rd.md=1 rd.md.conf=1 rd.auto=1" or specifically add the uuid to mount (obviously if you add a LVM layer you will rather need to add something like rd.lvm.lv=mylvm/video rd.lvm.lv=mylvm/files)<syntaxhighlight lang="bash" line="1"> |
| + | GRUB_TIMEOUT=5 |
| + | GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)" |
| + | GRUB_DEFAULT=saved |
| + | GRUB_DISABLE_SUBMENU=true |
| + | GRUB_TERMINAL_OUTPUT="gfxterm" |
| + | GRUB_CMDLINE_LINUX="rhgb quiet rootflags=uquota,pquota rd.md=1 rd.md.conf=1 rd.auto=1" |
| + | GRUB_DISABLE_RECOVERY="false" |
| + | GRUB_BACKGROUND="/boot/grub2/smeserver10.png" |
| + | GRUB_GFXMODE="1024x768" |
| + | GRUB_THEME="/boot/grub2/themes/koozali/theme.txt" |
| + | |
| + | </syntaxhighlight>then you need to make sure dracut will add the drivers<syntaxhighlight lang="bash"> |
| + | vim /etc/dracut.conf |
| + | </syntaxhighlight>and alter the line needed (you probably will need to uncomment this line and add mdraid between the quote)<syntaxhighlight lang="bash" line="1" start="19"> |
| + | # dracut modules to add to the default |
| + | add_dracutmodules+="mdraid" |
| + | |
| + | </syntaxhighlight>Finally rebuild the initfs<syntaxhighlight lang="bash"> |
| + | cp /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.old |
| + | dracut --add="mdraid" /boot/initramfs-$(uname -r).img $(uname -r) |
| + | </syntaxhighlight> |
| | | |
| == Copy data from one disk of an old Raid mirror disk == | | == Copy data from one disk of an old Raid mirror disk == |