Operating System - HP-UX
1833758 Members
2682 Online
110063 Solutions
New Discussion

Re: Cluster configuration collection issues!

 
Amit Manna_6
Regular Advisor

Cluster configuration collection issues!

HI,
I have a N class server in clsuter. The cluster lock disk. I am trying to collect the cluster information using cmgetconf command. But its gives error:

Unable to find the cluster lock disk.
Is there any way we can get the cluster configuration
11 REPLIES 11
melvyn burnard
Honored Contributor

Re: Cluster configuration collection issues!

try using cmviewconf
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Geoff Wild
Honored Contributor

Re: Cluster configuration collection issues!

Here's a little script:


Rgds...Geoff

# cat chkclusterlock

#!/bin/sh
#
# script to check for existence of cluster lock
#
# gwild

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

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.
Amit Manna_6
Regular Advisor

Re: Cluster configuration collection issues!

HI,
Here the cluster lock disk has failed. Before applying new configuration i want to keep a copy of existing one.
Any ideas.
Mridul Shrivastava
Honored Contributor

Re: Cluster configuration collection issues!

If cluster disk has failed then I would recommend to get it replaced and then make any changes to the cluster.

Ideally down time is required to replace the cluster lock disk and I hope that you have taken vgcfgbackup after cmapplyconf.. else the vg configuration won't have the lock information and it can't be restored after replacing the disk.
Time has a wonderful way of weeding out the trivial
Amit Manna_6
Regular Advisor

Re: Cluster configuration collection issues!

Hi Mridul,
Before replacing the disk i wanted to run a cmgetcong to store the existing copy in a file. But it gives error: unable to open cluser lock disk:
ANy suggestions
Mridul Shrivastava
Honored Contributor

Re: Cluster configuration collection issues!

It won't be feasible to backup the cluster configuration if cluster lock disk is not accessible. However you can take pkg configuration backup using cmgetconf -p .

If the disk is hot swappable,you have LVM OLAR patches installed and you have a valid vgcfg backup then this disk can be replaced online and restore the vgcfg after replacement and then take backup.

I don't find any option where we can skip the cluster lock disk and take the cluster configuration backup.
Time has a wonderful way of weeding out the trivial
Amit Manna_6
Regular Advisor

Re: Cluster configuration collection issues!

HI Mridul,
Can i check the existing cluster configuration details using cmviewcl -v and according to the configuartion can i update a old ascii file and do cmapplyconf.

Please reply asap
Mridul Shrivastava
Honored Contributor

Re: Cluster configuration collection issues!

Instead of using cmviewcl -v, I would go for cmviewconf, I doubt it works now on ur system or not...

Have you tried running cmscancl ? this will also give you more detailed information about the cluster..
Time has a wonderful way of weeding out the trivial
melvyn burnard
Honored Contributor

Re: Cluster configuration collection issues!

if the cluster lock disc has failed, you must replace it and do a vgcfgrestore. HOPEFULLY you had run a vgcfgbackup of the cluster lock vg once it was marked as a cluster lock, and when it was activated.
If so, that shoul dfix your problem without having any issues.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Amit Manna_6
Regular Advisor

Re: Cluster configuration collection issues!

HI,
Here the path to cluster lock disk has failed. So device files are missing.

Whats the best way to solve the issue
Mridul Shrivastava
Honored Contributor

Re: Cluster configuration collection issues!

Hi Amit,

Vould you please brief , what do u mean by hardware path is missing:

Is it that hardware path itself is not appearing in ioscan? => need to check the external sotrage/enclosure connected ( there must be a path, however it could be showing NO_HW there).

Is it that device files are not appearing for the disk , however hardware path is there in ioscan? => try running "insf -H < hw path> " this will create the device files for devices connected to the mentioned hw path.
Time has a wonderful way of weeding out the trivial