|
|
zone shutdown
Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?
Does init 0 in the global zone do a clean shutdown in non-global zones.
-frank
|
|
0
|
|
|
|
Reply
|
Frank
|
11/27/2006 2:39:58 AM |
|
Frank Cusack wrote:
> Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?
> Does init 0 in the global zone do a clean shutdown in non-global zones.
Interesting question. Zones are rebooted/halted VERY fast IMO. You can find out
this by writing hook in some /lib/svc/method/<script> stop routines like:
echo '$0 has been called' > /tmpfile
Let's try ... Hm ... no it doesn't. :-) (tried with
/lib/svc/method/smtp-sendmail, works if I do svcadm disable -t by hand)
--
Man is something that shall be overcome.
-- Friedrich Nietzsche
|
|
0
|
|
|
|
Reply
|
Miroslav
|
11/27/2006 8:26:41 AM
|
|
In article <m23b85liip.fsf@sucksless.local>,
Frank Cusack <fcusack@fcusack.com> writes:
> Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?
No.
To do an init 0 in a zone from the global zone, run:
zlogin -S $zone /sbin/init 0
> Does init 0 in the global zone do a clean shutdown in non-global zones.
Yes, but if the zone doesn't shutdown within 60 seconds, it
halts it instead.
[This was in Solaris 10 3/05 -- I haven't checked if it changed since.]
--
Andrew Gabriel
|
|
0
|
|
|
|
Reply
|
andrew
|
11/27/2006 8:33:52 AM
|
|
Miroslav Zubcic wrote:
> Let's try ... Hm ... no it doesn't. :-) (tried with
> /lib/svc/method/smtp-sendmail, works if I do svcadm disable -t by hand)
Oracle is AFAIK supported in Solaris zones. This is interesting job oportunity
for an army of DBA's and backup opetators. :-)
--
Man is something that shall be overcome.
-- Friedrich Nietzsche
|
|
0
|
|
|
|
Reply
|
Miroslav
|
11/27/2006 8:34:49 AM
|
|
On 27 Nov 2006 08:33:52 GMT andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
> In article <m23b85liip.fsf@sucksless.local>,
> Frank Cusack <fcusack@fcusack.com> writes:
>> Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?
>
> No.
> To do an init 0 in a zone from the global zone, run:
> zlogin -S $zone /sbin/init 0
>
>> Does init 0 in the global zone do a clean shutdown in non-global zones.
>
> Yes, but if the zone doesn't shutdown within 60 seconds, it
> halts it instead.
Do you know if this is user-settable somewhere? (Without modifying
anything that a patch would overwrite.)
-frank
|
|
0
|
|
|
|
Reply
|
Frank
|
11/27/2006 6:29:38 PM
|
|
In article <m2y7pwzqst.fsf@sucksless.local>,
Frank Cusack <fcusack@fcusack.com> writes:
> On 27 Nov 2006 08:33:52 GMT andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
>> In article <m23b85liip.fsf@sucksless.local>,
>> Frank Cusack <fcusack@fcusack.com> writes:
>>> Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?
>>
>> No.
>> To do an init 0 in a zone from the global zone, run:
>> zlogin -S $zone /sbin/init 0
>>
>>> Does init 0 in the global zone do a clean shutdown in non-global zones.
>>
>> Yes, but if the zone doesn't shutdown within 60 seconds, it
>> halts it instead.
>
> Do you know if this is user-settable somewhere? (Without modifying
> anything that a patch would overwrite.)
No, it's in /lib/svc/method/svc-zones
It should really be picked up as an svc property. SMF wasn't
in Solaris at the time I wrote that part of what was the
init.d/zones script at the time, and whoever moved it under
SMF didn't do it either. You might even argue it should be a
per-zone property.
There's also a ceiling of 500 seconds in the system/zones.xml
manifest for the stop method.
--
Andrew Gabriel
|
|
0
|
|
|
|
Reply
|
andrew
|
11/27/2006 7:23:09 PM
|
|
Frank Cusack <fcusack@fcusack.com> wrote:
>>> Does init 0 in the global zone do a clean shutdown in non-global zones.
>>
>> Yes, but if the zone doesn't shutdown within 60 seconds, it
>> halts it instead.
> Do you know if this is user-settable somewhere? (Without modifying
> anything that a patch would overwrite.)
Most SMF settings (if you make them directly svcprop) will be maintained
even if later patches apply.
60 seconds is the default timeout for a service, so that's probably
what's happening here. Just change the default timeout for the zones
service to be what you want.
--
Darren Dunham ddunham@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
|
|
0
|
|
|
|
Reply
|
Darren
|
11/27/2006 7:31:53 PM
|
|
In article <456b3b1d$0$627$5a6aecb4@news.aaisp.net.uk>,
andrew@cucumber.demon.co.uk (Andrew Gabriel) writes:
> In article <m2y7pwzqst.fsf@sucksless.local>,
> Frank Cusack <fcusack@fcusack.com> writes:
>> On 27 Nov 2006 08:33:52 GMT andrew@cucumber.demon.co.uk (Andrew Gabriel) wrote:
>>> In article <m23b85liip.fsf@sucksless.local>,
>>> Frank Cusack <fcusack@fcusack.com> writes:
>>>> Does 'zoneadm -z halt' do a clean shutdown (run svc stop methods)?
>>>
>>> No.
>>> To do an init 0 in a zone from the global zone, run:
>>> zlogin -S $zone /sbin/init 0
>>>
>>>> Does init 0 in the global zone do a clean shutdown in non-global zones.
>>>
>>> Yes, but if the zone doesn't shutdown within 60 seconds, it
>>> halts it instead.
>>
>> Do you know if this is user-settable somewhere? (Without modifying
>> anything that a patch would overwrite.)
>
> No, it's in /lib/svc/method/svc-zones
> It should really be picked up as an svc property. SMF wasn't
Looking at the current Solaris source, Dan seems to have done this now.
I don't know if that's appeared in a Solaris 10 update though.
> in Solaris at the time I wrote that part of what was the
> init.d/zones script at the time, and whoever moved it under
> SMF didn't do it either. You might even argue it should be a
> per-zone property.
>
> There's also a ceiling of 500 seconds in the system/zones.xml
> manifest for the stop method.
....which has now been reduced to 100 seconds.
--
Andrew Gabriel
|
|
0
|
|
|
|
Reply
|
andrew
|
11/27/2006 9:12:37 PM
|
|
|
7 Replies
419 Views
(page loaded in 0.123 seconds)
|
|
|
|
|
|
|
|
|