tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* how to clean h/w db on o/s restore to new h/w
@ 2003-05-27 19:36 Mike Broderick
  2003-07-02 17:19 ` SUMMARY: " Mike Broderick
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Broderick @ 2003-05-27 19:36 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 2+ messages in thread

* SUMMARY: how to clean h/w db on o/s restore to new h/w
  2003-05-27 19:36 how to clean h/w db on o/s restore to new h/w Mike Broderick
@ 2003-07-02 17:19 ` Mike Broderick
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Broderick @ 2003-07-02 17:19 UTC (permalink / raw)


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
>
>
>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-02 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-27 19:36 how to clean h/w db on o/s restore to new h/w Mike Broderick
2003-07-02 17:19 ` SUMMARY: " Mike Broderick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox