Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

Options for Uninstalling Zones

For the zoneadm uninstall subcommand, the following two ptions are available:

–x force-zpool-destroy=zpoolname Option

This option instructs the zones framework to destroy a ZFS storage pool while uninstalling a zone. This mimics the behavior of zpool destroy poolname command. This option takes a zpoolname list:

force-zpool-destroy=zpoolname{,zpoolname,zpoolname,...}

This option's scope is limited to the ZFS storage pools specified in the comma-separated list of zpool names, or specified by using the option multiple times, for example:

 -x force-zpool-destroy=rpool,pool2,pool3
-x force-zpool-destroy=pool1 -x force-zpool-destroy=pool2

The name arguments correspond to the name property specified in the zone configuration for the desired zpool resource. The name rpool is used to specify the ZFS storage pool associated with the rootzpool resource.

The –x force-zpool-destroy-all Option

This option instructs the zones framework to destroy the ZFS storage pools of all zpool and rootzpool resources specified in the zone configuration when uninstalling the zone.

Note that the options to force the zones framework to destroy ZFS storage pools when uninstalling a zone should be used with caution. Even though you might want to uninstall a zone in the current, active boot environment (BE), there could be other zone boot environments (ZBEs) within this ZFS storage pool that belong to currently inactive boot environments. Destroying the ZFS storage pool associated with a rootzpool resource will make the zone unavailable to all boot environments that carry this zone in the installed state. For more information about zone boot environments, refer to the beadm(1M) man page.