Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook Air

Developer discussions.

Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook Air

Postby mohak » Thu May 27, 2021 1:04 am

Hi

I just installed the Arm64 version of zfs-macOS-2.0.1 on M1 MacBook Air. When I try to import my pool, I get the following error:
Code: Select all
Mohaks-MacBook:~$ sudo zpool import -l SGPortable
1 / 1 keys successfully loaded
cannot mount 'SGPortable/Ephemeral': Input/output error
cannot mount 'SGPortable/Archive': Input/output error
cannot mount 'SGPortable/MBPB': Input/output error



The same pool and datasets import and mount successfully on a linux machine running ZoL 2.
I also get the following output in pool status
Code: Select all
Mohaks-MacBook:~$ sudo zpool status -v
  pool: SGPortable
 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 canceled on Thu May 27 12:17:50 2021
config:

   NAME                                          STATE     READ WRITE CKSUM
   SGPortable                                    ONLINE       0     0     0
     media-BDDAA77B-E112-C443-BEEF-66BC3E45E24B  ONLINE       0     0     0

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

        SGPortable/Ephemeral:<0x0>
        SGPortable/Archive:<0x0>
        SGPortable/MBPB:<0x0>
mohak
 
Posts: 8
Joined: Sat Oct 28, 2017 10:44 am

Re: Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook

Postby lundman » Thu May 27, 2021 1:21 am

User avatar
lundman
 
Posts: 1008
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook

Postby mohak » Thu May 27, 2021 8:52 am

I tried zpool upgrade. It upgraded the pool without any complaints. But now when I try to import this pool, I get this slightly different error:
Code: Select all
Mohaks-MacBook:~$ sudo zpool import -l SGPortable
1 / 1 keys successfully loaded
If importing from zfs-1.9.4 (or earlier), then possibly enable features:
    project_quota & userobj_accounting
If importing from zfs-1.9.4 (or earlier), then possibly enable features:
    project_quota & userobj_accounting
cannot mount 'SGPortable/MBPB': Input/output error
cannot mount 'SGPortable/MBPB': Input/output error
If importing from zfs-1.9.4 (or earlier), then possibly enable features:
    project_quota & userobj_accounting
cannot mount 'SGPortable/Archive': Input/output error


I verified it via "zpool get all" that those properties are already enabled.
Code: Select all
SGPortable  feature@userobj_accounting     enabled                        local
SGPortable  feature@encryption             active                         local
SGPortable  feature@project_quota          enabled                        local


I scrubbed the pool right before I upgraded it, in case that's relevant.
mohak
 
Posts: 8
Joined: Sat Oct 28, 2017 10:44 am

Re: Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook

Postby lundman » Thu May 27, 2021 11:23 pm

Import it without "-l" and then use zfs mount on it? does that help?
User avatar
lundman
 
Posts: 1008
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook

Postby mohak » Fri May 28, 2021 3:11 am

It doesn't unfortunately.

Code: Select all
Mohaks-MacBook:~$ sudo zpool import SGPortable
Mohaks-MacBook:~$ sudo zfs load-key SGPortable
Mohaks-MacBook:~$ sudo zfs mount SGPortable/Archive
If importing from zfs-1.9.4 (or earlier), then possibly enable features:
    project_quota & userobj_accounting
cannot mount 'SGPortable/Archive': Input/output error


Are there any logs I could take a look at or share here that pertain to this issue?
mohak
 
Posts: 8
Joined: Sat Oct 28, 2017 10:44 am

Re: Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook

Postby mohak » Thu Jun 03, 2021 11:36 am

I tried upgrading another pool that I used to use with zfs 1.9.x. But this time, I upgraded using ZoL on my linux machine. The second pool now works on both O3x 2 and Linux. Maybe the issue lies with zpool upgrade?
mohak
 
Posts: 8
Joined: Sat Oct 28, 2017 10:44 am

Re: Unable to import datasets on zfs-macOS-2.0.1/M1 MacBook

Postby mohak » Tue Jun 08, 2021 7:33 am

I was finally able to solve this issue (right when I was about to nuke the pool and create a new one. :D )

For whatever reason, mounting the datasets on linux once made them mount on Mac without errors.

EDIT:
I had to mount the datasets without "ro" i.e. as writeable.
mohak
 
Posts: 8
Joined: Sat Oct 28, 2017 10:44 am


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 2 guests