ZFS pool imported successfully but proxmox dont see it

doman18

Active Member
Oct 20, 2018
26
2
43
39
Recently i moved from pair of 500GB to pair of 1000GB. This is how i did it.

ZFSpool - name of my old pool
ZFSpool1 - name of ma new pool

Code:
zfs snapshot ZFSpool@now
zpool create ZFSpool1 /dev/sdc /dev/sdd
zfs send ZFSpool@now | zfs receive ZFSpool1@now

in proxmox GUI i deleted storage ZFSpool. Imported ZFSpool1 as ZFSpool and at this moment everything worked fine - ive seen data both in CLI and GUI. But i noticed that i forgot to add MIRROR at new pool creation, so i destroyed pool and remade it again. I did the same, but this time, when i imported ZFSpool and added storage in GUI i found that nothing is there (in gui CONTENT list) and my containers which have their volumes on this storage didnt start. But storage in CLI looks fine ...

Code:
root@nas:~# zpool status
  pool: ZFSpool
 state: ONLINE
  scan: none requested
config:

        NAME                        STATE     READ WRITE CKSUM
        ZFSpool                     ONLINE       0     0     0
          mirror-0                  ONLINE       0     0     0
            wwn-0x500003976440494c  ONLINE       0     0     0
            wwn-0x50004cf20e7c6946  ONLINE       0     0     0

errors: No known data errors
root@nas:~# ls -la /ZFSpool
total 44
drwxr-xr-x 16 root root   16 Oct 21 18:40 .
drwxr-xr-x 23 root root 4096 Nov  6 22:10 ..
drwxr-xr-x  2 root root    2 Oct 20 09:36 backupy
drwxr-xr-x  2 root root    2 Oct 20 19:02 basevol-100-disk-1
drwxr-xr-x  2 root root    2 Oct 21 18:08 basevol-104-disk-1
drwxr-xr-x  3 root root    3 Oct 20 09:35 dokuwiki
drwxr-xr-x  4 root root    4 Oct 21 17:24 gitea
drwxr-xr-x  3 root root    4 Apr  9  2018 gogs
drwxr-xr-x  4 root root    4 Oct 21 19:12 nextcloud
drwxrws---  2 root rdma    2 Nov  5 21:12 pobierane
drwxr-----  4 root root    4 Nov  6 21:46 subvol-101-disk-1
drwxr-----  5 root root    5 Nov  6 21:46 subvol-102-disk-1
drwxr-----  2 root root    2 Oct 21 16:05 subvol-103-disk-1
drwxr-----  5 root root    5 Nov  6 21:46 subvol-105-disk-1
drwxrwsrwx  5 root rdma    5 Apr 14  2018 udostepnione
drwxrwsr-x  4 root root    4 Mar 28  2018 www
root@nas:~#

I was adding and deleting storage in GUI couple times. But it didnt help.
 
please include your /etc/pve/storage.cfg contents and 'pveversion -v' output.
 
When i return to home i will get these data. But meanwhile, i just deleted my containers and recover them again from backups. And what is weird, their base volumes instead of old subvol-ID-disk-1 names have now subvol-ID-disk-0 (zero instead one at the end). I checked before recovery and im 100% sure that containers in their configs had 1 at the end of volumes, so they should point to /ZFSpool/subvol-ID-disk-1 correctly.

Also, each container had some mountpoints (mp0, mp1) binded to folders in /ZFSpool directory. I was afraid that if proxmox doesnt see /ZFSpool entirely so even though i will recover containers with their volumes from backups, there will be still problem with those binds. But, containers DO SEE /ZFSpool directory and after recovery all mountpoints pointing to it, work without a problem.