Tuesday 20 August 2013

Solaris Zones Important Interview Questions

                    Solaris Zones Important Interview Questions


A. Zone configuration command:-
#zonecfg -z zonename --> to create new zone
#zoneadm -z zonename install---> To install the zone
#zoneadm -z zonename boot   ---> To boot the non-global zone
#zoeadm -z zonename halt    ---> To halt the non-global zone
#zonecfg -z zonename delete ---> To delete the non-global zone
B. From Global Zone Non-global Zone status:-
  @configured--->Configuration was completed & committed
  @installed --->The package has been successfully installed
  @Ready     --->The virtual platform has been established
  @Running   --->The zone booted successfully and is now running
  @Incomplte --->Transition state during install or uninstall operation
C.Zones Daemon
1.zoneadmd
2.zschd

1.What is difference between global zone and non-global zone ?
Base Solaris operating system is called global zone.(Directly installed on physical hardware).
Solaris operating system which are hosted by global zone is called Non-global zones or local zone.
2.How to find out global zone name from non-global zone ?
There is no possible from get global zone name form non-global zone.
Oracle made this one intentionally for security reasons
3.What type of Non-global in solaris 10?
There are three type non-global zones
 @ Whole root zone--> if it's no inherit file
 @ Sparse root zone---> find zonecfg -z zonename-->inherit-pkg-dir:/lib,/platform,/sbin,/usr
 @ Branded zone
4.What is the difference between whole root zone & sparse root zone?
Whole root zones have all their binaries of their own zone root filesystem,
while sparse root zones mount /usr,/lib,/platform,/sbin from the global zone.
5.To login non global zone from global zone->"zlogin -C zonename"
6.Is it possible to assign VXFS to non-global zone-->Yes
7.Is it possible to put resource control to nonglobal zone?
  Yes,we can restrict the memory,cpu,swap
8.online Resource capping---> To find the current capped-memory
   #rcapstat -z 1 1
   #zonecfg -z zonename info
 To incrase the capped memory form current value online.
   #rcapadm -z zonename -m 90M
bash-3.00# rcapstat -z
    id zone            nproc    vm   rss   cap    at avgat    pg avgpg
     2 zone1              35   43M   49M   50M 7904K    0K 1912K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
bash-3.00# rcapadm -z zone1 -m 90M
bash-3.00# rcapstat -z
    id zone            nproc    vm   rss   cap    at avgat    pg avgpg
     2 zone1              35   43M   49M   50M 7904K    0K 1912K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   50M    0K    0K    0K    0K
     2 zone1               -   43M   49M   90M    0K    0K    0K    0K

9.How to boot local zone in single user mode?
   boot the local zone using #zoneadm -z zonename boot
   using "init 1" boot the zone in single user mode
   #zoneadm -z  zonename boot -s
10.Is it possible to add new IP address on Non-global zone on fly ? If yes how to do that?
 Yes.we can plumb new IP on zones using ifconfig command
  #ifconfig bge0:1 plumb up  --> to plumb the interface
  #ifconfig bge0:1 192.168.1.2 netmask 255.255.255.0 zone zonename--> To assign ipaddress
11.What is Branded zone ?
Branded zone is used to install older version of Solaris or Linux in Solaris 10 global zone.
12.Where the zone's configuration file resides ?
   Zone configuration file can be founf in /etc/zones/zone_name.xml
13.Which configuration file will be having zone's current state ?
   current state will be written in global  zone /etc/zones/index.xml
14.How many Solaris zones can be create in on global zone?
Maximum of 8191 local zones can be created within a single operating system instance.
15.To list the  Non-Global Zone status from Global zone ?
  #zoneadm list -cv




 


No comments:

Post a Comment