|SPARSE(7)||Standards, Environments, and Macros||SPARSE(7)|
sparse — zone
brand for running a reduced copy of OmniOS with linked packages
The sparse brand uses the brands(7) framework to provide an environment for running a small copy of Omnios, with system software packages linked to those installed in the global zone.
A sparse zone is an lipkg(7) zone where several of its filesystems are directly shared with the global zone. This makes a sparse zone very small indeed (and quick to build) but they are only suitable for software packages that do not need to install files under shared filesystems such as /usr; those being read-only within the zone. Like ipkg(7) zones, sparse zones can have multiple boot environments, created either locally within the zone or managed automatically from the global zone as BEs are created/destroyed there.
Given their small size, low overhead and ease of maintenance, it is common to use sparse zones for running individual services such as an NTP, DHCP or DNS server.
create -t sparse set zonepath=/zones/testzone set autoboot=true add net set physical=vnic0 set allowed-address=192.168.0.2/24 set defrouter=192.168.0.1 set global-nic=auto end add attr set name=dns-domain set type=string set value=example.com end add attr set name=resolvers set type=string set value=192.168.12.1,192.168.13.1 end
Within a sparse zone, the /usr, /lib and /sbin directories are read-only.
sparse zone boot environments are linked to the global zone boot environment under which they were created. This means that rolling back the global zone to a previous boot environment will also roll back the zone. For this reason, zone data which should be shared across boot environments should be allocated to a dedicated dataset.
|March 25, 2019||OmniOS|