Hi,
With ‘lxd init’ I can create a zfs pool on a virgin block device (ex: /dev/sda5) with options ‘use existing pool’,
When I use lxc client (lxd-client) to create a pool with:
lxc storage create new_pool zfs
a loop device is used for this new pool
I found a way to create a zfs pool with existing block device is to create a new one with zpool command:
zpool create new_pool /dev/sda5
and use it with lxc client
lxc storage create prod zfs source=new_pool
Is there a way to do it in directly with lxc client ?
thanks
Sorry, I tried this before and here is the output of your command
Error: Custom loop file locations are not supported
It seems that the client try to write a loop device in block device without FS…
I tried to specify the creation with the “same” format of zfs pool created by ‘lxd init’ without success:
I will start again from fdisk, May be problem come from there. It seems that the deletion of pool by lxc let the block device with a good tag ?
See you soon