Assigning the resource into zones in simple way....
Mountpoint assignment:
The following
code gives an example of how these properties are used. The bold
type
indicates the
keystrokes entered at the keyboard.
zonecfg:apps> add fs
zonecfg:apps:fs> set
dir=/testmount
zonecfg:apps:fs> set
special=/dev/dsk/c0t1d0s0
zonecfg:apps:fs> set
raw=/dev/rdsk/c0t1d0s0
zonecfg:apps:fs> set
type=ufs
zonecfg:apps:fs> add
options [logging, nosuid]
zonecfg:apps:fs> end
This code example
specifies that /dev/dsk/c0t1d0s0 in
the global zone is to be
mounted on
directory /testmount in the non-global zone and the raw
device
/dev/rdsk/c0t1d0s0 is
the device to fsck before attempting the mount.
CPU
and Memory Resource assignment:
For Zone2 assigning 2 CPU and 1G RAM.
Zonecfg:app>add
dedicated-cpu
Zonecfg:app:dedicated-cpu>add
capped-cpu
Zonecfg:app>set ncpus=2
Zonecfg:app>end
Zonecfg:app>add capped-memory
Zonecfg:app:capped-memory>set physical=1G
Zonecfg:app>end
Zonecfg:app>set ncpus=2
Zonecfg:app>end
Zonecfg:app>add capped-memory
Zonecfg:app:capped-memory>set physical=1G
Zonecfg:app>end
No comments:
Post a Comment