-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce lxc.storage.<storage-driver>.* type configuration for container storage #1179
Comments
Well as it is we have lxc.bdev.lvm.vg and lxc.bdev.zfs.root in lxc.system.conf. lxc..backingstore= doesn't sound bad to me, assuming hooking it into the container creation doesn't become too invasive. |
+1 on @hallyn's comment. We have the other bdev bits in there already and having to always pass -B is a bit counter-intuitive, so I'd be fine with adding an option. |
+1, the |
So to summarize - patches welcome :) |
We are already have bdevtype inside LXC code, so lxc.bdev.type=[lvm,btrfs,zfs etc] |
@anevenchanniy - I agree about lxc.bdev.type. While bdev is not as descriptive as 'backingstore', I think avoiding different option names for the config file than the command line options is worthwhile. |
@hallyn, @stgraber, since I'm currently working on rewriting the storage backends for LXC as well. I would pick this idea up. But I would introduce the following namespaces keys:
For example
etc. This nicely aligns with |
Quoting Christian Brauner (notifications@github.com):
@hallyn, @stgraber, since I'm currently working on rewriting the storage backends for LXC as well. I would pick this idea up. But I would introduce the following namespaces keys:
lxc.storage.<storage driver>.*
For example
lxc.storage.zfs.pool
lxc.storage.btrfs.pool
lxc.storage.zfs.clone_copy
lxc.storage.ceph.osd.pool_name
etc. This nicely aligns with `LXD` and will make the API way nicer. Hooking it into the current container creation shouldn't be too difficult from an API perspective. In fact, it should make container creation and copy way easier.
wfm
|
Hello i am trying to use ZFS or BtrFS with LXC and i've sucesfully set up ZFS like this:
But i have to call lxc-create with "-B zfs" each time and that sux. It's not going to change very often and when i let someone to manage the server and they forget about this they can just create dir without creating ZFS by omiting the "-B zfs" by accident.
Is there some place to set this? If not please add ability to set it like "lxc.backingstore=zfs" in lxc.conf.
Also please make the "best" backing store the new default (as it should use ZFS or BTRFS automaticaly when available).
The text was updated successfully, but these errors were encountered: