Re: Problem with size after growing a device

From: Andy
Date: Mon Jul 09 2007 - 15:33:29 EST


On Tue, Jul 03, 2007 at 12:40:56PM +0200, Lars Michael Jogbäck wrote:
> Hi,
>
> So, if I do:
> # cat /sys/block/sdk/size
> 4882708480
>
> and
> # blockdev --getsz /dev/sdk
> 3906166784
>
> Apparently /sys/block/sdk/size is updated with the new size, but
> whatever "blockdev --getsz" and "pvresize" is querying is not. If I
> reboot, everything works correctly.
>
I have mentioned this problem before with resizing non-partitioned devices,
then trying to resize the filesystem.

I consider the issue a bug, because different parts of the kernel have
a different size for the same device. It should be consistent, preferably
with the new size being reported both by the sys fs and by blockdev (then
hopefully xfs_growfs will work without a reboot).

Andy
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/