I am not able to explain how did we get into this problem, but somehow we ended up in the situation when there was xml file for a zone in /etc/zones, but there was not entry in /etc/zones/index file for it. This has the following effect:
The entry for labv490-01z5 is not in the index file: [EMAIL PROTECTED] cat index # Copyright 2004 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "@(#)zones-index 1.2 04/04/01 SMI" # # DO NOT EDIT: this file is automatically generated by zoneadm(1M) # and zonecfg(1M). Any manual changes will be lost. # global:installed:/ labv490-01z3:installed:/export/zones/labv490-01z3/main:00000034-ffbf-f78 d-ffbf-f76001000000 labv490-01z2:installed:/export/zones/labv490-01z2/main:00000034-ffbf-f78 d-ffbf-f76001000000 labv490wsz2:installed:/export/zones/labv490wsz2/main:00000035-ffbf-f79c- ffbf-f77001000000 labv490wsz3:installed:/export/zones/labv490wsz3/main:00000035-ffbf-f7a4- ffbf-f77801000000 labv490-01z4:installed:/export/zones/labv490-01z4/main:00000034-ffbf-f78 d-ffbf-f76001000000 labv490-01z1:installed:/export/zones/labv490-01z1/main:1e8e9aa7-1588-ebe 1-f882-b4fee4bb2e37 labv490wsz1:installed:/export/zones/labv490wsz1/main:00000035-ffbf-f78c- ffbf-f76001000000 labv490-01z6:installed:/export/zones/labv490-01z6/main:0bbebb5c-4579-e5f b-9f4a-cf150bbe79ff labv490-01z7:installed:/export/zones/labv490-01z7/main:9fd602de-cf38-663 f-8e5d-9be369e5a705 But it can be processed with no problems: [EMAIL PROTECTED] zonecfg -z labv490-01z5 verify [EMAIL PROTECTED] echo $? 0 Problem happens when we try to remove the zone: [EMAIL PROTECTED] zonecfg -z labv490-01z5 delete Are you sure you want to delete zone labv490-01z5 (y/[n])? y Zone labv490-01z5 not in configured state; delete not allowed. Use -F to force delete. Suggested option not recognized: [EMAIL PROTECTED] zonecfg -F -z labv490-01z5 delete zonecfg: illegal option -- F usage: zonecfg help zonecfg -z <zone> (interactive) zonecfg -z <zone> <command> zonecfg -z <zone> -f <command-file> [EMAIL PROTECTED] First question is, how we ended up with the problem - is thee a way to break the "zonecfg -z <name> delete" command, so it will remove only the index, leaving the xml? And second, why the force option -F doesn't work? This e-mail and its attachments are confidential and solely for the intended addressee(s). Do not share or use them without Fannie Mae's approval. If received in error, contact the sender and delete them.
_______________________________________________ zones-discuss mailing list email@example.com