Automate IO fencing keys re-registration of DMP devices inside LDOM after migration
Need to manually run “vxdmpadm pgrrereg” command inside the LDOM with fencing configured in DMP mode after live migration .
When a LDOM is configured with fencing in DMP mode and the LDOM is live migrated to another host, the initiator for the guest VM changes. The IO fencing keys that were registered from the old initiator needs to be re-registered from the new initiator.
The user needs to manually execute “vxdmpadm pgrrereg” command inside the LDOM that was migrated.
Configure a parallel service group in the LDOM with an application resource. Use the scripts provided in this technote to configure the application resource. Copy the scripts locally to all nodes in the cluster. The scripts requires the virtinfo binary to be present inside the LDOM to detect if the LDOM has been migrated.
Example: The VCS cluster configured inside the LDOM consists of two nodes guestA and guestB. The scripts are copied to /pgrapp directory.
When the LDOM is migrated from one host to another, the monitor script will detect the change in the host using the virtinfo command and execute the “vxdmpadm pgrrereg” command. If any errors are encountered it will be displayed in the VCS engine logs.