Re: zone shutdown



In article <456b3b1d$0$627$5a6aecb4@xxxxxxxxxxxxxxxxx>,
andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) writes:
In article <m2y7pwzqst.fsf@xxxxxxxxxxxxxxx>,
Frank Cusack <fcusack@xxxxxxxxxxx> writes:
On 27 Nov 2006 08:33:52 GMT andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) wrote:
In article <m23b85liip.fsf@xxxxxxxxxxxxxxx>,
Frank Cusack <fcusack@xxxxxxxxxxx> 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
.



Relevant Pages

  • Re: what cmd to list all users in ALL zones for Sol.10
    ... Andrew Gabriel wrote: ... >> a hassle to zlogin to each zone to check for users especially if you ...
    (comp.unix.solaris)
  • Re: zone shutdown
    ... Frank Cusack writes: ... To do an init 0 in a zone from the global zone, ... It should really be picked up as an svc property. ... SMF didn't do it either. ...
    (comp.unix.solaris)
  • Re: Zoneadm clone issue
    ... andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) writes: ... I have created a ZFS pool on one of the slice /dev/dsk/c0d0s7. ... I am trying to clone this zone using ... but instead of cloning at ZFS level (which would mean disk space ...
    (comp.unix.solaris)
  • Re: Zones within a Zone?
    ... > andrew@xxxxxxxxxxxxxxxxxxxx (Andrew Gabriel) writes: ... >>> I have a friend that doesn't have spare hardware at the present time to ... >>> within that zone. ... Does anyone know of any limits here? ...
    (comp.unix.solaris)
  • Re: zone boot failed
    ... > I'm trying to boot a simple zone. ... went wrong during the zone installation. ... Andrew Gabriel ...
    (comp.unix.solaris)