Skip to contentSkip to conversation

cluster/rgmanager/src/resources lvm_by_vg.sh

Cluster-devel [email protected] 1 participant 1 message Jan 11, 2008

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: jbrassow at sourceware.org 2008-01-11 21:32:51

Modified files:
rgmanager/src/resources: lvm_by_vg.sh

Log message:
- Bug #428448
- HA LVM service fails to relocate when I/O is running

Was failing to add new tag when relocating.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/lvm_by_vg.sh.diff?cvsroot=cluster&r1=1.2&r2=1.3

rgmanager/src/resources/lvm_by_vg.sh +2 -1
@@ -74,7 +74,8 @@
 		return $OCF_ERR_GENERIC
 	fi
 
-	if ! vgchange --addtag $(local_node_name) $OCF_RESKEY_vg_name; then
+	vgchange --addtag $(local_node_name) $OCF_RESKEY_vg_name
+	if [ $? -ne 0 ]; then
 		ocf_log err "Failed to add ownership tag to $OCF_RESKEY_vg_name"
 		return $OCF_ERR_GENERIC
         fi