Thank you all for your replies,
zpool import didn't work, but zpool import -F
worked perfectly. (it's says that -F stands for recovery).
That's not correct, have a look at docs [1].
-f
ignores that pool has not been previously exported (as daunting as it sounds it simply means that it has a marking that it was used by "another" system, which
may mean you are trying to import a pool that is already active elsewhere or you might have just lost a cached value that helps your system recognise it was yours all along);
-F
however means some transactions were
discarded, i.e. you lost some data. If you
had to use this option it dropped some last writes to the pool.
After this command my zfs pool appeared again.
My problem is that I have all my VMs on this pool. Is this a common thing? I mean to loose the pool?.
Common enough for myself not to use the most recent (potentially not well tested) versions of ZFS. But I wonder if I will be asked (by staff) now to refrain from these discussions here like it started happening on this forum in relation to raids/volumes/filesystems [2].
There was an sudden shutdown when it occurs to me but I read threads that others say that is happening after restart.
Is there any configuration I can do to prevent this?
Use a stable filesystem. Do not believe non-sense about one particular that are perpetuated on forums.
You are welcome. Whatever filesystem you use, have backups (they will [3] blame you here for not having one instantly anyways).
EDIT: If you are genuinely interested in anything ZFS, consider dedicated forum [4], it's very lacking here.
[1]
https://openzfs.github.io/openzfs-docs/man/master/8/zpool-import.8.html
[2]
https://forum.proxmox.com/threads/mdraid-o_direct.156036/#post-713636
[3]
https://forum.proxmox.com/threads/lost-all-data-on-zfs-raid10.154843/
[4]
https://zfsonlinux.topicbox.com/latest