Sun Cluster Data Service for Samba Guide for Solaris OS

ProcedureExample: Configure the Failover Zone

In this task you will install two Solaris Containers on node Vigor5.

  1. Create a non-global zone to be used as the failover zone

    If a whole root non-global zone is required you must specify create -b.

    Vigor5# cat > /tmp/failover <<-EOF
    set zonepath=/zones/failover
    set autoboot=false
    add inherit-pkg-dir
    set dir=/opt/SUNWscsmb
  2. Configure the non-global failover zone, using the file you created.

    Vigor5# zonecfg -z failover -f /tmp/failover
  3. Install the zones.

    Vigor5# zoneadm -z failover install
  4. Boot the zone.

    Vigor5# zoneadm -z failover boot
  5. Log in to the zone and complete the zone system identification.

    Open another window and issue the following command.

    Vigor5# zlogin -C failover
  6. Close the terminal window and disconnect from the zone console.

    After you have completed the zone system identification, disconnect from the window you previously opened.

    Vigo5# ~.
  7. Create local mount points for the HA-ZFS file system with in the zones.

    Vigor5# zlogin failover mkdir /local
  8. Create the Samba Fault Monitor Userid in the zones.

    Vigor5# zlogin failover groupadd -g 1000 samba
    Vigor5# zlogin failover useradd -u 1000 -g 1000 -s /bin/false homer
  9. Halt the zone.

    Vigor5# zlogin failover halt