I'm experimenting with JFS for the first time, and have found it
unable to repair the filesystem after a simulated "crash".  I
suppose I'm confused about the capabilities of JFS, and am
hoping one of you can straighten me out.

Here's what I tried.  I'm using linux-2.4.16, jfs-1.0.10, lvm-1.0.1
(latest stuff as of today).  I created a 500MB jfs partition over
lvm, added it to /etc/fstab, and mounted it.  Went into single user
mode and unmounted all other partitions I could; sync'ed; copied
about a dozen files (~7MB) into the new jfs partition and hit the
reset button.  When the machine rebooted, it had to fsck the ext2
partitions I couldn't unmount (naturally), but I expected it to
be able to mount the jfs partition (after transparently replaying
the journal?).  Instead I get the failure messages (repeatedly):

  jfs_mount: Mount Failure: File System Dirty.
  Mount JFS Failure: 22
  jfs_mount failed with w/return code = 22

After being unable to mount it manually, I ran fsck.jfs on it:

  % fsck.jfs /dev/vg0/root
  fsck.jfs version 1.0.10, 28-Nov-2001
  Block size in bytes:  4096
  File system size in blocks:  128000
  Phase 0 - Replay Journal Log
  logredo failed (rc=-265).  FSCK continuing.
  Phase 1 - Check Blocks, Files/Directories, and Directory Entries.
  The root directory has an invalid data format.  Will correct.
  Phase 2 - Count Links.
  Phase 3 - Rescan for Duplicate Blocks and Verify Directory Tree.
  Phase 4 - Report Problems.
  Phase 5 - Check Connectivity.
  Phase 6 - Perform Approved Corrections.
  21 files reconnected to /lost+found/.
  Phase 7 - Rebuild File/Directory Allocation Maps.
  Phase 8 - Rebuild Disk Allocation Maps.
  Phase 9 - Reformat File System Log.
  File system is clean.

Everything wound up in lost+found.  Isn't this *not* supposed to
happen with JFS?  Have I missed something in setting up the jfs
file system properly?

Thanks for your advice!

Neil Carlson <[EMAIL PROTECTED]>




_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion

Reply via email to