From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Dominic Hargreaves Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: ufs large filesystem recovery Date: Thu, 08 May 2003 14:10:48 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20030508141048.F29273@astro.ox.ac.uk> References: <20030507161053.F27106@astro.ox.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1052399399 18598 80.91.224.249 (8 May 2003 13:09:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 8 May 2003 13:09:59 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu May 08 15:09: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 19Dl9p-0004pf-00 for ; Thu, 08 May 2003 15:09:57 +0200 Original-Received: (qmail 22495 invoked by uid 5); 8 May 2003 13:11:15 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 22471 invoked by uid 49493); 8 May 2003 13:11:14 -0000 Original-Received: from dom@astro.ox.ac.uk by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-13.2/5.0):. Processed in 0.501643 secs); 08 May 2003 13:11:14 -0000 Original-Received: from unknown (HELO emroute3.ornl.gov) (160.91.4.110) by 0 with SMTP; 8 May 2003 13:11:14 -0000 Original-Received: from emroute3.ornl.gov (localhost [127.0.0.1]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEK00KYUKMO0I@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 May 2003 09:11:13 -0400 (EDT) Original-Received: from bubblybuss.physics.ox.ac.uk (bubblybuss.physics.ox.ac.uk [163.1.246.16]) by emroute3.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEK00LKOKM71N@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 08 May 2003 09:11:06 -0400 (EDT) Original-Received: from astro.ox.ac.uk (alderamin.physics.ox.ac.uk [163.1.246.32]) by bubblybuss.physics.ox.ac.uk (Astromail) with ESMTP id 3B1BC2FD8 for ; Thu, 08 May 2003 14:10:49 +0100 (BST) Original-Received: from isay.physics.ox.ac.uk (isay.physics.ox.ac.uk [163.1.246.108]) by astro.ox.ac.uk (Astromail) with ESMTP id 192C84A55 for ; Thu, 08 May 2003 14:10:49 +0100 (BST) Original-Received: by isay.physics.ox.ac.uk (Astromail, from userid 4416) id A9C4D64E48; Thu, 08 May 2003 14:10:48 +0100 (BST) In-reply-to: <"from dom+tum"@astro.ox.ac.uk> Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Xref: main.gmane.org gmane.os.tru64.managers:4168 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4168 The problem was that a large UFS filesystem (~450 GB) produced errors from fsck. Also, it seemed that the disklabel had been overwritten. As always, multiple red herrings colluded to make the problem more interesting. Thanks to replies from: tsh@mrc-lmb.cam.ac.uk, "Alan Rollow - Dr. File System's Home for Wayward Inodes." "Dr Thomas.Blinn@HP.com" "Brusche, Johan" Thomas and Alan pointed out that this was a very large filesystem and that fsck might have problems allocating memory at 1 byte for every fragment on the filesystem. Thomas also pointed out very helpfully that disklabel -p printed out the /prototype/ disklabel for the disk, not the actual one. Using the correct "disklabel -r" form yielded familiar results. In fact, that machine had ample memory (1GB real, 2GB total) and I could see no obvious limits in ulimit or /etc/sysconfigtab. However, at this point I realised that I could mount the dirty filesystem read-only (mount -r -d /dev/rz19a) and this allowed access to the data. Since I believe the system was fairly idle at the time of the crash, I believe this was a reasonable strategy. I will now recreate several smaller filesystems on the disk and test that I am able to fsck them, before restoring the data. If someone could point me at some other possible cause of the process limit/ fsck error message, I would be interested, but the panic is now over :) Regards, -- Dominic Hargreaves || Astrophysics Deputy Systems Manager