Dave Kleikamp schrieb:
> Okay, I don't know much about /dev/port, so I guess this can lock up the
> machine, but I don't see why it would mess up the file system.  I'm
> going to try this on a test machine to see if I can recreate this
> problem.

it's probably sth. like "shooting yourself in the foot". i just wanted to
know what's in /dev/port, and somehow the machine must've locked up. but i
don't think it's directly related to jfs.

> fsck would not have mounted the file system read-only.  More likely,
> fsck fixed some problems, and the kernel found something it didn't like
> and remounted it read-only.

yes, of course - fsck does not (u)mount, the kernel does.

> I haven't heard of this happening before.  Normally, once fsck fixes the
> file system, it's okay unless there is something else going on, like i/o
> errors.

no i/o errors in the logs though (i'm logging via netconsole, so even if
/var/log is ro, kernel errors get logged).

> I think the problem might be that since fsck is running against a
> currently-mounted partition, that it is finding problems with files that
> are currently opened.  It deletes those files on disk, but the kernel
> still has the files open.  If this is the case, I'm not sure how to
> address it.  If the file system is mounted read-only, fsck has no way to
> know what files are currently open by the kernel.  If it could, it could
> refuse to allow a read-write remount until the system is rebooted.

hm, interesting. when going to runlevel 1 i checked with "ps aux" that no
processes (execpt bash and a few kernel threads) were running. so, i
better check with "lsof" for open files next time.

> I'm guessing you're back to a consistent state now.

yes, hoopefully ;-)

> You could make sure by fsck'ing the file system from a rescue cd. 
> Also, if you see the problem again, you could reboot after running
> fsck without remounting the partition read-write.

yes, probably the best thing to fsck a *unmounted* fs, to avoid confusions.


thank your for your assistance,
Christian.
-- 
BOFH excuse #263:

It's stuck in the Web.


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Jfs-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jfs-discussion

Reply via email to