DevOps

Thursday, 30 September 2010

ZONES
It provides a virtual operating system environment
CONTAINERS
Called resource management
Resource Management
Resource Daemons allows you to regulate how much physical memory is used by a project by --- the overall mount that can be used
Types of zones
Global zone only one on a physical ----
Non-Global zone 8192 non-global zones can be create simply this is referred as zone
Zone has six states
Configured
A zone is in this state when the configuration has been completed and storage has been committed
Incomplete
A zone is set to this state during an install or uninstall operation upon completion of the operation, it changes to the correct state
Installed
A zone in this state has a confirmed configuration
Ready
Zones virtual platform is establish the kernel creates the zsched process, the
network interfaces are plumbed and file systems are mounted
System also assigns a zone id at this state but are no processes associated with this
zone
Running
A zone enters this state when the first user process is created. This is the normal state for an operation zone
Shutting down
A zone cannot shutdown for any reason, then it will also displays the state
Configuration of ZONES
Create a filesystem with 3Gb
# mkdir /zonedir
# mount /dev/dsk/c0t0d0s4 /zonedir
# zonecfg –z
zonecfg:zone> create
zonecfg:zone> set autoboot=true
zonecfg:zone> set zonepath=/zonedir
zonecfg:zone> add net
:zone net> set physical=hme0
zone net> set address = 200.200.0.1
zone:net> end
zone > verify
zone> info
zone> commit
zone> exit
# zoneadm list –vc
# chmod 700 /zonedir
# zoneadm –z zone install
# zoneadm –z zonedir boot
# zoneadm –z zonedir ready
# zoneadm –z zonedir boot
# zlogin –C –E zone
select locale, terminal type 13
To identify the zone configuration
# ifconfig –a
# zoneadm list –vc
How to uninstall or unconfigure
# zoneadm –z zonedns halt
# zoneadm list –vc
# zoneadm –z zonedns uninstall
# zonecfg –z zone
zonecfg:zone> delete

No comments:

Post a Comment