1.9.1 install panic on iMac Pro and other issues

All your general support questions for OpenZFS on OS X.

1.9.1 install panic on iMac Pro and other issues

Postby Jimbo » Fri Jul 26, 2019 4:56 pm

Hi all,

Just tried the 1.9.1 build. Installed fine on a MBP (Mojave), 27" iMac (Mojave), Mac Mini server (High Sierra) but panics an iMac Pro during install. Rebooted fine, but allowing the kexts to load panics again -> boot loop. Removing 1.9.1 kexts and returning to 1.9.0 works fine. Tried a couple of times, but back with 1.9.0 on the iMac Pro.

Also have seen... "Segmentation fault: 11 zfs rename" in my scripts I run on the Mac Mini.

Are these known? If not what additional information is needed?

Cheers!
James
Jimbo
 
Posts: 34
Joined: Sun Sep 17, 2017 5:12 am

Re: 1.9.1 install panic on iMac Pro and other issues

Postby lundman » Mon Jul 29, 2019 4:43 pm

So you are saying Mojave and High Sierra are OK, but not which version is not OK?
User avatar
lundman
 
Posts: 620
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: 1.9.1 install panic on iMac Pro and other issues

Postby lundman » Mon Jul 29, 2019 5:14 pm

Hmm actually, imac-pro would mean really new hardware, so only Mojave right? Which could mean you have newer CPU - and basically get into the new assembler code. Yes, it would be very interesting to find out where it panics. Definitely with keepsyms=1.

You don't have to install it to get the panic, you can load the kext manually, so you don't have to go through the hassle of boot-loops. Let me know if you need more information.
User avatar
lundman
 
Posts: 620
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: 1.9.1 install panic on iMac Pro and other issues

Postby Jimbo » Mon Jul 29, 2019 5:35 pm

Hey Lundman,

Sorry, I wrote that as running out the door on the weekend. Issues with both High Sierra and Mojave - different issues of differing severity.

Problem 1: Install on Mojave - went fine on older MBP (~2015, quad core i7, 16Gb) and recent 27" iMac (quad core i5, 24Gb) but killed my iMac Pro with extreme prejudice (10 core Xeon W, 64Gb) ending up in a boot loop. Recovery mode and removing the kexts got me back up and re-installing 1.9.1 got me back in the same state (panics and reboots). Rolling backl to 1.9.0 is fine.

Problem 2: Getting segfaults running zfs rename on High Sierra, but I've not tried that on other OS versions (the dataset in question isn't easily moved). I'll have to see about running some other tests somewhere.

Given that the iMac Pro is my work machine, I'll not be going out of my way to make it crash right now, but could give it a go after I finish tonight. The new assembler was my initial thought...

In terms of manually loading the kexts, If you've got some instructions, that would be great. I'm guessing something along the lines of unload 1.9.0 (or would uninstall better?), mount the DMG, grab the kexts from appropriate PKG, sudo kextload ... ?

Cheers!
James
Jimbo
 
Posts: 34
Joined: Sun Sep 17, 2017 5:12 am

Re: 1.9.1 install panic on iMac Pro and other issues

Postby Jimbo » Mon Jul 29, 2019 6:55 pm

I had 5 minutes to test the Segfault issue on Mojave (MBP) - it reproduces.

Steps:
Code: Select all
Damocles:~ $ diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         499.4 GB   disk0s2

/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +499.4 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD            406.8 GB   disk1s1
   2:                APFS Volume Preboot                 44.2 MB    disk1s2
   3:                APFS Volume Recovery                510.3 MB   disk1s3
   4:                APFS Volume VM                      1.1 GB     disk1s4

/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *500.1 GB   disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:       Microsoft Basic Data Files                   499.9 GB   disk2s2

Damocles:~ $ sudo sudo zpool create -f -o ashift=12 -O casesensitivity=sensitive -O compression=lz4 -O normalization=formD Tester disk2
Password:
Damocles:~ $ sudo zfs create Tester/Nest1
Damocles:~ $ sudo zfs create Tester/Nest1/Nest2
Damocles:~ $ sudo zpool status -v
  pool: Tester
 state: ONLINE
  scan: none requested
config:

   NAME        STATE     READ WRITE CKSUM
   Tester      ONLINE       0     0     0
     disk2     ONLINE       0     0     0

errors: No known data errors
Damocles:~ $ sudo zpool list -v
NAME       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
Tester    464G  1.79M   464G        -         -     0%     0%  1.00x  ONLINE  -
  disk2   464G  1.79M   464G        -         -     0%  0.00%
