Thread Tools Search this Thread
Operating Systems Solaris zones
# 1  
Old 10-01-2009


I need a help in creating a zones.I am trying to create zone in Sun fire T1000 server with single cpu / 8 gb Ram / 73 gb hdd.I am planning to install java based application on two different zones. iam planning to install solaris 10.

Can some one suggest what is the best way to create two zones, how to assign memory /Cpu /Hdd. for two different zone


# 2  
Old 10-01-2009
# 3  
Old 10-01-2009
While certainly possible, assigning CPU and memory to a zone isn't a requirement. It is usually better to let them shared between zones unless you have specific requirements.
# 4  
Old 10-01-2009
yeah, the "fair share scheduler" is doing a pretty good job with solaris zones...
# 5  
Old 10-02-2009

I would use FSS aswell, as the underlying resources arent that meaty. Let the FSS decide, also later on you can always enforce shares if you want.

The next question is whether you want sparse / or non sparse zones ? i.e. non-sparse = complete copy of the OS or sparse when you are sharing the global zone's core directories e.g. lib /bin etc etc. I would opt for non-sparse due to the sizr of your root drives / applications.

After that, Shared / Exclusive ip ?? I would imagine, due to the level of resources on your server, you would go for shared-ip. Makesl ife far easier.

So, an example of the zone config would be :-

create -b
set zonepath=/zones/roots/app-svr
set autoboot=true
set bootargs="-m verbose"
# Zone CPU Resources
set scheduling-class=FSS
# Zone Network Configurations
set ip-type=shared
add net
set address=X.X.X.X/25
set physical=qfe1
set defrouter=X.X.X.X
add attr
set name=comment
set type=string
set value="Application Server"

Put all that into a file call app1.cfg, then assuming the hostname is app-svr :-

# zonecfg -z  app-svr  -f app1.cfg
# zonecfg -z  app-svr   verify

# zoneadm list -icv    - lists all zones
# zoneadm -z app-svr install
# zoneadm -z app-svr  ready
# zoneadm -z app-svr  boot

# zlogin -C app-svr

:-) Easy.


Last edited by DukeNuke2; 10-02-2009 at 08:35 AM.. Reason: added code tags
# 6  
Old 10-02-2009
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read your code. You can easily do this by highlighting your code and then clicking on the # in the editing menu. (You can also type code tags [code] and [/code] by hand.)

Second, avoid adding color or different fonts and font size to your posts. Selective use of color to highlight a single word or phrase can be useful at times, but using color, in general, makes the forums harder to read, especially bright colors like red.

Third, be careful when you cut-and-paste, edit any odd characters and make sure all links are working property.

Thank You.

The UNIX and Linux Forums
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers


haven't work with zones in a while. when shutting down zones from solaris 10 I have to do it from the global zone, but can I just shutdown the global zone and all non global zones will shutdown or do I have to zoneadm -z zonename shutdown for all the non global zones ,then shutdown... (2 Replies)
Discussion started by: goya
2 Replies

2. Solaris

Tseries and zones

Does anyone know if I have to use LDOMS on a Tseries server? Or can I just setup zones using solaris 10 without using LDOMS? thanks. (2 Replies)
Discussion started by: cornsnap
2 Replies

3. Solaris


how can we know zone is migrate and which files going to update (3 Replies)
Discussion started by: nsusheelgoud
3 Replies

4. Solaris


Hi Everyone, How to create a loopback filesystem in a running non golbalzone? and how to share a diskgroup in veritas ? Thanks & Regards Padmaja (1 Reply)
Discussion started by: padmaja
1 Replies

5. Solaris


Hi Everyone, I need the process of how to add a cpu to a non-global zone or how to add a resource to non-globalzone. Thanks & Regards Padmaja (2 Replies)
Discussion started by: padmaja
2 Replies

6. Solaris


Hi guys Im using VMware and ive installed solaris 10 in that..ive configured virtual disks in that n im using question is if im gona configure zones in it do i need a seperate NIC virtual interface name is pcn0 and if i create zones can i give pcn0:1 n allocate a seperate... (1 Reply)
Discussion started by: madanmeer
1 Replies

7. Solaris

Global Zones

I'm logged into a non-global zone server. How would I find out what the global zone server name is from there? (1 Reply)
Discussion started by: soupbone38
1 Replies

8. Solaris


what are the files related to dns zones database file management ? (1 Reply)
Discussion started by: tirupathi
1 Replies

9. Solaris

Solaris Zones

I have a Solaris 10 box configured with a global zone and 3 non-global zones. All of the zones need to be configured so they can access and run an application in the global zone located at /export/home. How do i make this application and all of its accompanying files available to the 3 non-global... (3 Replies)
Discussion started by: goose25
3 Replies

10. Solaris


Hi, I want to wheather there is any command by using that we can reboot all the zones , Example : I have 10 zones, I can reboot all 10 zones by using one command (2 Replies)
Discussion started by: manoj.solaris
2 Replies
Login or Register to Ask a Question