Date: Sun, 13 Sep 2020 14:03:21 +0100 From: tech-lists <tech-lists@zyxst.net> To: freebsd-fs@freebsd.org Subject: Re: how to resize a zvol (legacy version of zfs) Message-ID: <20200913130321.GJ91422@bastion.zyxst.net> In-Reply-To: <20200913121522.GI91422@bastion.zyxst.net> References: <20200913121522.GI91422@bastion.zyxst.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--huG+SbfbdD6eblZQ Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 13, 2020 at 01:14:55PM +0100, tech-lists wrote: >Hi, > >I have a bhyve instance mounted on a zvol on a freebsd-12-stable host. I'm= not >using any special tool to manage the bhyve apart from screen. > >How can I resize the bhyve instance wihtout making it unusable? The zol is >64GB and I'd like to make it 256GB. As a test, I've successfully resized it on the host. The problem is when the guest boots up, the guesnt's growfs (the fs in the guest is ufs) cant see t= he space. On the guest I did this: # sysrc growfs_enable=3DYES growfs_enable: NO -> YES # reboot then on the host, did this: # zfs get volsize data/current NAME PROPERTY VALUE SOURCE data/current volsize 64G local # zfs set volsize=3D256G data/current # zfs get volsize data/current NAME PROPERTY VALUE SOURCE data/current volsize 256G local log into the guest... # mount=20 /dev/vtbd0s1a on / (ufs, local, journaled soft-updates) devfs on /dev (devfs) # growfs / growfs: requested size 61GB is not larger than the current filesystem size 61GB # gpart recover /dev/vtbd0 vtbd0 recovering is not needed # gpart resize -i 1 /dev/vtbd0 GEOM_PART: vtbd0s1 was automatically resized. Use `gpart commit vtbd0s1` to save changes or `gpart undo vtbd0s1` to re= vert them. vtbd0s1 resized Sep 13 13:36:31 current syslogd: last message repeated 1 times # gpart commit vtbd0s1 #=20 # growfs / growfs: requested size 61GB is not larger than the current filesystem size 61GB What am I doing wrong? --=20 J. --huG+SbfbdD6eblZQ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE8n3tWhxW11Ccvv9/s8o7QhFzNAUFAl9eGKoACgkQs8o7QhFz NAX5IRAAqLkZE2Y8qgvRV6K2CENoXQYoArQNtWZGnLkpRO2H+qZhnxcvpJsEHvTH 67+97O2DgoqDw0XeBBy7V2aIZiMUvZ/WaDuoMXUWs9INuGPiKTdnz2arCbSVNQ03 rf0H4ugC4iOKs17BpLJrLAQyqVcBNs9ao+puq6ouODFh2hHlekvN3Gk6jhTPNfW6 KdDSqVVLk3iOmLHsCCYhwo/Tmfwlpn71jYmDqAMkKupyve6BCBmJ/62GOorpZcJS zoH9OxBv70A06g3y1PhHzundSDPQfvjshWRPv3qSlll6p0x20g+LE8l8CS1UMKmv 2pOGJkF6R9dOsIYMKeO8yUOXZ1tW6xrEs3bPa1nacVYtUaBK39mDZ/D5Nm1swIA5 8cMtcjxPu5acqTxHlEg7n+mwx/d7Taw90GTq6o/HJk7q452cTV3KOrlxSbTr2VfV EwRwbJg0qEX3FmvT+dq88uUClGd800fMOSiyIj5pd4dtLLO1dDB2B/srAr90qTEf 0AFDFhU1xzexlAqJCuRSkp0aniRyY4f0/AOqdaDbi5wneLjdBdg01BTHeKQCAzph DFiPS8FEBPtEOiYGwNNXmwvYdbP8d4Jmn1IhijxzNbVTWSeWdh+pqca5onSFZR+V oqwsXL9KBEiqdtceLQUCLw17McZUALj8azQZJrSncqacwr/EBZE= =TXX+ -----END PGP SIGNATURE----- --huG+SbfbdD6eblZQ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200913130321.GJ91422>