From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Mike Broderick Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: bare-metal restore using Netbackup and different hardware Date: Thu, 03 Jul 2003 12:02:28 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F045394.8090902@mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1057248491 19159 80.91.224.249 (3 Jul 2003 16:08:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 3 Jul 2003 16:08:11 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Jul 03 18:08:09 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19Y6Xg-0004RH-00 for ; Thu, 03 Jul 2003 18:02:40 +0200 Original-Received: (qmail 29731 invoked by uid 5); 3 Jul 2003 16:03:06 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 29722 invoked by uid 49493); 3 Jul 2003 16:03:06 -0000 Original-Received: from broderic@MIT.EDU by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-0.3/5.0):. Processed in 0.500841 secs); 03 Jul 2003 16:03:06 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 3 Jul 2003 16:03:05 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HHG003Z4HX4LM@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 03 Jul 2003 12:03:04 -0400 (EDT) Original-Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HHG00AM6HWZDD@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 03 Jul 2003 12:03:00 -0400 (EDT) Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by fort-point-station.mit.edu (8.12.4/8.9.2) with ESMTP id h63G2wmK024038 for ; Thu, 03 Jul 2003 12:02:58 -0400 (EDT) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.12.4/8.9.2) with ESMTP id h63G2wEk018578 for ; Thu, 03 Jul 2003 12:02:58 -0400 (EDT) Original-Received: from mit.edu (VBALL.MIT.EDU [18.94.0.87]) ) by melbourne-city-street.mit.edu (8.12.4/8.12.4) with ESMTP id h63G2wU8013187 for ; Thu, 03 Jul 2003 12:02:58 -0400 (EDT) Original-To: tru64-unix-managers X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 Xref: main.gmane.org gmane.os.tru64.managers:4750 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4750 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 rewind - # mt fsf 1 - # mt fsr 1 - # nbtar xvpHfE /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