This is not a summary of a sinlge post but actually a summary of several
related posts I've posted over the last few months related to a single
larger task/problem I was working on. The issue is a simple/efficient
way to do bare-metal restores (possibly to somewhat different hardware,
e.g., for disaster recovery) when backing up using Veritas Netbackup
(NB). I didn't want to have to install the O/S and NB first on every
system before starting the restore. It seems there was a lot of others
out there w/ similar issues I wanted to share my successful end result.
Here's the brief summary:
- Do single stream (one tape) NB backup of entire O/S (e.g., /, /usr, /var)
as often as needed. (This gives you one big tarball on a single tape.)
- Have copy of NB tar (/usr/openv/netbackup/bin/tar) on removeable media
(e.g., floppy, 'tar cvf /dev/disk/floppy0c nbtar')
- Boot the Tru64 Install CD and exit to the cmd prompt (option #3)
- Set up disk labels if needed (disklabel -e)
- Mount root (/) filesystem on /var/mnt
- Mount /usr and /var on /var/mnt/usr and /var/mnt/var
- Retreive NB tar (nbtar) from removeable media
(e.g., 'tar xvf /dev/disk/floppy0c)
- # echo "change / to /var/mnt" >/var/tmp/rename
- # cd /
- # mt <tape_dev> rewind
- # mt <tape_dev> fsf 1
- # mt <tape_dev> fsr 1
- # nbtar xvpHfE <tape-dev> /tmp/rename
...
- If restoring to identical h/w you should be able to just shutdown/boot
restored disks. I had repartitioned disks (incl swap) and 'dsfmgr -VFv
showed a kmem error on startup so I booted single user first and rebuilt
the kernel.
- If hardware is not identical
o boot single-user mode
o /sbin/mountroot
o /sbin/dn_setup -clean
o check all device names/mappings (e.g., Is boot disk still dsk0?) and
use 'dsfmgf -m' or 'dsfmgf -e' to tweak as needed.
o reboot into multi-user
- Assuming NB is installed on the O/S filesystems, you can then start/use
NB to restore other stuff
As always, YMMV :-). Hope this helps...
_Mike
Received on Thu Jul 03 2003 - 16:03:36 NZST