Tuesday, September 4, 2012

AIX: How to add physical volume / LUN to shared enhanced concurrent volume group on HACMP / PowerHA cluster

Here are steps how to add physical volume / LUN to shared enhanced concurrent volume group on HACMP cluster.

1. Create and map LUNs on Storage to all nodes which belongs to volume group.

2. Run cfgmgr on node where VG state is active permissions of VG is read/write.

Let's call this node as primary.

How to determine which node is primary?

lsvg XXXvg | egrep "STATE|PERMISSION"
VG STATE:           active                   PP SIZE:        512 megabyte(s) 
VG PERMISSION:      read/write               TOTAL PPs:      6188 (3168256 megabytes)

3. Assign PVID on physical volume on primary node.


chdev -l hdisk# -a pv=yes

4. Run cfgmgr on all passive nodes.


5. Extend VG on primary node


extendvg -f VGname pv_name1 pv_nameN

6. Check VG size on all nodes so that size has to be same on all nodes

lsvg VGname

You can also use C-SPOC but in my case PowerHA 6.1 SP8 does not work for extending VG with mirror pools - seems to be a bug.






No comments:

Post a Comment