Database Reference
In-Depth Information
zone1pool/zone1/app 31K 15.0G 31K legacy
zone1pool/zone1/oradata 31K 30.0G 31K legacy
zone1pool/zone1/root 31K 8.00G 31K /zones/zone1/root
root@solaris:~#
After the storage is provisioned, configure the zone. To do so, start zonecfg and supply the desired zone name
as shown:
root@solaris:~# zonecfg -z zone1
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1> create
create: Using system default template 'SYSdefault'
zonecfg:zone1> set zonepath=/zones/zone1/root
zonecfg:zone1> set autoboot=true
zonecfg:zone1> set bootargs="-m verbose"
zonecfg:zone1> set limitpriv="default,sys_time"
zonecfg:zone1> set scheduling-class=FSS
zonecfg:zone1> add fs
zonecfg:zone1:fs> set type=zfs
zonecfg:zone1:fs> set special=zone1pool/zone1/app
zonecfg:zone1:fs> set dir=/u01/app
zonecfg:zone1:fs> end
zonecfg:zone1> add fs
zonecfg:zone1:fs> set type=zfs
zonecfg:zone1:fs> set special=zone1pool/zone1/oradata
zonecfg:zone1:fs> set dir=/u01/oradata
zonecfg:zone1:fs> end
zonecfg:zone1> remove anet
Are you sure you want to remove ALL 'anet' resources (y/[n])? Y
zonecfg:zone1> add anet
zonecfg:zone1:anet> set linkname=net0
zonecfg:zone1:anet> set lower-link=auto
zonecfg:zone1:anet> end
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> exit
Although this is a very basic example, it already looks quite complex, but do not despair: it's surprisingly intuitive!
The commands you execute create a new zone. Set the zone's “root” file system to the previously created ZFS data
store. Then set the scheduler class and a few more attributes to make the zone play nice with others before adding the
file systems for Oracle. The anet resource defines the automatic network device and is responsible for dynamically
adding the necessary virtual network card when the zone starts. In previous versions of Solaris, you had to pre-create
the VNIC before starting the zone—life has been made easier. Once the configuration information is added, verify the
settings and, finally, commit it. In the following step, you then install the zone. This requires an Internet connection or
a local IPS repository in the network.
root@solaris:~# zoneadm -z zone1 install
A ZFS file system has been created for this zone.
Progress being logged to /var/log/zones/zoneadm.20120706T093705Z.zone1.install
Image: Preparing at /zones/zone1/root/root.
Search WWH ::




Custom Search