FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Cluster Development

 
 
LinkBack Thread Tools
 
Old 01-03-2008, 07:56 PM
 
Default cluster/rgmanager/src/resources lvm.sh

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: jbrassow@sourceware.org 2008-01-03 20:56:49

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

Log message:
s/validate/verify/

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/lvm.sh.diff?cvsroot=cluster&r1=1.10&r2=1.11

--- cluster/rgmanager/src/resources/lvm.sh 2008/01/03 20:35:39 1.10
+++ cluster/rgmanager/src/resources/lvm.sh 2008/01/03 20:56:49 1.11
@@ -146,7 +146,7 @@
rv=0
;;

-validate-all)
+verify-all)
##
# We can safely ignore clustered volume groups (VGs handled by CLVM)
##
@@ -163,7 +163,7 @@
rv=0
;;
*)
- echo "usage: $0 {start|status|monitor|stop|restart|meta-data|validate-all}"
+ echo "usage: $0 {start|status|monitor|stop|restart|meta-data|verify-all}"
exit $OCF_ERR_UNIMPLEMENTED
;;
esac
 
Old 02-06-2008, 03:40 PM
 
Default cluster/rgmanager/src/resources lvm.sh

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: jbrassow@sourceware.org 2008-02-06 16:40:27

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

Log message:
- better checking for improper setup
-- this time for presence of fail-over VG in the volume_list

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/lvm.sh.diff?cvsroot=cluster&r1=1.12&r2=1.13

--- cluster/rgmanager/src/resources/lvm.sh 2008/01/03 21:02:53 1.12
+++ cluster/rgmanager/src/resources/lvm.sh 2008/02/06 16:40:27 1.13
@@ -56,11 +56,24 @@
{
##
# Machine's cluster node name must be present as
- # a tag in lvm.conf:activation/volume_list
+ # a tag in lvm.conf:activation/volume_list and the volume group
+ # to be failed over must NOT be there.
##
- if ! lvm dumpconfig activation/volume_list >& /dev/null ||
- ! lvm dumpconfig activation/volume_list | grep $(local_node_name); then
- ocf_log err "lvm.conf improperly configured for HA LVM."
+ if ! lvm dumpconfig activation/volume_list >& /dev/null; then
+ ocf_log err "HA LVM: Improper setup detected"
+ ocf_log err "- "volume_list" not specified in lvm.conf."
+ return $OCF_ERR_GENERIC
+ fi
+
+ if ! lvm dumpconfig activation/volume_list | grep $(local_node_name); then
+ ocf_log err "HA LVM: Improper setup detected"
+ ocf_log err "- @$(local_node_name) missing from "volume_list" in lvm.conf"
+ return $OCF_ERR_GENERIC
+ fi
+
+ if lvm dumpconfig activation/volume_list | grep $OCF_RESKEY_vg_name; then
+ ocf_log err "HA LVM: Improper setup detected"
+ ocf_log err "- $OCF_RESKEY_vg_name found in "volume_list" in lvm.conf"
return $OCF_ERR_GENERIC
fi
 
Old 02-06-2008, 04:43 PM
 
Default cluster/rgmanager/src/resources lvm.sh

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: jbrassow@sourceware.org 2008-02-06 17:43:33

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

Log message:
- Bug 431705: HA LVM should prevent users from running an invalid setup (2)
- better checking for improper setup
-- this time for presence of fail-over VG in the volume_list

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/resources/lvm.sh.diff?cvsroot=cluster&r1=1.13&r2=1.14

--- cluster/rgmanager/src/resources/lvm.sh 2008/02/06 16:40:27 1.13
+++ cluster/rgmanager/src/resources/lvm.sh 2008/02/06 17:43:33 1.14
@@ -84,7 +84,8 @@
##
# Fixme: we might be able to perform a better check...
if [ "$(find /boot/*.img -newer /etc/lvm/lvm.conf)" == "" ]; then
- ocf_log err "HA LVM requires the initrd image to be newer than lvm.conf"
+ ocf_log err "HA LVM: Improper setup detected"
+ ocf_log err "- initrd image needs to be newer than lvm.conf"
return $OCF_ERR_GENERIC
fi
 

Thread Tools




All times are GMT. The time now is 03:17 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org