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

Benoit GEORGELIN - Association Web4all benoit.georgelin at web4all.fr
Thu Jun 30 15:01:50 UTC 2016


Thanks for the information but it dosen't work for me with btrfs 

It correctly set the value on btrfs limit but no changes inside the container 

lxc config device set benltsp root size 10GB 

btrfs qg show -r -e /var/lib/lxd/containers/ -p -c|grep 443 
0/443 9.01GiB 8.74GiB 10.00GiB 10.00GiB --- --- 

lxc config show benltsp 
[...] 
root: 
path: / 
size: 10GB 
type: disk 

lxc stop benltsp && lxc start benltsp 


lxc exec benltsp -- df -h 
Filesystem Size Used Avail Use% Mounted on 
/dev/sdb 100G 18G 80G 18% / 
none 492K 0 492K 0% /dev 
/dev/sdb 100G 18G 80G 18% /dev/lxd 
cgroup_root 10M 0 10M 0% /sys/fs/cgroup 
udev 480M 0 480M 0% /dev/tty 
tmpfs 497M 0 497M 0% /dev/shm 
tmpfs 497M 6.4M 490M 2% /run 
tmpfs 5.0M 0 5.0M 0% /run/lock 

Cordialement, 

Benoît G 


De: "McDonagh, Ed" <Ed.McDonagh at rmh.nhs.uk> 
À: "lxc-users" <lxc-users at lists.linuxcontainers.org> 
Envoyé: Jeudi 30 Juin 2016 10:25:20 
Objet: Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10 

>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 
######################################################################### 
_______________________________________________ 
lxc-users mailing list 
lxc-users at lists.linuxcontainers.org 
http://lists.linuxcontainers.org/listinfo/lxc-users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160630/712f33dd/attachment-0001.html>


More information about the lxc-users mailing list