Skip to content
Snippets Groups Projects
Commit cbaccb5b authored by Thibault VINCENT's avatar Thibault VINCENT
Browse files

add: unload drbd module at initialization

parent 5e09552f
No related branches found
No related tags found
No related merge requests found
......@@ -52,6 +52,7 @@ class DRBD(object):
DRBDMETA = os.path.join(BIN_PATH, 'drbdmeta')
DRBDSETUP = os.path.join(BIN_PATH, 'drbdsetup')
MODPROBE = os.path.join(BIN_PATH, 'modprobe')
RMMOD = os.path.join(BIN_PATH, 'rmmod')
# connection states
CSTATES = Enum(
STANDALONE = "StandAlone",
......@@ -107,6 +108,7 @@ class DRBD(object):
self._meta = None
self._dm_table = None
# load kernel driver, do not check for error
Exec.silent([self.RMMOD, 'drbd'])
Exec.silent([self.MODPROBE, 'drbd', 'minor_count=100',
'usermode_helper=/bin/true'])
# check that binaries are available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment