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

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

Friday, 10 October 2014

Host Name Change in Solaris


HOSTNAME CHANGE

Well, we changed all network details of our system, but still we need to change the HOSTNAME,

For changing hostname we need to alter following files…

/etc/hosts
/etc/nodename
/etc/hostname.<name of primary interface>

Rename crash directory under
/var/crash/<hostname>
#mv <old name> <new name>

IP Change in Solaris

                     
                           IP CHANGE


Well… Suppose I reached office and just got a call from Boss that we have few servers migrated from other locations and we need to setup them here,

Now what we have to do?

Before using we must have to bring them under our Network and have named them as per our convention.

Great… means in simple we have to change ip and hostname.

Let’s change them, but do remember 2 more parameters… if servers are coming from completely different network.

Gateway
Netmask

Virtual IP Setting in Solaris

                     
                           VIRTUAL IP

Suppose, we need some more IP’s but we have only one Interface.

IP which sits on the same physical interface virtually and it acts as parasite.

Means it will share the BW of physical interface,

We have only one interface and we want 2 Virtual IP. Technically it is possible but it will on cost of BW sharing which results in highly degraded performance*
Depending on what type of applications are running/using that IP’s.

Setting Additional IP in Solaris

                         ADD ADDITIONAL IP’s


Well…Suppose a situation that, suddenly one of vendor told that we want to implement an application which needs two physical IP’s and two virtual IP’s.
Range of Subnets would be same.

OK… so let’s begin with adding New IP’s to System.

Generally there are 4 interfaces in Sparc Servers or depending upon HW config.

Thursday, 9 October 2014

Solaris System Performance Monitoring -1 [Memory - vmstat]

                     
                      
                      SYSTEM PERFORMANCE -1
                      [Memory –vmstat / sar/ prstat]

First I want to thanks all bloggers and oracle documentation for great resources provided by them, I want to say thanks individually but really I forget, that from where I had learned all these. At the time when I was learning and preparing notes I got help from all over the blogs/books/YouTube, and now I really don’t remember that which part i referenced from where. All I have is only my Notes, again thanks to all who helped me in any manner to have some knowledge and confidence i gained because of them and my sincere apologies also.

**Performance monitoring is one of the most crucial things in System Admin’s  Life and I am pretty sure that this thing will learned only when we start sweating from each and every side of ours; means facing a Lion in Zoo and facing a Lion in Jungle… imagine the difference

“IT CANNOT BE LEARNED, IT SHOULD BE EARNED”

TSHOOT is ART rather than technology… 

Solaris Volume Manager -6 [Volume Rename]

                           
                   SVM-6

What we will learn in next Few Pages

·         Renaming Volumes


Currently we have this situation,

root@sol-test-1:>/#metastat -c
d5               m  2.3GB d41 d42
    d41          s  2.3GB c1t0d0s4
    d42          s  2.3GB c1t1d0s4
d4               m  1.0GB d31 d32
    d31          s  1.0GB c1t0d0s3
    d32          s  1.0GB c1t1d0s3
d3               m  1.0GB d21 d22
    d21          s  1.0GB c1t0d0s1
    d22          s  1.0GB c1t1d0s1
d2               m  7.3GB d11 d12
    d11          s  7.3GB c1t0d0s0
    d12          s  7.3GB c1t1d0s0

Tuesday, 7 October 2014

Solaris Volume Manager -5 [Hot Spare Pool / Hot Spare]

                     
                           SVM-5

What we will learn in next Few Pages

·         HOT SPARE


SO, what is Hot Spare?

Allows automatic replacement of failed submirrors / Raid-5 components, provided space components are available & reserved

HOT SPARE STATES:

3 states
A. available
B. in-use
C. broken

a.  Available:

Available hotspares are running and ready to accept data, but are not currently being written to or read from.

Solaris Volume Manager -4 [raid 5]

                     
                           SVM-4

What we will learn in next Few Pages

·         Raid5
(Plz watch the videos from this blog for better understanding of raid levels)


OK… Let’s create raid 5 with SVM,
Should we use Soft Partitions for SVM or we need to go with Physical slices?

Well… we can go in both ways, let’s see with SP’s

Create Metadb
root@sol-test-2:>/# metadb -afc 3 c1t0d0s7 c1t1d0s7

Solaris Volume Manager -3 [replacement of failed disk]

                     
                           SVM-3

What we will learn in next Few Pages

·         Replace failed disk in SVM


We will start from the last post, where we left everything messed

root@sol-test-1:>/# metastat -c
d5               m  2.3GB d41 (maint) d42
    d41          s  2.3GB c1t0d0s4 (maint)
    d42          s  2.3GB c1t1d0s4
d4               m  1.0GB d31 (maint) d32
    d31          s  1.0GB c1t0d0s3 (maint)
    d32          s  1.0GB c1t1d0s3
d3               m  1.0GB d21 (maint) d22
    d21          s  1.0GB c1t0d0s1 (maint)
    d22          s  1.0GB c1t1d0s1
d2               m  7.3GB d11 (maint) d12
    d11          s  7.3GB c1t0d0s0 (maint)
    d12          s  7.3GB c1t1d0s0

Thursday, 2 October 2014

Solaris Volume Manager -2 (ROOT MIRRORING)

                                                       
                                                                        SVM-2

What we will learn in Next Few Pages,

·         Root Disk mirroring


Well we tried some of svm in our first part, but I think that in last few pages due to taking soft partitions with mirroring, it might be confusing.
So here we will start with fresh,

For Root Mirroring we should consider few things in mind,

·         Always take the bkp of /etc/system & /etc/vfstab before root mirror
·         First run the prtvtoc|fmthard, then go for creating metadb
·         Svm will do changes for / only in /etc/vfstab, do remember to change others manually

***better free at least 20-25gb in the drive where u had created your VM

I attached one disk of same size via VM settings.

Then

We have 2 disks c1t0d0s2 & c1t1d0s2 of same size but with different layout,