From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Hutcheson, Mike" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Need help fixing possibly corrupt hardware database Date: Thu, 19 Jun 2003 17:41:28 -0500 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <016EC868F473D647B5DB7C5449A8510B1A9D30@FS-EXCHANGE1.baylor.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1056062520 18770 80.91.224.249 (19 Jun 2003 22:42:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 19 Jun 2003 22:42:00 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Jun 20 00:41:58 2003 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 19T86P-0004sU-00 for ; Fri, 20 Jun 2003 00:41:58 +0200 Original-Received: (qmail 10422 invoked by uid 5); 19 Jun 2003 22:41:52 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 10412 invoked by uid 49493); 19 Jun 2003 22:41:52 -0000 Original-Received: from Mike_Hutcheson@baylor.edu by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.0/5.0):. Processed in 0.554256 secs); 19 Jun 2003 22:41:52 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 19 Jun 2003 22:41:51 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGR004N931QEF@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jun 2003 18:41:51 -0400 (EDT) Original-Received: from FS-EXCHANGE1.baylor.edu (flopsy.baylor.edu [129.62.3.249]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HGR00B6Q315CP@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 19 Jun 2003 18:41:30 -0400 (EDT) Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Thread-Topic: SUMMARY: Need help fixing possibly corrupt hardware database Thread-Index: AcM2s+nSolIwuxGyQs6lWAS/vOEHZw== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:4608 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4608 I received two responses, both from HP, regarding the corrupt HW = databases. The solution worked. Many thanks to: Phillip Brown and Jason Orendorf. Below is Phillip's response. Jason's was very similar. Since you've got such a simple system, you can easily re-init the HW = DBs. This will renumber all of your devices, so save that copy of your = old hwmgr -show scsi output. You'll move new device special file names = back to the old names after the initialization. In single-user, after you issue the "mountroot", run: # dn_setup -init # dsfmgr -K Note: If LSM is in use, then you'll need to recreate the mandatory LSM = devices you've just deleted with the init. Do that like this: # mknod /dev/volconfig c 41 0 # mknod /dev/voltrace c 41 1 # mknod /dev/voliod c 41 2 # mknod /dev/volinfo c 41 3 The following should return no errors if this is successful.=20 # dsfmgr -v =20 You should be able to bcheckrc and come up normally. I'd reboot normally = as a further check. If it fails, let me know. We'll supply you with a = procedure for re-making your hardware databases from scratch. Phil -----Original Message----- From: Hutcheson, Mike [mailto:Mike_Hutcheson@baylor.edu] Sent: Thursday, June 19, 2003 3:51 PM To: tru64-unix-managers@ornl.gov Subject: Need help fixing possibly corrupt hardware database Dear System Administrators, =20 Hi. In a period of crisis yesterday, I removed a TZ88 tape drive from a = live standalone DS20E running Tru64 5.1A. It was the only device = attached to a single-ended SCSI bus. The tape drive served as an = emergency replacement for one that failed on a different system. Field = service repaired the TZ88 that failed, I set the SCSI ID on the repaired = drive to what the ID of the original unit was, connected the SCSI cable, = and powered it on. When will I learn? =20 After loading a tape into the drive, I issued an mt seod to skip to end = of data on the tape. After pressing return, the system promptly = crashed. D'oh! =20 It then started rebooting. Right after the file systems mounted the = following error messages appeared: =20 dsfmgr: ERROR: ADD inconsistant datum for registered device: kevm = HWID-BNID was : 4-2, is: 72-15 NOTE: probable cause was previous failure of command: = "dsfmgr -R hwid 4" dsfmgr: ERROR: ADD inconstistant datum for registered device: kevm.pterm = HWID-BNID was: 4-2, is: 72-15 NOTE: probable cause was previous failure of command: = "dsfmgr -R hwid 4" dsfmgr: ERROR: ADD inconstistant datum for registered device: kevm.debug = HWID-BNID was: 4-2, is: 72-15 NOTE: probable cause was previous failure of command: = "dsfmgr -R hwid 4" dsfmgr: ERROR: ADD inconstistant datum for registered device: tty00 = HWID-BNID was: 35-3, is: 102-16 NOTE: probable cause was previous failure of command: = "dsfmgr -R hwid 35" dsfmgr: ERROR: ADD inconstistant datum for registered device: tty01 = HWID-BNID was: 37-4, is: 104-17 NOTE: probable cause was previous failure of command: = "dsfmgr -R hwid 37" dsfmgr: ERROR: ADD inconstistant datum for registered device: lp0 = HWID-BNID was: 39-5, is: 106-18 NOTE: probable cause was previous failure of command: = "dsfmgr -R hwid 39" bcheckrc: Device Naming failed boot configure or verify. Please correct the problem and continue or reboot =20 INIT: SINGLE-USER MODE =20 I can recreate the above errors with the following command: =20 dn_setup -boot =20 If I boot into single user mode, then type bcheckrc, I get the above = errors. However, if I then type bcheckrc again a second time, it mounts = the file systems without error messages. However, I can get dn_setup = -boot to generate the message again. =20 Below is information I got from hwmgr and dsfmgr: =20 #hwmgr show scsi SCSI DEVICE DEVICE = DRIVER NUM DEVICE FIRST HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE = VALID PATH -------------------------------------------------------------------------= -------------------------------- 53: 0 disk = none 2 2 dsk0 [6/0/0] 54: 1 disk = none 0 2 dsk1 [6/1/0] 55: 2 disk = none 0 2 dsk2 [6/2/0] 56: 3 disk = none 0 2 dsk3 [6/3/0] 122: 4 cdrom none = 0 1 cdrom1 [1/0/0] 134: 5 tape = none 0 1 tape2 [5/5/0] =20 #hwmgr view dev SCSI DEVICE DEVICE = DRIVER NUM DEVICE FIRST HWID: DEVICEID HOSTNAME TYPE SUBTYPE OWNER PATH FILE = VALID PATH -------------------------------------------------------------------------= -------------------------------- 53: 0 disk = none 2 2 dsk0 [6/0/0] 54: 1 disk = none 0 2 dsk1 [6/1/0] 55: 2 disk = none 0 2 dsk2 [6/2/0] 56: 3 disk = none 0 2 dsk3 [6/3/0] 122: 4 cdrom none = 0 1 cdrom1 [1/0/0] 134: 5 tape = none 0 1 tape2 [5/5/0] =20 #dsfmgr -vVF dsfmgr -vVF gives the following output: =20 Secure Session Lock. At Thu Jun 19 15:58:51 2003 dsfmgr: verify with fix all datum for system (5.1A-0 1885) at / =20 Default File Tree: OK. =20 Device Class Directory Default Database: OK. =20 Device Category to Class Directory Database: OK. =20 Dev directory structure: OK. =20 Device Status Files: OK. =20 Dev Nodes: WARNING: status record not found for HWID 71: c 'scp_scsi' NOTE: to fix, execute: "dsfmgr: -K" WARNING: status record not found for HWID 72: c 'kevm' WARNING: status record not found for HWID 72: c 'kevm.pterm' WARNING: status record not found for HWID 72: c 'kevm.debug' WARNING: status record not found for HWID 102: c 'tty##' WARNING: status record not found for HWID 104: c 'tty##' WARNING: status record not found for HWID 106: c 'lp##' OK. =20 Command Status =3D 2 : No such file or directory Release Session Lock at Thu Jun 19 15:58:51 2003 =20 I tried dsfmgr -K mentioned above but it just gave me the dsmgr errors = listed at the beginning of this email. =20 What does the problem appear to be and how may I go about fixing it? =20 Thanks very much for your help, =20 Mike Hutcheson (Mike_Hutcheson@baylor.edu) Systems Manager (254) 710-4110 Baylor University - Electronic Library