- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing 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
02-13-2009 09:56 AM
02-13-2009 09:56 AM
I have a happy healthy cluster and all I need to do is to change the cluster lock disk. I migrated all my data to a new SAN and new luns using the pvmove command. Now I have to change the cluster lock disk so I can remove the final lun from the old SAN. Both the current and proposed cluster lock disk are still in the volume group. I have only one VG in the cluster and it's unchanged as the cluster lock VG.
Here's my plan
cmhaltpkg -v pkg
vgchange -c n /dev/vg01
cmhaltcl
vgchange -a y /dev/vg01
cmdeleteconf -c clustername
I will then edit the /etc/cmcluster/cluster.ascii file to change the cluster lock disk on both nodes of the cluster.
cmcheckconf -v -C /etc/cmcluster/cluster.ascii
cmapplyconf -v /etc/cmcluster/cluster.ascii
cmruncl
Do I need to run cmapplyconf -P /etc/cmcluster/clustername/pckconf.ascii at this point? Nothing is changing in it.
cmrunpkg -v pkg
Is this plan sound?
Once everything is back up and running I'll just do a vgremove on the old cluster lock disk and map file the changes over to the other node.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 10:21 AM
02-13-2009 10:21 AM
Re: Changing the cluster lock disk
You do not need to delete the config with cmdeleteconf though.
Also, may be worth using cmviweconf to see what is listed in the binary both before and after the change.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 10:30 AM
02-13-2009 10:30 AM
SolutionTerrence,
all fine just to add few things:
1)take a backup of the /etc/cmcluster directory on both the nodes before doing the change.
2)I assume that none of the package is using the VG /dev/vg01 so in your steps you can try getting the "Last LUN" removed just after the vgchange -a y /dev/vg01 line making the use of #vgreduce /dev/vg01
3)create a map file and rcp that after you remove the Last LUN (of the Oldstorage that you are using as current Lock PV) Import the VG vg01 on the other node with this confign(removed OLD LUN).
4)If the VG vg01 had not been the part of any cluster packages then you need not change that in Package Control Files. in the package.conf file no modifications reqd assuming that this is a normal LVM SG package.
5)make sure that all the warnings and the Errors if occuring the cmcheckconf of the cluster ASCII file are properly addressed before doing the cmapplyconf.
6)but i am not too sure as you are making a cmdeleteconf -c cluster, i think you might need to a cmcheckconf and cmapplyconf for all the packages using cmcheckconf -P
7) Assuming the point 6 , i think you can easily do without the step that you have mentioned in for the cmdeleteconf -c clutser.
You do not require that. and also if you oit that you will sure not have to di a cmcheckconf and cmapplyconf of the package conf files, assuming also that vg01 is not being used by any package.
just few thoughts
sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 10:48 AM
02-13-2009 10:48 AM
Re: Changing the cluster lock disk
First identify the cluster lock disk and then edit the cluster configuration file and change accordingly to reflect the new cluster lock disk.
do a cmcheckconf using the configuration file and then cmapplyconf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 10:52 AM
02-13-2009 10:52 AM
Re: Changing the cluster lock disk
Follow below steps to change cluster lock disk
Frist node
# pvcreate /dev/rdsk/c_t_d_
# mkdir /dev/vglocknew
# mknod /dev/vglocknew/group c 64 0x0100000
# vgcreate /dev/vglocknew /dev/dsk/c_t_d_"
# vgexport -pvs -m map.vglocknew /dev/vglocknew
# rcp map.vglocknew SECONDNODE:/etc/lvmconf
Second Node
# mkdir /dev/vglocknew
# mknod /dev/vglocknew/group c 64 0x0100000
# cd /etc/lvmconf
# vgimport -vs -m map.vglocknew /dev/vglocknew
# vgchange -a y vglocknew
# vgchnage -a n vglocknew
# cmgetconf cluster.ascii
# cp cluster.ascii cluster.ascii.backup
Edit following parameter in the ascii file.
FIRST_CLUSTER_LOCK_VG /dev/vglocknew
FIRST_CLUSTER_LOCK_PV /dev/dsk/c_t_d_
FIRST_CLUSTER_LOCK_PV /dev/dsk/c_t_d_
VOLUME_GROUP /dev/vglocknew
# cmcheckconf -C /etc/cmcluster/cluster.ascii"
Bring all package down
# cmhaltpkg
Bring cluster down.
# cmhaltcl -v
Activate the lock VG.
# vgchange -a y vglocknew
Apply new configuration file.
# cmapplyconf -f -C /etc/cmcluster/cluster.ascii"
# vgchange -a n vglocknew
Start the cluster.
# cmruncl -v
# vgchnage -c y /dev/vglocknew"
#cmrunpkg
Thx,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 11:21 AM
02-13-2009 11:21 AM
Re: Changing the cluster lock disk
Johnson's response raises these questions.
Do I need a vgchange -a n /dev/vg01 after I do the cmapplyconf.
And do I then need to vgchange -c y /dev/vg01 after I start the cluster with cmruncl?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 11:32 AM
02-13-2009 11:32 AM
Re: Changing the cluster lock disk
Do I need a vgchange -a n /dev/vg01 after I do the cmapplyconf.
>>YES, BECOZ , I would like the cluster to activate the VG , automatically when i start the Cluster,<<
And do I then need to vgchange -c y /dev/vg01 after I start the cluster with cmruncl?
Yes, In order to activate the /dev/vg01 has cluster aware disk.
(please refer man page vgchange -c for more info )
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 11:37 AM
02-13-2009 11:37 AM
Re: Changing the cluster lock disk
"You need do vgchange -c y /dev/vg01
before you start Cluster using cmruncl command"
otherwise the Cluster will not start , becoz you haven't marked the disk has Cluster aware disk"
Hope this Clarify Your Questions
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2009 11:40 AM
02-13-2009 11:40 AM
Re: Changing the cluster lock disk
It depend on the release too, on SG 11.18 you can change the lock disk online
http://docs.hp.com/en/B3936-90122/ch08s03.html
With older release, if you have access to hp support you have cminitlock utility to change the lock disk online. I test it in the past, and the utility do the job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2009 02:22 AM
02-14-2009 02:22 AM
Re: Changing the cluster lock disk
apart From that when you do a cmcheckconf and the cmapplyconf the Lock VG needs to be active(in exclusive or Normal mode)
The other part is that is that for a VG that is mentioned in the Volume_section of the Cluser ASCII file, when you do a cmapplyconf, SG maakes that Cluster Aware if you have not done that previously using the vgchange -c y
regards
sujit