Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Sep 2017 21:54:39 +0200
From:      Ruben <mail@osfux.nl>
To:        freebsd-virtualization@freebsd.org
Subject:   Re: bhyve VM drive size limit?
Message-ID:  <7908ecba-d45a-5f42-744f-dfa267be8d80@osfux.nl>
In-Reply-To: <e9198244-7891-6ab5-d0a1-5cf269ebbd98@freebsd.org>
References:  <F11DB42E-B903-42B2-B1FA-0649BE86C0B7@host852.com> <CACLnyC%2ByGV29p32_HtzszHfgYNVS5uyRdhnG6315OtOpTJYNZQ@mail.gmail.com> <CACLnyCKimVH1jJ%2BBhF86Vo1Oq1Uj2byUi6x-ZDqwB-tbpE1-0g@mail.gmail.com> <CACLnyCJ7iyvE8_v_OXrAg1aMiUfv4B2jeX6_bsjEL4AuC=GYZA@mail.gmail.com> <147e2841-bb29-1fe6-11cc-917f22bf8e87@osfux.nl> <e9198244-7891-6ab5-d0a1-5cf269ebbd98@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Allan/Jason,


I think Ill have a go at the "missing space" situation again after some
reading up. Since I went with the default block sizes (on both the zvol
and the ext4 fs) I probably have some reconfiguration to do..


Thank you very much for your feedback/directions!


Kind regards,

Ruben

On 03/09/17 06:01, Allan Jude wrote:
> On 2017-09-02 10:52, Ruben wrote:
>> Hi Jason,
>>
>>
>>> Make sure
>>> you adjust the zvol block size in the default config before creating your
>>> guest or you will wonder where your storage starts to disappear to.
>>>
>>> Cheers,
>>>
>>> Jason
>> Perhaps slightly off-topic, but might you have any recommendations
>> regarding those blocksizes?
>>
>> I'm not really that well versed in blocksizes / filesystems and am often
>> wondering where my 5TB zvol (bhyves into an ext4 volume for an ubuntu
>> guest) exactly disappears into :P
>>
>> Regards,
>>
>> Ruben
>>> On 2 Sep 2017 2:46 p.m., "Dylan Williams" <freebsd@host852.com> wrote:
>>>
>>> Dear all,
>>>
>>> Is there a limit with respect to the size of the virtual drive I can create
>>> for a VM using bhyve? Presumably not but I’m running into problems with a
>>> larger drive.
>>>
>>> I am trying to create a 4T Ubuntu machine on a FreeBSD11.1 server using
>>> iohyve. There’s plenty of drive space available so it’s not a drive space
>>> issue. I am able to create a 40G machine without any problems but exactly
>>> the same commands to create a 4000G machine results in a server that won’t
>>> boot past Grub. Is this an iohyve issue perhaps?
>>>
>>> Commands used that results in a working Ubuntu server:
>>>
>>> iohyve create ubu 40G
>>> iohyve set ubu loader=grub-bhyve os=debian ram=40G cpu=10
>>> iohyve install ubu ubuntu-16.04.3-server-amd64.iso <
>>> ftp://ftp.cuhk.edu.hk/pub/Linux/ubuntu-releases/16.04.3/
>>> ubuntu-16.04.3-server-amd64.iso>
>>>
>>> Commands used that results in a broken Ubuntu server:
>>>
>>> iohyve create ubu 4000G
>>> iohyve set ubu loader=grub-bhyve os=debian ram=40G cpu=10
>>> iohyve install ubu ubuntu-16.04.3-server-amd64.iso <
>>> ftp://ftp.cuhk.edu.hk/pub/Linux/ubuntu-releases/16.04.3/
>>> ubuntu-16.04.3-server-amd64.iso>
>>>
>>> The screen I get in the console when I boot (iohyve start ubu) the 4T
>>> machine is:
>>>
>>>                              GNU GRUB  version 2.00
>>>
>>>    Minimal BASH-like line editing is supported. For the first word, TAB
>>>    lists possible command completions. Anywhere else TAB lists possible
>>>    device or file completions.
>>>
>>>
>>> grub>
>>>
>>> Does anyone have any ideas? I’ve been at this for hours trying different
>>> configurations. LVM is not selected when installing either of the above
>>> machines as that seems to cause more problems.
>>>
>>> Many thanks,
>>> Dylan.
>>> _______________________________________________
>>> freebsd-virtualization@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>>> To unsubscribe, send any mail to "freebsd-virtualization-
>>> unsubscribe@freebsd.org"
>>> _______________________________________________
>>> freebsd-virtualization@freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
>> _______________________________________________
>> freebsd-virtualization@freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization
>> To unsubscribe, send any mail to "freebsd-virtualization-unsubscribe@freebsd.org"
>>
> To understand why space in a ZVOL goes missing, research 'raidz padding'.
>
> See here:
> https://www.delphix.com/blog/delphix-engineering/zfs-raidz-stripe-width-or-how-i-learned-stop-worrying-and-love-raidz
>
> For more detail, see Chapter 9 of "FreeBSD Mastery: Advanced ZFS" from
> http://www.zfsbook.com
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7908ecba-d45a-5f42-744f-dfa267be8d80>