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: ufs large filesystem recovery Date: Wed, 07 May 2003 16:10:53 +0100 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <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 1052320334 4301 80.91.224.249 (7 May 2003 15:12:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 7 May 2003 15:12:14 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed May 07 17:12:13 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 19DQYM-0000hG-00 for ; Wed, 07 May 2003 17:09:54 +0200 Original-Received: (qmail 15611 invoked by uid 5); 7 May 2003 15:11:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 15596 invoked by uid 49493); 7 May 2003 15:11:11 -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(-7.9/5.0):. Processed in 0.455888 secs); 07 May 2003 15:11:11 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 7 May 2003 15:11:10 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEI001U7VILPL@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 07 May 2003 11:11:10 -0400 (EDT) Original-Received: from bubblybuss.physics.ox.ac.uk (bubblybuss.physics.ox.ac.uk [163.1.246.16]) by emroute2.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HEI00D3EVICJR@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 07 May 2003 11: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 2FA832FD8 for ; Wed, 07 May 2003 16:10:54 +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 048544A53 for ; Wed, 07 May 2003 16:10:53 +0100 (BST) Original-Received: by isay.physics.ox.ac.uk (Astromail, from userid 4416) id E7E9F64E48; Wed, 07 May 2003 16:10:53 +0100 (BST) 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:4157 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4157 Hello, I have a problem with a large (~ 450GB) UFS filesystem. It was uncleanly unmounted, and /may/ (although this is not clear to me) have been partially corrupted by an over-anxious plug and play RAID rebuilding. However some semblance of data is still on the disk; in particular, it still contains a valid boot block and running "strings" on a portion of the raw disk shows portions of the data that used to be there. However, on running "disklabel -p rz19" I get the following: [snip] 8 partitions: # size offset fstype [fsize bsize cpg] NOTE: values not exact a: 131072 0 unused 0 0 # (Cyl. 0 - 7) b: 262144 131072 unused 0 0 # (Cyl. 8 - 23) c: 937754624 0 unused 0 0 # (Cyl. 0 - 57235) d: 0 0 unused 0 0 # (Cyl. 0 - -1) e: 0 0 unused 0 0 # (Cyl. 0 - -1) f: 0 0 unused 0 0 # (Cyl. 0 - -1) g: 468680704 393216 unused 0 0 # (Cyl. 24 - 28629) h: 468680704 469073920 unused 0 0 # (Cyl. 28630 - 57235) (reformatted to fit into 80 chars). This is partially sane (slice c is the correct number of 512k blocks), however previously slice a took up the whole disk and contained the UFS filesystem in question. Running fsck on slice a (or slice c) results in the following: /sbin/ufs_fsck /dev/rz19a ** /dev/rrz19a cannot alloc 111121921 bytes for statemap This is reproducable on several machines; a DS10L, and some older Alphastations. I would be interested to hear of possible recovery methods for this data. The catch might be that I have nowhere to put a 450GB image of the disk to work on; however the amount of useful data on the disk probably doesn't exceed 40 GB. I imagine another possible fix might be to manually alter the slice table (apologies for possibly incorrect terminology) but I'm not sure how to go about this at all, nevermind safely (since disklabel -e would presumably end up overwriting portions of data). Thanks in advance for help. -- Dominic Hargreaves || Astrophysics Deputy Systems Manager