datto / dattobd

kernel module for taking block-level snapshots and incremental backups of Linux block devices
GNU General Public License v2.0
576 stars 122 forks source link

SLES 12 doesn't persist through reboot #101

Closed crawfxrd closed 7 years ago

crawfxrd commented 7 years ago

Incrementals do not persist through reboot on SLES 12 SP2. The module is loaded after the reload scripts are run.

Jul 28 16:23:15 latest-sle12 unknown: dattobd udev settled
Jul 28 16:23:15 latest-sle12 unknown: dattobd settled rbd /dev/sda2
Jul 28 16:23:15 latest-sle12 unknown: RBD = /dev/sda2
Jul 28 16:23:15 latest-sle12 unknown: Mounting /dev/sda2 as ext4
Jul 28 16:23:16 latest-sle12 kernel: EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
Jul 28 16:23:17 latest-sle12 unknown: datto looking for datto_reload
Jul 28 16:23:17 latest-sle12 unknown: datto found /sbin/datto_reload
Jul 28 16:23:17 latest-sle12 unknown: Reloading incremental - 0 ...
...
Jul 28 16:23:26 latest-sle12 kernel: dattobd: loading out-of-tree module taints kernel.
crawfxrd commented 7 years ago

As expected, this is because of dattobd being an unsupported module.

dracut-pre-mount[499]: modprobe: ERROR: module 'dattobd' is unsupported
dracut-pre-mount[499]: modprobe: ERROR: Use --allow-unsupported or set allow_unsupported_modules 1 in
dracut-pre-mount[499]: modprobe: ERROR: /etc/modprobe.d/10-unsupported-modules.conf
dracut-pre-mount[499]: modprobe: ERROR: could not insert 'dattobd': Operation not permitted
nixomose commented 7 years ago

I thought we could get around this by force loading the module in the with --allow-unsupported in the initram boot script.

nixomose commented 7 years ago

or dracut or whatever.

crawfxrd commented 7 years ago

Set allow_unsupported_modules to 1 in /etc/modprobe.d/10-unsupported-modules.conf.