Autoload of DM kernel targets?
See as example https://bugzilla.opensuse.org/show_bug.cgi?id=983221
"non-standard" DM targets do not appear to be autoloaded (the problem was hit with thin-pool, but it seems to apply to other targets as well). "Common" targets (like linear) are provided by dm-mod which seems to be autoloaded by virtue of /dev/mapper/control.
Is it expected and intentional? Or are users required to manually load necessary modules on boot?
TIA
-andrei
Quoted 10 lines · Andrei Borzenkov
See as example https://bugzilla.opensuse.org/show_bug.cgi?id=983221
"non-standard" DM targets do not appear to be autoloaded (the problem was hit with thin-pool, but it seems to apply to other targets as well). "Common" targets (like linear) are provided by dm-mod which seems to be autoloaded by virtue of
/dev/mapper/control.Is it expected and intentional? Or are users required to manually load necessary modules on boot?
Quoted 8 lines
TIA
-andrei
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Does this patch fix it for you?
drivers/md/dm-thin.c +1 -0
@@ -4400,3 +4400,4 @@ MODULE_PARM_DESC(no_space_timeout, "Out of data space queue IO timeout in secondMODULE_DESCRIPTION (DM_NAME " thin provisioning target" );MODULE_AUTHOR ("Joe Thornber <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("dm-thin-pool" );
NeilBrown
24.04.2017 07:05, NeilBrown пишет:
Quoted 14 lines · Andrei Borzenkov
Quoted 13 lines
See as example https://bugzilla.opensuse.org/show_bug.cgi?id=983221
"non-standard" DM targets do not appear to be autoloaded (the problem was hit with thin-pool, but it seems to apply to other targets as well). "Common" targets (like linear) are provided by dm-mod which seems to be autoloaded by virtue of
/dev/mapper/control.Is it expected and intentional? Or are users required to manually load necessary modules on boot?
TIA
Quoted 9 lines
Quoted 6 lines
-andrei
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-develDoes this patch fix it for you?
I did not test it, because the problem (at least, this specific problem) turned out a packaging problem - lvm checks for available targets before it even tries to call into kernel, so this should not change anything. But it needs path to modprobe that is detected during build. mkdprobe was not present in build environment so lvm did not try to autoload anything and immediately failed. Making sure to BuildRequire (package, that provides) it fixed the problem.
Quoted 12 lines
drivers/md/dm-thin.c +1
-0@@ -4400,3 +4400,4 @@ MODULE_PARM_DESC(no_space_timeout, "Out of data space queue IO timeout in secondMODULE_DESCRIPTION (DM_NAME " thin provisioning target" );MODULE_AUTHOR ("Joe Thornber <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("dm-thin-pool" );NeilBrown
Quoted 33 lines · NeilBrown
Quoted 10 lines · Andrei Borzenkov
See as example https://bugzilla.opensuse.org/show_bug.cgi?id=983221
"non-standard" DM targets do not appear to be autoloaded (the problem was hit with thin-pool, but it seems to apply to other targets as well). "Common" targets (like linear) are provided by dm-mod which seems to be autoloaded by virtue of
/dev/mapper/control.Is it expected and intentional? Or are users required to manually load necessary modules on boot?
Quoted 8 lines
TIA
-andrei
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-develDoes this patch fix it for you?
drivers/md/dm-thin.c +1
-0@@ -4400,3 +4400,4 @@ MODULE_PARM_DESC(no_space_timeout, "Out of data space queue IO timeout in secondMODULE_DESCRIPTION (DM_NAME " thin provisioning target" );MODULE_AUTHOR ("Joe Thornber <[email protected]>" );MODULE_LICENSE ("GPL" ); +MODULE_ALIAS ("dm-thin-pool" );
Quoted 1 line
NeilBrown
The module is named "dm-thin-pool.ko", so I'm not following why that patch would help.