I like to create a LVM device where physical volumes are loopback devices.
I have read lot of documents and tutorials, like this. Unfortunately all of them are based on the losetup command, which loses its configuration at next reboot.
I would make the LVM settings using FSTAB in place of the RC.LOCAL (where the losetup maybe scripted) in order to get my LVM running before some services startup, but I don't know how to reproduce into the FSTAB the command: "losetup /dev/loop0 /opt/my-data-file-0" and so on...
How could I accomplish this?
Wants=applications.service After=yourownLVMscript.service
( if an fstab solution exists I m also interested )