Solaris Zones
Solaris Zones
html
Cloud Hosting Tired of traditional hosting? 100% uptime, 247 service monitoring usonyx.net/cloud-machine
VPS in 20 min or less Starting at 8.95. cPanel available. Choose from Linux or Windows www.InterServer.net
Free Downloadable Videos You Must Own The Most Viewed End-Time Bible Prophecy Videos Now www.WorldsLastChance.com
Solaris zones
In this example, I create, boot, and configure a sparse zone named osummdo001.
# zonecfg -z osummdo001
osummdo001: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:osummdo001> create
By default, the zone will not boot when the global zone (system) boots, so I change that behavior.
According to the System Administration Guide: Solaris Containers-Resource Management and Solaris
Zones (November 2006), the zonepath should not be on ZFS.
The ZFS dataset zfspool/osummdo001/oracle will be made available as /files0/oracle within the zone.
zonecfg:osummdo001> add fs
zonecfg:osummdo001:fs> set dir=/files0/oracle
zonecfg:osummdo001:fs> set special=/zfspool/osummdo001/oracle
zonecfg:osummdo001:fs> set type=lofs
zonecfg:osummdo001:fs> end
I then boot the zone, and login on the zone's console to complete zone system identification.
1 of 2 5/3/11 11:50 AM
Solaris zones http://www.brandonhutchinson.com/Solaris_zones.html
# zonecfg -z osummdo001
zonecfg:osummdo001> add fs
zonecfg:osummdo001:fs> set dir=/oradata1
zonecfg:osummdo001:fs> set special=/zfspool/osummdo001/oradata1
zonecfg:osummdo001:fs> set type=lofs
zonecfg:osummdo001:fs> end
zonecfg:osummdo001> commit
zonecfg:osummdo001> end
The above commit is unnecessary, as the changes would have automatically been committed when typing end.
As of this writing, I do not know of any way to add the file system to a running zone. Rebooting the zone will cause the file
system to be added to the zone.
More information:
Solaris Zone Management
Back to brandonhutchinson.com.
2 of 2 5/3/11 11:50 AM