[lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tomasz Chmielewski
Is there a -B btrfs equivalent in lxd? For example, with lxc, I would use: # lxc-create --template download --name test-container -B btrfs -B backingstore 'backingstore' is one of 'dir', 'lvm', 'loop', 'btrfs', 'zfs', or 'best'. The default is 'dir', meaning that the

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tycho Andersen
Hi Tomasz, On Fri, Jun 05, 2015 at 07:22:25PM +0900, Tomasz Chmielewski wrote: Is there a -B btrfs equivalent in lxd? Yes, if you mount /var/lib/lxd as a btrfs subvolume, it should Just Work. For example, with lxc, I would use: # lxc-create --template download --name test-container -B

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Serge Hallyn
Lxd will not be as flexible as lxc in many ways, including with respect to backing stores. What will become the recommended backing store is actualy not yet implemented, but will be soon - that is lvm with thinpools. You'll be able to either provide a vg with the default name, or specify a

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Serge Hallyn
Quoting Mark Constable (ma...@renta.net): On Fri, 5 Jun 2015 07:58:02 AM Tycho Andersen wrote: LVM support is Coming Soon, and making it fast and stable will likely be a primary focus. On Fri, 5 Jun 2015 01:57:34 PM Serge Hallyn wrote: What will become the recommended backing store is

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tycho Andersen
On Sat, Jun 06, 2015 at 12:32:07AM +0900, Tomasz Chmielewski wrote: On 2015-06-06 00:19, Tycho Andersen wrote: # ls -l /var/lib/lxd lrwxrwxrwx 1 root root 8 Jun 5 10:15 /var/lib/lxd - /srv/lxd Ah, my best guess is that lxd doesn't follow the symlink correctly when detecting filesystems.

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tomasz Chmielewski
On 2015-06-06 00:19, Tycho Andersen wrote: # ls -l /var/lib/lxd lrwxrwxrwx 1 root root 8 Jun 5 10:15 /var/lib/lxd - /srv/lxd Ah, my best guess is that lxd doesn't follow the symlink correctly when detecting filesystems. Whatever the cause, if you file a bug we'll fix it, thanks. Can you

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tomasz Chmielewski
On 2015-06-06 00:00, Tycho Andersen wrote: As I've checked, this is not the case (the container is created in a directory, not in btrfs subvolume; lxc-create -B btrfs creates it in a subvolume). Can you file a bug with info to reproduce? It should work as of 0.8. Before I file a bug report

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tycho Andersen
On Sat, Jun 06, 2015 at 12:11:27AM +0900, Tomasz Chmielewski wrote: On 2015-06-06 00:00, Tycho Andersen wrote: As I've checked, this is not the case (the container is created in a directory, not in btrfs subvolume; lxc-create -B btrfs creates it in a subvolume). Can you file a bug with

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Mark Constable
On Fri, 5 Jun 2015 05:05:21 PM Serge Hallyn wrote: Does this mean that btrfs is considered a second class option It is, for a few reasons. Sorry to persist with this but would you mind elaborating briefly on some of those reasons or point me to further discussion please? We

Re: [lxc-users] lxd: -B backingstore equivalent?

2015-06-05 Thread Tycho Andersen
On Fri, Jun 05, 2015 at 11:36:37PM +0900, Tomasz Chmielewski wrote: On 2015-06-05 22:58, Tycho Andersen wrote: Hi Tomasz, On Fri, Jun 05, 2015 at 07:22:25PM +0900, Tomasz Chmielewski wrote: Is there a -B btrfs equivalent in lxd? Yes, if you mount /var/lib/lxd as a btrfs subvolume, it