1819796 Members
3120 Online
109607 Solutions
New Discussion юеВ

cmquerycl problem

 
SOLVED
Go to solution
rublu
Occasional Contributor

cmquerycl problem

i have two r390.I am using SG version 11.11.16
using EMC storage.It is masked from both the box.i have to take two vg from each box under the cluster control which is alrady created and active and filesystems are mounted.When i use cmquerycl command it creates the ascii file but when I have a look in the ascii file it does not at all automatically list the lock disk and volume groups.Should i deactvate the vgs and then cmquerycl.help with brief steps .....HELP...HELP

Thanks in advance
Debasish
6 REPLIES 6
Devender Khatana
Honored Contributor

Re: cmquerycl problem

Hi,

Yes the vgs should not be activated while running cmquerycl.

Also make it cluster aware by
#vgchange -c y /dev/vgname

Repeat for other 3 VGs.

HTH,
Devender
Impossible itself mentions "I m possible"
Mridul Shrivastava
Honored Contributor
Solution

Re: cmquerycl problem

First Make Sure that under /etc/lvmrc file
AUTO_VG_ACTIVATE=0 should be there.
Then u can create vgs on one server (whatever no. of vgs u want) then vgexport using the following format:
#vgexport -v -p -s -m /tmp/mapfilename /dev/vgname
then copy this mapfile to other node and create dir of that vg then group file using the same minor no. then import the vg using the following format:
#vgimport -v -s -m /tmp/mapfilename /dev/vgname

while executing cmquerycl command all vgs should be there in /etc/lvmtab file on each node.U have to manually specify the vglock and disk in ascii file. u have to deactivate the all vgs (except vg0) and then activate them using
#vgchange -c y vgname
so these vgs will be marked for cluster.
Time has a wonderful way of weeding out the trivial
rariasn
Honored Contributor

Re: cmquerycl problem

Hi rubli,

Try to,

# cd /etc/cmcluster

cmgetconf -v cluster_name cluster_name.ascii

Verify "cluster_name.ascii"

ran
Geoff Wild
Honored Contributor

Re: cmquerycl problem

Yes - the vg's must be cluster aware (vgchange -c y /dev/vgXX)

See Chapter 5 in http://docs.hp.com/en/B3936-90079/index.html

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.
rublu
Occasional Contributor

Re: cmquerycl problem

Hi All
Thanks all for spending some valuable time for having a look to my problem.I have created the map files of all cluster aware VGS and impoted this vgs in another node.Then with cmquerycl it created the ascii file cleanly by listing automatically thr cluster vcg,lock disk and cluster aware vgs which i want.Now for cmcheckconf and cmapplyconf should all the vgs should be in vgchange -c y mode or what?
Devender Khatana
Honored Contributor

Re: cmquerycl problem

Hi,

You can leave the VGs in any stage and it will not matter. The reason being that it can be activated on only one node and you have option of running these commands from any node and not necessarily the one where it is activated.

HTH,
Devender
Impossible itself mentions "I m possible"