Creating zone root on the shared disks

Use the following steps to create a disk group on shared storage, mount the shared file system, and create the zone.

The file system, typically for data that is on a shared device, is either the loop back type or direct mount. Choose one of the procedures that follow.

To create zone root on shared disks with data using loop back file system

  1. Create a file system on shared storage for the zone root. The file system that is to contain the zone root may be in the disk group as the file system containing the shared data.
  2. On the system where the file system is mounted, create the zone with the zonecfg command.

    zonecfg -z <zonename>

  3. Set the zonepath parameter to specify a location for the zone root.

    zonecfg:newzone> set zonepath=/export/home/newzone

  4. Create a loop back file system in the zone.
  5. Set a virtual IP address of the system to be the IP address of the zone and define the device name for the NIC associated with the IP address.

zonecfg> add net

zonecfg:net>set physical=<device_name>

zone cfg:net>set address=<ip address>

  1. Exit the zonecfg configuration.

zonecfg> exit

  1. Create the actual zone root directory.

mkdir <zonepath>

  1. Set permissions for the zone root directory.

    chmod 700 <zonepath>

  2. Repeat the previous zone creation steps on each other system in the service group's SystemList.
  3. Mount the file system containing shared storage on one of the systems that share the storage.
  4. Install the non-global zone.

zoneadm -z <zonename> install

  1. List the zones, including the global zone.

    zoneadm list -cv

  2. On the same system, mount the file system containing the application's data on the shared storage. Use the mount point used in the global zone.
  3. Boot the zone.

zoneadm -z <zonename> boot

  1. Make sure the zone created from the first system is in the "installed" state on all other systems in the service group's System List.

To create zone root on shared disks with data using direct mount file system

  1. Create a file system on shared storage for the zone root. The file system that is to contain the zone root may be in the disk group as the file system containing the shared data.
  2. On the system where the file system is mounted, create the zone with the zonecfg command.

    zonecfg -z <zonename>

  3. Set the zonepath parameter to specify a location for the zone root.

zonecfg:newzone> set zonepath=/export/home/newzone

  1. Set a virtual IP address of the system to be the IP address of the zone and define the device name for the NIC associated with the IP address.

zonecfg> add net

zonecfg:net>set physical=<device_name>

zone cfg:net>set address=<ip address>

  1. Exit the zonecfg configuration.

zonecfg> exit

  1. Use the zonecfg command to display information about the zone's properties and their values.
  2. Create the actual zone root directory

mkdir <zonepath>

  1. Set permissions for the zone root directory.

    chmod 700 <zonepath>

  2. Repeat step 1 to step 8 on each other system in the service group's SystemList.
  3. Mount the file system containing on shared storage on one of the systems that share the storage.
  4. Install the non-global zone.

zoneadm -z <zonename> install

  1. List the zones, including the global zone.

    zoneadm list -cv

  2. Boot the zone.

zoneadm -z <zonename> boot

  1. On one system, mount the file system containing the application's data on shared storage.
  2. Make sure the zone created from the first system is in the "installed state" on all other systems in the service group's System List.