I have used Buildroot to create a system that runs in RAM on my ARMv5 Kirkwood SoC -based NAS-box. I use BusyBox as my init system, and
/dev management is done using devtmpfs only. I've selected LVM2 & device mapper -target package, with standard install instead of only dmsetup. I configured the Linux kernel to have multiple devices driver support with device mapper support. System boots up without any problems, but logical volumes are inactive. If I execute
vgchange -ay they are activated and can be mounted.
My question is, what is the proper way of automatically activating volumes during boot? Is there some configuration option for that? Or do I really need to execute
vgchange -ay at some point during boot (e.g.
/etc/inittab)? Some sources seem to suggest that VGs/LVs are usually automatically activated on boot, but I'm unsure if they are just referring to implementations of initialization process on popular distributions.