Wise people learn when they can; fools learn when they must - Arthur Wellesley
Showing posts with label Zones. Show all posts
Showing posts with label Zones. Show all posts

Sunday, 28 December 2014

Solaris Practice-2 [ zones ]


PRACTICE WORK-SHEET-2 [zones]

Well, learned Zones?

OK…

Now time to have some Practice to check How Frequently or without looking to our notebook we can solve the things OR how much command we have on the Topics.

1.  What is zone?
2.  What are the types of zones?
3.  List some benefits of zones?
4.  What is Global zone & Non Global zone?
5.  What are the types of NGZ?
6.  What is diff between whole root zone & sparse root zone?
7.  What is zonepath?
8.  List & define the daemons & their functions for zones?
9.  Is it possible to assign different types of file systems to NGZ? If yes then what is the procedure to do so.
10. What are the zone states? Define all
11. How to assign physical disk to NGZ?
12. What are the IP management schemes available in zones? Define with         example
13. What is difference between zone login and zone console login?

Zones-11 [Zone Processes & booting options]


ZONES-11
[PROCESS MONITORING-BOOT OPTIONS]


Zone Daemons,

“zoneadmd” & “zsched”


Zoneadmd  

·         Runs in GZ and it is primary process for setting up the zones virtual platform,
·         It manages the booting / shutting down of zones
·         It manages the connection to the zone from zlogin
·         It allocates the zone ID & starts the zsched process
·         One zoneadmd process for every active (ready, running, shutting down) zone on the system.

Zsched

·         It runs within the NGZ
·         Kernel threads for the zones are owned by zsched process

Zones-10 [FSS-fair share scheduler]


ZONES-10 [FAIR SHARE SCHEDULER-FSS]

Well…

What is FSS? Any guess?

Something which schedule the shares without partiality!!!

Good… close enough…

Let’s try to understand this in simple way.

Imagine a race of 3-4 year old kids,

Can u control them?
Can u expect that they run in their track?
Can u expect even 1% of discipline from them?

Zones-9 [rctls / resource controls]





ZONES-9 [RESOURCE CONTROLS]

Great,

We had learned to assign mem & cpu to NGZ, but how we will check the utilization by NGZ

Rcapadm is command from which we can find and it relies on rcapd daemon

First we should enable the rcapadm

root@sol-test-1:>/# svcadm enable rcap

Enable the resource capping daemon so that it will be started now and also be started each time the system is booted

Zones-8 [Addition IP / Resource Capping]


                    
Well…

Done with basic create / modify /delete a NGZ?

Let’s play some more

Did u wondered till now we just created the zones,

Never bothered about

·         What is the ram size?
·         What is swap size?
·         What is CPU capability?
·         What if NGZ starts eating ram & CPU?

ZONES-7 [RECAP]


ZONES-7 [RECAP]

Well… Let’s see, what we are capable to do with Zones till now

·         Define the zones & its features
·         Create a NGZ with minimal config
·         Create a NGZ with device shared from GZ
·         Create a NGZ with FS (lofs) shared from GZ
·         Create a NGZ with EXCLUSIVE IP settings
·         Rename a NGZ
·         Changing HOSTNAME/IP of NGZ
·         Create a NGZ with WHOLE ROOT CONFIG
·         Create a NGZ with UFS shared from GZ
·         Moving a zone within system
·         Moving a zone to other system
·         Cloning a zone
·         Delete a zone

Saturday, 27 December 2014

ZONES-6 [MOVE / CLONE NGZ]


ZONES-6 [MOVE / CLONE NGZ]

What we are about to learn,

·         Move the NGZ within same system
·         Changing hostname of NGZ
·         Move the NGZ to other system
·         Clone the NGZ


Well, King has accommodated his all 4 rentals. And now it’s time to relax

But suddenly one PG [tzone2] came and told the king that I don’t want to live in
That room and also I want new name for my room, but I want new room within same building

King was surprised with this demand but he agreed on the same and told the PG
OK… just stop all of your work then inform me,

ZONES-5 whole root zone with exclusive Ip & shared ufs



ZONES-5 

WHOLE ROOT ZONE WITH EXCLUSIVE IP & SHARED FILE SYSTEM FROM GLOBAL ZONE

Fine…

The king has selected 4 tenants, and out of four, 3 tenants are accommodated, it’s time to accommodate the family.

Tzone1     PG (bachelor)   Sparse root
Tzone2     PG (bachelor)   Sparse root
Tzone3     PG (bachelor)   Sparse root
Tzone4     With family     Whole root


The Info provided by tzone4 is,

House No                   IP   192.168.234.203
Separate gas pipeline      YES  I want my own (e1000g2)
Fancy item                 YES  CDROM
Guest                      YES  I want shared FS from GZ
Other info                 YES  Yes I want attributes to be added

King was very irritated with this family drama, that they want everything but king was man of words so he agreed for the arrangements,

Let’s see what the family got?

Solaris Zones-4 [Zone with Exclusive IP]


ZONES-4 [CREATION]
                                        EXCLUSIVE IP

Fine… King has accommodated 2 out of 4 tenants

Now it’s time for tzone3

The Info provided by Tzone3 is,

House No                   IP   192.168.234.202
Separate gas pipeline      YES  I want my own (e1000g1)
Fancy item                 YES  CDROM
Guest                      NO   I don’t want shared FS from GZ
Other info                 NO   No info plz


SO… let’s prepare the accommodation for tzone3


Wednesday, 15 October 2014

Zones-3 [Configuring a Non Global Zone - B]


ZONES-3 [CONFIGURE NGZ-B]

Well… we had created a very simple NGZ tzone1

Now in our next NGZ tzone2… we will add some more

The Info provided by Tzone2 is,

House No                   IP   192.168.234.201
Separate gas pipeline      NO   will share the interface
Fancy item                 YES  TAPE DRIVE / CDROM
Guest                      NO   Don’t want shared FS from GZ
Other info                 YES  Yes I want attributes to be added

OK… from last config we have 2 more thing now i.e.

Device and attributes

Monday, 13 October 2014

Zones-2 [Configuring a simple Non Global Zone-A]


ZONES-2 [CONFIGURE NGZ-A]

Fine… we had completed our basics in previous post, now need to configure NGZ

So, the king has selected 4 tenants,

Tzone1     PG (bachelor)   Sparse root
Tzone2     PG (bachelor)   Sparse root
Tzone3     PG (bachelor)   Sparse root
wr-zone    With family     Whole root

The Info provided by Tzone1 is,

House No                   IP   192.168.234.200
Separate gas pipeline      NO   will share the interface
Fancy item                 NO   Don’t want extra devices
Guest                      NO   Don’t want shared FS from GZ
Other info                 NO   Don’t want any attributes to be added

Zones-1 [Basics]


ZONES-1 [Basics]

Well… Zones?

Sounds Good Na?

So what is Zone?

The simplest definition of zone I know is

            “It’s the Solaris’s answer of virtualization” 

Well…First I know nothing about zone, and now it is the answer of virtualization?

Good Joke, but what is virtualization?

OK… Let me explain the virtualization in simplest I know 

     “Technology which convert Hardware Devices in to Software Resources”

Is called virtualization.

THIS ONE IS SIMPLEST???