resize zpool created by conjure/jujucharms for openstack lxd
I can’t create instances on my new availability zone in openstack because my nova-compute’s are maxed out when it comes to disk space (but I still have diskspace on both hard drives in the machine). The nova-compute machines exist as lxd containers on a single bare-metal machine… which I’m using for dev.
When I conjure’ed up these jujucharms, I think I ran lxd init and chose zfs.. I’m not sure if its here, or somewhere else, I chose a zfs size of 18G which ended up being too small.
Now zpool status shows
root@quick-silver:/# zpool status pool: lxd state: ONLINE scan: scrub repaired 0 in 0h1m with 0 errors on Sun Jan 8 00:25:29 2017 config: NAME STATE READ WRITE CKSUM lxd ONLINE 0 0 0 /var/lib/lxd/zfs.img ONLINE 0 0 0 errors: No known data errors
What I’d like to do is create zfs-002.img and make it 100G and stick it into /mnt/myotherdrive/zfs-002.img ..
But I am at a loss on how to do that..
I know a little bit about zpool replace and think I could achieve that in combination with mkfile, but how do I get the data from the old image to the new image? snapshots?