Solaris 11 - System Backup
- Identify an NFS share to dump the backup onto
- Identify any data exclusions on the server (eg database volumes)
- Clear up any alternate boot environment issues, deleted the older BE's
- Determine zones and datasets we might include/exclude ($ zpool list ; $ zoneadm list)
- Generate the archive, here are some examples,
$ Z=`zoneadm list | grep -v global | awk '{print "-z "$1}' | xargs`
$ archiveadm create $Z /ua/`hostname`.ng.uar
# Recovery archive, global zone only, and some FS exclusions,
$ D=`zpool list -H | awk '{print $1}' | grep -v rpool | awk '{print "-D "$1}' | xargs`
$ archiveadm create -r -z global $D /ua/`hostname`.gl.uar
# Recovery archive, non-global zones,
$ for Z in `zoneadm list | grep -v global | xargs`; do
archiveadm create -r -z $Z /ua/$Z.uar
done
Review the backup archive content, and note that the recovery archive type includes system configuration (hostname, IP etc).
$ archiveadm info -v /ua/zone1.uar
Solaris 11 - Restore a zone
In this example we destroy an existing zone and replace it using the archive backup.
$ zoneadm -z zone1 halt
$ zoneadm -z zone1 uninstall -F
$ zonecfg -z zone1 delete -F
$ zonecfg -z zone1 create -a /ua/my.rcv.uar -z zone1
$ zoneadm -z zone1 install -a /ua/my.rcv.uar -z zone1
$ zoneadm -z zone1 boot
Optionally, preserve the original zone and create the new zone with a different name.
No comments:
Post a Comment