Operating System - HP-UX
1829404 Members
1925 Online
109991 Solutions
New Discussion

Changing Cluster Lock disk

 
SOLVED
Go to solution
Adam Garsha
Valued Contributor

Changing Cluster Lock disk

Is it possible to change the cluster lock disk in a two node cluster without downtime? If so, what are the rough steps. What about if you want the new lock disk to use a disk that is also a package data disk. Is this possible?

I have a two node cluster with a 36 GB SAN presented LUN as the cluster lock disk. I want to push the lock function to a different vg (it can be an active one right?) and I want to reclaim the 36GB for use elsewhere.

Thanks.
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: Changing Cluster Lock disk

See the second to last response in this thread:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=260487

Lots of good docs in it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Mel Burslan
Honored Contributor

Re: Changing Cluster Lock disk

I am not 100% sure as we have abandoned the cluster lock disk in favor of quorum servers but you can not take out the active cluster lock while the cluster is alive. First of all after changing the cluster lock disk, you will need to recompile cluster binary which by itself requires cluster downtime.

Consider using a quorum server instead of lock disks. The qs process is a very low overhead process running on a non-cluster member node. Read the serviceguard manuals to see hot to set it up.
________________________________
UNIX because I majored in cryptology...
melvyn burnard
Honored Contributor

Re: Changing Cluster Lock disk

Changing the Cluster Lock Disc while a cluster is up is not allowed.
You must first halt the cluster, make the relevant changes in the cluster ascii file, then re-apply the binary with cmapplyconf.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Geoff Wild
Honored Contributor

Re: Changing Cluster Lock disk

No, you can't change the lock disk in a running cluster.

More info in Chapter 7. Cluster and Package Maintenance:

http://docs.hp.com/en/B3936-90079/index.html



Here's a script to check your cluster lock:

# cat chkclusterlock
#!/bin/sh
#
# script to check for existence of cluster lock
#
# gwild & tstewart

PATH=/usr/bin:/usr/sbin

if [[ `id -u` != 0 ]]
then
print "\n$0: Must be super-user to run this command."
exit 1
fi

HOST=`hostname`
DEV=`cmviewconf |sed -n -e "/$HOST/{$!N;p;}" -e h | cut -d: -f2 |grep dev|awk -F/ '{print $4}'`

if [ -c /dev/rdsk/$DEV ]
then
SIZE=`diskinfo /dev/rdsk/$DEV | grep size |awk '{print $2}'`
if [ $SIZE = "io_search failed: No match found." ]
then
echo "The disk /dev/rdsk/$DEV does NOT exist on $HOST!!!"
exit 1
fi
echo "The cluster lock disk /dev/rdsk/$DEV on $HOST is $SIZE kbytes."
exit 0
else
echo "/dev/rdsk/$DEV does not exist on $HOST!!!"
exit 1
fi

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.