[Bug 211000] [Hyper-V] Online VHDX Resize doesn't work properly

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 12 09:05:47 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211000

--- Comment #5 from Dexuan Cui <decui at microsoft.com> ---
With the 2 patches in comment 4, “camcontrol reprobe da1” can reliably detect
the new disk capacity and “gpart show da1” can see the new “free space” now.
And, for MBR mode, no extra command is required, but for GPT mode, after 
“camcontrol reprobe da1”, we need to run “gpart commit da1” to commit the
updated GPT partition information (updated by the kernel) to the disk: without
this, we'll have to run “gpart recover da1” after the VM is rebooted. 

Wer're going to merge the fixes to stable/10 and stable/11.

For now,  FreeBSD 10.3 doesn't have “camcontrol reprobe”, so we have to use
this workaround:

after resizing “da1”, we should run the 3 lines:

dd if=/dev/da1 of=/dev/da1 bs=512 count=0
dd if=/dev/da1 of=/dev/da1 bs=512 count=0 (this is the same as the first line.)
gpart recover da1   (this line is not required for MBR mode)

Now, “gpart show da1” should see the new disk capacity and new “free space”.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list