venti/vac/vacfs trouble

9 views
Skip to first unread message

J.R. Mauro

unread,
Aug 12, 2009, 6:47:37 PM8/12/09
to plan9p...@googlegroups.com
I've been delinquent and didn't do my nightly vac backups for a week
due to connection issues, but once I finally got back to doing a vac,
I couldn't see what I archived in vacfs. I'd been using vac with the
-a option so that I get the nice /YYYY/MMDD structure. Using vac about
a week after my last backup succeeds, but when I then use that score
to mount vacfs and try to ls in the latest directory, I get one of the
following errors:

/bin/ls: reading directory /n/dump/2009/0812/user/: Numerical result
out of range

OR

/bin/ls: reading directory /n/dump/2009/0812/user/: Input/output error

There seems to be nothing wrong with the disc or connection, as I can
ls any older directory on the venti server through vacfs. Any help
would be greatly appreciated. (I would have tried filing a bug, but
I'm not entirely sure this isn't my own fault by not running vacs for
a week or so).

Thanks,
Jorden

Russ Cox

unread,
Aug 12, 2009, 7:14:23 PM8/12/09
to jrm...@gmail.com, plan9p...@googlegroups.com
Does unvac -t work on the new vac file?

Russ

J.R. Mauro

unread,
Aug 12, 2009, 7:39:53 PM8/12/09
to Russ Cox, plan9p...@googlegroups.com
On Wed, Aug 12, 2009 at 7:14 PM, Russ Cox<r...@swtch.com> wrote:
> Does unvac -t work on the new vac file?
>
> Russ
>

It says "invalid score" and quits

J.R. Mauro

unread,
Aug 16, 2009, 7:17:57 PM8/16/09
to Russ Cox, plan9p...@googlegroups.com
On Wed, Aug 12, 2009 at 7:14 PM, Russ Cox<r...@swtch.com> wrote:
> Does unvac -t work on the new vac file?
>
> Russ
>

I have rebuilt the index and done a checkarenas. The end of a
checkindex run says this:

# diff actual correct
isect block 0x8165e000
> 90b6df7c906d016269346a87d10bc8de54c670ac 7214126182 16 300 1
checkindex: 0 spurious entries, 1 missing, 0 wrong
checkbloom: bloom header mismatch
venti/checkindex: errors found

I ran checkindex with -f, but it didn't say if it tried or did fix the
error. I thought rebuilding the index would have repaired something
like this. I decided to run vacfs with debugging on and try to ls the
bad directory (from the last vacfile). Vacfs had this to say:

(ls /n/dump/2009/0815/thedoctor)

vacfs:<-Twalk tag 57 fid 0 newfid 4 nwname 1 0:2009
vacfs:->Rwalk tag 57 nwqid 1 0:(0000000000000001 0 d)
vacfs:<-Tstat tag 57 fid 4
vacfs:->Rstat tag 57 stat '2009' 'vac' 'vac' '' q (0000000000000001 0
d) m 020000000555 at 1242594101 mt 1242594101 l 0 t 0 d 0
vacfs:<-Tclunk tag 57 fid 4
vacfs:->Rclunk tag 57
vacfs:<-Tclunk tag 57 fid 3
vacfs:->Rclunk tag 57
vacfs:<-Tclunk tag 57 fid 1
vacfs:->Rclunk tag 57
vacfs:<-Tclunk tag 57 fid 58
vacfs:->Rclunk tag 57
vacfs:<-Twalk tag 57 fid 0 newfid 58 nwname 1 0:2009
vacfs:->Rwalk tag 57 nwqid 1 0:(0000000000000001 0 d)
vacfs:<-Tstat tag 57 fid 58
vacfs:->Rstat tag 57 stat '2009' 'vac' 'vac' '' q (0000000000000001 0
d) m 020000000555 at 1242594101 mt 1242594101 l 0 t 0 d 0
vacfs:<-Twalk tag 57 fid 58 newfid 1 nwname 1 0:0815
vacfs:->Rwalk tag 57 nwqid 1 0:(0000000000000001 0 d)
vacfs:<-Tstat tag 57 fid 1
vacfs:->Rstat tag 57 stat '0815' 'vac' 'vac' '' q (0000000000000001 0
d) m 020000000555 at 1250385860 mt 1250385860 l 0 t 0 d 0
vacfs:<-Twalk tag 57 fid 1 newfid 3 nwname 1 0:thedoctor
vacfs:->Rwalk tag 57 nwqid 1 0:(0000000000000002 0 d)
vacfs:<-Tstat tag 57 fid 3
vacfs:->Rstat tag 57 stat 'thedoctor' 'thedoctor' 'thedoctor' '' q
(0000000000000002 0 d) m 020000000755 at 1250383540 mt 1250383539 l 0
t 0 d 0
vacfs:<-Twalk tag 57 fid 3 newfid 4 nwname 0
vacfs:->Rwalk tag 57 nwqid 0
vacfs:<-Topen tag 57 fid 4 mode 0
vacfs:->Ropen tag 57 qid (0000000000000002 0 d) iounit 8168
vacfs:<-Twalk tag 57 fid 4 newfid 5 nwname 1 0:..
vacfs:->Rerror tag 57 ename file already open for I/O
vacfs:<-Tread tag 57 fid 4 offset 0 count 8168
vacfs:->Rerror tag 57 ename venti i/o error
vacfs:<-Tclunk tag 57 fid 4
vacfs:->Rclunk tag 57

