[Pacemaker] Patched iSCSILogicanUnit resource agent
Pekka Kuronen
Pekka.Kuronen at pegasi.fi
Tue Mar 23 06:32:01 UTC 2010
I noticed iSCSILogicalUnit resource agent having faulty behavior with CentOS 5.4 that causes it to fail in monitor operation.
Every monitor cycle it executes the following command:
tgtadm --lld iscsi --op show --mode target
and tries to figure out if there is the volume we're looking for with grep and throwing a success accordingly:
grep -E -q "[[:space:]]+Backing store: ${OCF_RESKEY_path}" && return $OCF_SUCCESS
In CentOS 5.4 that regexp never matches because there is no such string. Instead there is a string "Backing store path:" with the volume information. Therefore it should be safe enough to modify the previous into:
grep -E -q "[[:space:]]+Backing store.+: ${OCF_RESKEY_path}" && return $OCF_SUCCESS
resulting in succesful operation with CentOS 5.4. Attached the modified and tested iSCSILogicalUnit resource agent.
Pekka Kuronen
my name at pegasi dot fi
__________________________
Pegasi webmail & office suite
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iSCSILogicalUnit
Type: application/octet-stream
Size: 13642 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20100323/43ef279e/attachment-0003.obj>
More information about the Pacemaker
mailing list