OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

All your general support questions for OpenZFS on OS X.

OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby benjamin » Thu May 27, 2021 5:06 am

After installing OpenZFSonOsX-2.0.1-Big.Sur-11.pkg I am unable to import my zfs volumes:

Code: Select all
 % sudo zpool import EXTERNAL
internal error: out of memory


Claims to be available but mount point is completely empty:

Code: Select all
% sudo zpool status         
  pool: EXTERNAL
 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(5) for details.
  scan: resilvered 1.71G in 00:01:28 with 0 errors on Fri May 21 09:25:02 2021
config:

   NAME                                            STATE     READ WRITE CKSUM
   EXTERNAL                                        ONLINE       0     0     0
     raidz2-0                                      ONLINE       0     0     0
       media-3F7B38F6-CF09-3443-8C18-D5DD0834FF46  ONLINE       0     0     0
       media-1E29A708-9B47-E841-8FCA-3CD6D2BC0872  ONLINE       0     0     0
       media-7B062397-0AA2-4044-A3A5-C75964033AC0  ONLINE       0     0     0
       QNAP-Z3017B32                               ONLINE       0     0     0
       media-F4B7E4D4-133F-7541-8497-A045D1FABC3C  ONLINE       0     0     0
       media-EA704851-3083-9043-9DC1-1F57258273DD  ONLINE       0     0     0
   logs   
     mirror-1                                      ONLINE       0     0     0
       media-EB0D631B-30D0-6F4E-8A72-42EF2C71F390  ONLINE       0     0     0
       media-1C5D064F-09A8-FC40-B6BC-97B9A1C54E85  ONLINE       0     0     0

errors: No known data errors

% sudo zfs list 
NAME               USED  AVAIL     REFER  MOUNTPOINT
EXTERNAL          4.33T  9.71T     3.32T  /Volumes/EXTERNAL
EXTERNAL/tmdisk1  1.00T  10.3T      455G  -

% ls -lash /Volumes/EXTERNAL
total 0
0 drwxr-xr-x  2 root  wheel    64B 27 May 14:01 .
0 drwxr-xr-x  7 root  wheel   224B 27 May 14:05 ..

% uname -a
Darwin Mac-mini.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May  8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64


On reboot, volume isn't mounted and import gives the out of memory error. Running Big Sur 11.4 on Intel.
benjamin
 
Posts: 8
Joined: Tue Jan 05, 2021 1:25 pm

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

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

Can you run:

"which zpool" for me?

And make sure you are running /usr/local/zfs/bin/zpool. Ie, "zpool version"
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby benjamin » Thu May 27, 2021 11:47 pm

Sure, I’ll be back in front of the system next week.
benjamin
 
Posts: 8
Joined: Tue Jan 05, 2021 1:25 pm

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby benjamin » Sat Jun 05, 2021 2:21 pm

lundman wrote:Can you run:

"which zpool" for me?

And make sure you are running /usr/local/zfs/bin/zpool. Ie, "zpool version"


Here you go:

% which zpool
/usr/local/zfs/bin/zpool

% zpool version
zfs-2.0.0-rc6
zfs-kmod-macOS-2.0.0-2-g0197ddc9c5-dirty

% sudo zpool import EXTERNAL
internal error: out of memory
benjamin
 
Posts: 8
Joined: Tue Jan 05, 2021 1:25 pm

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby benjamin » Sun Jun 06, 2021 4:57 am

  • Deleted everything under /usr/local/zfs
  • Removed zfs.ext and zfs.fs from under /System
  • Ran kmutil trigger-panic-medic in recovery mode.
  • Reinstalled OpenZFSonOsX-2.0.1-Big.Sur-11.pkg
  • Rebooted

Seems much happier now!

% zpool -V
zfs-macOS-2.0.1-1
zfs-kmod-2.0.1-1
% zpool status
pool: EXTERNAL
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(5) for details.
scan: resilvered 1.71G in 00:01:28 with 0 errors on Fri May 21 09:25:02 2021
config:

NAME STATE READ WRITE CKSUM
EXTERNAL ONLINE 0 0 0
raidz2-0 ONLINE 0 0 0
media-3F7B38F6-CF09-3443-8C18-D5DD0834FF46 ONLINE 0 0 0
media-1E29A708-9B47-E841-8FCA-3CD6D2BC0872 ONLINE 0 0 0
media-7B062397-0AA2-4044-A3A5-C75964033AC0 ONLINE 0 0 0
QNAP-Z3017B32 ONLINE 0 0 0
media-F4B7E4D4-133F-7541-8497-A045D1FABC3C ONLINE 0 0 0
media-EA704851-3083-9043-9DC1-1F57258273DD ONLINE 0 0 0
logs
mirror-1 ONLINE 0 0 0
media-EB0D631B-30D0-6F4E-8A72-42EF2C71F390 ONLINE 0 0 0
media-1C5D064F-09A8-FC40-B6BC-97B9A1C54E85 ONLINE 0 0 0

errors: No known data errors

Many thanks for your work on OpenZFS on MacOS!
benjamin
 
Posts: 8
Joined: Tue Jan 05, 2021 1:25 pm

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby erll » Mon Jun 07, 2021 8:13 am

THANK YOU!!!