Damocles:~ $ sudo zfs list
NAME                 USED  AVAIL  REFER  MOUNTPOINT
Tester              1.64M   449G   472K  /Volumes/Tester
Tester/Nest1         896K   449G   448K  /Volumes/Tester/Nest1
Tester/Nest1/Nest2   448K   449G   448K  /Volumes/Tester/Nest1/Nest2
Damocles:~ $ sudo chown testuser:staff /Volumes/Tester/Nest1/Nest2/.
Damocles:~ $ sudo zfs snapshot Tester/Nest1/Nest2@snap.3
Damocles:~ $ sudo zfs snapshot Tester/Nest1/Nest2@snap.2
Damocles:~ $ sudo zfs snapshot Tester/Nest1/Nest2@snap.1
Damocles:~ $ sudo zfs snapshot Tester/Nest1/Nest2@snap.0
Damocles:~ $ cp -rvp ScreenSaver backup* *.txt *.sh /Volumes/Tester/Nest1/Nest2/
ScreenSaver -> /Volumes/Tester/Nest1/Nest2/ScreenSaver
...
Damocles:~ $ sudo zfs destroy Tester/Nest1/Nest2@snap.3
Password:
Damocles:~ $ sudo zfs rename Tester/Nest1/Nest2@snap.2 Tester/Nest1/Nest2@snap.3
Segmentation fault: 11
Damocles:~ $ sudo zfs rename Tester/Nest1/Nest2@snap.1 Tester/Nest1/Nest2@snap.2
Segmentation fault: 11
Damocles:~ $ sudo zfs rename Tester/Nest1/Nest2@snap.0 Tester/Nest1/Nest2@snap.1
Segmentation fault: 11
Damocles:~ $ sudo zfs snapshot Tester/Nest1/Nest2@snap.0
Damocles:~ $ sudo zfs list -t all
NAME                        USED  AVAIL  REFER  MOUNTPOINT
Tester                      235M   449G   476K  /Volumes/Tester
Tester/Nest1                234M   449G   452K  /Volumes/Tester/Nest1
Tester/Nest1/Nest2          234M   449G   234M  /Volumes/Tester/Nest1/Nest2
Tester/Nest1/Nest2@snap.3      0      -   480K  /Volumes/Tester/Nest1/Nest2/.zfs/snapshot/snap.3
Tester/Nest1/Nest2@snap.2      0      -   480K  /Volumes/Tester/Nest1/Nest2/.zfs/snapshot/snap.2
Tester/Nest1/Nest2@snap.1      0      -   480K  /Volumes/Tester/Nest1/Nest2/.zfs/snapshot/snap.1
Tester/Nest1/Nest2@snap.0      0      -   234M  /Volumes/Tester/Nest1/Nest2/.zfs/snapshot/snap.0


Regardless of the segfault 11, still seems to work.

Cheers!
James

Edit: Spelling
Jimbo
 
Posts: 34
Joined: Sun Sep 17, 2017 5:12 am

Re: 1.9.1 install panic on iMac Pro and other issues

Postby lundman » Mon Jul 29, 2019 7:36 pm

Ok, since segfault appears to only occur with "zfs rename" I will have a test of that command, we did indeed change it recently.

As for the panics - it sure can be a pain to have main machine crash. But if you can get me one more would be nice. General guidelines like:

* make sure keepsyms is in "nvram boot-arg" - if you have to set it, reboot to make it active.

Now, to get the 1.9.1 kexts, personally, I would just rsync from another machine with 1.9.1 installed on it
# rsync -a hostmachine:/Library/Extentions/{zfs.kext,spl.kext} /var/tmp/
# chown -R root:wheel /var/tmp/{zfs.kext,spl.kext} # If not rsynced as root - kexts must be root:wheel

But if you want, you can just pull the kexts out of the .pkg file as well.

Loading the 1.9.1 kext, you'd do something like

# zpool export -a
# mv /Library/Extensions/zfs.kext /Library/Extensions/zfs.kext-noload
# mv /Library/Extensions/spl.kext /Library/Extensions/spl.kext-noload
# kextunload -b net.lundman.zfs
# kextunload -b net.lundman.spl
# sync
# kextload /var/tmp/spl.kext /var/tmp/zfs.kext
# fireworks!

Then, when you come back, just rename the -noload back to normal. (renamed to stop kernel from autoloading them when you unload.) Kexts should load automatically after rename, but if they don't, just do it by hand with kextload.
User avatar
lundman
 
Posts: 620
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: 1.9.1 install panic on iMac Pro and other issues

Postby lundman » Mon Jul 29, 2019 9:22 pm

I pushed a fix for zfs rename to master, thanks for reporting the problem.
User avatar
lundman
 
Posts: 620
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: 1.9.1 install panic on iMac Pro and other issues

Postby Jimbo » Tue Jul 30, 2019 4:04 am

thanks for reporting the problem.
;) 100% self interest! :P

Now, the panic. These new-fandangled-computer things...

/Library/Logs/DiagnosticReports/ProxiedDevice-Bridge <- only place I can find that looks like it might have a panic log, but its not what I remember. "panic-full-2019-07-30-113128.835.ips" is that what you're after?

I hope so.

From the smoking hole that was Mojave on iMac Pro... attached with keepsyms=y.

If there is anything else needed, something different needed or more testing, just let me know.

Cheers!
James
Attachments
panic-full-2019-07-30-113128.835.ips.gz
(166.82 KiB) Downloaded 27 times
Jimbo
 
Posts: 34
Joined: Sun Sep 17, 2017 5:12 am

Re: 1.9.1 install panic on iMac Pro and other issues

Postby Markospokus » Tue Jul 30, 2019 9:43 am

Hi Lundy,

There's no version for Mavericks in dmg, is it that there's no release of 1.9.1 yet (lack of any notice in annoucements)?
Markospokus
 
Posts: 7
Joined: Fri Feb 24, 2017 5:08 am

Re: 1.9.1 install panic on iMac Pro and other issues

Postby lundman » Tue Jul 30, 2019 4:00 pm

Is true we haven't announced 1.9.1 as its last minute testing - but we did announce in 1.9.0 that we are dropping 10.8 and 10.9 - although I'm surprised at how many people wants mavericks. I could probably be persuaded to compile 10.9 for 1.9.1
User avatar
lundman
 
Posts: 620
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Next

Return to General Help

Who is online

Users browsing this forum: No registered users and 3 guests

cron