- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Looking for the cluster lock disk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:45 PM
08-18-2005 08:45 PM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:53 PM
08-18-2005 08:53 PM
SolutionIf 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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:57 PM
08-18-2005 08:57 PM
Re: Looking for the cluster lock disk
You can get cluster configuration using cmgetconf(1m). Without parameters it outputs to stdout. See FIRST_CLUSTER_LOCK_PV parameter for desired node.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 08:57 PM
08-18-2005 08:57 PM
Re: Looking for the cluster lock disk
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 09:34 PM
08-18-2005 09:34 PM
Re: Looking for the cluster lock disk
Use cmgetconf or
/etc/cmcluster/cmclconf.ascii -> look for CLUSTER_LOCK_VG and FIRST_CLUSTER_LOCK_PV
Sudeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2005 11:04 PM
08-18-2005 11:04 PM
Re: Looking for the cluster lock disk
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 12:51 AM
08-19-2005 12:51 AM
Re: Looking for the cluster lock disk
# 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2005 01:31 AM
08-19-2005 01:31 AM
Re: Looking for the cluster lock disk
I think that you can also run a "strings" on the binary cluster file:
cd /etc/cmcluster
strings cmclconfig | grep dsk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2005 10:46 PM
08-22-2005 10:46 PM