[arch-general] do i need to configure mkinitcpio.conf for my md array ?
Hi i have just configured my 4 disk raid 10 array with mdadm the filesystem is ext4 unencrypted and arch is installed on a separate disk do i need to reconfigure mkinitcpio.conf for my md array so that the array is assembled and started at boot, all the examples i've seen have arch installed on the raid array including the example in the wiki https://wiki.archlinux.org/index.php/RAID i have not reboot the new array yet so i would like to make sure everything necessary is configure before i do that. shadrock
On Thu, 16 Jan 2020 at 14:46, Shadrock Uhuru via arch-general <arch-general@archlinux.org> wrote:
Hi i have just configured my 4 disk raid 10 array with mdadm the filesystem is ext4 unencrypted and arch is installed on a separate disk do i need to reconfigure mkinitcpio.conf for my md array so that the array is assembled and started at boot, all the examples i've seen have arch installed on the raid array including the example in the wiki https://wiki.archlinux.org/index.php/RAID i have not reboot the new array yet so i would like to make sure everything necessary is configure before i do that.
you need the "mdadm" hook in HOOKS in /etc/mkinitcpio.conf, and rebuild the initramfs. the hook would auto-detect the raid setup, but it will also include /etc/mdadm.conf if it exists. -- damjan
Em janeiro 16, 2020 11:34 Damjan Georgievski via arch-general escreveu:
you need the "mdadm" hook in HOOKS in /etc/mkinitcpio.conf, and rebuild the initramfs.
the hook would auto-detect the raid setup, but it will also include /etc/mdadm.conf if it exists.
Actually, the most indicated hook to use is mdadm_udev, not mdadm. But just including either will make sure /etc/mdadm.conf is added to the initramfs. Regards, Giancarlo Razzolini
On January 16, 2020 2:44:44 PM GMT+01:00, Shadrock Uhuru via arch-general <arch-general@archlinux.org> wrote:
do i need to reconfigure mkinitcpio.conf for my md array so that the array is assembled and started at boot
Depends on when you want to assemble your array. If you want/need the array to be assembled in early user space, then use the mdadm_udev hook as described in https://wiki.archlinux.org/index.php/Mkinitcpio#Using_RAID. This is typically needed when booting a system on software RAID. However, if you don't need the array assembled in early user space, just use mdadm later on in the boot process. Josef Miegl
participants (4)
-
Damjan Georgievski
-
Giancarlo Razzolini
-
Josef Miegl
-
Shadrock Uhuru