Unixwerk - How To Add A New VG To An Active HACMP Resource Group
Unixwerk - How To Add A New VG To An Active HACMP Resource Group
Unixwerk - How To Add A New VG To An Active HACMP Resource Group
html
unixwerk H o w to Ad d a N ew V G to a n Acti ve H AC MP R es o u r ce G r o u p
Contents
AIX
1. Introduction
BSD 2. Identify New Disks
3. Create a Concurrent-Capable VG
HP-UX 4. Create the Filesystem(s)
5. Import on the Other Node
Linux 6. Add the VG to the HACMP Resource Group
7. Final Synchronization of the Cluster
Solaris
A. Related Information
Others
Un*x
1. Introduction
Topics
This article describes how to add a new volume group to an existing Resource Group on an active HACMP cluster.
The two commands above change all disks not belonging to a volume group. If your cluster owns disks for heartbeat or raw volumes not belonging
to a volume group you cannot use these one-liners.
Since the reserve policy is stored in the ODM and not on the disk we have to set it on the other node as well:
nodeB# cfgmgr
nodeB# lspv | awk '$3 ~ /^None$/ {print "chdev -l "$1" -a reserve_policy=no_reserve"}' | sh
For correct mirroring we also need to identify the origin of the disks we found. In our example we find these disks:
3. Create a Concurrent-Capable VG
Before we actually create the new VG we need to find a major number that is available on both nodes.
nodeB# lvlstmajor
44..97,108,109,111..118,128..138,148..158,168..178,188,189,192..198,203...
The command lvlstmajor lists all free major numbers on a system. We run the command on both nodes and pick a number that is free all nodes.
In our example we pick 203. We use this number when we create the new VG called datavg05:
nodeA# mkvg -C -V 203 -S -s 32 -y datavg05 hdisk56 hdisk57 hdisk58 hdisk59 hdisk60 hdisk61 hdisk62 hdisk63
nodeA# varyonvg datavg05
Please note: The volume groups we create are enhanced-concurrent-capable. By default these volume groups have the following properties:
Quorum is on, auto-varyon is off. However, quorum should be set to "off" in a two datacenter setup:
The same major number for the volume groups' device files is only needed if your cluster acts as a nfs server. However, it's good practice to keep the volume groups' major number in
sync across all nodes.
1 of 3 6/9/2013 12:35 PM
unixwerk: How to Add a New VG to an Active HACMP Resource Group http://www.unixwerk.eu/aix/addvg.html
We check:
Now we can add the mirror to the LV and create a filesystem on top of it:
Since we set Superstrictness and an Upperbound of 4 we can now increase the filesystem to the final size:
Once all filesystems are created we unmount everything we just created and close the volume group:
The default value for the maximum LPs per LV is 512 when you create a small LV. Thus changing the maximal number of LPs for a LV is needed before we can extend the filesystem.
On the other node we need to run the configuration manager to scan for disks and to set the reserve_policy to no_reserve:
nodeB# cfgmgr
nodeB# lspv | awk '$3 ~ /^None$/ {print "chdev -l "$1" -a reserve_policy=no_reserve"}' | sh
Now we are ready to import the new Volume Groups into the other node.
Finally we add the new VG to the HACMP resource group (RG01 in our example):
2 of 3 6/9/2013 12:35 PM
unixwerk: How to Add a New VG to an Active HACMP Resource Group http://www.unixwerk.eu/aix/addvg.html
________________________________________________________________________________________________________________
A. Related Information
AIX 6.1 Information Center > PowerHA SystemMirror > HACMP Version 6.1
Also on unixwerk
HACMP: Extend a Mirrored Filesystem
HACMP: Cluster Commandline
How to Add a New Resource Group to an Active Cluster
How to Add a Node to an HACMP Cluster
How to Remove a Node from an HACMP Cluster
Setup a Two-Node Cluster with HACMP
3 of 3 6/9/2013 12:35 PM