Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 280961 Details for
Bug 242798
RFE: If HA lvm server lost connection to SAN, relocate to next machine
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
proposed patch to add self_fence to lvm resource agent
lvm.sh.patch (text/plain), 1.51 KB, created by
Marco Ceci
on 2007-12-07 13:15:09 UTC
(
hide
)
Description:
proposed patch to add self_fence to lvm resource agent
Filename:
MIME Type:
Creator:
Marco Ceci
Created:
2007-12-07 13:15:09 UTC
Size:
1.51 KB
patch
obsolete
>--- lvm.sh.old 2007-09-25 22:21:26.000000000 +0100 >+++ lvm.sh 2007-11-23 12:40:38.000000000 +0000 >@@ -91,6 +91,17 @@ > <content type="string"/> > </parameter> > >+ <parameter name="self_fence"> >+ <longdesc lang="en"> >+ If set and the clean up of the tags fails, the node will >+ immediately reboot. >+ </longdesc> >+ <shortdesc lang="en"> >+ Fence the node if it is not able to clean up LVM tags >+ </shortdesc> >+ <content type="boolean"/> >+ </parameter> >+ > <parameter name="nfslock" inherit="service%nfslock"> > <longdesc lang="en"> > If set and unmounting the file system fails, the node will >@@ -293,6 +304,13 @@ > declare action=$1 > declare tag=$2 > declare lv_path=$3 >+ typeset self_fence="" >+ >+ case ${OCF_RESKEY_self_fence} in >+ "yes") self_fence=1 ;; >+ 1) self_fence=1 ;; >+ *) self_fence="" ;; >+ esac > > if [ -z $action ] || [ -z $tag ] || [ -z $lv_path ]; then > ocf_log err "Supplied args: 1) $action, 2) $tag, 3) $lv_path" >@@ -314,7 +332,13 @@ > else > ocf_log notice "Deactivating $lv_path" > if ! lv_activate_resilient $action $lv_path; then >+ if [ "$self_fence" ]; then >+ ocf_log err "Unable to deactivate $lv_path REBOOT" >+ sync >+ reboot -fn >+ else > ocf_log err "Unable to deactivate $lv_path" >+ fi > return $OCF_ERR_GENERIC > fi >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 242798
: 280961