From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Carlos Chua Newsgroups: gmane.os.tru64.managers Subject: Summary: How to fix /etc/dsfl.dat corrupted? Date: Thu, 27 Mar 2003 23:40:34 +0800 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048779681 19442 80.91.224.249 (27 Mar 2003 15:41:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 27 Mar 2003 15:41:21 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Mar 27 16:41:18 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 18yZVG-00053J-00 for ; Thu, 27 Mar 2003 16:41:18 +0100 Original-Received: (qmail 3695 invoked by uid 5); 27 Mar 2003 15:41:13 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3686 invoked by uid 49493); 27 Mar 2003 15:41:13 -0000 Original-Received: from chuacarlos@hotmail.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.9/5.0):. Processed in 0.625319 secs); 27 Mar 2003 15:41:13 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 27 Mar 2003 15:41:12 -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 <0HCE000NFZKKL5@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 27 Mar 2003 10:41:10 -0500 (EST) Original-Received: from hotmail.com (oe22.law9.hotmail.com [64.4.8.79]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCE00L8EZK9SU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 27 Mar 2003 10:40:58 -0500 (EST) Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 27 Mar 2003 07:40:57 -0800 Original-Received: from 165.21.83.230 by oe22.law9.hotmail.com with DAV; Thu, 27 Mar 2003 15:40:57 +0000 X-Originating-IP: [165.21.83.230] Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-Priority: 3 X-MSMail-priority: Normal X-Originating-Email: [chuacarlos@hotmail.com] X-OriginalArrivalTime: 27 Mar 2003 15:40:57.0489 (UTC) FILETIME=[42912810:01C2F477] Xref: main.gmane.org gmane.os.tru64.managers:3812 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3812 Thanks to Dr. Thomas Blinn and Charles Ballowee for the reply. It seems like I could either get a good copy from the cd-rom or delete away the file and run some commands to re-create the file. Below are the replies I received. Thanks again for the help. I'll try out the solutions once I get the dowtime. Reply 1: It does sound like a hardware problem has corrupted your dsfl.dat file. (Note that the name contains the letter "l", not the digit "1", there is not supposed to be a "/etc/dsf1.dat" file on the system.) If you have a backup of the file, you should restore it from backup. If you don't have a backup, then you MIGHT get lucky by restoring it from the file on the installation media, as you suggest. Good luck. This is why it's important to have backups, and also to pay attention to the hardware error reporting logs. You really need to figure out how ingres monitor output got written into the file; if that's happening with this file, it may be happening to other parts of your root file system, and that will eventually lead to a total system failure. Reply 2: You can force a rebuild of the hardware db etc. by following the steps in: http://www.ornl.gov/cts/archives/mailing-lists/tru64-unix-managers/2002/09/m sg00280.html I've had luck with the second response listed there, i.e.: 2) Chris' response I did something like this (installed on an old AlphaServer 1000 for an ES40). After I did the install and got everything "set", I did the following on the AS1000 right before shutting down to remove the disk: #*#*#*# #!/bin/sh # Run in the root directory of the filesystem to "clean" rm ./etc/dec* rm ./etc/dccd.* rm ./etc/dcdd.* rm ./etc/dfsc.* rm ./etc/dfsl.* rm ./cluster/members/member/etc/cfginfo rm ./etc/cfginfo rm ./cluster/members/member/etc/dfsl.* rm ./dev/tty0* rm ./dev/lp* rm ./dev/kevm* rm ./dev/scp* for dir in cport disk rdisk changer tape ntape; do rm -rf ./devices/$dir rm -rf ./cluster/members/member/$dir rm ./dev/$dir done rm ./cluster/members/member/.Booted #*#*#*# That basically wipes out the hardware database, and when you boot (on the real system), it will be recreated for the real hardware. -------------------------------- I don't know that it's necessarily supported, but it does work. Just be careful if you have devices that will be sorted in a different order to make note of which dsk device names map to which devices. hwmgr -show scsi before you do that and save the output somewhere so you can shuffle things around before going past single user on restart. ----- Original Message ----- From: "Carlos Chua" To: Sent: Tuesday, March 25, 2003 11:12 PM Subject: How to fix /etc/dsfl.dat corrupted? > Hi, > > I'm trying to add a new disk to my Alphaserver ES40 running Tru64 Unix > v5.1A. After running "hwmgr -scan scsi", the system cannot create the device > file. When I run "dsfmgr -v", the system complains that it can't open the > /etc/dsf1.dat although the file is present. > > When I run "strings /etc/dsf1.dat", the output will show something like a > device listings, however, in between there would be some ingres monitor > output. Does this looks like my dsfl.dat is corrupted? if yes, what's the > proper way to fix the problem? Can copy the file from the installation > cd-rom and then run dsfmgr -F to recover? or is it more complicated than > that? > > Thanks in advance for any advice. > > Regards, > > Carlos > >