[lxc-users] zfs + sql-server

Stéphane Graber stgraber at ubuntu.com
Sun Jun 4 21:48:08 UTC 2017


On Sun, Jun 04, 2017 at 10:50:45PM +0200, Diederik de Boer wrote:
> Hi all,
> 
> I tried to install sql-server in a lxc container only to find that
> sql-server is
> incompatible with zfs.
> That is really a shame as i want to create a new one for every test i run.
> ( 200 times the amount of active git branches ) and i thought zfs would
> make things like this really fast.
> 
> So what to do now ? can i have 2 lxc installations ( one with zfs and one
> with ext4 )
> or maybe there is a workaround or a better way ? input greatly appreciated.
> 
> PS Sean McNamara :
> Big thanks for your reply on my selenium question, there were many items
> i wasn't aware of in it.

If you're using LXC (lxc-* tools), then you should be able to just
override the bdev option during lxc-create.

But I have a suspicion that you are actually using LXD which works a bit
differently than raw LXC.

If using LXD 2.9 or higher (currently 2.14), then you can create a ZFS
storage pool for those containers that can run on ZFS and a separate
pool that's using a different backend (dir, lvm or btrfs) for your
sql-server containers.


I'm going to guess that you're using Ubuntu 16.04 LTS, if that's the
case and you want to opt-out of the LXD LTS branch (2.0.9 right now) and
opt into the LXD feature branch (2.13 rihgt now), you can do so with:

 - apt install -t xenial-backports lxd lxd-client


At which point you'll be on LXD 2.13 and will be able to use the "lxc
storage" commands to create multiple storage pools using different backends.

-- 
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20170604/5bdd89fa/attachment.sig>


More information about the lxc-users mailing list