Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Feb 2023 16:27:40 -0700
From:      Alan Somers <asomers@freebsd.org>
To:        freebsd-fs@freebsd.org
Subject:   Re: can another disk be added to a zfs stripe
Message-ID:  <CAOtMX2hCmX4J7S0=2LJS6AJsq-Zi2acWHT_4Wq8B8xojL61NkA@mail.gmail.com>
In-Reply-To: <Y/04j8cADdmzJ7Nv@int21h>
References:  <Y/zw9xTAitgrcqUt@int21h> <CAOtMX2g%2B-bt-2=xifNoFDjqQQ0CqM-OpwupxHxcBb4Wdc09PNA@mail.gmail.com> <Y/04j8cADdmzJ7Nv@int21h>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 27, 2023 at 4:11 PM void <void@f-m.fm> wrote:
>
> On Mon, Feb 27, 2023 at 03:52:46PM -0700, Alan Somers wrote:
>
> >Yes, that should work.  But why would you want to?  If it's just a
> >matter of adding space to the guest, you'd be better off simply
> >enlarging the zvol.
>
> I wondered about that. But how would the guest handle it?
> Would I not have to tell the zfs guest that there's more space,
> or is it automatic?
> --

First, check the partition table in the guest.  If ZFS is the last
partition, then it isn't hard.  The steps are:
* Enlarge the zvol in the host
* Reboot the guest, if it doesn't automatically see the size change.
* Resize the partition in the guest, with a command like "gpart resize
-i 3 vtbd0".  You may also need to do "gpart recover vtbd0"
* Then ZFS should automatically resize, if the pool's autoexpand
property is set.  If not, do "zpool online -e zroot vtbd0p3".



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOtMX2hCmX4J7S0=2LJS6AJsq-Zi2acWHT_4Wq8B8xojL61NkA>