Expanding existing ZFS storage pool

(Espresso Machine) #1

I have several LXC containers on my Ubuntu 18.04 machine. I have a container called “cloud” which I want to expand its storage, how can I do this without reinstalling? I am using ZFS for this.

user@server:~$ zfs list -t all
NAME                                                                                               USED  AVAIL  REFER  MOUNTPOINT
default                                                                                           89.4G  7.01G    24K  none
default/containers                                                                                87.7G  7.01G    24K  none
default/containers/doc                                                                            1015M  7.01G  1.24G  /var/lib/lxd/storage-pools/default/containers/doc
default/containers/git                                                                             324M  7.01G   577M  /var/lib/lxd/storage-pools/default/containers/git
default/containers/docsys                                                                          476M  7.01G   633M  /var/lib/lxd/storage-pools/default/containers/docsys
default/containers/cloud                                                                           85.0G  7.01G  85.3G  /var/lib/lxd/storage-pools/default/containers/cloud
default/containers/nginx                                                                           280M  7.01G   435M  /var/lib/lxd/storage-pools/default/containers/nginx
default/containers/storage                                                                         214M  7.01G   466M  /var/lib/lxd/storage-pools/default/containers/storage
default/containers/test                                                                            448M  7.01G   603M  /var/lib/lxd/storage-pools/default/containers/test

user@server:~$ lxc storage list
|  NAME   | DESCRIPTION | DRIVER |             SOURCE             | USED BY |
| default |             | zfs    | /var/lib/lxd/disks/default.img | 8       |


is this not covered in the doc ?

(Espresso Machine) #3

I want to expand an existing loop device not create a new storage pool


and ’ Growing a loop backed ZFS pool’ is not what your are searching for ?