summaryrefslogtreecommitdiffstats
path: root/daemons/clvmd/clvmd-corosync.c
Commit message (Collapse)AuthorAgeFilesLines
* Automatically detect whether corosync clvmd needs to use confdb or cmap. (fabio)Alasdair Kergon2012-01-311-2/+60
|
* Restart CLVMD with same cluster managerZdenek Kabelac2011-09-251-0/+1
| | | | | | | | Add named cluster_ops to easily learn the name of the active cluster manager, so we are able to restart singlenode manager in testing. Add simple test for clvmd -S (restart) and -R (refresh) (though it needs some extensions).
* In some versions (RHEL6) dlm_create_lockspace() alwaysMilan Broz2011-01-191-8/+7
| | | | | | | | | | | | | | | | | | | | | 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
* Various cleanups following recent commits.Alasdair Kergon2010-06-211-32/+9
|
* Use "" instead of <> for configure.h and libdevmapper.hZdenek Kabelac2010-06-151-2/+2
| | | | Move configure.h as the first header for clvmd source files.
* missing (C) remindersAlasdair Kergon2009-09-151-10/+16
|
* Rewrite clvmd configuration code.Alasdair Kergon2009-08-281-8/+8
|
* Fix clvmd-corosync to match the new corosync API.Christine Caulfield2009-06-031-15/+15
|
* Tidy lv_hash[_lock] use inside clvmd.Milan Broz2009-04-211-1/+1
| | | | | | | | | | | - Rename unlock_all to destroy_lvhash, this function is called in cluster shutdown unlocks everything and clean up allocated info space. - Tidy lv_hash_lock use . Except adding free(lvi) in lv_has destructror there is no functional change.
* Make sure clvmd-corosync releases the lockspace when it exits.Christine Caulfield2009-04-011-3/+3
| | | | patch from Xinwei Hu
* Fix unlocks in clvmd-corosync.Christine Caulfield2009-03-061-1/+1
| | | | The DLM unlock returns EUNLOCK in the lksb on success, not 0
* Fix error returns in clvmd-corosync interface to DLM.Christine Caulfield2009-02-251-1/+14
| | | | Thanks to Xinwei Hu for spotting this.
* Add a fully-functional get_cluster_name() to clvmd corosync interface.Christine Caulfield2009-02-111-2/+41
|
* Remove duplicate cpg_initialize from clvmd startup.Christine Caulfield2009-02-101-5/+0
|
* Allow clvmd to start up if its lockspace already exists.Christine Caulfield2009-02-101-3/+8
|
* Allow clvmd to be built with all cluster managers & select one on cmdline.Christine Caulfield2009-02-021-3/+3
|
* Add a corosync/DLM cluster service to clvmd.Christine Caulfield2009-01-221-0/+591
It's not integrated in the configure system yet though.