1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00
lvm2/daemons/clvmd
Milan Broz 679830cf58 In some versions (RHEL6) dlm_create_lockspace() always
return lockspace reference (even if lockspace already exists)
and thus increases DLM lockspace count. It means that after
clvmd restart the lockspace is still in use.

(The only way to clean environment to enable clean cluster
shutdown is call "dlm_tool leave clvmd" several times.)

Because only one clvmd can run in time, we can use simpler logic,
try to open lockspace with dlm_open_lockspace() and only if it fails
try to create new one. This way the lockspace reference doesn not
increase.

Very easily reproducible with  "clvmd -S" command.

Patch also fixes return code when clvmd_restart fails and fixes
double free if debug option was specified during restart.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=612862
2011-01-19 23:09:31 +00:00
..
clvm.h Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80) 2011-01-12 20:42:50 +00:00
clvmd-cman.c In some versions (RHEL6) dlm_create_lockspace() always 2011-01-19 23:09:31 +00:00
clvmd-command.c In some versions (RHEL6) dlm_create_lockspace() always 2011-01-19 23:09:31 +00:00
clvmd-common.h Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-comms.h Avoid duplicate definitions. 2010-03-23 14:35:08 +00:00
clvmd-corosync.c In some versions (RHEL6) dlm_create_lockspace() always 2011-01-19 23:09:31 +00:00
clvmd-gulm.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-gulm.h Clean up cluster lock mode and flags definition. 2010-06-17 12:48:54 +00:00
clvmd-openais.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
clvmd-singlenode.c Add new dm_prepare_selinux_context fn to libdevmapper and use it throughout. 2010-12-13 10:43:56 +00:00
clvmd.c Add -f (don't fork) option to clvmd and fix clvmd -d<num> description. 2011-01-17 23:13:14 +00:00
clvmd.h Add -f (don't fork) option to clvmd and fix clvmd -d<num> description. 2011-01-17 23:13:14 +00:00
lvm-functions.c Replace fs_unlock by sync_local_dev_names to notify local clvmd. (2.02.80) 2011-01-12 20:42:50 +00:00
lvm-functions.h Speedup consequent activation calls 2011-01-10 14:02:30 +00:00
Makefile.in INSTALL rules updates 2010-04-09 21:42:48 +00:00
refresh_clvmd.c Fix another segfault in clvmd -R if no response from daemon received. 2010-07-01 21:46:09 +00:00
refresh_clvmd.h Add -S command to clvmd, so it can restart itself and still 2010-04-20 14:07:37 +00:00
tcp-comms.c Various cleanups following recent commits. 2010-06-21 15:56:57 +00:00
tcp-comms.h Fix clvmd if compiled with gulm support. (2.02.26) 2007-07-24 15:35:11 +00:00