Zone SMF Dependencies

The set of Oracle Solaris Service Management Facility (SMF) Fault Management Resource Identifiers (FMRIs) that establish the dependencies for the zone are defined in the smf-dependency resource. The dependencies are comprised of name, fmri, and grouping properties. The dependencies of the svc:/system/zones:default service are as follows:

require_all Dependencies
  • svc:/system/filesystem/local:default
  • svc:/milestone/name-services:default
  • svc:/milestone/devices:default
  • svc:/milestone/network:default
optional_all Dependencies
  • svc:/system/pools:default
  • svc:/system/zones-monitoring:default

The set of SMF FMRIs that make up the zone dependencies is defined in the smf-dependency resource in the zonecfg command.

For more information about setting dependencies, see Chapter 1, Non-Global Zone Configuration Command and Resources in Oracle Solaris Zones Configuration Resources.

Example 5-1 Setting SMF Dependencies on a Zone

Dependency descriptions:

  • require_all: svc:/application/list:default

  • require_any: svc:/system/zones/zone:appfirewall

  • require_any: svc:/3rdparty/my-firewall:default

  • exclude_all: svc:/system/zones/zone:dataload

global$ pfbash zonecfg -z my-zone
zonecfg:my-zone> add smf-dependency
zonecfg:my-zone:smf-dependency> set fmri=svc:/application/list:default
zonecfg:my-zone:smf-dependency> end
zonecfg:my-zone> add smf-dependency
zonecfg:my-zone:smf-dependency> set name=firewall
zonecfg:my-zone:smf-dependency> set fmri=svc:/system/zones/zone:appfirewall
zonecfg:my-zone:smf-dependency> set grouping=require_any
zonecfg:my-zone:smf-dependency> end
zonecfg:my-zone> add smf-dependency
zonecfg:my-zone:smf-dependency> set name=firewall
zonecfg:my-zone:smf-dependency> set fmri=svc:/3rdparty/my-firewall:default
zonecfg:my-zone:smf-dependency> end
zonecfg:my-zone> add smf-dependency
zonecfg:my-zone:smf-dependency> set fmri=svc:/system/zones/zone:dataload
zonecfg:my-zone:smf-dependency> set grouping=exclude_all
zonecfg:my-zone:smf-dependency> end
zonecfg:my-zone> exit

For more information about the smf-dependency resource, see Oracle Solaris Zones Configuration Resources and the zonecfg(8) man page.

Note:

Failures during the infrastructure setup of a particular zone will place that zone in the maintenance state. Use the svcadm clear command on a zone instance to cause the zones delegated restarter to retry failed zoneadm boot or zoneadm attach operations for that zone.