[OpenIndiana-discuss] Question about halting a zone

Andrew Gabriel illumos at cucumber.demon.co.uk
Tue May 8 18:31:26 UTC 2012


Jeppe Toustrup wrote:
> On Mon, May 7, 2012 at 3:57 PM, Mark Creamer <whitetr6 at gmail.com> wrote:
>   
>> I was reading about how to update non-global zones, and found a
>> Solaris document which says the following:
>>
>> 1. Update the Global Zone
>> 2. Reboot
>> 3. Halt the non-global zone   (zoneadm -z myzone halt)
>> 4. Detach the zone  (zoneadm -z myzone detach)
>> 5. Re-attach the zone with -u  (zoneadm -z myzone attach -u)
>>
>> In my testing, this seems to go fine. My question is, what happens
>> when you halt a zone - for example, if MySQL is running on that
>> non-global zone, should you stop it first before halting the zone to
>> avoid the risk of corrupting data? Or is a halt safe without stopping
>> any running services first?
>>     
>
> I normally do:
>     zlogin myzone init 5
>   

Solaris 11 has "zone shutdown" to do this.
I don't recall if that was added before or after the fork.

-- 
Andrew



More information about the OpenIndiana-discuss mailing list