Operating System - HP-UX
1827232 Members
2280 Online
109716 Solutions
New Discussion

Re: Looking for the cluster lock disk

 
SOLVED
Go to solution
Christian Marquardt_1
Regular Advisor

Looking for the cluster lock disk

Hello,
we've a two node cluster and I dont know which this is configured as the cluster lock disk.
Can anyone tell me a way how to find out which disk is configured for cluster lock disk?

Christian
8 REPLIES 8
melvyn burnard
Honored Contributor
Solution

Re: Looking for the cluster lock disk

Look at your configuration file for the cluster this will tell you.
If you are not sure if this file is correct, then you could check the syslog.log file at cluster start time if it is a recent SG version, or use the cmgetconf command to read the cluster binary and print it out in ascii format
cmgetconf > myasciifile

then look in this ascii file for the entries for cluster lock info.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Artyom Voronchihin
Respected Contributor

Re: Looking for the cluster lock disk

Hello!

You can get cluster configuration using cmgetconf(1m). Without parameters it outputs to stdout. See FIRST_CLUSTER_LOCK_PV parameter for desired node.
"Intel inside" is not a label, it's a warning.
Pedro Cirne
Esteemed Contributor

Re: Looking for the cluster lock disk

Hi,

Go to /etc/cmcluster, there you should have a file called cmclconf.ascii. The VG that has the lock disk is defined on this file and the lock disk is also there, search for "FIRST_CLUSTER_LOCK_PV"

The cmclconf.ascii is just in one of the nodes, the one that was used to configure the cluster!

Enjoy :)

Pedro
Sudeesh
Respected Contributor

Re: Looking for the cluster lock disk

Hi
Use cmgetconf or

/etc/cmcluster/cmclconf.ascii -> look for CLUSTER_LOCK_VG and FIRST_CLUSTER_LOCK_PV


Sudeesh
The most predictable thing in life is its unpredictability
Rajesh SB
Esteemed Contributor

Re: Looking for the cluster lock disk

Hi,

You can find the Clust lock disk from
1. Cluster configuration ascii file.
Look for the line
FIRST_CLUSTER_LOCK_PV
shows the lock disk.

2. If you are unsure about .ascii file used for running cluster.
Use this way
# cmgetconf|grep LOCK
Observe for the line like
FIRST_CLUSTER_LOCK_PV /dev/dsk/c5t0d0

Regards,
Rajesh
Geoff Wild
Honored Contributor

Re: Looking for the cluster lock disk

Or run this script:

# 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.
Stuart Abramson
Trusted Contributor

Re: Looking for the cluster lock disk

All good suggestions.

I think that you can also run a "strings" on the binary cluster file:

cd /etc/cmcluster
strings cmclconfig | grep dsk
Christian Marquardt_1
Regular Advisor

Re: Looking for the cluster lock disk

I've found a solution for my problem...