summaryrefslogtreecommitdiffstats
path: root/scripts/clvmd_init_red_hat.in
Commit message (Collapse)AuthorAgeFilesLines
* initscript: call vgchange -aay instead of -alyPeter Rajnoha2012-06-281-1/+1
| | | | | | | | | | | The clmvd init script called "vgchange -aly" before to activate all VGs in cluster environment. This activated all VGs, no matter if it was clustered or not. Auto activation for clustered VGs is not supported yet so the behaviour of -aay is still the same as before for clustered VGs. However, for non-clustered VGs, we need to check with the activation/auto_activation_volume_list whether the VG/LV should be activated on boot or not.
* Based on auto-detection or user requested cluster managers for clvmd,Fabio M. Di Nitto2010-08-231-2/+2
| | | | | | | | | | set appropriate Required-Start and Required-Stop at configure time. Reorder the checks for user selected cluster managers to match auto detected ones, to be consistent in the output. Add special case for qdiskd that´s started after cman/lock_gulmd for RHEL-4/RHEL-5.
* Fix clvmd init script return code when executed as non-root user.Fabio M. Di Nitto2010-08-121-1/+6
| | | | | | | | | | | | | | | | | | | clvmd daemon itself does the right thing when invoked as non-root, by returning 4. The patch removes the use daemon function from /etc/rc.d/init.d/functions that´s unnecessary and has th bad habit to mask the return codes from the real daemon. Add a simple and generic check to see if clvmd is executed by root or not. Our stop/reload/restart paths in the init script are complex and not all the tools involved in the process are guaranteed to return 4 if executed by non-root against a process that´s running as root (for example kill -TERM will return -1 and parsing the output to catch the error is suboptimal at best). https://bugzilla.redhat.com/show_bug.cgi?id=553381
* Fix clvmd init script statusMilan Broz2010-06-231-5/+6
| | | | | | | | | | | - s/Active clustred VG/clustered VG/ (only LV can be active) - print only active LVs (not all) in status command (In the lvdisplay form /dev/vg/lv.) For now, still use awk (already used in clustered_vgs). https://bugzilla.redhat.com/show_bug.cgi?id=598495
* Fix clvmd initscript restart command to start clvmd if not yet running.Milan Broz2010-06-031-1/+3
|
* Fix clvmd init script stop function to not deactive non-clustered volume groups.Fabio M. Di Nitto2010-05-171-1/+4
| | | | https://bugzilla.redhat.com/show_bug.cgi?id=592362
* Add -S command to clvmd, so it can restart itself and stillChristine Caulfield2010-04-201-1/+11
| | | | preserve exlusive LV locks.
* - fix whitespaces all over (tabs/spaces)Fabio M. Di Nitto2010-02-261-98/+123
| | | | | | | | | | | | | | | - increase timeout to 30 secs (on Chrissie request) - source both cluster and clvmd for options (like all the other cluster init scripts) - add clustered_vgs and _lvs commodity fns - move rh_status* fns at the top, so they can be reused - heavily cleanup start and stop fns from redundant code and unnecessary loops - improve output from different operations - make the init script lsb compliant - don´t force kill of the daemon, send only a TERM signal and then wait for it to exit - Resolves rhbz#533247
* Fix 'service-default-enabled' rpmlint in clvmd initscriptMike Snitzer2009-05-291-1/+1
|
* Fix rpmlint in clvmd initscriptMike Snitzer2009-05-291-3/+26
| | | | | | Added missing LSB stanza lines. Added reload capability. Remaining warning (incoherent-init-script-name) is not relevant.
* Add option to /etc/sysconfig/cluster to select cluster type for clvmd.Christine Caulfield2009-02-101-0/+2
|
* generate init scriptAlasdair Kergon2008-11-191-0/+147