9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] KFS Crash
@ 2001-02-14 23:06 rob pike
  0 siblings, 0 replies; 6+ messages in thread
From: rob pike @ 2001-02-14 23:06 UTC (permalink / raw)
  To: 9fans

> 	1. If rio crashes is there a way to kill
> 	   rio and get back to the shell?
>
> Not really.

Yes really, although it's not pretty.

On bad rio days (I have them more than most people, I suspect,
although still not very often) I need to debug rio after it's crashed.
If you have a shell prompt, you're golden but it takes a little work.
Hit carriage return until every one gets you a shell prompt; that
means the rio process holding the keyboard open has filled its
buffer.  Then, although echo will still be off, the shell is all yours.
Type
	kill rio|rc
and you'll get echo back and you can restart rio or whatever else
you want to do.

There, isn't that disgusting?  But I helped track down a corrupt
network interface on an IRIX machine a little while ago so I'm in
a debugging, sharing mood.

-rob



^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [9fans] KFS Crash
@ 2001-02-14 22:02 Russ Cox
  0 siblings, 0 replies; 6+ messages in thread
From: Russ Cox @ 2001-02-14 22:02 UTC (permalink / raw)
  To: 9fans

	It's kinda bad that it doesn't give you a chance to answer the question.
	A kfs on a rescue floppy would at least let you check the filesystem
	and maybe recover something.

At least it assumes a negative answer rather
than reformatting your file system right then
and there.

Russ


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [9fans] KFS Crash
@ 2001-02-14 22:01 Russ Cox
  2001-02-15 14:31 ` Mark C. Otto
  0 siblings, 1 reply; 6+ messages in thread
From: Russ Cox @ 2001-02-14 22:01 UTC (permalink / raw)
  To: 9fans

	1. If rio crashes is there a way to kill
	   rio and get back to the shell?

Not really.

	2. Given that I could, what diagnostics
	   could I run to identify the problem?
	3. Is there a way to repair the disk at this point?

I rarely see kfs get that hosed.  Are you sure
the root is from: got the right file system?

I'd try booting an install floppy and using it
as a rescue disk: ignore the install process,
draw yourself a new window, and try to start kfs
manually:

	disk/kfs -f /dev/sdC0/fs
	mount /srv/kfs /n/kfs

and maybe you'll get a bit farther.

There's almost always a way to repair the disk, depending
on how much energy you're willing to devote to it.
I have a clumsy C program that tries to pull
out textual data from broken kfs file systems
if you need something that wasn't backed up.

	4. Given that you don't have much faith
	   in kfs and some of us are using it
	   exclusively on our standalone terminals,
	   what sort of maintainance, such as
	   disk/kfscmd check, should we be doing?

One method is to set up two file systems and run
check say once a month.  When you start getting
things like bad tags, ream the other file system
and copy your data over; repeat.

For the most part, kfs is stable.  It gets unstable
fairly fast if you frequently don't "disk/kfscmd halt"
before shutting down, or if you crash your kernels a lot
(implies the first, but usually a bigger problem
since you can die during heavy disk i/o).

Nothing's set in stone but I think one hope for the
fabled file server rewrite is to have kfs build
from the same sources, which may at least exercise it
more.

Russ


^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [9fans] plan 9 wiki experiment
@ 2001-02-01  8:08 Quinn Dunkan
  2001-02-14 21:43 ` [9fans] KFS Crash Mark C. Otto
  0 siblings, 1 reply; 6+ messages in thread
From: Quinn Dunkan @ 2001-02-01  8:08 UTC (permalink / raw)
  To: 9fans


> I have set up a Plan 9 wiki.

Darn you!  That was going to be my project :)
Oh well, I'm sure you did it better than I could have.

Although a random nit is that, for the web interface, the generated links
point to

http://plan9.bell-labs.com/wiki/plan9/14

instead of

http://plan9.bell-labs.com/wiki/plan9/14/

or

http://plan9.bell-labs.com/wiki/plan9/14/index.html

which forces the browser to do a 301 Moved Permanently redirect to get the
real address every time you follow a link.

Very cool, though.

> There is, of course, a huge potential for abuse.
> Please don't.  If the server fills with various
> objectionable material, we'll take it down, and
> I really don't want to do that.

I guess that means the transvestite angora fetish ascii porn is out...

[ dmr ]
> similar points.  I'm more the let-a-hundred-flowers-bloom kind of guy.

How about let-a-hundred-weeds-overgrow? :)  It's still better than monoculture
or toxic wasteland (although I guess you could say the current field has
aspects of both).  It's still possible to find or make beautiful things in a
toxic wasteland, even if it's not as much fun.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-02-15 14:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-14 23:06 [9fans] KFS Crash rob pike
  -- strict thread matches above, loose matches on Subject: below --
2001-02-14 22:02 Russ Cox
2001-02-14 22:01 Russ Cox
2001-02-15 14:31 ` Mark C. Otto
2001-02-01  8:08 [9fans] plan 9 wiki experiment Quinn Dunkan
2001-02-14 21:43 ` [9fans] KFS Crash Mark C. Otto
2001-02-14 21:57   ` Scott Schwartz

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).