Creating a zone with root on shared storage

Last published : Jun 10, 2026
Create a zone with root which points to the shared disk's location on each node in the cluster. The file system for application data is on a shared device and is either the loopback type or the direct mount type. For a direct mount file system, run the mount command from the global zone with the mount point specified as the complete path that starts with the zone root. For a loopback file system, add it into the zone's configuration before you boot the zone.
To create a zone root on shared disks on each node in the cluster
  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 same disk group as the file system that contains the application data.
  2. Configure the zone with the zonecfg command.
    zonecfg -z newzone
    zonecfg:newzone> create
    1. Set the zonepath parameter to specify a location for the zone root.
    zonecfg:newzone> set zonepath=/export/home/newzone
  3. Add network interface to zone configuration. This is required for non-global zone to communicate with had running in global zone.
    zonecfg:newzone> add net
    zonecfg:newzone:net> set physical=bge1
    zonecfg:newzone:net> set address=192.168.1.10
    zonecfg:newzone:net> end
    1. Make sure global zone can be pinged from non-global zone with global zone hostname. You may need to add global zone hostname entry to /etc/hosts file inside non-global zone or enable DNS access from inside the non-global zone.
    2. If your application data resides on a loopback mount file system, create the loopback file system in the zone.
    3. Exit the zonecfg configuration.
    zonecfg> exit
  4. Create the zone root directory.
    mkdir zonepath
    1. Set permissions for the zone root directory.
    chmod 700 zonepath
  5. Repeat step 2 to step 9 on each system in the service group's SystemList.
  6. Mount the file system that contains the shared storage on one of the systems that share the storage to the directory specified in zonepath.
  7. Run the following command to install the zone on the system where the zone path is mounted.
    zoneadm -z newzone install
    1. If the application data is on a loopback file system, mount the file system containing the application's data on shared storage.
    2. Boot the zone.
    zoneadm -z newzone boot
  8. If the application data is on a direct mount file system, mount the file system from the global zone with the complete path that starts with the zone root.