[lxc-users] Btrfs - Disk quota and Ubuntu 15.10

McDonagh, Ed Ed.McDonagh at rmh.nhs.uk
Thu Jun 30 14:25:20 UTC 2016


From https://www.stgraber.org/2016/03/26/lxd-2-0-resource-control-412/

lxc config device set my-container root size 20GB

Works with ZFS and BTFS

From: lxc-users [mailto:lxc-users-bounces at lists.linuxcontainers.org] On Behalf Of Benoit GEORGELIN - Association Web4all
Sent: 30 June 2016 15:20
To: lxc-users
Subject: Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

Yes, I have to idea in mind. 

1- Using ZFS 
I have to try how it looks with LXD/LXC. I wanted to give a try to btrfs .
With ZFS , are you using quotas ? Can you tell me what "df -h" looks into your container ?
With btrfs , the container see the disk size of the host, so you don't know how much space you are using, it's was not the best anyways.

2- LVM
A the beginning, it's the solution I was using. Finally it was not that bad. 
By a script to create containers, I was doing :
- Create a new LVM  Volume
- Mount the volume
- Install the container with "dir path" 

So in the container you have one disk, it's the full size of the volume and act like a real disk including volume size information 

Cordialement,


Benoît 


________________________________________
De: "Sjoerd" <sjoerd at sjomar.eu>
À: "lxc-users" <lxc-users at lists.linuxcontainers.org>
Envoyé: Jeudi 30 Juin 2016 10:06:03
Objet: Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10

On 30/06/2016 15:50, Benoit GEORGELIN - Association Web4all wrote:
> Yesterday I tried the kernel:v4.6.3-yakkety
> 
> The command "lxc stop container" totaly crash the system . Hard reboot
> mandatory
> 
> With v4.5.7-yakkety so far, everything looks fine, including the
> quota.
> But after what I read about btrfs, I'll find another FS for production
> system ready because I need the quota

Hmmm that doesn't sound prommising then :'(

Anyway for my local server I use ZFS on Linux (Ubuntu 16.04). Maybe 
that's something for you too?
I don't use ZFS on my VPS, cause it doesn't have enough RAM (just 1GB)

Cheers,
Sjoerd
_______________________________________________
lxc-users mailing list
lxc-users at lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

#########################################################################
Attention:
This e-mail and any attachment is for authorised use by the intended
recipient(s) only. It may contain proprietary, confidential and/or
privileged information and should not be copied, disclosed, distributed,
retained or used by any other party. If you are not an intended recipient
please notify the sender immediately and delete this e-mail (including
attachments and copies). 

The statements and opinions expressed in this e-mail are those of the
author and do not necessarily reflect those of the Royal Marsden NHS
Foundation Trust. The Trust does not take any responsibility for the
statements and opinions of the author.

Website: http://www.royalmarsden.nhs.uk
#########################################################################


More information about the lxc-users mailing list