As I need to replace a legacy encypted pool with an OpenZFS encrypted one I need to rename the newly created one. Additionally, the mount point needs to be changed.
saturn% zpool status
pool: boot-pool
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
scan: scrub repaired 0B in 00:00:04 with 0 errors on Thu Apr 24 03:45:04 2025
config:
NAME STATE READ WRITE CKSUM
boot-pool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
da0p2 UNAVAIL 0 0 0 cannot open
nvd0p2 ONLINE 0 0 0
errors: No known data errors
pool: core
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 03:31:43 with 0 errors on Tue Apr 15 10:31:43 2025
config:
NAME STATE READ WRITE CKSUM
core ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/1.eli ONLINE 0 0 0
gptid/8.eli ONLINE 0 0 0
gptid/13.eli ONLINE 0 0 0
gptid/b.eli ONLINE 0 0 0
errors: No known data errors
pool: core2
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
core2 ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/id1 ONLINE 0 0 0
gptid/id2 ONLINE 0 0 0
gptid/id3 ONLINE 0 0 0
gptid/id4 ONLINE 0 0 0
errors: No known data errors
pool: jail
state: ONLINE
scan: scrub repaired 0B in 00:00:21 with 0 errors on Tue Apr 1 00:00:21 2025
config:
NAME STATE READ WRITE CKSUM
jail ONLINE 0 0 0
nvd0p3 ONLINE 0 0 0
errors: No known data errors
saturn% sudo zpool import
Password:
pool: jail
id: 16759351975472055591
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-3C
config:
jail UNAVAIL insufficient replicas
nvd0 UNAVAIL cannot open
does it matter that core is GELI encrypted? Importing it via UI works perfectly fine fyi.
Of course it does! You need to activate/unlock the GELI devices before you can see the pool. How that is done on the command line is left as an exercise to the reader
Sorry, no time to try and find out right now. If nobody else steps in or or you find out yourself, I can possibly help tomorrow.
No problem, I appreciate you being so helpful already. Thank you for encouraging me. The following has been achieved so far:
I exported pool core via UI as stated previously successfully.
A sudo zpool import did not list pool core
I read a bit about GELI encryption and found out that by sudo geli attach -p -k pool_core_encryption.key /dev/gptid/gptid I can activate every device that is part of the pool (note for anyone who might need this: without using the -p argument you will be prompted for the passphrase. I did not set one and even without entering it I would not be able to access the drive. Therefore, use -p no neglect the passphrase part of the key)
Now I have active drives:
saturn% geli status
Name Status Components
mirror/swap0.eli ACTIVE mirror/swap0
gptid/id1.eli ACTIVE gptid/id1
gptid/id2.eli ACTIVE gptid/id2
gptid/id3.eli ACTIVE gptid/id3
gptid/id4.eli ACTIVE gptid/id4
saturn% sudo zpool import
pool: jail
id: 16759351975472055591
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing
devices and try again.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-3C
config:
jail UNAVAIL insufficient replicas
nvd0 UNAVAIL cannot open
pool: core
id: 8982781163759361897
state: ONLINE
status: Some supported features are not enabled on the pool.
(Note that they may be intentionally disabled if the
'compatibility' property is set.)
action: The pool can be imported using its name or numeric identifier, though
some features will not be available without an explicit 'zpool upgrade'.
config:
core ONLINE
raidz2-0 ONLINE
gptid/id1.eli ONLINE
gptid/id2.eli ONLINE
gptid/id3.eli ONLINE
gptid/id4.eli ONLINE
Now following @pmh revised zpool import commands which work flawlessly:
The pool dyingcore is now fully imported and operational:
saturn% zpool list dyingcore
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
dyingcore 14.5T 5.95T 8.55T - - 1% 41% 1.00x ONLINE /mnt
saturn% zpool status dyingcore
pool: dyingcore
state: ONLINE
status: Some supported and requested features are not enabled on the pool.
The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
the pool may no longer be accessible by software that does not support
the features. See zpool-features(7) for details.
scan: scrub repaired 0B in 03:31:43 with 0 errors on Tue Apr 15 10:31:43 2025
config:
NAME STATE READ WRITE CKSUM
dyingcore ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
gptid/id1.eli ONLINE 0 0 0
gptid/id2.eli ONLINE 0 0 0
gptid/id3.eli ONLINE 0 0 0
gptid/id4.eli ONLINE 0 0 0
errors: No known data errors