Tux's lil' helper
Joined: 18 Jan 2018
|Posted: Mon Dec 24, 2018 11:18 am Post subject: [SOLVED] LVMCACHE support genkernel
I've managed adding a SSD as LVM cache to the legacy HDD and put / rootfs there. Now I need to create a initramfs that activate LV-cache volumes during boot.
I tried the same configuration with Arch (with mkinitcpio) and Fedora (with dracut) distro without any specific intervention, as LVMcache support already included in their LVM initram creating hooks.
Ubuntu initially does not support creating initram that support lvmcache, although Ubuntu Live Install media can install to LVM-cache volumes. But we can manually create modules file and a script to activate below modules at initram boot:
I want to adapt this to genkernel process in gentoo. Where do I start?
1) Put modules files in /usr/share/genkernel/modules
2) Edit modules_load file to /usr/share/genkernel/arch/x86_64/modules_load
3) Put modules binary files to /tmp/initramfs-overlay/lib/modules/<kern_version>
How can I check if those modules will load automatically during boot, if not then how can I make a script to manually activate those modules?
EDIT: All 3 above could not help.
Thanks to CondeProlog (via IRC) tips I've found solution to include need modules as
|MODULES_LVMCACHE="dm_cache dm_cache_smq dm_persistent_data dm_bufio" genkernel --lvm --mdadm ... --install initramfs |
I have also upgraded to genkernel-next-69 due to /sbin/mdassemble error @ https://forums.gentoo.org/viewtopic-t-1089218-start-0.html
CLOSED as SOLVED