Re: [lxc-users] Args for lxd init via script

2017-05-26 Thread Mark Constable
Just to complete this thread and kind of mark it [SOLVED] I got back to getting this script(s) to 99% work after losing my entire primary BTRFS drive because some typo set my boot partition to "zfs_volume" (yikes!) https://raw.githubusercontent.com/netserva/sh/master/bin/setup-lxd I know to the

Re: [lxc-users] Args for lxd init via script

2017-05-22 Thread Fajar A. Nugraha
On Mon, May 22, 2017 at 1:41 PM, gunnar.wagner wrote: > > > On 5/22/2017 2:35 PM, Fajar A. Nugraha wrote: > > On Mon, May 22, 2017 at 1:09 PM, gunnar.wagner < > gunnar.wag...@netcologne.de> wrote: > >> >> On 5/22/2017 11:55 AM, Fajar A. Nugraha wrote: >> >>> subvolume with btrfs does not provide

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread gunnar.wagner
On 5/22/2017 2:35 PM, Fajar A. Nugraha wrote: On Mon, May 22, 2017 at 1:09 PM, gunnar.wagner mailto:gunnar.wag...@netcologne.de>> wrote: On 5/22/2017 11:55 AM, Fajar A. Nugraha wrote: subvolume with btrfs does not provide correct df. zfs dataset provide correct df.

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Fajar A. Nugraha
On Mon, May 22, 2017 at 1:09 PM, gunnar.wagner wrote: > > > On 5/22/2017 11:55 AM, Fajar A. Nugraha wrote: > >> subvolume with btrfs does not provide correct df. >> zfs dataset provide correct df. >> > > isn'tbtrfs subvolume usage /path/to/subvolumethe tool to get the > correct usage data

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread gunnar.wagner
sorry I meantbtrfs fi usage [/path/to/filesystem] On 5/22/2017 2:09 PM, gunnar.wagner wrote: On 5/22/2017 11:55 AM, Fajar A. Nugraha wrote: subvolume with btrfs does not provide correct df. zfs dataset provide correct df. isn'tbtrfs subvolume usage /path/to/subvolumethe tool to

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread gunnar.wagner
On 5/22/2017 11:55 AM, Fajar A. Nugraha wrote: subvolume with btrfs does not provide correct df. zfs dataset provide correct df. isn'tbtrfs subvolume usage /path/to/subvolumethe tool to get the correct usage data? ___ lxc-users mailing lis

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Fajar A. Nugraha
On Mon, May 22, 2017 at 10:25 AM, Mark Constable wrote: > On 5/22/17 12:28 PM, Fajar A. Nugraha wrote: > >> Yes but I also want the current disk usage to be available inside >>> the container so that, for instance, df returns realistic results. >>> >> >> Have you tried lxd with zfs? >> > > Yes, z

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Mark Constable
On 5/22/17 12:28 PM, Fajar A. Nugraha wrote: Yes but I also want the current disk usage to be available inside the container so that, for instance, df returns realistic results. Have you tried lxd with zfs? Yes, zfs (pool per container) is what I am currently using here... https://raw.github

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Fajar A. Nugraha
On Sun, May 21, 2017 at 10:05 PM, Mark Constable wrote: > On 5/21/17 11:16 PM, gunnar.wagner wrote: > >> just for my understanding ... you want to monitor disk usage on the >> LXD host, right? >> > > Yes but I also want the current disk usage to be available inside the > container so that, for in

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Mark Constable
On 5/21/17 11:16 PM, gunnar.wagner wrote: just for my understanding ... you want to monitor disk usage on the LXD host, right? Yes but I also want the current disk usage to be available inside the container so that, for instance, df returns realistic results. Using a zfs pool per container wor

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread gunnar.wagner
just for my understanding ... you want to monitor disk usage on the LXD host, right? On 5/21/2017 5:39 PM, Fajar A. Nugraha wrote: On Sun, May 21, 2017 at 2:51 PM, Mark Constable > wrote: On 5/21/17 4:02 PM, Jeff Kowalczyk wrote: My question, is it

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Fajar A. Nugraha
On Sun, May 21, 2017 at 2:51 PM, Mark Constable wrote: > On 5/21/17 4:02 PM, Jeff Kowalczyk wrote: > >> My question, is it reasonable to provide a separate profile and >>> zfs pool per container and is there a better or more efficient way >>> to get the same end result? >>> >> >> Will disk limits

Re: [lxc-users] Args for lxd init via script

2017-05-21 Thread Mark Constable
On 5/21/17 4:02 PM, Jeff Kowalczyk wrote: My question, is it reasonable to provide a separate profile and zfs pool per container and is there a better or more efficient way to get the same end result? Will disk limits work for you? https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/

Re: [lxc-users] Args for lxd init via script

2017-05-20 Thread Jeff Kowalczyk
Will disk limits work for you? https://stgraber.org/2016/03/26/lxd-2-0-resource-control-412/ https://github.com/lxc/lxd/blob/master/doc/containers.md#type-disk On Sat, May 20, 2017 at 10:26 PM, Mark Constable wrote: > > I want to provide a definitive amount of disk space per container, visible >

Re: [lxc-users] Args for lxd init via script

2017-05-20 Thread Mark Constable
On 5/19/17 5:06 PM, Fajar A. Nugraha wrote: I'm trying to automate a simple setup of LXD via a bash script and I'm not sure of the best way to provide some preset arguments to "lxd init", if at all possible. Specifically... Did you try "lxd --help"? Sigh, not for the last year or two, thanks

Re: [lxc-users] Args for lxd init via script

2017-05-19 Thread Fajar A. Nugraha
On Fri, May 19, 2017 at 1:39 PM, Mark Constable wrote: > I'm trying to automate a simple setup of LXD via a bash script and I'm > not sure of the best way to provide some preset arguments to "lxd init", > if at all possible. Specifically... > > Name of the storage backend to use (dir or zfs): zfs

[lxc-users] Args for lxd init via script

2017-05-18 Thread Mark Constable
I'm trying to automate a simple setup of LXD via a bash script and I'm not sure of the best way to provide some preset arguments to "lxd init", if at all possible. Specifically... Name of the storage backend to use (dir or zfs): zfs Create a new ZFS pool (yes/no)? yes Name of the new ZFS pool: lx