Solaris 10 container graceful shutdown?


 
Thread Tools Search this Thread
Operating Systems Solaris Solaris 10 container graceful shutdown?
# 1  
Old 08-18-2010
Solaris 10 container graceful shutdown?

Hi,
I've got a UPS connected to my Solaris 10 machine and I'm planning to run containers/zones on there.
At the moment if the UPS agent sends the signal to the solaris machine to shutdown, all the apps shutdown gracefully and then the host goes down.

If I setup containers for the apps, does anyone know if they will shutdown gracefully if the host gets the shutdown signal or will they just halt or what happens?

I dont have another machine to test this on and Im also new to the Solaris container technology.

thanks!
# 2  
Old 08-18-2010
When the global zone is shutting down, it is asking for all other zones to shutdown gracefully. However, there is a timeout after which zones still running will be halted. You can display and change the timeout value this way (here the default value of 100 s being raised to 5 minutes):

Code:
# svccfg
svc:> select system/zones
svc:/system/zones> listprop stop/timeout_seconds
stop/timeout_seconds  count    100
svc:/system/zones> setprop stop/timeout_seconds=300
svc:/system/zones> 
# svcadm refresh svc:/system/zones

# 3  
Old 08-19-2010
thats just what i was looking for thanks jlliagre! Smilie
# 4  
Old 09-15-2010
Solaris zone shutdown

Hi,

I have a zone in Solaris 10 called "testzone" I have edited the timeout value using svccfg so this zone will shutdown after 5 mins instead of the default 60 seconds.

To test this I have the zone running and i am logged into it. However when i shutdown the machine (using GUI-Launch:Shutdown), it powers off immediately.

Why does the host not wait 5 mins before shutdown?

When i powered the machine on again I checked the timeout value and it was still set to 300 seconds.

thanks
# 5  
Old 09-15-2010
Did you refresh the zone configuration (svcadm refresh ...) ?
# 6  
Old 09-15-2010
yes I followed your instructions :

# svccfg
svc:> select system/zones
svc:/system/zones> listprop stop/timeout_seconds
stop/timeout_seconds count 100
svc:/system/zones> setprop stop/timeout_seconds=300
svc:/system/zones>
# svcadm refresh svc:/system/zones

and after the reboot I went in to check and it was still 300.

thanks
# 7  
Old 09-15-2010
Double check you run
Code:
svcadm refresh svc:/system/zones

Rebooting doesn't refresh the internal configuration. Checking the reported value isn't enough.

If not the problem, I have no idea about a possible explanation. Make sure you are up to date with patches.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Differences of Solaris zone and Solaris Container

Hi everyone! I am in dire need to know what are the differences between a solaris zone and a solaris container.. Explanations over the net are very confusing. Please help. Thanks! (8 Replies)
Discussion started by: arah
8 Replies

2. Solaris

solaris zones vs container..

kindly share what are difference b/w solaris zones and containers.... (8 Replies)
Discussion started by: Rajesh_Apple
8 Replies

3. Solaris

Solaris container date diference

Hi people, I dont have a real problem, its also a so strange issue. When i connect to my system from a ssh session or telnet normaly from putty and execute the command "date" its show me the correctly time in BRT format for root and all other users. But when i connect from the global... (3 Replies)
Discussion started by: anonymouzz
3 Replies

4. IP Networking

Identifying Server graceful shutdown

Hi I have written a Client server Application .The client will receive messages from Server and pass it to some library for processing .I also want to notify server close the socket connection gracefully. Roughly my code is some kind of void getMsg() { while(recv(....)>0) ... (3 Replies)
Discussion started by: mr_deb
3 Replies

5. Solaris

Memory usage in a Solaris Container

Hi All, We have a server with Solaris 10 installed. The total memory of the server is 64GB. In order to check the memory info of the server I use "top" utility that gives me total and free memory in real-time. I have also installed a Sun container (non-global zone) on top of parent operating... (4 Replies)
Discussion started by: Slayer
4 Replies

6. Solaris

Monitoring services in zones with Solaris container Manager

I need to know how to Manage Solaris services (SMF) in sparse zone with Solaris container manager. I have navigated all the documentation and I have not found any clue. I installed the Sun management center (SMC) server on a server box and the agents on others. I can manage the SMF of the global... (5 Replies)
Discussion started by: ibroxy
5 Replies

7. Solaris

Solaris 6 container support

Is solaris 6 container support available ? Say, If I have a machine with Solaris 10 operating system.. Can i install Solaris 6 container on this machine, so that the machine will have Solaris 6 virtual environment... Does sun support Solaris 6 container ? Any ideas over this ? (1 Reply)
Discussion started by: shafi2all
1 Replies

8. Solaris

Solaris 8 Container Error

Log File: /var/tmp/server1.install.18730.log Source: /vmpool/tmp/server1.flar Installing: This may take several minutes... Postprocessing: This may take several minutes... Postprocess: ERROR: p2v module S40_setup_preload failed: 0 Postprocess: ERROR: Postprocessing failed. ... (0 Replies)
Discussion started by: cornsnap
0 Replies

9. Solaris

Cant priocntl within solaris 10 non global container

Hello ! Can anybody help me with the following: my sparc server ( solaris 10 06/07) has 1 global and 4 non-global zones running we are using one of the non-global-zones for a jboss application server we want to levitate the JBOSS process within the non_global_zone with: < priocntl -s -c FX -p... (1 Reply)
Discussion started by: moofoo
1 Replies

10. Solaris

graceful shutdown during poweroutage

I'm thinking of buying a UPS, does Solaris have any software builting to detect when a system goes into UPS dependency, or would the best best to use some software provided by APC or some other UPS vendor...? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
Login or Register to Ask a Question