* Re: kernel bug in jfs, kernel 2.4.21-pre3-ac4 + recent listfix (fwd) [not found] <200301201605.h0KG5xB11833@shaggy.austin.ibm.com> @ 2003-01-20 16:26 ` Dave Kleikamp 2003-01-20 16:35 ` Christoph Hellwig 0 siblings, 1 reply; 3+ messages in thread From: Dave Kleikamp @ 2003-01-20 16:26 UTC (permalink / raw) To: tupshin; +Cc: linux-kernel You wrote: > I was nfs sharing(kernel nfs) a jfs volume /data/old which is on an > lvm partition (lvm1, not lvm2). > > I did an lvextend on the partition, and then tried to extend the jfs > partition, while it was nfs shared (though nothing was actively > reading or writing to it). > The mount -o remount,resize command failed to extend the volume (note > the first "jfs_extendfs: volume hasn't grown, returning") message > below. A recent change to JFS has the resize code determine the volume size from sb->s_bdev->bd_inode->i_size. However, LVM doesn't update this size when resizing the volume, so JFS doesn't see the new size until the volume is completely unmounted and re-mounted. A fix to revert to an earlier behavior that should work is in Marcelo's bk tree and will be available in -pre4. > I then unmounted the volume from the machines that had it nfs > mounted, and un-nfs-exported it. I then tried to remount,resize > again, and had the same problem(note second message). I then > unmounted the jfs partition completely, and it failed to mount it, > claiming incorrect partition type, yadda yadda. It looks like you tried to mount the volume with the "resize" flag. This flag is only valid for remount, as the message in the log states. > Fsck.jfs was run, > and didn't report any problems, but after running it, I was now able > to mount the partition again, and resize it succesfully. > > I then re-exported it, nfs-mounted it remotely, and tried to copy > files to it: kaboom...machine up, but BUG reported and access to > filesystem hangs. I'm sure this is a real bug in JFS. I'll take a closer look at the code and let you know what I find. > FWIW, volume was exported (rw,sync), and mounted > (rsize=8192,wsize=8192,hard,nolock,intr), the nolock because I had > earlier in the evening been having problems getting locks on nfs > exported jfs volumes. I suspect that NFS had nothing to do with the resize problems. I wasn't aware of problems with locks & nfs on jfs volumes. One more thing for me to look into. Thanks, Shaggy -- David Kleikamp IBM Linux Technology Center ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel bug in jfs, kernel 2.4.21-pre3-ac4 + recent listfix (fwd) 2003-01-20 16:26 ` kernel bug in jfs, kernel 2.4.21-pre3-ac4 + recent listfix (fwd) Dave Kleikamp @ 2003-01-20 16:35 ` Christoph Hellwig 2003-01-20 16:43 ` Dave Kleikamp 0 siblings, 1 reply; 3+ messages in thread From: Christoph Hellwig @ 2003-01-20 16:35 UTC (permalink / raw) To: Dave Kleikamp; +Cc: tupshin, linux-kernel On Mon, Jan 20, 2003 at 10:26:09AM -0600, Dave Kleikamp wrote: > A recent change to JFS has the resize code determine the volume size > from sb->s_bdev->bd_inode->i_size. However, LVM doesn't update this > size when resizing the volume, so JFS doesn't see the new size until > the volume is completely unmounted and re-mounted. A fix to revert > to an earlier behavior that should work is in Marcelo's bk tree and > will be available in -pre4. It doesn't make sense to work around this issue in JFS, LVM needs a proper fix so that others don't get beaten by this. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: kernel bug in jfs, kernel 2.4.21-pre3-ac4 + recent listfix (fwd) 2003-01-20 16:35 ` Christoph Hellwig @ 2003-01-20 16:43 ` Dave Kleikamp 0 siblings, 0 replies; 3+ messages in thread From: Dave Kleikamp @ 2003-01-20 16:43 UTC (permalink / raw) To: Christoph Hellwig; +Cc: tupshin, linux-kernel On Monday 20 January 2003 10:35, Christoph Hellwig wrote: > On Mon, Jan 20, 2003 at 10:26:09AM -0600, Dave Kleikamp wrote: > > A recent change to JFS has the resize code determine the volume > > size from sb->s_bdev->bd_inode->i_size. However, LVM doesn't > > update this size when resizing the volume, so JFS doesn't see the > > new size until the volume is completely unmounted and re-mounted. > > A fix to revert to an earlier behavior that should work is in > > Marcelo's bk tree and will be available in -pre4. > > It doesn't make sense to work around this issue in JFS, LVM needs a > proper fix so that others don't get beaten by this. You're probably right. However, in the 2.4 tree, no other file system is using bd_inode->i_size. -- David Kleikamp IBM Linux Technology Center ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-20 16:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <200301201605.h0KG5xB11833@shaggy.austin.ibm.com>
2003-01-20 16:26 ` kernel bug in jfs, kernel 2.4.21-pre3-ac4 + recent listfix (fwd) Dave Kleikamp
2003-01-20 16:35 ` Christoph Hellwig
2003-01-20 16:43 ` Dave Kleikamp
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.