Facing problem with zone


 
Thread Tools Search this Thread
Operating Systems Solaris Facing problem with zone
# 1  
Old 12-16-2009
Facing problem with zone

i am using this way to create zone1 and zone2

Code:
bash-2.05b# zonecfg -z zone1
zone1: No such zone configured
Use 'create' to begin configuring a new zone.
zonecfg:zone1> create
zonecfg:zone1> set zonepath=/zone/1
zonecfg:zone1> set autoboot=true
zonecfg:zone1> add net
zonecfg:zone1:net> set address=192.168.35.210
zonecfg:zone1:net> set physical=hme1
zonecfg:zone1:net> end
zonecfg:zone1> info
zonepath: /zone/1
autoboot: true
pool:
inherit-pkg-dir:
        dir: /lib
inherit-pkg-dir:
        dir: /platform
inherit-pkg-dir:
        dir: /sbin
inherit-pkg-dir:
        dir: /usr
net:
        address: 192.168.35.210
        physical: hme1
zonecfg:zone1> verify
zonecfg:zone1> commit
zonecfg:zone1> ^D


how to assigne part from processor to each zone like 35% to zone1 and 35% to zone2 how can i do that

Last edited by Scott; 12-16-2009 at 08:51 AM.. Reason: Please use code tags
# 2  
Old 12-16-2009
If you have 1 CPU, then use:
Code:
zonecfg:zone1> add capped-cpu
zonecfg:zone1>capped-cpu> set ncpus=0.35
zonecfg:zone1>capped-cpu> end

and
Code:
zonecfg:zone2> add capped-cpu
zonecfg:zone2>capped-cpu> set ncpus=0.35
zonecfg:zone2>capped-cpu> end

If you had for example 4 CPUs and wanted to assign 35% of the time of all four CPUs to each zone, then you need to specify 4*35/100 = 1.4 as ncpus for each zone.
# 3  
Old 12-16-2009
very thanks for your effort helping me
during the zone creation that will be OK
but till now i can't edit configuration for zone already installed
could you till me how can i edit zone already installed
# 4  
Old 12-16-2009
Did you try:
Code:
zonecfg -z zone1

?
I think most parameters can be modified after zone had been installed, I know that inherit-pkg-dir can't. Of course to take effect you need to restart that zone.
# 5  
Old 12-16-2009
bartus11

hi,
thanks bartus11 for this good article
the a problem prevent me to make this solution in this case
i have server carry 50 zone
all of then have application and web site working

so i can't divided the capacity of the processor to 50 zone
i divided this zone to 2 section
40 zone
10 zone
what i read about this
i should make 2 cpu pools
the first cpu pools takes 60 % from processor capacity
assign 40 zone to this pool
the secand cpu pools takes 40 % from processor capacity
assign 10 zone to this pool

if you know please provide me
# 6  
Old 12-16-2009
I guess you need to create resource pool with poolcfg and pooladm (man pages section 1M: System Administration Commands - Sun Microsystems man pages section 1M: System Administration Commands - Sun Microsystems) and assign it to zones with pool keyword in zonecfg, like that:
Code:
example# zonecfg -z myzone
zonecfg:myzone> set pool=mypool
zonecfg:myzone> exit

Unfortunately I have no experience with creating resource pools, so you have to rely on manual pages Smilie
# 7  
Old 12-16-2009
hi bartus11
thanks alot for your effort helping me
realy it is very usefull
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

facing problem using su

Hi, I am able to login using su - or su directly , # prompt is coming, it doesnt ask for password. any normal user on aix system is login using su - or su . Please suggest where to change the configuration direct root login is disabled in /etc/ssh/sshd_config file. (0 Replies)
Discussion started by: manoj.solaris
0 Replies

2. Shell Programming and Scripting

Problem facing command using shell

Dear Brothers! Need your help for the case where I am running one command on prompt and its giving us the correct output, but when i use the same command from shell its directs no output.:wall: the command on command prompt is ls -ltrh * | nawk '{if ($5~ '/$'M'/') print $9}' | grep -v... (1 Reply)
Discussion started by: jojo123
1 Replies

3. Shell Programming and Scripting

Trying to copy Using scp facing problem

source file is located in (elk.some.com) /export/elk2/vp141p/Somedir/dist/current/Filename.ear destination machine(191.hydc.xxx.com) /export/home/vp141p/ARCHIVE scp -p vp141p@hstst191.hydc.sbc.com:/export/elk2/vp141p/PM_Build_SBS/Build_PVT_SBS/dist/current/Filename.ear . The above code is... (5 Replies)
Discussion started by: vishwakar
5 Replies

4. Shell Programming and Scripting

Problem facing in using awk command

Hi., I am not able to replace the string with another string using gsub fn of awk command. My code: awk 'BEGIN gsub(004,IND,004)' p.txt and my i/p file p.txt is of the format: av|004|adkf|Kent,004|s av|005|ssdf|Kd,IT park|s . . . and my desired o/p should be of : (13 Replies)
Discussion started by: av_vinay
13 Replies

5. Shell Programming and Scripting

problem facing in if -else condition

can u plz tell me where is the error echo enter the filename to be searched read fname if #-d $fname then echo file exists if then echo itsa directory elif then echo its readable cat $fname else echo its not readable fi else ... (1 Reply)
Discussion started by: gotam
1 Replies

6. Shell Programming and Scripting

Line space problem facing

Hi, I got a list of file that all got the same standard format. Can anyone teach me how to put the space in all of them?! Input file: >nucleotide1 AAAAAAAAACCCGGG >nucleotide2 GGGGGGCCCCCTTTTA >nucleotide3 GGTACACCACACTCAC >nucleotide4 TTTGGAGAGAGACCCC desired output:... (4 Replies)
Discussion started by: patrick87
4 Replies

7. Solaris

please help as i am facing problem with uptime

Hi I am getting the uptime output as follows 12:40am up 4 day(s), 18:29, 2 users, load average: 38.97, 36.54, 34.89 The load average is too high . I have checked the processes , but no process is taking too much cpu time Please help (3 Replies)
Discussion started by: guy009
3 Replies

8. UNIX for Dummies Questions & Answers

facing problem with cut command

hi , i used ls -ltr | cut -f 1 > \dev\tty but all teh coulmns r getting printed instead of only one........how can i resolve this? prob 2 : wud be able start cutting from last field......supposing in the case of dyanmic list.i dunno the field number of last column.......so is... (3 Replies)
Discussion started by: vivekshankar
3 Replies

9. UNIX for Dummies Questions & Answers

facing a problem in redirection

Hi, I am doing this perl script print (@line(1..15)); the lines 1 to 15 get printed... how can i redirect this to file? thanks and regards vivek.s (4 Replies)
Discussion started by: vivekshankar
4 Replies
Login or Register to Ask a Question

Featured Tech Videos