Configuring multiple zone resources using same VCS user for password less communication

Last published : Jun 10, 2026
The hazonesetup utility helps you configure multiple zones under VCS, which are using same VCS user for password less communication between non-global zone and global zone.
Consider an example in a two-node cluster (sysA and sysB). Zones local-zone1 and local-zone2 are configured on both the nodes.
To configure zones under VCS control in failover mode using the hazonesetup utility when the zone root is on local storage
  1. Boot the local zones on first node outside VCS.
    sysA# zoneadm -z local-zone1 boot
    sysA# zoneadm -z local-zone2 boot
    1. Run the hazonesetup utility with the correct arguments on the first node. This adds failover zone service group, zone resource in VCS configuration, configures same VCS user (zone_user) to be used for password less communication between non-global zone, and global zone.
    sysA# hazonesetup -g zone1_grp -r zone1_res -z local-zone1\
    -u zone_user -p password -a -s sysA,sysB
    sysA# hazonesetup -g zone2_grp -r zone2_res -z local-zone2\
    -u zone_user -p password -a -s sysA,sysB
  2. Switch the zone service group to next node in the cluster.
    sysA# hagrp -switch zone1_grp -to sysB
    sysA# hagrp -switch zone2_grp -to sysB
    1. Run the hazonesetup utility with correct arguments on the node. The hazonesetup utility detects that the zone service group, zone resource are already present in VCS configuration, and update the configuration accordingly for password-less communication.
    sysB# hazonesetup -g zone1_grp -r zone1_res -z local-zone1\
    -u zone_user -p password -a -s sysA,sysB
    sysB# hazonesetup -g zone2_grp -r zone2_res -z local-zone2\
    -u zone_user -p password -a -s sysA,sysB
  3. Repeat step 3 and step 4 for all the remaining nodes in the cluster.
Related information