smpatch/local zones, error even after zone uninstalled, fix

Solaris 10, Blade 1500 (silver)

Running smpatch update kept coming back with -

"This operation is not supported by this application for systems with local zones."

even though I had uninstalled the local zone I'd created earlier. I mv'ed the /etc/zones/index file to a new name and all was well. smpatch update completed successfully.

Just a tip,

D

[386 byte] By [adminsmc] at [2007-11-26 6:03:19]
# 1
.
ForumModerator at 2007-7-6 13:27:49 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 2
smpatch uses this command to determine if zones are configured:zoneadm list -cIf it reports anything other than the global zone, smpatch will not perform an update or add.-Dave
rave@sun at 2007-7-6 13:27:49 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 3

Correct, however doing an uninstall on a zone would leave the above mentioned index file populated with the removed zone. zoneadm list -c would still report the zone as there until the index file was edited/replaced/removed.

It's most likely my limitied knowledge of zones, but I thought the uninstall was the way to fully remove a zone.

Anywho, it's just a tip ;)

D

adminsmc at 2007-7-6 13:27:49 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 4
Yow need to not only run for example, zoneadm -z test uninstall, you will need to run zonecfg -z test delete, to remove all references onf the zone until smpatch is fixedCheersMark
mark2sun at 2007-7-6 13:27:49 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 5
Another option to get around this behaviour is by manually unzipping the .jar file after retrieval, then using the 'patchadd' command to install the patch.You will then see that it will also easily patch your zones as well.
LionO at 2007-7-6 13:27:49 > top of Java-index,Administration Tools,Sun Update Connection-System...
# 6
Aha! Thanks Mark!D
adminsmc at 2007-7-6 13:27:49 > top of Java-index,Administration Tools,Sun Update Connection-System...