xfs
[Top] [All Lists]

Re: xfs_growfs doesn't detect new blocks

To: Fredrik Tolf <fredrik@xxxxxxxxxxxxx>
Subject: Re: xfs_growfs doesn't detect new blocks
From: Eric Sandeen <sandeen@xxxxxxx>
Date: Sun, 21 Dec 2003 21:45:09 -0600 (CST)
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <16358.22320.666836.618205@xxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
On Mon, 22 Dec 2003, Fredrik Tolf wrote:

> Eric Sandeen writes:
>  > Odd, as far as I know, growfs just uses ioctl(fd, BLKGETSIZE64, &size);
>  > to get the size of the underlying device, in xfsprogs/libxfs/linux.c
> 
> That's what I got from an strace as well, so I really didn't
> understand it. Nonetheless, lvdisplay did return the correct size. Do
> you think that it might just be an error in LVM2?

Perhaps... if lvm didn't correctly register the new size with the kernel.
I'm not sure why an xfs mount/umount would change that, though.
You could experiment with a simple test program that did a BLKGETSIZE64
ioctl on newly expanded lvm2 volumes...

-Eric


<Prev in Thread] Current Thread [Next in Thread>