Tuesday 6 January 2009

How to rename a zone

Operating System: Solaris 10 (Generic_125100-10 on Sun T2000) global zone


# zoneadm -z oldname halt
# zonecfg -z oldname
zonecfg:oldname> set zonename=newname
zonecfg:oldname> commit
zonecfg:oldname> exit
# zoneadm -z newname boot

To a great extent, that's it - you're done. But it is a good idea also to edit the /etc/hosts and the /etc/inet/ipnodes files, and update them with the new name also.

No comments: