Module dm_cache_smq needed by hook sd-lvm2 in mkinitcpio

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Module dm_cache_smq needed by hook sd-lvm2 in mkinitcpio

Postby hutou » Tue Aug 23, 2016 7:29 pm

I installed some time ago a server based on an ODROID-XU4 with 4 USB disks, running Archlinux. For a maximum flexibility, I used LVM2 for both Root and Data filesystems, so I needed to create an initramfs containing the sd-lvm2 hook for properly booting on the root LV.
This worked fine till yesterday when I launched carelessly a full system upgrade : both the kernel and the lvm2 package were upgraded (to: Kernel 3.10.102-3 and lvm2 2.02.164-1 respectively), so I needed to recreate the initramfs, but doing so, the mkinitcpio command complains about a missing module 'dm_cache_smq'.
From another x86 computer running the same LVM2 package version, I can access the LVs, and no module dm_cache_smq seems to be needed.
I searched the Web for a solution, but no luck.
Please, can you help ?
hutou
 
Posts: 6
Joined: Thu Jun 12, 2014 4:57 pm

Re: Module dm_cache_smq needed by hook sd-lvm2 in mkinitcpio

Postby moonman » Wed Aug 24, 2016 8:30 am

It looks like this module only exists in kernels 4.2 and up. Did you actually try booting up? Also with the new uboot you don't need the uinitrd, but raw initrd will work, and has to be /boot/initramfs-linux.img
"mkinitcpio -g /boot/initramfs-linux.img" will be enough given that your configuration is right.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Module dm_cache_smq needed by hook sd-lvm2 in mkinitcpio

Postby hutou » Sun Aug 28, 2016 4:06 pm

Thanks for your answer.
I finally created a custom version of the sd-lvm2 hook to exclude the sd-cache-smq module, and then, the initramfs-linux.img generation went on smoothly.
I wonder, however, if lvm2 is kernel dependent, shouldn't the sd-lvm2 hook file have been already modified in the package ?
hutou
 
Posts: 6
Joined: Thu Jun 12, 2014 4:57 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 9 guests