Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Jul 2016 10:04:59 +0000
From:      Dexuan Cui <decui@microsoft.com>
To:        "Andrey V. Elsukov" <bu7cher@yandex.ru>, "freebsd-geom@freebsd.org" <freebsd-geom@freebsd.org>
Cc:        Sepherosa Ziehau <sepherosa@gmail.com>
Subject:   RE: How to force GEOM to recalculate the free space after the disk is resized?
Message-ID:  <CO2PR03MB2182B287B9090913F1B41845BF300@CO2PR03MB2182.namprd03.prod.outlook.com>
In-Reply-To: <5780B436.4070309@yandex.ru>
References:  <CO2PR03MB2182532200F6E92F110EBAA1BF3C0@CO2PR03MB2182.namprd03.prod.outlook.com> <577FE380.8020601@yandex.ru> <CO2PR03MB21823EB65CFD865809C4E7BEBF3D0@CO2PR03MB2182.namprd03.prod.outlook.com> <5780B436.4070309@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
> From: Andrey V. Elsukov [mailto:bu7cher@yandex.ru]
> Sent: Saturday, July 9, 2016 16:22
> To: Dexuan Cui <decui@microsoft.com>; freebsd-geom@freebsd.org
> Subject: Re: How to force GEOM to recalculate the free space after the di=
sk is
> resized?
>=20
> On 09.07.16 05:32, Dexuan Cui wrote:
> >> What FreeBSD version do you use?
> >> What messages do you see in the console/dmesg after resizing of disk?
> >>
> >> WBR, Andrey V. Elsukov
> >
> > I'm using 11-CURRENT, but I also tried 10.3 and got the same result.
>=20
> GEOM should be notified by disk driver, but I don't see that it did.
> I think you need to try `camcontrol reprobe` command
>=20
> WBR, Andrey V. Elsukov

Hi Andrey,
Thank you for the suggestion!

With "camcontrol reprobe", GEOM can detect the new disk capacity and the
new "free" space! :-)

However, there is a strange issue:  after I resize "da1" from Hyper-V,=20
if there is a disk read before "camcontrol reprobe da1", gpart couldn't
detect the new free space, though it can detect the new disk capacity.

I reported a bug for this:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211028

The workaround is to open da1 for writing.

This is weird: how can "read" prevent "camcontrol reprobe da1" from
working? It looks there is still a bug somewhere?

Thanks,
-- Dexuan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CO2PR03MB2182B287B9090913F1B41845BF300>