Read + Write + Report
Home | Start a blog | About Orble | FAQ | Blogs | Writers | Paid | My Orble | Login

Technology View - February 2009

Configuring a Solaris Zone

Due Credit:
Configuration:
To configure a Solaris zone, we need to know the following networking parameters:
a. An IP address
b. The name of the network interface
c. You should also confirm that the file system.

Zonecfg command
Used to configure the zone.
This command also used to verify that resource and properties that are specified during configuration.
It checks that a zone path has been specified.

Configuring and defining a new zone:
1. Verify that whether that zone is already exists or not global
# zonecfg testzone
Then it will enter into zonecfg shell prompt like

zonecfg:emailzone

2. Create a new zone definition with the create command
zonecfg:email-zone> create

3. Assign the zone to a file system
zonecfg:email-zone> set zonepath=/export/home/zones/t estzone

4. Decide if the zone should boot automatically at system boot time
zonecfg:my-zone> set autoboot=true

5. To create a filesystem
zonecfg:testzone> add fs
zonecfg:testzone:fs>set dir=/data
zonecfg:testzone:fs>set special=/dev/dsk/c0t1d0s0
zonecfg:testzone:fs>set raw=/dev/rdsk/cot1d0s0
zonecfg:testzone:fs>set type=ufs
zonecfg:testzone:fs>end

6. (Sparse Root Zone Only) Add a shared file system that is loopback-mounted from the global zone.
Do not perform this step to create a whole root zone, which does not have any shared file systems
zonecfg:my-zone> add inherit-pkg-dir
zonecfg:testzone:inherit-pkg- dir>set dir=/opt/sfw
zonecfg:testzone:inherit-pkg- dir>end

7. Configure networking parameters, using the addnet command and its sub commands.
zonecfg:testzone:>add net

zonecfg:testzone:net> set address=192.1.1.1
zonecfg:testzone:net> set physical=hme0
zonecfg:testzone:net>end

8. Assign the zone to the email pool
zonecfg:testzone>set pool=email-pool

9. Verify the configuration is syntactically correct
zonecfg:testzone>verify
This will return a message only if any errors in the configuration were found.

10. Save the configuration and exit
zonecgf:email-zone> commit
zonecfg:email-zone> exit

A standard zone automatically shares the /usr, /lib, /platform, and /sbin file systems with global zone.
Standard zone configuration mounts all global file systems as read-only
So if u trying to install an application to any of these directories will fail. So we have to mount a global zone file system with write permissions.

In the global zone, create the directory to be exported to the zone, using the mkdir(1) command.
global# mkdir -p /export/home/zones/testzone/l ocal
Set the permissions such that only root in the global zone can enter this directory, using the chmod(1) command.
global# chmod 700 /export/home/zones/testzone
Add CommentsAdd Comments
29
Vote
   


Solaris Zones

Due Credit:  
So as a system what more will I speak about than my funny old operating system? So let me give you some insight into what the great Solaris is all about. Here I have added some useful
information about Solaris zones, one of the most attractive features of Solaris.

A Solaris zone provides a virtual operating system environment within a single physical instance.
Applications can run in an isolated and secure environment.
Isolation prevents an application running in one zone from monitoring or affecting an application running in a different zone.
If any application fails means that won’t affect the other application.
Example:
Suppose the email server and web server applications need to run in isolated environments that make it appear as if they are running on physically separate machine, then you can have separate zones.

2 Types of zones
1.Global zone
2.Non - global zone

Global zone:
Global zone as the server itself.
Where you can login as root and have full control of the entire system.
It has access to the physical hardware and can control all process.
It has the authority to create and control new zones.
It can look inside the non global zone to see how they are configured, monitor, and control them.

Non-global zone:
A non global zone is created from the global zone and also managed by it.
You can have up to 8192 non global zones.
Applications that run in a non global zone are isolated from applications running in a separate non global zone.

Create the zone on the resource pool
Creating a zone requires the following steps:
Configuration - defines zone properties, such as required file system and network interfaces.
Installation - create the zone on the system.
Virtual platform management - use zone tools to boot, halt, or reboot the zone.
Zone login - move in and out of the zone to perform administrative tasks.
Add CommentsAdd Comments
27
Vote
   


So let's start

A simple start is what I always like and I hope to make this simple blog a worthy one in the days to come. Having a Bachelors in Technology might not always be adequate to flaunt your tech skills. So I decided to start a technology blog that will help me put my fast expanding knowledge to the reach of the world. This can be of help to many. And I am always willing to assist those who seek help and participate actively in the internet world to share knowledge and a lot of other interesting stuff.

A very interesting aspect about today’s technology is that it is growing at a rapid pace that a software that we might have used a few months ago could become obsolete today. And all this allows no place for a knowledge hungry person to keep in pace with the latest trends through conventional means such as class room training or even books, for that matter. No matter how good such means can be to them, they can never match the valuable tips and guidelines given by the experts. So let me start this with a final note, the tech business is not like any other field of your interest, where you can get to heights without much assistance. Stay in touch with the nerds!
Add CommentsAdd Comments
45
Vote
   


More Posts
4 Posts
1 Posts
2 Posts
263 Posts dating from October 2006
Email Subscription
Receive e-mail notifications of new posts on this blog:

geek's Blogs

5793 Vote(s)
69 Comment(s)
104 Post(s)
Moderated by geek
Copyright © 2006 2007 2008 On Topic Media PTY LTD. All Rights Reserved. Design by Vimu.com.
On Topic Media ZPages: Sydney |  Melbourne |  Brisbane |  London |  Birmingham |  Leeds     [ Advertise ] [ Contact Us ] [ Privacy Policy ]