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: bare-metal restore to diff h/w and h/w db Date: Tue, 04 Feb 2003 23:52:53 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3E4098A5.40709@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 1044420786 8845 80.91.224.249 (5 Feb 2003 04:53:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 5 Feb 2003 04:53:06 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18gHYW-0002IU-00 for ; Wed, 05 Feb 2003 05:53:04 +0100 Original-Received: (qmail 454 invoked by uid 5); 5 Feb 2003 04:54:53 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 445 invoked by uid 49493); 5 Feb 2003 04:54:52 -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.4/5.0):. Processed in 0.436595 secs); 05 Feb 2003 04:54:52 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 5 Feb 2003 04:54:52 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9T00JA7KBFWV@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 04 Feb 2003 23:54:52 -0500 (EST) Original-Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0H9T00KDFKALA9@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 04 Feb 2003 23:54:21 -0500 (EST) Original-Received: from central-city-carrier-station.mit.edu (CENTRAL-CITY-CARRIER-STATION.MIT.EDU [18.7.7.72]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id XAA15972 for ; Tue, 04 Feb 2003 23:54:19 -0500 (EST) Original-Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by central-city-carrier-station.mit.edu (8.9.2/8.9.2) with ESMTP id XAA08108 for ; Tue, 04 Feb 2003 23:54:19 -0500 (EST) Original-Received: from mit.edu (VBALL.MIT.EDU [18.94.0.87]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id XAA09395 for ; Tue, 04 Feb 2003 23:54:18 -0500 (EST) Original-To: tru64-unix-managers X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 Xref: main.gmane.org gmane.os.tru64.managers:3222 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3222 I need to develop a bare metal restore procedure for disaster recovery. The new h/w may not be identical to the old. I boot the install CD and restore / and /usr from tape then boot the restored O/S filesets in single user mode and with genvmunix with plans to touch up device names in fstab and fdmns and rebuild the kernel. But when the system boots, I cannot access much of the devices. I get negative id values for many devices in the h/w db... # hwmgr v d HWID: Device Name Mfg Model Location ------------------------------------------------------------------------------ 3: (unknown) 4: (unknown) (unknown) (unknown) 5: (unknown) 29: (unknown) 3.5in floppy fdi0-unit-0 -73: (unknown) QUANTUM DLT7000 bus-2-targ-4-lun-5 -71: (unknown) QUANTUM DLT7000 bus-2-targ-4-lun-2 -69: (unknown) QUANTUM DLT7000 bus-2-targ-3-lun-5 -67: (unknown) QUANTUM DLT7000 bus-2-targ-3-lun-2 -65: (unknown) QUANTUM DLT7000 bus-2-targ-2-lun-5 -63: (unknown) QUANTUM DLT7000 bus-2-targ-2-lun-2 -61: (unknown) QUANTUM DLT7000 bus-2-targ-1-lun-5 -59: (unknown) QUANTUM DLT7000 bus-2-targ-1-lun-2 -57: (unknown) QUANTUM DLT7000 bus-2-targ-0-lun-5 -55: (unknown) QUANTUM DLT7000 bus-2-targ-0-lun-2 -53: (unknown) QUANTUM DLT8000 bus-1-targ-5-lun-0 -51: (unknown) COMPAQ CD-224E bus-3-targ-0-lun-0 -49: (unknown) COMPAQ BD009635C3 bus-0-targ-0-lun-0 -26: (unknown) SWXCR ctlr-0-unit-2 -24: (unknown) SWXCR ctlr-0-unit-1 -22: (unknown) SWXCR ctlr-0-unit-0 -20: (unknown) SWXCR xcr0 I can get devices created for the first few devices w/ positive ids using '/sbin/dn_setup -init' and/or 'dsfmgr -K' but not for the negative ids. I then tried to clean things up w/ this... # hwmgr refresh comp hwmgr: Error (13) Permission denied. # hwmgr refresh scsi hwmgr: Refresh SCSI database operation was successful # But I still have the same negative id values and unknown devices. Is there some brute force way to wipe out the entire h/w db and recreate it once I've booted the retored O/S filesets _Mike P.S. - FWIW, My ultimate task is to devise a disaster recovery bare-metal restore process for Netbackup backed-up systems. We have the O/S backed up as a single stream (3 big NB tar (which is a modified GNU tar) tarballs (/,/usr,/var) on one tape. When I try to just boot the O/S CD, mount the disks on /var and restore these tarballs to the mounted filesets all the hard links don't restore as they try to restore to absolute paths which crosses devices .(E.g., a hard link from 'a' and 'b' both in /etc retores as a hark link from /var/mnt/root/etc/a to /etc/b which fails because /etc/b is on the CD.) So I'm trying to devise another not too lenghty process to accomplish this. I tried doing a simple clean O/S install and [v]dump that to tape to be [v]restored whereever. But I get the above problems (negative ids) presumably since the O/S install was [intentionally] done on different h/w. I wonder if I may just end up having to do a O/S install from CD on the destination system at recovery time, then restore the NB tarballs on top of that. Anyone else dealt with this scenario before and can offer tips?