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: how to clean h/w db on o/s restore to new h/w Date: Wed, 02 Jul 2003 13:19:12 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3F031410.7080708@mit.edu> References: <3ED3BE36.60504@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 1057166673 13311 80.91.224.249 (2 Jul 2003 17:24:33 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 2 Jul 2003 17:24:33 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Jul 02 19:24:29 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 19XlGW-00030Z-00 for ; Wed, 02 Jul 2003 19:19:33 +0200 Original-Received: (qmail 5654 invoked by uid 5); 2 Jul 2003 17:19:56 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5645 invoked by uid 49493); 2 Jul 2003 17:19:56 -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(-9.2/5.0):. Processed in 0.447705 secs); 02 Jul 2003 17:19:56 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 2 Jul 2003 17:19:55 -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 <0HHE00CAOQT69X@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 02 Jul 2003 13:19:55 -0400 (EDT) Original-Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTPS id <0HHE00DC3QT0D1@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 02 Jul 2003 13:19:49 -0400 (EDT) Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by pacific-carrier-annex.mit.edu (8.12.4/8.9.2) with ESMTP id h62HJgEk016193 for ; Wed, 02 Jul 2003 13:19:42 -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 h62HJfv6002255 for ; Wed, 02 Jul 2003 13:19:41 -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 h62HJeU8017078 for ; Wed, 02 Jul 2003 13:19:41 -0400 (EDT) In-reply-to: <3ED3BE36.60504@mit.edu> 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:4732 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4732 I got several replies/pointers to okd posts or lists of files to delete in /etc most of which I found to be duplicated by running "/sbin/dn_setup -init". Ultimately my problem was using "mount -u /" and not "/sbin/mountroot" the latter which apparently does the former *and* syncs things with the runnung kernel. My device numbers were all fine once I used mountroot. Thanks for all the replies (that I don't have access to now for individual acknoledgement). _Mike Mike Broderick wrote: > I have a backup of one server (5.1a) that I want to restore to a > different h/w platform. I booted the O/S cd, mounted the root, > usr,var filesets and restored. Figuring the device db (and kernel > config) would be all out of whack I then booted the restored o/s disk > into single user using the generic kernel and did this to recreate the > device db: > > # mount -u / > # /sbin/dn_setup -init > # dsfmgr -K > > But my devices are still all screwed up (negative deivce IDs): > > # hwmgr v d HWID: Device Name Mfg > Model Location > ------------------------------------------------------------------------------ > 3: scp 4: > kevm 56: > floppy0 3.5in floppy fdi0-unit-0 > 93: dmapi -18: > (unknown) QUANTUM DLT8000 bus-2-targ-5-lun-0 > -16: (unknown) COMPAQ BD009222C7 bus-2-targ-1-lun-0 > -14: (unknown) COMPAQ BD009222C7 bus-2-targ-0-lun-0 > -12: (unknown) COMPAQ CDR-8435 bus-1-targ-0-lun-0 > > I cannot manually delete the devices as they have a negative id value > so the hwmgr del comp command fails. > > Is there something else I need to do? > > > _Mike > > >