* ufs large filesystem recovery
@ 2003-05-07 15:10 Dominic Hargreaves
[not found] ` <"from dom+tum"@astro.ox.ac.uk>
0 siblings, 1 reply; 2+ messages in thread
From: Dominic Hargreaves @ 2003-05-07 15:10 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* SUMMARY: ufs large filesystem recovery
[not found] ` <"from dom+tum"@astro.ox.ac.uk>
@ 2003-05-08 13:10 ` Dominic Hargreaves
0 siblings, 0 replies; 2+ messages in thread
From: Dominic Hargreaves @ 2003-05-08 13:10 UTC (permalink / raw)
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." <alan@desdra.cxo.cpqcorp.net>
"Dr Thomas.Blinn@HP.com" <tpb@doctor.zk3.dec.com>
"Brusche, Johan" <johan.brusche@hp.com>
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-05-08 13:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-07 15:10 ufs large filesystem recovery Dominic Hargreaves
[not found] ` <"from dom+tum"@astro.ox.ac.uk>
2003-05-08 13:10 ` SUMMARY: " Dominic Hargreaves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox