Can not import pool after fresh install due to com.klarasystems:vdev_zaps_v2

2 x 4TB WD Red
1 x 125GB SSD
8GB RAM

Have a NAS set up for home, storing movies, etc. I had an issue with my boot disc and had to replace and do a fresh install of TrueNAS CORE. Went for latest stable version (also tried what I believe was the last install version I did and got same result), but while I did not have a backup of config (lesson learnt) believed I could still import Pool as HDDs appeared to be OK. No pools available via adding pools, then tried via shell, see below. Any ideas on how to resolve, or am I needing to recreate pools from scratch. Any help appreciated:

root@truenas[~]# zpool import
pool: Pool
id: 1418693507757103581
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:

    Pool                                            UNAVAIL  unsupported feature(s)
      mirror-0                                      ONLINE
        gptid/ca55d1fe-2484-4ce2-83d8-6d309331a585  ONLINE
        gptid/55a86207-6627-4a77-8bd4-639614d9f50a  ONLINE

root@truenas[~]# zpool import Pool
cannot import ‘Pool’: pool was previously in use from another system.
Last accessed by truenas (hostid=17ace07b) at Tue Jan 14 23:56:00 2025
The pool can be imported, use ‘zpool import -f’ to import the pool.
root@truenas[~]# zpool import -f
pool: Pool
id: 1418693507757103581
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:

    Pool                                            UNAVAIL  unsupported feature(s)
      mirror-0                                      ONLINE
        gptid/ca55d1fe-2484-4ce2-83d8-6d309331a585  ONLINE
        gptid/55a86207-6627-4a77-8bd4-639614d9f50a  ONLINE

root@truenas[~]# zpool import -f Pool
This pool uses the following feature(s) not supported by this system:
com.klarasystems:vdev_zaps_v2
cannot import ‘Pool’: unsupoorted version or feature

You will need to upgrade your TrueNAS version to one that includes “vdev_zaps_v2”.

This is one reason why we do not recommend upgrading ZFS pools to later feature sets unless you really want or need the newer feature(s).

Which one exactly?

1 Like

Core 13.3-U1 supports the vdev_zaps_v2 feature .

Thanks for responses. I have upgraded to 13.3-U1 as suggested (had previously gone with 13.0-U6.4) and this has worked, have successfully imported pool.
Not sure where the com.klarasystems:vdev_zaps_v2 came from as I’m just a novice, set up TrueNAS so we could use Plex within the house to watch movies, etc. stored on a central location. Don’t know what com.klarasystems:vdev_zaps_v2 is, or even recall coming across it previously.
Anyway initial issue resolved, but looks like I have to set up users, groups, Plex, etc. all again, unless anyone has any ideas of where this might be recovered from.

If you installed with 13.3 the first time all features in that version of ZFS would be enabled on the pool you created.

If now the second time you installed an older version that does not support vdev_zaps_v2 you get the observed behaviour. Zpools are upward compatible but not necessarily downward.

To get your configuration back restore from a configuration backup you created before the fresh install. In case you did not do that, make it a habit to do so after every configuration change.

You might find a saved configuration on your pool, please post the output of:

ls -l /var/db/system/configs-*

Kind regards,
Patrick

Where/how do I run that command line, as I see Shell has been removed in 13.3?

Login via SSH as you should anyway. The web shell has been useless for years so it was removed.

results of ls -l /var/db/system/configs-*:

/var/db/system/configs-1e82533d473f473aac19b5ac1e8499fb:
total 0

/var/db/system/configs-ae32c386e13840b2bf9c0083275e7941:
total 0

/var/db/system/configs-d1ec4ca3c0d143d8971e439344230d2a:
total 0

/var/db/system/configs-f92d694b6b01475ca55fc635cbf72414:
total 0

Is this good or bad?

Bad if you do not have a separate configuration backup. You will have to recreate everything from scratch. Waitaminute … what is your system dataset pool set to? What was it before you reinstalled?

Sorry, what do you mean by “what is/was my system dataset pool set to?” The name or a you referring to a setting?

It’s a setting: System > System Dataset

What is that set to? Your imported pool or the boot pool?

Also please post the output of zfs list | grep system

The System->System Dataset is called Pool, the imported pool
Results of zfs list | grep system:

Pool/.system 290M 2.54T 128K legacy
Pool/.system/configs-1e82533d473f473aac19b5ac1e8499fb 96K 2.54T 96K legacy
Pool/.system/configs-ae32c386e13840b2bf9c0083275e7941 9.73M 2.54T 9.73M legacy
Pool/.system/cores 120K 1024M 120K legacy
Pool/.system/netdata-ae32c386e13840b2bf9c0083275e7941 269M 2.54T 269M legacy
Pool/.system/rrd-1e82533d473f473aac19b5ac1e8499fb 9.51M 2.54T 9.51M legacy
Pool/.system/samba4 684K 2.54T 500K legacy
Pool/.system/services 96K 2.54T 96K legacy
Pool/.system/syslog-1e82533d473f473aac19b5ac1e8499fb 248K 2.54T 248K legacy
Pool/.system/webui 96K 2.54T 96K legacy

OK, so:

  • the system dataset is configured on the imported pool
  • there are no configuration backups in the system dataset

→ you will have to configure from scratch.

You don’t think it would be in here?

Over 9 MiB, it could be possible.

They already showed the output of ls for the directories in question and there were no files. :man_shrugging:

Because it’s probably an older config dataset that doesn’t get mounted, so maybe ls was showing an empty (non-mounted) folder?

@dbblmb what about this:

mount | grep configs

If it’s missing the line that contains configs-ae32c386e13840b2bf9c0083275e7941, then it means you’ll need to manually mount the old config dataset to access the TrueNAS configs within.

This is the result of mount | grep configs:
Pool/.system/configs-1e82533d473f473aac19b5ac1e8499fb on /var/db/system/configs-1e82533d473f473aac19b5ac1e8499fb (zfs, local, noatime, nfsv4acls)

I assume then that means I will have to manually re-create user, groups, etc.?