root@nas[~]# zpool import
pool: Pool32TB
id: 11087683370020324377
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: Message ID: ZFS-8000-EY — OpenZFS documentation
config:
root@nas[~]# zpool import Pool32Tb -f
cannot import ‘Pool32Tb’: no such pool available
root@nas[~]# zpool import Pool32Tb -fF
cannot import ‘Pool32Tb’: no such pool available
Hello everyone, this is because of my own operation error. After upgrading from Core to Scale, an nvme cache hard disk error occurred. After deleting the cache disk, I added it again as dedupe Vedv, but an error occurred. Then I exported the Pool32TB pool. After that, it cannot be imported again.
Please help me. I have tried various methods, including reinstalling a new Scale, but it still cannot be imported.
Why? Why? What is going on? Why would you do that?
Furthermore, you’re not even using the same pool name. Check your “case”. (Lowercase vs uppercase.) Not that it matters too much, considering the above actions you took.
root@nas[~]# sudo ZPOOL_IMPORT_PATH="/dev/disk/by-id" zpool import -a
cannot import 'Pool32TB': pool was previously in use from another system.
Last accessed by nas (hostid=36633733) at Thu Jan 1 08:00:00 1970
The pool can be imported, use 'zpool import -f' to import the pool.
Because after upgrading to Scale, the nvme cache hard disk reported an error, so I wanted to delete it and re-add it to the Pool32TB pool as a cache Vedv.
I agree that the pool is currently toast however it may still be (mostly) recoverable.
Most of the data will be on the raidz2 vdev. Any files added or changed since the nvme vdev were added are probably lost.
The metadata may be irretrievably lost too - in which case the entire pool is toast.
BUT…
IF you can recover the metadata back to the last checkpoint BEFORE you added the NVME disk, then (especially if you have a recent snapshot) you may be able to recover the pool to that point of time (except for files deleted or replaced after that), and those may then be recoverable from a snapshot.
But as I said before, this is expert-level stuff, and you should try to get a ZFS expert to help you try to recover it.