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

--- Comment #5 from Dexuan Cui <de...@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to