Not obvious how to add more storage when you run out
Bug #1648995 reported by
James Troup
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxd (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
For whatever reason I chose overly conservatively when asked how much
space I wanted to allocate during 'lxd init'. When I then ran out, it
wasn't super obvious (at least to me) how to fix the situation.
(Even when googling for help, most of the ZFS documentation
(reasonably) assumes you're dealing with drives not a file backed
disk image.)
I ended up doing this:
* dd if=/dev/zero of=/var/
* zpool add lxd /var/lib/
Which ... appears to work? It'd be nice if lxd had some documentation
around how to manage storage.
And/or perhaps lxd itself could help you manage your storage?
Changed in lxd (Ubuntu): | |
status: | Triaged → Fix Committed |
To post a comment you must log in.
Hey there,
Yes, your approach to grow ZFS is certainly the easiest. I believe you can also grow the existing file and then tell ZFS about it having grown, but that's obviously much more error prone.
We have a generic "production setup" document with useful tips when operating LXD, I'll see that we add something about growing an existing file backed ZFS pool in there. As well as the restriction that you can never shrink a ZFS pool and that overcommitting on disk space will lead to corruption, so some care as to be taken when doing that.
As for managing storage, we're working on this right now. The new LXD storage API will let you define multiple storage pools, choose which you want to use on a per-container basis, as well as allocate additional volumes from any of the pools to be attached to a particular path in the container.
It shouldn't be too difficult to allow for growing a loop backed bool through the API. We already have a "size" property in our design for the initial pool size when creating it, allowing it to be increased should be pretty straightforward.