Storix Software SBAdmin Solaris Zones Guide User Manual
Page 3

Storix System Backup Administrator
3
Solaris Zones User Guide
Copyright © 2014 Storix, Inc.
Storix is a registered trademark of Storix, Inc in the USA. SBAdmin is a trademark of Storix, Inc in the USA and other countries
/zones/z1/root/zones/z1/root/var
rpool/zones/z1/rpool/export
/zones/z1/root/export
rpool/zones/z1/rpool/export/home
/zones/z1/root/export/home
The highlighted lines above illustrate that the /var filesystem will be mounted out of place. The reason the
mounpoint property is as seen above is because this is the mountpoint property for the ZFS dataset at the
time of the backup. This property was applied to the dataset at the time of the recovery. It is necessary for
you to change the property using the following commands:
root@solaris:~# zfs set zoned=off
rpool/zones/z1/rpool/ROOT/solaris/var
root@solaris:~# zfs set mountpoint=/zones/z1/root/var
rpool/zones/z1/rpool/ROOT/solaris/var
Now that the mountpoint property is set properly, the zone must be detached. To detach a zone, the
following command should be used (replacing “z1” with the actual zone name).
root@solaris:~# zoneadm –z z1 detach
Once the zone has been detached, it may be necessary to remove empty directories from the zone’s
root directory prior to re-attaching it. The directories are present based on the mountpoint properties
applied at the time of recovery. The following command shows the “z1” zonepath.
root@solaris:~# zoneadm list –cv
ID NAME
STATUS
PATH
BRAND IP
0 global
running
/
solaris shared
- z1
installed
/zones/z1
solaris excl
The non-global zone’s root directory will be the next subdirectory in the path. Ensure there are no files or
directories in the directory and remove any subdirectories with the following command. Empty directories
will prevent the ZFS dataset from mounting during the attach.
root@solaris:~# rm –rf /zones/z1/root/*