i think the problem arise when cloning zone.
I first cloned a zone, to use it as a template, just to not halt a prod 
zone.
This zone is called template_zone. And i never boot it. I am able to 
create new zones with:
zoneadm -z newzone1 clone template_zone

now, i wan to delete the template zone, because i noticed that there are 
missing packages, and the problem arises:
r...@antigone:~# zoneadm -z template_zone uninstall
Are you sure you want to uninstall zone template_zone (y/[n])? y
: unknown locale
en_US.UTF-8: unknown locale
cannot destroy 'rpool/zones/template_zone/ROOT/zbe': filesystem has 
dependent clones
use '-R' to destroy the following datasets:
rpool/zones/catalogue/ROOT/zbe
cannot destroy 'rpool/zones/www/ROOT/z...@template_zone_snap': snapshot 
has dependent clones
use '-R' to destroy the following datasets:
rpool/zones/catalogue/ROOT/zbe
rpool/zones/template_zone/ROOT/z...@catalogue_snap
rpool/zones/template_zone/ROOT/zbe
Error: destroying ZFS dataset.
cannot destroy 'rpool/zones/template_zone/ROOT/zbe': filesystem has 
dependent clones
use '-R' to destroy the following datasets:
rpool/zones/catalogue/ROOT/zbe
Error: destroying ZFS dataset.


r...@antigone:~# zfs list -r rpool/zones
NAME                                 USED  AVAIL  REFER  MOUNTPOINT
rpool/zones/template_zone            443K  41.3G    37K 
/zones/template_zone
rpool/zones/template_zone/ROOT       406K  41.3G    18K  legacy
rpool/zones/template_zone/ROOT/zbe   388K  41.3G   908M  legacy
rpool/zones/www                      921M  41.3G    36K  /zones/www
rpool/zones/www/ROOT                 921M  41.3G    18K  legacy
rpool/zones/www/ROOT/zbe             921M  41.3G   908M  legacy

i think you can reproduce it. And also, the "locale" problem, because 
en_US.UTF-8 is forced during the installation, it's not my choice, why 
not, but in this case, why so many errors due to this "unknown locale" ?


r...@antigone:~# beadm list
BE            Active Mountpoint Space Policy Created
--            ------ ---------- ----- ------ -------
opensolaris   -      -          7.34M static 2008-12-12 20:57
opensolaris-1 NR     /          3.08G static 2008-12-12 21:55


Evan Layton wrote:
> What does the output from zfs list look like? What does beadm list
> show?
> 
> Where these zones created in the current global zone BE? How any BE are
> there on the system and are any of these zones in more than one BE?
> 
> These should be working and I'm unable to reproduce what you're seeing
> so I'm not sure what the problem is yet.
> 
> -evan
> 
> Free wrote:
>> hello all,
>> i'm trying to create many on os2008.11 machine, but i encounter problems
>> and i don't know if it is safe to ignore them:
>> r...@antigone:~# zoneadm -z www uninstall
>> Are you sure you want to uninstall zone www (y/[n])? y
>> cannot destroy 'rpool/zones/www/ROOT/zbe': filesystem has dependent 
>> clones
>> use '-R' to destroy the following datasets:
>> rpool/zones/bibcmi3/ROOT/zbe
>> cannot destroy 'rpool/zones/www/ROOT/zbe': filesystem has dependent 
>> clones
>> use '-R' to destroy the following datasets:
>> rpool/zones/bibcmi3/ROOT/zbe
>> Error: destroying ZFS dataset.
>> r...@antigone:~# zoneadm -z www -R uninstall
>> zoneadm: zone 'www': root path must be absolute.
>> r...@antigone:~# zoneadm -z www  uninstall -R
>> zoneadm: zone 'www': is already in state 'configured'.
>>
>> and in the console,  the following message appeared:
>> Dec 16 13:59:28 antigone zoneadmd[481]: [zone 'www'] WARNING: console
>> /devices//pseudo/zcons...@1/zc...@0 found, but it could not be removed.:
>> I/O error
>>
>> and before deleting this new zone, i have:
>> r...@www:~# ps -ef
>> ...
>>      root  5217  5213   0 03:10:01 ?           0:02 /bin/chown 0:0
>> /var/adm/messages
>>
>> r...@www:~# ptree 5217
>> 529   zsched
>>    929   /usr/sbin/cron
>>      5213  /usr/sbin/logadm
>>        5217  /bin/chown 0:0 /var/adm/messages
>>
>> strange, isn't it?
>>
>> thanks in advance for help,
>>
>> gerard
>> _______________________________________________
>> indiana-discuss mailing list
>> [email protected]
>> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
> 
_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to