Wise people learn when they can; fools learn when they must - Arthur Wellesley

Monday, 13 October 2014

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???

YES IT IS … …

OK…

Now I am fed up with your queries, Let me explain Virtualization First then only we will move to Zone,

Suppose a requirement,

10 servers are required with
Min 4gb ram each
Min 1 interface for ip
Min 2 CPU’s
Min 10gb HDD

Means total

40gigs ram
10 interfaces
20 CPU’s
100gigs of HDD space

Well… requirement is over?

No…

Extra we need
10 cables
10 ports on switch
10 power supply in rack
Space to keep those 10 servers in Data Center

So think about the cost occurred due to installation of 10 servers
And the maintenance burden is different story,

What if we have only one powerful server with 128gigs of ram, 1tb hdd, 128 CPU, 16 interfaces and any how we can fit all our servers in to one?
 
What? Sounds Great?

Yes… we can deploy all our servers in to one with help of virtualization.
We have Powerful HW and we will convert it in SW resource

Got a rough idea?

OK…

Let’s begin with Zone…

Now understand the meaning of “Solaris answer of virtualization”?

Well…

I am feeling very sleepy, and I want to listen some story but there is no one to tell me story so I decide to tell u a story

And ripe until u drip…

Long long ago there was a king. The king was very brave and courageous, but he was not happy, always thinking about his only son.
His son was very lazy and dreamer, like me [but unfortunately my father is not king...ho ho ho]

His son was always sleeping and avoids being disturbed, and king was very upset due to his activities, actually due to his non activity.

After Lots of frustration and anger, one day king has called his son and told him that you have to leave this castle and build your own life without my help, so go away and live your life [remember DDLJ- ja jee le apni jawani]

King has given him lots of money and then Son left the castle.

Actually Son was good for nothing, but ultimately he has the royal blood.

One day he was reading newspaper and found boom in realty sector.

Then he decided to build his own buildings and apartments and rent them… so that he can sleep & enjoy without any tension for life long.


He started and finished within no time, obviously he did nothing except flowing money like water.

Anyways now he is Landlord of big mansion and advertises “room on rent available” in leading newspapers and also on olx and quikr.

OK… From here real story begins,

Now the son has declared himself “KING” of his newly build mansion.

He started getting calls about rooms, and called joint meeting for every room seeker.

All are gathered in one room, meeting started

Some of them are bachelor and demanding furnished room and some of them are with family demanding separate & isolated accommodation.

King told… ok I will provide everything as per your requirements, but I made some rules that should be followed in any manner.

1.  When I wake up, everybody will wake up. When I sleep everybody has to sleep
2.  I should know everything about you
3.  Anything you need, just tell me I will arrange. U can’t buy yourself
4.  I have the master key of all houses

After listening all rules, the would be tenants were angry, they told everything is fine but we need our separate entity

So the common solution derived was, all will enter from common gate but after that everybody has their separate path, all have their own house name and number for individual identity.
King has also announced that the tenants who will live as paying guest can use my…

Library
Super Dustbin
Parking platform
Common User area

Now king told everybody to make agreement and provide following details

1.  House No / House Name
2.  Separate gas pipeline [ yes / no]
3.  Any fancy item required like AC, cooler, mixer, music system?
4.  Do you have any guest? [y/n] [if yes then extra bed needed]
5.  Want PG or separate accommodation?
6.  If any other info to be displayed then plz provide



Well… enough of story … now F the story and answer the following questions

Heyyy… wait a sec… why smiling, what did u got by F the story?
Man its fire the story for time being,

A.  Who is/was son?
B.  Who are paying guests?
C.  Who are the tenants with separate accommodation?
D.  What are the rules?
E.  What shared things king has announced for PG’s?
F.  What are the 6 points in agreement?

A.  Son is Global Zone
B.  Paying guests are Sparse root zone
C.  Separate accommodation tenants are Whole root zone

D.

1.  When I wake up, everybody will wake up. When I sleep everybody has to sleep
**boot with me, shutdown means all down with me

2.  I should know everything about you
**GZ knows every detail about all his NGZ

3.  Anything you need, just tell me I will arrange. U can’t buy yourself
**NGZ can’t do any FS/HW config

4.  I have the master key of all houses
**GZ can control all zones in every manner

E.
These are shared resources by global zone only for sparse root NGZ’s

Library              /lib
Super Dustbin        /sbin
Parking platform     /platform
Common User area     /usr


     F.

1.  House No / House Name
** IP Address / Hostname

2.  Separate gas pipeline [ yes / no]
** Shared NIC or Separate NIC

3.  Any fancy item required like AC, cooler, mixer, music system?
** Devices like tape drive

4.  Do you have any guest? [y/n] [if yes then extra bed needed]
** shared File System from GZ

5.  Want PG or separate accommodation?
**Sparse root or Whole root

6.  If any other info to be displayed then plz provide
** attributes


OK… answered all questions but still there are few peoples like me who has looking with opened mouth, that OMG! What was that?

Let’s again elaborate,

GZ= Global Zone
NGZ= Non Global Zone

A Solaris system can contain one GZ and 8192 NGZ,
·         GZ has access to all NGZ
·         NGZ do not have config access to any other zone.
·         NGZ can’t modify any other zone, even itself.
·         NGZ has 2 types
Sparse root Z & whole root Z,
Sparse root Z are merely 100-200mb in size b’coz it share all major packages/directories from GZ
/lib       /platform       /usr       /sbin

Whereas whole root is separate entity it shares nothing with GZ.

GREAT…

Don’t think that story is wastage, it will help us lot to understand the things while moving /migrating and cloning of zones.

Now create some NGZ

Cont…………………………………………….


No comments:

Post a Comment