From: mpetach@nyx.Stanford.EDU (Matthew Petach)
Subject: Help with repaired ADVfs disk?
Date: 1997/09/24 [thread overview]
Message-ID: <60afl6$d37$1@nntp.Stanford.EDU> (raw)
I'm sure everyone here is FAR more knowledgeable about
the internals of ADVfs on DEC alphas, so please, if
you know anything at all, have pity on a desperate
user...
I'm running a DEC Alpha 3000-300LX, and we recently had
the drive motor on a 4gb disk fail. The platters were
still fine, and we hadn't backed it up recently. I know,
shame on us. So, we had the platters pulled off the
drive, mounted on another spindle in a clean room, and
the data was pulled off and dumped to another drive
unit. That unit was then plugged back into the alpha,
which is running Digital Unix 4.0. Unfortunately,
I can't mount the partition anymore.
Here's the error I get when I try a simple
/sbin/advfs/verify test_domain
where test_domain is the domain that was transferred
from one set of platters to a new set of platters:
falcon:/sbin/advfs# ./verify test_domain
Error mounting test_domain#home: 5
All filesets must be unmounted
exiting...
falcon:/sbin/advfs#
and then, the console window shows this:
bmtr_find: corrupt bmt record header
AdvFS Domain Panic; Domain test_domain Id 0x313fe710.000a1eb9
Interestingly enough, I can walk the bmt tables manually,
though, by doing this:
falcon:/sbin/advfs# ls /etc/fdmns/test_domain/
rz5f@
falcon:/sbin/advfs# ./vbmtchain 0 0 /dev/rz5f
VOL 1 LBN 32 BMT PAGE 0 ========================================
CELL 0 nextVdIndex 1 linkSegment 0 tag,bfSetTag: -6, -2
nextMCId page 0 cell 4
==========================================================================
RECORD 0 bcnt 92 version 0 type 2 BSR_ATTR
state 3 BSRA_VALID
bfPgSz 16
transitionId 0
cloneId 0
cloneCnt 0
maxClonePgs 0
deleteWithClone 0
outOfSyncClone 0
cl.dataSafety 2 BFD_FTX_AGENT
cl.reqServices 0
cl.optServices 0
cl.extendSize 0
cl.s_shelfPri 0
cl.s_readAhead 0
cl.acl 0
cl.rsvd_sec1 0
cl.rsvd_sec2 0
cl.rsvd_sec3 0
(tons of output deleted)
I can walk (0,1) to (0,5) on the recovered disk with no
problems, but if I try to look at (0,6) onward, I just
segfault.
falcon:/sbin/advfs# ./vbmtchain 0 5 /dev/rz5f | more
VOL 1 LBN 32 BMT PAGE 0 ========================================
CELL 5 nextVdIndex 0 linkSegment 0 tag,bfSetTag: -11, -2
nextMCId page 0 cell 0
==========================================================================
RECORD 0 bcnt 92 version 0 type 2 BSR_ATTR
state 3 BSRA_VALID
bfPgSz 16
transitionId 0
cloneId 0
cloneCnt 0
maxClonePgs 0
deleteWithClone 0
outOfSyncClone 0
cl.dataSafety 2 BFD_FTX_AGENT
cl.reqServices 0
cl.optServices 0
cl.extendSize 0
cl.s_shelfPri 0
cl.s_readAhead 0
cl.acl 0
cl.rsvd_sec1 0
cl.rsvd_sec2 0
cl.rsvd_sec3 0
RECORD 1 bcnt 160 version 0 type 1 BSR_XTNTS
type 0 BSXMT_APPEND
chainVdIndex 0
chainMCId page 0 cell 0
tertiaryVdIndex 0
tertiaryMCId page 0 cell 0
blksPerPage 16
segmentSize 0
delLink.nextMCId page 0 cell 0
delLink.prevMCId page 0 cell 0
delRst.mcid page 0 cell 0
delRst.vdIndex 0
delRst.xtntIndex 0
delRst.offset 0
delRst.blocks 0
xu.nwf.nwPgCnt 0
xu.nwf.nwrPage 0
xu.nwf.notWrit[0] 00000000
xu.nwf.notWrit[1] 00000002
xu.x.mcellCnt 0
xu.x.xCnt 3
xu.x.bsXA[ 0] bsPage 0 vdblk 0
xu.x.bsXA[ 1] bsPage 2 vdblk 64
falcon:/sbin/advfs# ./vbmtchain 0 6 /dev/rz5f | more
Segmentation fault
falcon:/sbin/advfs#
But if I do this on my tmp partition, for example...
falcon:/sbin/advfs# ls /etc/fdmns/tmp_domain/
rz3d@
falcon:/sbin/advfs# ./vbmtchain 0 6 /dev/rz3d |more
VOL 1 LBN 32 BMT PAGE 0 ========================================
CELL 6 nextVdIndex 0 linkSegment 0 tag,bfSetTag: -6, -2
nextMCId page 0 cell 0
==========================================================================
RECORD 0 bcnt 264 version 0 type 5 BSR_XTRA_XTNTS
blksPerPage 16
xCnt 2
bsXA[ 0] bsPage 2 vdblk 132384
bsXA[ 1] bsPage 130 vdblk -1
I can continue walking other partitions with no problem, but
the recovered partition continues to segfault. Am I just SOL
in this case, or can I edit the bmt tables manually, or force
a salvage operation on them to somehow get the disk back into
working order again?
Any advice or information would be most welcome. If you need
any more information, I'll be happy to tell you anything at
all you want to know. I'm getting pretty desperate on this
one. :-(
Thanks so much!!
Matt Petach
mpetach@netflight.com, mattp@internex.net
--
#!/usr/local/bin/perl -- - # Matthew Nicholas Petach / kestrel@netflight.com
s,^,2dmguvtgnB4d/|a:dpgvhnkijv.eqo2d/3 |a:9d/5 /:17 /3d>:8d/3d>:15 s:7ds:13 s
5d2a/3d^3a:9 /-6d|:5ds^3 /:9 sd^-/:4ds:7 s:3d/3d>:5 /3d>:2d/5 a|:3 /d2a/:d/,;
s,$,a/:,;y/A-w/?-u/,;s/:/\n/g;s,q,/3b/,g;s,(\d+)(.),$2x$1,eg;s,b, ,g,;print;
reply other threads:[~1997-09-24 4:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox