Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hacmp question

Status
Not open for further replies.

alexia32

Technical User
Jul 31, 2007
156
NZ
hello

I need to migrate some disks to new ones on a cluster HACMP.
I suppose I can use migratepv command.
First thing I will do is add those new disks to the cluster via CSPOC and then just run migratepv.
I didn;t find anything on the man migratepv or ibm about hacmp and disk migration

Let me know if this is not the good way to do

I dont; have outages allowed and they don;t want to do failover failback so all needs to be done online without interruption impact cluster...

Thanks in advance
cheers
Al.
 
Hi Al,

I don't see any problems with your process.

As long as you add the disk to the cluster then it will be treated just as any normal disk migration with migratepv!

Code:
1.To move physical partitions from hdisk1 to hdisk6 and hdisk7, enter: 

migratepv hdisk1 hdisk6 hdisk7Physical partitions are moved from one physical volume to two others within the same volume group.

2.To move physical partitions in logical volume lv02 from hdisk1 to hdisk6, enter: 
migratepv -l lv02 hdisk1 hdisk6 

Only those physical partitions contained in lv02 are moved from one physical volume to another.


Regards,
Khalid
 
I have a similar migration in some days, and what we were planning is to use cspoc menus to mirror and unmirror, instead of migratepv.

We've been told that if you just do migratepv on one node, the other node is not aware of possible changes. If you make any changes on a shared vg from command line (instead of hacmp menu) you should do varyonvg -b (to break disk locks) on the active node, and then importvg -L (to learn changes) on the passive node.

Not sure about all this, but it's what we've been told.
 

I think you can also "Synchronize a Shared Volume Group Definition" after migratepv... (I think final reducevg would do it as well)

smitty cl_updatevg.hdr

indeed, there are no cspoc dedicated migratepv script co it would be ok to use common migratepv...


# grep "' cl_" /usr/sbin/cluster/cspoc/smitlvm
# $1 = '-1' cl_chlv
# '-2' cl_chfs
# '-6' cl_lslv
# '-7' cl_chlv dialog
# '-8' cl_rmlv
# '-9' cl_rmfs
# '-10' cl_chfs
# '-11' cl_lspvsmit
# '-12' cl_extendvg
# '-13' cl_reducevg
# '-14' cl_importvg
# '-15' cl_mirrorvg
# '-16' cl_unmirrorvg
# '-17' cl_mklv
# '-18' cl_extendlv
# '-19' cl_mklvcopy
# '-20' cl_rmlvcopy
# '-21' cl_syncvg
# '-23' cl_lsfreedisks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top