On Tue, Dec 2, 2008 at 8:49 AM, Pavel Filipensky
<Pavel.Filipensky at sun.com> wrote:
> Mike Gerdts wrote:
>>
>> On Tue, Dec 2, 2008 at 3:44 AM, Pavel Filipensky
>> <Pavel.Filipensky at sun.com> wrote:
>>
>>>>
>>>> 5) default behavior:: limit action(s) to the current zone
>>>> available options: -Z ...apply action(s) to all *non-global* zones
>>>>
>>>>
>>>> So I propose to implement 5).
>>>>
>>>
>>> + add call of 'umountall -Z' to stop method /lib/svc/method/svc-zones
>>>
>>
>> The following:
>>
>> global# svcadm disable -t zones
>>
>> Should not cause NFS mounts in the global zone to go away.  This
>> implies the need for:
>>
>
> <snip>
> 5) default behavior:: limit action(s) to the current zone
> available options: -Z ...apply action(s) to all *non-global* zones
> </snip>

Missed that...

> -Z will apply only to *non-global* zones, so it will not cause NFS mounts
> in the global zone to go away.
>>
>> umountall -z zone ...
>>
>> svc-zones currently has the following shutdown logic:
>>
>> 1) zlogin $zone init 0
>> 2) zoneadm -z $zone halt
>> 3) give up and print an error message
>>
>
> We can make it as:
>
> 1) zlogin $zone init 0
> 2) zoneadm -z $zone halt
> 2.5) umountall -Z
> 3) give up and print an error message
>
> or
>
> 1) zlogin $zone init 0
> 1.5) umountall -Z
> 2) zoneadm -z $zone halt
> 3) give up and print an error message
>
> This is an implementation detail  which should be checked with zones people.
>
> So you basically agree with the soultion #5, or?

That works for me.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/

Reply via email to