9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: forsyth@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] file server trouble
Date: Wed,  3 Apr 2002 17:56:58 +0100	[thread overview]
Message-ID: <20020403170103.C42131999B@mail.cse.psu.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

i wouldn't necessarily suspect the drive.

it's saying that the fworm bitmap claims a
block has already been written, which isn't allowed
on a write-once structure.  thats fine, except
it might have been interrupted at some point when
the fworm bitmap had been written but pointers
in the super block and other structures updating
the allocation addresses had not been written.  the data might
or might not be in those blocks.
actually, i'd suspect it had crashed or rebooted
during a dump.

do the recover again, but try a kernel that uses a larger value in cw.c for
	h->fsize = s->fsize + 100;		/* this must be conservative */

you could also just comment out the fworm diagnostic.
i've done that in the past but i knew it was safe in those
cases because i had a clearer picture of its state when it crashed.


[-- Attachment #2: Type: message/rfc822, Size: 2462 bytes --]

To: 9fans@cse.psu.edu
Subject: Re: [9fans] file server trouble
Date: Wed, 3 Apr 2002 11:39:44 -0500
Message-ID: <20020403164150.3E2F319A55@mail.cse.psu.edu>

thanks to geoff's pointers, i was able to build a kernel that
correctly recovered my file system. the file server is back
up, and stays running in the face of normal use. but things
still arn't "right". i'm now getting lots of messages of the
following form on my file server console:

fworm: write 152116
cwio: write induced dump error - w worm
fworm: write 152117
cwio: write induced dump error - w worm
fworm: write 152151
cwio: write induced dump error - w worm
fworm: write 152152
cwio: write induced dump error - w worm

this started after a dump was attempted. the above block
would repeat every few seconds (~10). after the next
dump, a new set was generated, with about twice the
number of errors, printing about ever 20 seconds. this
looks to me like a bad disk (which is really annoying, since
it's a few months old). do others agree?

between now and when i can get the disk replaced, is
there any mechanism in the fs kernel for marking blocks
"bad"? and if not, am i correct in my belief that all my
dumps into the future will be unsafe, since dumps include
all the previous blocks (until modification)?


             reply	other threads:[~2002-04-03 16:56 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 16:56 forsyth [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-04-03 20:28 forsyth
2002-04-03 20:08 anothy
2002-04-03 16:39 anothy
2002-04-02 23:18 Geoff Collyer
2002-04-02 23:06 Geoff Collyer
2002-04-02 22:10 anothy
2002-04-02 20:57 forsyth
2002-04-02 20:36 anothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020403170103.C42131999B@mail.cse.psu.edu \
    --to=forsyth@vitanuova.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).