Lxd pool is not avaliable

Error: Storage pool “poolname” unavailable on this server.
i have ubuntu 22.04 server

lxc storage list is
mirapool | zfs | /var/snap/lxd/common/lxd/disks/mirapool.img | | 6 | UNAVAILABLE

when i ask for
zpool status
no pools available

Sounds like your zpool is offline.
What did you do/change that triggered this?

nothing really nothing. I install oracle on my lxd and just connect and work with it.
how to do it online.
i run
ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Sep 5 09:54 ata-VMware_Virtual_SATA_CDRW_Drive_01000000000000000001 → …/…/sr0
lrwxrwxrwx 1 root root 10 Sep 5 09:54 dm-name-ubuntu–vg-ubuntu–lv → …/…/dm-0
lrwxrwxrwx 1 root root 10 Sep 5 09:54 dm-uuid-LVM-kxlKZP0mGB1pWknQstpKeqnT8xC1RmcKaLwQXOTmuN2CZKNc6CjeFpKNY1bPnZzi → …/…/dm-0
lrwxrwxrwx 1 root root 10 Sep 5 09:54 lvm-pv-uuid-SQsl7w-Bg0s-bm9Q-3A0c-hgdK-JSKX-zCnzNJ → …/…/sda4
lrwxrwxrwx 1 root root 10 Sep 5 09:54 lvm-pv-uuid-VRtxxJ-nJgd-LJDl-MsCX-U0qe-uvDh-iC9YLJ → …/…/sda3

then i try to import it

zpool import -a -f -d /dev/disk/by-id/ata
VMware_Virtual_SATA_CDRW_Drive_01000000000000000001
no pools available to import

reload and status of
systemctl reload snap.lxd.daemon systemctl status snap.lxd.daemon
show exit status 1
i try to open it says
cannot import ‘mirapool’: I/O error
Recovery is possible, but will result in some data loss.
Returning the pool to its state as of Mon 05 Sep 2022 01:54:53 AM CEST
should correct the problem. Approximately 20 seconds of data
must be discarded, irreversibly. After rewind, at least
one persistent user-data error will remain. Recovery can be attempted
by executing ‘zpool import -F mirapool’. A scrub of the pool
is strongly recommended after recovery.
Then i try to open with -F
and its op and running now.
I don’t know what going here?

Seems you are trying to mount a VMware CD ROM device as your zfs pool. That won’t work. You are probably should try to mount your LVM disk instead (as per your output). What does the command “lvscan” show?

Please can you show lxc storage show <pool>

@ rkeiieyrtp: no this just show that disk to my pool is absent. This is a simple ls by disk id
“ls -l /dev/disk/by-id/”
@tmp: i don’t no what was reason but it working now after force start on my zpool

root@ubuntu22:~# lxc storage show mirapool
config:
size: 20GB
source: /var/snap/lxd/common/lxd/disks/mirapool.img
zfs.pool_name: mirapool
description: “”
name: mirapool
driver: zfs
used_by:

  • /1.0/images/95f82d22bea6a0d20dc3c06a59929b768abd0c7243d5298c3973f1808688d117
  • /1.0/instances/lxd-miracle-dashboard
  • /1.0/instances/miraoracle
  • /1.0/instances/miraoracle21
  • /1.0/instances/mirapostgres
  • /1.0/profiles/default
    status: Created
    locations:
  • none
    root@ubuntu22:~# zpool list
    NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
    mirapool 58.5G 25.3G 33.2G - - 13% 43% 1.00x ONLINE -