While Mirror pool is an AIX 6 concept, PowerHA introduce an additional site location.
Mirror pool is only avalaible on scalable VG (you can convert with chvg -G <VG_name>
Important: To use HACMP site (and also mirror pools), you have to patch HACMP at level 6.1 SP6 minimum
# smitty hacmp --> Extended Configuration --> Extended Topology Configuration --> Configure HACMP Sites --> Add a Site
Add Site * Site Name [howald] * Site Nodes cltesth
# smitty hacmp --> System Management (C-SPOC) --> Storage --> Physical Volumes --> Configure Disk/Site Locations for Cross-Site LVM Mirroring --> Add Disk/Site Definition for Cross-Site LVM Mirroring Choose a site, and associate all disks for this location
Add Disk/Site Definition for Cross-Site LVM Mirroring * Site Name howald * Disks PVID 00cf4dc38a509995 00cf4dc38a509995 00cf4db3864e3eff 00cf4db3864e3eff
# smitty hacmp --> System Management (C-SPOC) --> Storage --> Logical Volumes --> Change a Logical Volume Choose an active VG on the node you want to change
Change a Logical Volume on the Cluster Volume Group Name RG2vg Resource Group Name cl6avaloqpreRG2 * Logical volume NAME avapre2lv ....... Allocate each logical partition copy superstrict + on a SEPARATE physical volume? ....... + Mirror Pool for First Copy mp_howald + Mirror Pool for Second Copy mp_royal + Mirror Pool for Third Copy None +
Mirror pools can only be associated to disks without open LV, else you have to umount the filesystems, or move it to another disk.
# smitty hacmp --> System Management (C-SPOC) --> Storage --> Physical Volumes --> Manage Mirror Pools for Volume Groups --> Add Disks to a Mirror Pool If not create, you have to choose a name for the mirror pool (one per site)
Add Disks to a Mirror Pool * Mirror Pool [mp_howald] VOLUME GROUP name RG2vg Resource Group Name cltestRG2app_group Node Names cltesth,cltestr * Disks to Add to the Mirror Pool [00cf4dc38a509995]
# smitty hacmp --> System Management (C-SPOC) --> Storage --> Volume Groups --> Mirror a Volume Group
Mirror a Volume Group * VOLUME GROUP name RG1vg Resource Group Name cltestRG1app_group Node List cltesth,cltestr Reference node PHYSICAL VOLUME names Mirror sync mode Background Number of COPIES of each logical 2 partition Keep Quorum Checking On? no Create Exact LV Mapping? no Mirror Pool for First Copy [mp_howald] Mirror Pool for Second Copy [mp_royal] Mirror Pool for Third Copy []
# smitty hacmp --> System Management (C-SPOC) --> Storage --> Volume Groups --> Set Characteristics of a Volume Group --> Change/Show characteristics of a Volume Group
Change/Show characteristics of a Volume Group * VOLUME GROUP name RG1vg Resource Group Name cltestRG1app_group Node Names cltesth,cltestr * Activate volume group AUTOMATICALLY no at system restart? * A QUORUM of disks required to keep the volume no group on-line ? Enable Volume Group for Fast Disk Takeover? yes Change to big VG format? no Change to scalable VG format? no LTG Size in kbytes 256 Set hotspare characteristics n Set synchronization characteristics of stale n partitions Max PPs per VG in units of 1024 32 Max Logical Volumes 256 Mirror Pool Strictnes Superstrict
# smitty hacmp --> System Management (C-SPOC) --> Storage --> Volume Groups --> Set Characteristics of a Volume Group --> Enable/Disable a Volume Group for Cross-Site LVM Mirroring Verification
lsvg -m RG1vg Logical Volume Copy 1 Copy 2 Copy 3 RG1testlv mp_howald mp_royal None loglv01 mp_howald mp_royal None tsmRG1lv mp_howald mp_royal None lv01 mp_howald mp_royal None testownlv mp_howald mp_royal None imperva1lv mp_howald mp_royal None aaalv mp_howald mp_royal None
# smitty hacmp --> Extended Configuration --> Extended Resource Configuration --> HACMP Extended Resource Group Configuration --> Change/Show Resources and Attributes for a Resource Group - Select a ressource group
Change/Show All Resources and Attributes for a Custom Resource Group Resource Group Name cltestRG1app_group Inter-site Management Policy ignore Participating Nodes from Primary Site cltesth Participating Nodes from Secondary Site cltestr Startup Policy Online On Home Node Only Fallover Policy Fallover To Next Priority Node In The List Fallback Policy Never Fallback Service IP Labels/Addresses [cltestRG1] Application Servers [cltestRG1app] Volume Groups [RG1vg ] Use forced varyon of volume groups, if necessary false --> To set to true Automatically Import Volume Groups false