Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 May 2019 08:53:03 -0400
From:      Paul Mather <paul@gromit.dlib.vt.edu>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: trying to expand a zvol-backed bhyve guest which is UFS
Message-ID:  <3D467299-377E-49D1-9771-030590F72D3D@gromit.dlib.vt.edu>
In-Reply-To: <20190520090907.GA36068@rpi3.zyxst.net>
References:  <20190520014645.GC6971@rpi3.zyxst.net> <54BFD570-E9B9-49A5-8785-2D80D4FC05D1@gromit.dlib.vt.edu> <CAOjFWZ6yyPapu%2Bwv9ePhmPWPhDOBfE3g9tmj1PUi0vgsCp-O3Q@mail.gmail.com> <20190520024517.GA23482@rpi3.zyxst.net> <CA%2BtpaK16s3h1f%2BHAOp83H-MN_BoAjEf6GxKwzk0oDxnQo7f7wA@mail.gmail.com> <20190520090907.GA36068@rpi3.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On May 20, 2019, at 5:09 AM, tech-lists <tech-lists@zyxst.net> wrote:

> On Sun, May 19, 2019 at 10:17:35PM -0500, Adam wrote:
>> On Sun, May 19, 2019 at 9:47 PM tech-lists <tech-lists@zyxst.net> wrote:
>>
>>> Thanks very much to you both, all sorted now. I didn't realise there was
>>> a 2TB limit for MBR either. Can I shrink the 4TB to 2TB on the zfs side
>>> without scrambling the ufs on the guest?
>>
>> You can snapshot the zvol to be safe, but you should be able to shrink it
>> to the existing partition size.  If it's a sparse zvol, it may not may  
>> that
>> much difference.
>
> The zvol has about 515GB data. Hopefully zfs is smart enough to shrink
> to the MBR boundary.


A ZVOL is just a container.  ZFS has no implicit knowledge of what you are  
using it for or whether it has any particular partition table inside it.   
It's your responsibility to size the ZVOL appropriately.  (TL;DR: ZVOLs  
have no concept of an "MBR boundary.")

Cheers,

Paul.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D467299-377E-49D1-9771-030590F72D3D>