how to clean h/w db on o/s restore to new h/w

From: Mike Broderick (broderic@MIT.EDU)
Date: Tue May 27 2003 - 15:36:22 EDT


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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:20 EDT