inbetween this and the feedback i received from lundman in my own thread, i have been able to get my zpool back up and running!
erll
 
Posts: 9
Joined: Thu May 27, 2021 8:09 pm

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby incumbent » Fri Jun 11, 2021 4:06 am

Can you share what some of those tips were because I'm not sure I want to update on my BigSur trashcan6,1 AV workstation.

It's been really unreliable (regular GPU crashes and then kernel panics, sometimes 3 panic bounces in one day) I would totally install Monterey just to see if it's any better but can't until someone has openzfs on macOS working for that OS.

it's possible that openzfs is involved somehow but the panics and gpu restart/crash logs definitely aren't aiming in that direction. i'm just up for anything on that machine right now but only if i can access my storage!
incumbent
 
Posts: 40
Joined: Mon Apr 25, 2016 8:52 am

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby 0xdeadbeef » Sun Jun 13, 2021 4:06 am

incumbent wrote:Can you share what some of those tips were because I'm not sure I want to update on my BigSur trashcan6,1 AV workstation.

It's been really unreliable (regular GPU crashes and then kernel panics, sometimes 3 panic bounces in one day) I would totally install Monterey just to see if it's any better but can't until someone has openzfs on macOS working for that OS.

it's possible that openzfs is involved somehow but the panics and gpu restart/crash logs definitely aren't aiming in that direction. i'm just up for anything on that machine right now but only if i can access my storage!


Considering that it's a MacPro 6,1 it might be something else. The higher end GPUs had problems and Apple replaced them for free:
https://www.macrumors.com/2016/02/06/la ... r-program/

When my MacPro 6,1 started causing issues in December 2016 with kernel panics and the crash reports traced to GPU problems. Had a local Apple Service partner replace them and it's been fine since then.

Having gotten my fingers dirty in Unix kernels a long time ago I also avoid 3rd party kernel extensions like a plague. Had too many kernel panics with several kext and removed all of them except OpenZFS - which has given me very very few problems with the kernel extension (outside of beta/rc) over the years. In that context kudos to Lundman et al. If you have any more extensions I'd try removing them at least for a while and see if that makes a change.

Depending on your environment, amount of external stuff connected to your MacPro 6,1 via Thunderbolt etc, cooling might be an issue. If you haven't done it already, I'd suggest disconnecting your MacPro, remove the outer case and use a lot of compressed air to get out any dust. Been doing that twice a year to a year for all my non-Laptops for years. Also worth testing is to increasing fan speed with tools like iStatMenus or MacsFanControl. Those also show you the various temperature sensors and iStatMenus also tracks them for up to 30 days.

PS: Running Big Sur on mine for 2 months now, no Problems so far.
0xdeadbeef
 
Posts: 8
Joined: Tue Feb 23, 2016 11:23 pm

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby incumbent » Tue Sep 14, 2021 2:13 pm

0xdeadbeef wrote:
incumbent wrote:When my MacPro 6,1 started causing issues in December 2016 with kernel panics and the crash reports traced to GPU problems. Had a local Apple Service partner replace them and it's been fine since then.


Sorry for the tangent but this thread comes up in Google searches so I did want to leave a note with some pointers - people with the D500s and D700s were able to get those updated GPUs but the D300 is a different platform/generation of GPU from the other two. The driver for the D300s is the culprit for a lot of kernel panics initiated by watchdog when the GPU crashes rapidly in succession and I'll happily share dump contents with literally anyone that is capable of investigating them and wants to solve a problem many people have. There can't be more than 5000 of us on the planet anymore can there?

I have started getting additional data in the logs recently so maybe Apple is enabling some flags or something? That'd be nice but I don't know when an m-series pro Desktop will be available, I was waiting for today's Apple Event on the off chance iPad and iPhone day would have a surprise. I'd begrudgingly buy a macpro7,1 but considering the platform change and the improvements coming to Apple Silicon I can't buy for continued use for 8 years, so I'm buying for four, and that leaves me at 27" iMac i7/i9 refurbs or an intel macMini.

There is a tragic thread on MacRumors about this issue and one of my most recent updates and samples/additional new output logs are in this post https://forums.macrumors.com/threads/mac-pro-late-2013-gpu-driver-issues.1860297/post-30242289 and I can open another thread in a different venue if anyone wants to dig into this with me for sport or something.
incumbent
 
Posts: 40
Joined: Mon Apr 25, 2016 8:52 am

Re: OpenZFSonOsX-2.0.1-Big.Sur-11.pkg broken

Postby ptao » Thu Jan 20, 2022 9:46 am

benjamin wrote:[list]
[*]Removed zfs.ext and zfs.fs from under /System


What specific paths did you end up deleting? I'm hitting the same issue, and trying to follow these steps...

Edit:
Deleted:
/System/Volumes/Data/Library/StagedExtensions/Library/Extensions/zfs.kext
/System/Volumes/Data/Library/Filesystems/zfs.fs

and followed the rest of the steps above and that seemed to work!

And now I see:
Code: Select all
$ which zfs
/usr/local/zfs/bin/zfs
$ zfs version
zfs-macOS-2.1.0-1
zfs-kmod-2.1.0-1


Whereas previously the zfs-kmod had a mismatched version.
ptao
 
Posts: 1
Joined: Thu Jan 20, 2022 9:41 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 29 guests