On Mon, Mar 18, 2019 at 9:05 AM tech-lists <tech-lists at zyxst.net> wrote:> > Hi, > > Apart from the performance benefit as per the section for bhyve in the > handbook, can the size of the zfs-backed guest: > > 1. be resized from the host? > 2. does the guest need to be inactive? > 3. can linux guests (or even windows ones) be resized as well? > > thanks, > -- > J.Do you mean using a zvol as the backing store for a VM? If so, then: 1) Yes. You can just do "zfs set volsize" on the host. 2) In theory no, but the guest may need to be rebooted to notice the change. And I'm not sure if the current bhyve code will expose the new size without a reboot or not. 3) Sure. But after you expand the zvol (or before you shrink it), you'll have to change the size of the guest's filesystem using the guest's native tools. -Alan
On Mon, Mar 18, 2019 at 09:08:31AM -0600, Alan Somers wrote:> >Do you mean using a zvol as the backing store for a VM? If so, then: >1) Yes. You can just do "zfs set volsize" on the host. >2) In theory no, but the guest may need to be rebooted to notice the >change. And I'm not sure if the current bhyve code will expose the >new size without a reboot or not. >3) Sure. But after you expand the zvol (or before you shrink it), >you'll have to change the size of the guest's filesystem using the >guest's native tools.Great, that's awesome. Thanks for clarifying -- J. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20190318/9321a78a/attachment.sig>