Restoring a Non-Global Zone
How to Restore an Individual Non-Global Zone
You can use the backup files of your non-global zone configurations to restore
non-global zones, if necessary. This procedure uses a zone named my-zone and
a backup file named my-zone.config to illustrate the process of restoring a zone.
- Become superuser, or assume the Primary Administrator role.
To create the role and assign the role to a user, see
Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration.
- Specify that my-zone.config be used as the zonecfg command file to recreate
the zone my-zone.
global# zonecfg -z my-zone -f my-zone.config
- Install the zone.
global# zoneadm -z my-zone install
- To prevent the system from displaying the sysidtool questions upon initial zone login,
delete the file zonepath/root/etc/.UNCONFIGURED, for example:
global# rm /export/home/my-zone/root/etc/.UNCONFIGURED
- If you have any zone-specific files to restore, such as application data, manually
restore (and possibly hand-merge) files from a backup into the newly created zone's
root file system.