<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000"><div><br></div><div>I upgraded the system to Ubuntu 16.04, kernel downgraded to 4.4.0-28-generic ( I wanted to use Cgroup Namespaces ) <br>BTRFS quotas looks to work properly , system is stable .</div><div><br></div><div data-marker="__SIG_PRE__"><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif;">Cordialement,</span><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></span></div><div><br></div><div><span style="color: rgb(51, 51, 51); font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;">Benoît</span></div></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>De: </b>"Benoit GEORGELIN - Association Web4all" <benoit.georgelin@web4all.fr><br><b>À: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Envoyé: </b>Jeudi 30 Juin 2016 11:01:50<br><b>Objet: </b>Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;" data-mce-style="font-family: arial, helvetica, sans-serif; font-size: 10pt; color: #000000;"><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">Thanks for the information but it dosen't work for me with btrfs </span></div><div><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">It correctly set the value on btrfs limit but no changes inside the container </span></div><br><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">lxc config device set benltsp root size 10GB</span></div><br><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">btrfs qg show -r -e /var/lib/lxd/containers/ -p -c|grep 443</span><br><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">0/443 9.01GiB 8.74GiB 10.00GiB 10.00GiB --- --- </span><br></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"><br></span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">lxc config show benltsp<br></span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">[...]</span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"> root:<br> path: /<br> size: 10GB<br> type: disk<br></span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"><br>lxc stop benltsp && lxc start benltsp<br><br></span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"><br></span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;">lxc exec benltsp -- df -h<br>Filesystem Size Used Avail Use% Mounted on<br>/dev/sdb 100G 18G 80G 18% /<br>none 492K 0 492K 0% /dev<br>/dev/sdb 100G 18G 80G 18% /dev/lxd<br>cgroup_root 10M 0 10M 0% /sys/fs/cgroup<br>udev 480M 0 480M 0% /dev/tty<br>tmpfs 497M 0 497M 0% /dev/shm<br>tmpfs 497M 6.4M 490M 2% /run<br>tmpfs 5.0M 0 5.0M 0% /run/lock<br></span></div><div><span style="font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="font-family: 'courier new', courier, monaco, monospace, sans-serif;"><br></span></div><div><div><span style="color: #333333; font-family: 'courier new', courier, monaco, monospace, sans-serif;" data-mce-style="color: #333333; font-family: 'courier new', courier, monaco, monospace, sans-serif;">Cordialement,</span><span style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><span style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></span></div><br><div><span style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;">Benoît G</span><span style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;" data-mce-style="color: #333333; font-family: times new roman,new york,times,serif; font-weight: bold;"><br></span></div></div><br><hr id="zwchr"><div><b>De: </b>"McDonagh, Ed" <Ed.McDonagh@rmh.nhs.uk><br><b>À: </b>"lxc-users" <lxc-users@lists.linuxcontainers.org><br><b>Envoyé: </b>Jeudi 30 Juin 2016 10:25:20<br><b>Objet: </b>Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10<br></div><br><div>From https://www.stgraber.org/2016/03/26/lxd-2-0-resource-control-412/<br><br>lxc config device set my-container root size 20GB<br><br>Works with ZFS and BTFS<br><br>From: lxc-users [mailto:lxc-users-bounces@lists.linuxcontainers.org] On Behalf Of Benoit GEORGELIN - Association Web4all<br>Sent: 30 June 2016 15:20<br>To: lxc-users<br>Subject: Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10<br><br>Yes, I have to idea in mind. <br><br>1- Using ZFS <br>I have to try how it looks with LXD/LXC. I wanted to give a try to btrfs .<br>With ZFS , are you using quotas ? Can you tell me what "df -h" looks into your container ?<br>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.<br><br>2- LVM<br>A the beginning, it's the solution I was using. Finally it was not that bad. <br>By a script to create containers, I was doing :<br>- Create a new LVM Volume<br>- Mount the volume<br>- Install the container with "dir path" <br><br>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 <br><br>Cordialement,<br><br><br>Benoît <br><br><br>________________________________________<br>De: "Sjoerd" <sjoerd@sjomar.eu><br>À: "lxc-users" <lxc-users@lists.linuxcontainers.org><br>Envoyé: Jeudi 30 Juin 2016 10:06:03<br>Objet: Re: [lxc-users] Btrfs - Disk quota and Ubuntu 15.10<br><br>On 30/06/2016 15:50, Benoit GEORGELIN - Association Web4all wrote:<br>> Yesterday I tried the kernel:v4.6.3-yakkety<br>> <br>> The command "lxc stop container" totaly crash the system . Hard reboot<br>> mandatory<br>> <br>> With v4.5.7-yakkety so far, everything looks fine, including the<br>> quota.<br>> But after what I read about btrfs, I'll find another FS for production<br>> system ready because I need the quota<br><br>Hmmm that doesn't sound prommising then :'(<br><br>Anyway for my local server I use ZFS on Linux (Ubuntu 16.04). Maybe <br>that's something for you too?<br>I don't use ZFS on my VPS, cause it doesn't have enough RAM (just 1GB)<br><br>Cheers,<br>Sjoerd<br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br><br>#########################################################################<br>Attention:<br>This e-mail and any attachment is for authorised use by the intended<br>recipient(s) only. It may contain proprietary, confidential and/or<br>privileged information and should not be copied, disclosed, distributed,<br>retained or used by any other party. If you are not an intended recipient<br>please notify the sender immediately and delete this e-mail (including<br>attachments and copies). <br><br>The statements and opinions expressed in this e-mail are those of the<br>author and do not necessarily reflect those of the Royal Marsden NHS<br>Foundation Trust. The Trust does not take any responsibility for the<br>statements and opinions of the author.<br><br>Website: http://www.royalmarsden.nhs.uk<br>#########################################################################<br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div><br>_______________________________________________<br>lxc-users mailing list<br>lxc-users@lists.linuxcontainers.org<br>http://lists.linuxcontainers.org/listinfo/lxc-users<br></div></div></body></html>