zfs-2.0.0-rc6: Cannot mount encrypted pool

All your general support questions for OpenZFS on OS X.

zfs-2.0.0-rc6: Cannot mount encrypted pool

Postby theit » Fri Apr 30, 2021 4:49 am

Hi,

today I upgraded from zfs 1.9.4 to 2.0.0-rc6 on Catalina. Unfortunately I cannot mount my fully encrypted pool:

Code: Select all
~ % sudo zpool import -la
Enter passphrase for 'zroot':
1 / 1 keys successfully loaded
cannot mount 'zroot/daten': Input/output error
~ % sudo zpool status -v
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an error resulting in data
   corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
   entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
  scan: scrub repaired 0B in 1 days 03:53:51 with 0 errors on Wed Apr 14 17:42:56 2021
config:

   NAME                                            STATE     READ WRITE CKSUM
   zroot                                           ONLINE       0     0     0
     mirror-0                                      ONLINE       0     0     0
       media-7242F2F5-6C89-1346-80BF-8476478B3A58  ONLINE       0     0     0
       media-32C12AE0-135F-9242-8BD1-76595BB1FB18  ONLINE       0     0     0
       media-42CB6F36-4B54-5C41-AE87-0705578B65B0  ONLINE       0     0     0

errors: Permanent errors have been detected in the following files:

        zroot/daten:<0x0>
~ %

Do you have any idea what's going on here?

I therefore downgraded to 1.9.4 so that I can use the pool again which was quite a bit of work because there's actually no uninstall script so I had to do lots of steps manually...

Another question:
Does anyone know where the error "zroot/daten:<0x0>" come from? How can I find out more about that and how can I get rid of it? Unfortunately I don't remember what I did to make it appear :| I guess a scrub was running under Catalina, I then booted into Big Sur with an older RC of zfs-2.0.0 (rc1; see https://openzfsonosx.org/forum/viewtopic.php?p=11001#p11001), tried to mount the pool which wasn't successful, but I'm not sure...
theit
 
Posts: 10
Joined: Tue Oct 20, 2015 10:52 pm

Re: zfs-2.0.0-rc6: Cannot mount encrypted pool

Postby lundman » Fri Apr 30, 2021 2:06 pm

Ah yes, I should put that in the FAQ.

https://openzfsonosx.org/wiki/FAQ#Q.29_ ... ier_2.0-rc
User avatar
lundman
 
Posts: 943
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: zfs-2.0.0-rc6: Cannot mount encrypted pool

Postby theit » Mon May 03, 2021 11:59 pm

Sorry for my late reply, but after upgrading the pool I'm able to import it :-)
What puzzled me a bit after reading the FAQ entry you mentioned is that the import simply complained with an I/O error and not with :
Code: Select all
thorsten@Thorstens-MBP ~ % sudo zfs load-key -a           
Enter passphrase for 'zroot':
1 / 1 key(s) successfully loaded
thorsten@Thorstens-MBP ~ % sudo zfs mount -a             
cannot mount 'zroot/daten': Input/output error

Or is that error meant by "you will get 'mount returns -1'" ?

Out of curiosity:
When older releases introduced new features, mounting a pool was still possible; only "zpool status -v" informed me that not all feature flags were enabled. So far, so good. What's the reason behind the new 2.0.0 release and the necessity to upgrade the pool when using a fully encrypted pool?

Anyway, thanks for all the good work :-)
theit
 
Posts: 10
Joined: Tue Oct 20, 2015 10:52 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 4 guests