VM Image with btrfs in lvm on second partition?

22 views
Skip to first unread message

Christian Schneemann

unread,
Sep 1, 2015, 4:35:50 AM9/1/15
to kiwi
Hi,

a customer asked for a special disk layout in his VMs like he has on his
baremetal machines.

What he asked for:

- disk with 2 partitions
- LVM in second partition
- btrfs on volume in LVM

I think this is not possible, at least LVM and btrfs configuration share
the same systemdisk element.

Is it possible to manage the partitioning thing by anyway?




Regards,
Christian

--
Christian Schneemann
System Management & Monitoring Architect
Tel.: +49-175-7250665
Mail: schne...@b1-systems.de

B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537

J.Wit...@mindef.nl

unread,
Sep 1, 2015, 5:24:08 AM9/1/15
to kiwi-...@googlegroups.com
You mean "possible on general" or specifically in kiwi??

In general, it is no problem.
Most of the OBS subjects >40, i have with btrfs on dedicated lvm's...


Verstuurd vanaf mijn iPhone
> --
> You received this message because you are subscribed to the Google Groups "kiwi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to kiwi-images...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

______________________________________________________________________
Dit bericht kan informatie bevatten die niet voor u is bestemd. Indien u niet de geadresseerde bent of dit bericht abusievelijk aan u is toegezonden, wordt u verzocht dat aan de afzender te melden en het bericht te verwijderen. De Staat aanvaardt geen aansprakelijkheid voor schade, van welke aard ook, die verband houdt met risico's verbonden aan het electronisch verzenden van berichten.

This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. The State accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.

Christian Schneemann

unread,
Sep 1, 2015, 6:03:15 AM9/1/15
to kiwi-...@googlegroups.com
Hi,



On 09/01/2015 11:23 AM, J.Wit...@mindef.nl wrote:
> You mean "possible on general" or specifically in kiwi??

of course I mean in kiwi, this is the kiwi-images mailinglist, isn't it?


Regards,
Christian

Marcus Schäfer

unread,
Sep 1, 2015, 3:48:05 PM9/1/15
to kiwi-...@googlegroups.com
Hi,

> a customer asked for a special disk layout in his VMs like he has on his
> baremetal machines.
>
> What he asked for:
>
> - disk with 2 partitions
> - LVM in second partition
> - btrfs on volume in LVM
>
> I think this is not possible, at least LVM and btrfs configuration share
> the same systemdisk element.
>
> Is it possible to manage the partitioning thing by anyway?

It's possible in kiwi to do that

you can set:


<type ... filesystem="btrfs" .../>

<systemdisk preferlvm="true">
<volume name="foo"/>
</systemdisk>

</type>


This will use LVM for the volume management and each volume you
configure will take a btrfs filesystem

It is questionable if that makes sense since btrfs has its own
volume management and of course you don't benefit much from btrfs
snapshoting, quotas and other features it provides

Regards,
Marcus
--
Public Key available via: https://keybase.io
keybase search marcus_schaefer
-------------------------------------------------------
Marcus Schäfer (Res. & Dev.) SUSE Linux GmbH
Tel: 0911-740 53 0 Maxfeldstrasse 5
FAX: 0911-740 53 479 D-90409 Nürnberg
HRB: 21284 (AG Nürnberg) Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
http://www.suse.de
-------------------------------------------------------

Christian Schneemann

unread,
Sep 2, 2015, 3:44:04 AM9/2/15
to kiwi-...@googlegroups.com
On 09/01/2015 09:48 PM, Marcus Schäfer wrote:
> Hi,
>
>> a customer asked for a special disk layout in his VMs like he has on his
>> baremetal machines.
>>
>> What he asked for:
>>
>> - disk with 2 partitions
>> - LVM in second partition
>> - btrfs on volume in LVM
>>
>> I think this is not possible, at least LVM and btrfs configuration share
>> the same systemdisk element.
>>
>> Is it possible to manage the partitioning thing by anyway?
>
> It's possible in kiwi to do that
>
> you can set:
>
>
> <type ... filesystem="btrfs" .../>
>
> <systemdisk preferlvm="true">
> <volume name="foo"/>
> </systemdisk>
>
> </type>

hm, seems that is not yet in the documentation.. (or at least that one I
used)

>
>
> This will use LVM for the volume management and each volume you
> configure will take a btrfs filesystem
>
> It is questionable if that makes sense since btrfs has its own
> volume management and of course you don't benefit much from btrfs
> snapshoting, quotas and other features it provides

Yes, thats not what is expected. The result should be on VG with one LV
in it that contains the btrfs volumes..


Regards,
Christian

>
> Regards,
> Marcus

Marcus Schäfer

unread,
Sep 2, 2015, 9:00:19 AM9/2/15
to kiwi-...@googlegroups.com
Hi,

> Yes, thats not what is expected. The result should be on VG with one LV
> in it that contains the btrfs volumes..

I'm sorry this setup is not supported
Reply all
Reply to author
Forward
0 new messages