Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] LVMCACHE support genkernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Cuong Nguyen
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jan 2018
Posts: 130

PostPosted: Mon Dec 24, 2018 11:18 am    Post subject: [SOLVED] LVMCACHE support genkernel Reply with quote

Hello,

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:
dm_cache
dm_cache_mq
dm_cache_smq
dm_persistent_data
dm_bufio

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?

Thank you.

EDIT: All 3 above could not help.
Thanks to CondeProlog (via IRC) tips I've found solution to include need modules as
Code:
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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum