RE: How to force GEOM to recalculate the free space after the disk is resized?

2016-07-12 Thread Dexuan Cui via freebsd-geom
> From: Andrey V. Elsukov [mailto:bu7c...@yandex.ru] > Sent: Saturday, July 9, 2016 16:22 > To: Dexuan Cui ; freebsd-geom@freebsd.org > Subject: Re: How to force GEOM to recalculate the free space after the disk is > resized? > > On 09.07.16 05:32, Dexuan Cui wrote: > >> What FreeBSD version do yo

RE: How to force GEOM to recalculate the free space after the disk is resized?

2016-07-09 Thread Dexuan Cui via freebsd-geom
space after the disk is > resized? > > On 08.07.16 15:19, Dexuan Cui via freebsd-geom wrote: > > I'm not familiar with GEOM. Can somebody please explain the > > behavior? > > > > What FreeBSD version do you use? > What messages do you see in the console/dme

RE: How to force GEOM to recalculate the free space after the disk is resized?

2016-07-08 Thread Dexuan Cui via freebsd-geom
> From: wl...@bsdimp.com [mailto:wl...@bsdimp.com] On Behalf Of Warner > Losh > Sent: Saturday, July 9, 2016 2:03 > To: Dexuan Cui > > I'm not familiar with GEOM. > > Can somebody please explain the behavior? > > I'm guessing that the new code in the da driver to do 'resize' isn't properly > sign

RE: How to force GEOM to recalculate the free space after the disk is resized?

2016-07-08 Thread Dexuan Cui via freebsd-geom
Yes, this is also my suspicion. Here with “diskinfo /dev/da1”, geom can already detect the new disk capacity but it just doesn’t update its internal structure for new free space. I think I’ll have to locate the related code and ask geom to re-probe free space on disk capacity change. It would be

How to force GEOM to recalculate the free space after the disk is resized?

2016-07-08 Thread Dexuan Cui via freebsd-geom
Hi, I have a FreeBSD virtual machine (VM) running on Hyper-V and I'm testing Hyper-V's Disk Online Resizing feature. The feature can expand or shrink the (virtual) disk capacity of a VM when the VM is running. There is an issue with gpart or GEOM: after the disk capacity is expanded (or shrunk)