Re: [OpenIndiana-discuss] Question about halting a zone

2012-05-09 Thread Uwe Reh

Am 08.05.2012 20:31, schrieb Andrew Gabriel:

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.


This subcommand seems to be added after the fork.
It isn't supported by zoneadm in oi_151a4.



___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Question about halting a zone

2012-05-09 Thread Jim Klimov

2012-05-09 11:58, Uwe Reh написал:

Am 08.05.2012 20:31, schrieb Andrew Gabriel:

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.


This subcommand seems to be added after the fork.
It isn't supported by zoneadm in oi_151a4.


Note that I've added an RFE for this. Seems relatively trivial
(i.e. shutdown could wrap a call to init 5 at least for
native/Solaris branded zones), if someone wants to take on
this quest:

https://www.illumos.org/issues/2594

HTH,
//Jim

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Question about halting a zone

2012-05-08 Thread Andrew Gabriel

Jeppe Toustrup wrote:

On Mon, May 7, 2012 at 3:57 PM, Mark Creamer white...@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

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Question about halting a zone

2012-05-07 Thread paolo marcheschi

Hi
If the Mysql service is started using SMF services, the halt is Safe, 
otherwise you have to stop the service.


Ciao
Paolo

On 05/07/12 15:57, Mark Creamer 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?

Thanks





___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Question about halting a zone

2012-05-07 Thread Jeppe Toustrup
On Mon, May 7, 2012 at 3:57 PM, Mark Creamer white...@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

This makes the zone shut down normally, running all the shutdown
procedures. zoneadm halt does not do that. Here's the help output
for zoneadm halt:
Halts specified zone, bypassing shutdown scripts and removing
runtime resources of the zone.

--
Venlig hilsen / Kind regards
Jeppe Toustrup (aka. Tenzer)

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss