How to expand the LXD default zfs pool capacity
井民全, Jing, mqjing@gmail.com
FAQ: The Docker, KVM, Vagrant, VirtualBox, VMWare, Hyper-V
You can follow the instructions to expand the LXD default zfs pool capacity if it is not enough.
Table of contents
2.1. Step 1: Stop all running containers 2
2.2. Step 2: Resize the storage device 3
2.2.1. Get the virtual disk location 3
2.3. Step 3: Expand the pool size 4
2.4. Step 4: Restart all containers 5
1. Quick
2. Procedure
2.1. Step 1: Stop all running containers
E.g.
2.2. Step 2: Resize the storage device
Here, this is a virtual disk.
2.2.1. Get the virtual disk location
2.2.2. Resize the device
E.g.
Fig.Before expending the file size.
Fig. After expanding the file size.
2.3. Step 3: Expand the pool size
Fig. Chck the default pool capacit.
Fig. Get the pool device ID.
Fig. Run the pool expansion.
Verification
zpool list
Fig. Check the capacity after
2.4. Step 4: Restart all containers
3. References
https://discuss.linuxcontainers.org/t/how-to-resize-zfs-used-in-lxd/1333/10
https://sites.google.com/site/itmyshare/storage/storage-disk/zfs-device-autoreplace-and-autoexpand
https://docs.oracle.com/cd/E19253-01/819-5461/githb/index.html