Does this give you any clues?

Russ Cox

unread,
Aug 17, 2009, 11:40:52 AM8/17/09
to J.R. Mauro, plan9p...@googlegroups.com
you ran vacfs -D, which dumps 9p messages.
please run vacfs -DV, which will dump venti protocol messages too.

russ

J.R. Mauro

unread,
Aug 17, 2009, 11:48:11 AM8/17/09
to Russ Cox, plan9p...@googlegroups.com

Same 'ls /n/dump/YYYY/MMDD/user'

4th line from bottom: read 8f3b8cce010fd4eb944c7eb195a536d93292432f:
read too small: asked for 8160 need at least 8180

; vacfs -d -V -m /n/dump -h 172.16.1.1 /n/vacfile.vac
vacfs -> unknown type 4
vacfs <- unknown type 5
vacfsopen 90b6df7c906d016269346a87d10bc8de54c670ac
vacfs -> unknown type 12
vacfs <- unknown type 13
openscore 8192 psize 8160 dsize 8192
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs -> unknown type 12
vacfs <- unknown type 13
; vacfs:<-Tversion tag 65535 msize 8192 version '9P2000.u'
vacfs:->Rversion tag 65535 msize 8192 version '9P2000.u'
vacfs:<-Tattach tag 0 fid 0 afid -1 uname thedoctor aname
vacfs:->Rattach tag 0 qid (0000000000000000 0 d)
vacfs:<-Twalk tag 0 fid 0 newfid 1 nwname 1 0:2009
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs:->Rwalk tag 0 nwqid 1 0:(0000000000000001 0 d)
vacfs:<-Tstat tag 0 fid 1
vacfs:->Rstat tag 0 stat '2009' 'vac' 'vac' '' q (0000000000000001 0


d) m 020000000555 at 1242594101 mt 1242594101 l 0 t 0 d 0

vacfs:<-Twalk tag 0 fid 1 newfid 2 nwname 1 0:0815
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs:->Rwalk tag 0 nwqid 1 0:(0000000000000001 0 d)
vacfs:<-Tstat tag 0 fid 2
vacfs:->Rstat tag 0 stat '0815' 'vac' 'vac' '' q (0000000000000001 0


d) m 020000000555 at 1250385860 mt 1250385860 l 0 t 0 d 0

vacfs:<-Twalk tag 0 fid 2 newfid 3 nwname 1 0:thedoctor
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs -> unknown type 12
vacfs <- unknown type 13
vacfs:->Rwalk tag 0 nwqid 1 0:(0000000000000002 0 d)
vacfs:<-Tstat tag 0 fid 3
vacfs:->Rstat tag 0 stat 'thedoctor' 'thedoctor' 'thedoctor' '' q


(0000000000000002 0 d) m 020000000755 at 1250383540 mt 1250383539 l 0
t 0 d 0

vacfs:<-Twalk tag 0 fid 3 newfid 4 nwname 0
vacfs:->Rwalk tag 0 nwqid 0
vacfs:<-Topen tag 0 fid 4 mode 0
vacfs:->Ropen tag 0 qid (0000000000000002 0 d) iounit 8168
vacfs:<-Twalk tag 0 fid 4 newfid 5 nwname 1 0:..
vacfs:->Rerror tag 0 ename file already open for I/O
vacfs:<-Tread tag 0 fid 4 offset 0 count 8168
vacfs -> unknown type 12
vacfs <- unknown type 1
read 8f3b8cce010fd4eb944c7eb195a536d93292432f: read too small: asked
for 8160 need at least 8180
vacfs:->Rerror tag 0 ename read too small: asked for 8160 need at least 8180
vacfs:<-Tclunk tag 0 fid 4
vacfs:->Rclunk tag 0

Reply all
Reply to author
Forward
0 new messages