zpool accessible in both linux and macos

All your general support questions for OpenZFS on OS X.

zpool accessible in both linux and macos

Postby whatever » Thu Jul 16, 2020 5:52 pm

Hi I created a pool on linux using:

Code: Select all
zpool create -f -o ashift=12 \
    -O acltype=posixacl -O compression=lz4 \
    -O dnodesize=auto -O normalization=formD -O relatime=on \
    -O encryption=aes-256-gcm -O keylocation=prompt -O keyformat=passphrase \
    small /dev/sdd


When trying to import it on macos I get:

Code: Select all
[~/tmp]# zpool import small
This pool uses the following feature(s) not supported by this system:
        org.zfsonlinux:project_quota
        org.zfsonlinux:userobj_accounting
All unsupported features are only required for writing to the pool.
The pool can be imported using '-o readonly=on'.
cannot import 'small': unsupported version or feature
[~/tmp]# zpool import -o readonly=on small
[~/tmp]# zfs load-key -a
Enter passphrase for 'small':
1 / 1 key(s) successfully loaded
[~/tmp]# zfs mount -a
cannot mount 'small': Input/output error


How can I change the options so it works on both ?
whatever
 
Posts: 27
Joined: Thu Feb 08, 2018 8:39 pm

Re: zpool accessible in both linux and macos

Postby Sharko » Thu Jul 23, 2020 4:41 pm

On your Linux system you should be able to set a feature to the disabled state on a pool:

Code: Select all
root # zpool set feature@project_quota=disabled MyPool
root # zpool set feature@userobj_accounting=disabled MyPool


If that doesn't work I would try creating your pool on the MacOS system first; since the Linux development tree is the leading edge, it probably has all the possible features that have been implemented, while OpenZFSonOSX has a subset. If you run zpool status on Linux it will report that your pool could be upgraded, but you don't want to do that, since it will bring in these features that aren't compatible with O3X.
Sharko
 
Posts: 230
Joined: Thu May 12, 2016 12:19 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 30 guests