From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ron Bramblett Newsgroups: gmane.os.tru64.managers Subject: Summary: File Corruption casuing many problems Date: Fri, 07 Nov 2003 09:57:57 -0600 Organization: Fuller Brush Company Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3FABC105.40607@fuller.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1068220756 2790 80.91.224.253 (7 Nov 2003 15:59:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2003 15:59:16 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Fri Nov 07 16:59:11 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1AI90x-0007wf-00 for ; Fri, 07 Nov 2003 16:59:11 +0100 Original-Received: (qmail 12682 invoked by uid 5); 7 Nov 2003 15:59:03 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 12667 invoked by uid 49493); 7 Nov 2003 15:59:03 -0000 Original-Received: from bramblet@fuller.com by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-4.7/5.0):. Processed in 0.773691 secs); 07 Nov 2003 15:59:03 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 7 Nov 2003 15:59:02 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HNZ00IXTOE6LV@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Nov 2003 10:59:00 -0500 (EST) Original-Received: from rebel.fuller.com (ip.fbc.net [162.39.97.161]) by emroute1.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTPS id <0HNZ0064VODVPU@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 07 Nov 2003 10:58:47 -0500 (EST) Original-Received: from fuller.com (rebel [172.16.1.234]) by rebel.fuller.com (8.12.8/8.12.5) with ESMTP id hA7Fw0OT012931 for ; Fri, 07 Nov 2003 09:58:03 -0600 Original-To: Unix Managers X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 Xref: main.gmane.org gmane.os.tru64.managers:5759 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5759 I asked: I have a AS2000 running 4.0g PK3, 512 MB memory, 2 300Mhz CPU's In short, I had a system that would not let me boot and the / filesystem was corrupt. Thanks to the fine answers from Dr. Tom Ian Baker Allan Rollow I like Dr. Tom's answer best It sounds like the initial tape drive problem (was it "rmt0"?) lead to a sequence of mis-steps. I doubt you've been hacked. You need to just work through getting the system stable again. Any time you make almost ANY change in a production environment, you have the risk of having something down-stream "break" because of a dependency on how things were working before that wasn't fully understood. There is a probably a relatively simple explanation for each of the symptoms you've hit. For instance, it's possible to have "osf_boot" be missing because it never got restored from a backup. Or you can hit other problems (like your bad /etc/fstab which probably happened as you were re-building your boot disk from the prior problems). It is just a messy process and you just have to keep finding things and fixing them until things stabilize again. Ian said to recreate the disklabel. I plan on doing that this weekend but there is more involved. Allan's Comments deserve reading also. Very good. Regarding the SCSI adapter that was a wonder it worked at all... Actually, it looks like it wasn't working. Or at least only enough to cause problems with the devices it was presenting. Regarding reformatting the page/swap space... The page/swap space isn't a format, other than the low level format of the underlying disk that makes the disk usable. Page/swap space is just blocks. No file system. Don't bother making one since it will just get overwritten as it is used. The absense of osf_boot is usually the result of it not being there, or something having happened to the boot blocks of the disk. Someone in the last week or so was changing partition tables. My vague recollection (the list gets lots of questions) is that it might have been you. If so, the disk may not have a boot block. If the disk is failing or the SCSI adapter to which it is connected is going insane, then that could cause the content of the boot blocks to be overwritten or quietly fail to read. Unless a special device has become corrupted, its major and/or minor number changed, recreating them will have no affect on the underlying device working. The special file merely encodes the major/minor device numbers and provides access control. I would track down a CDROM distribution of V4.0G and boot it. To the extent possible, non-destructively exercise all the devices on the system to verify they seem to work. For disks with unused or page/swap partitions, a read/write test is safe, if you can manage not to touch other partitions. Check the partition tables before doing anything that writes to ensure they address the parts of the disk they're supposed to. For devices with removable media (tapes), do write/read testing on those to ensure they're working correctly. Fix any hardware problems you encounter before going further. Mount the root file system with the standalone system and verify it looks intact. Compare the top of the root with that of the CDROM and a file listing of the backup. For minor damage see if you can copy the missing files from the CDROM. For anything else, restore from the last known good backup. If you have removable disks, you might also consider a clean installation on a spare disk. Use that to help check the rest of the system. Be methodical. So to summarize the whole thing. Basically the scsi controller failed / came loose from the box causing software corruption on the / file system. Everything else that happened was on me. (Not building the disklabel correctly, moving osf_boot off of main partition, etc) -- Ron Bramblett Sys Admin Fuller Brush Company