first blood zfs-2.0.0-rc1 on M1 MacMini

Developer discussions.

first blood zfs-2.0.0-rc1 on M1 MacMini

Postby pgdh » Mon Apr 05, 2021 3:10 am

This is all very exciting, and it feels like we're very near to something useable. Thanks for all your hard work.

Half of a mirrored pool created on a Samsung created my Intel MBP under Catalina with 1.9.3 imported fine ...

Code: Select all
Holistix-Mini:~ root# zpool status
  pool: tank34
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
   the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
  scan: scrub repaired 0B in 00:28:33 with 0 errors on Sat Jan 23 03:39:19 2021
config:

   NAME                                            STATE     READ WRITE CKSUM
   tank34                                          DEGRADED     0     0     0
     mirror-0                                      DEGRADED     0     0     0
       2883132266047747100                         UNAVAIL      0     0     0  was /private/var/run/disk/by-id/media-A21561B0-676D-844F-9092-2D0F3976834F
       media-59A3405D-B515-C54E-AE23-4B120AC3B7C8  ONLINE       0     0     0

errors: No known data errors
Holistix-Mini:~ root#

This was as expected, as I have reused the second drive for APFS for use with my BMD ATEM Mini Pro ISO :)
I will detach the second drive the next time I import.

Then "zpool export tank34" failed (unable to unmount the first dataset, then gave up).
So I used "zpool export -f tank34", and that worked just fine.
However, when I tried "zpool import tank34" I got my first panic ...

Code: Select all
panic(cpu 1 caller 0xfffffe0013b5904c): Kernel data abort. at pc 0xfffffe0013632af4, lr 0xfffffe0015f118f0 (saved state: 0xfffffe401deab6c0)
     x0: 0xfffffe1678e732c8  x1:  0xfffffe302e454d58  x2:  0x93b7fe00162e6078  x3:  0xfffffe167bd5ff40
     x4: 0xfffffe401deabaf0  x5:  0xfffffe401deabb10  x6:  0x0000000000000000  x7:  0x0000000000000071
     x8: 0xfffffe00170bf098  x9:  0xfffffe166d4ca938  x10: 0x0000000000000000  x11: 0xfffffe233707cb70
     x12: 0x0000000000004000 x13: 0x00000000002d3e15  x14: 0x0000000000000000  x15: 0x0000000000000001
     x16: 0xfffffe0013632af4 x17: 0xfffffe00170bf098  x18: 0x0000000000000000  x19: 0xfffffe1678e732c8
     x20: 0xfffffe302e454c60 x21: 0x000000000100000f  x22: 0xfffffe166f441e00  x23: 0xfffffe166d535450
     x24: 0xfffffe233624d000 x25: 0x0000000000004000  x26: 0xfffffe167bd5ff40  x27: 0x0000000000004000
     x28: 0xfffffe2336418448 fp:  0xfffffe401deaba60  lr:  0xfffffe0015f118f0  sp:  0xfffffe401deaba10
     pc:  0xfffffe0013632af4 cpsr: 0x60401208         esr: 0x96000007          far: 0xfffffe1678e73bc0

Debugger message: panic
Memory ID: 0x6
OS release type: User
OS version: 20D91
Kernel version: Darwin Kernel Version 20.3.0: Thu Jan 21 00:06:51 PST 2021; root:xnu-7195.81.3~1/RELEASE_ARM64_T8101
Fileset Kernelcache UUID: F78A48EC84D7C3283E7C6C67D00889A7
Kernel UUID: 9FE8C0DA-8ED0-381C-9CEC-2A779F3E1503
iBoot version: iBoot-6723.81.1
secure boot?: YES
Paniclog version: 13
KernelCache slide: 0x000000000b770000
KernelCache base:  0xfffffe0012774000
Kernel slide:      0x000000000c2a4000
Kernel text base:  0xfffffe00132a8000
Kernel text exec base:  0xfffffe0013370000
mach_absolute_time: 0x15cb69d92
Epoch Time:        sec       usec
  Boot    : 0x606aebb2 0x000bc2de
  Sleep   : 0x00000000 0x00000000
  Wake    : 0x00000000 0x00000000
  Calendar: 0x606aec9f 0x00043869

CORE 0 recently retired instr at 0xfffffe00134dac0c
CORE 1 recently retired instr at 0xfffffe00134d9748
CORE 2 recently retired instr at 0xfffffe00134dac0c
CORE 3 recently retired instr at 0xfffffe00134dac0c
CORE 4 recently retired instr at 0xfffffe00134dac10
CORE 5 recently retired instr at 0xfffffe00134dac10
CORE 6 recently retired instr at 0xfffffe00134dac10
CORE 7 recently retired instr at 0xfffffe00134dac10
Panicked task 0xfffffe166d22a550: 230667 pages, 1006 threads: pid 0: kernel_task
Panicked thread: 0xfffffe166d3e4cb0, backtrace: 0xfffffe401deaae30, tid: 635
        lr: 0xfffffe00133bdfd0  fp: 0xfffffe401deaaea0
        lr: 0xfffffe00133bdd9c  fp: 0xfffffe401deaaf10
        lr: 0xfffffe00134dff0c  fp: 0xfffffe401deaaf30
        lr: 0xfffffe00134d18b8  fp: 0xfffffe401deaafe0
        lr: 0xfffffe00133777e8  fp: 0xfffffe401deaaff0
        lr: 0xfffffe00133bda2c  fp: 0xfffffe401deab380
        lr: 0xfffffe00133bda2c  fp: 0xfffffe401deab3f0
        lr: 0xfffffe0013b5865c  fp: 0xfffffe401deab410
        lr: 0xfffffe0013b5904c  fp: 0xfffffe401deab580
        lr: 0xfffffe00134d3768  fp: 0xfffffe401deab5f0
        lr: 0xfffffe00134d17e4  fp: 0xfffffe401deab6a0
        lr: 0xfffffe00133777e8  fp: 0xfffffe401deab6b0
        lr: 0xfffffe0015f118f0  fp: 0xfffffe401deaba60
        lr: 0xfffffe0015f11a98  fp: 0xfffffe401deabac0
        lr: 0xfffffe00158a5f38  fp: 0xfffffe401deabb80
        lr: 0xfffffe0013641110  fp: 0xfffffe401deabbd0
        lr: 0xfffffe00135e8834  fp: 0xfffffe401deabc20
        lr: 0xfffffe0013641f84  fp: 0xfffffe401deabcb0
        lr: 0xfffffe001362a470  fp: 0xfffffe401deabd70
        lr: 0xfffffe00138de8b4  fp: 0xfffffe401deabe20
        lr: 0xfffffe0013877290  fp: 0xfffffe401deabf00
        lr: 0xfffffe0013380c14  fp: 0x0000000000000000
      Kernel Extensions in backtrace:
         com.apple.iokit.IOStorageFamily(2.1)[56FEA90C-4868-3086-BA0D-4147A2FFA126]@0xfffffe0015890000->0xfffffe00158affff
         com.apple.filesystems.apfs(1677.81.1)[63D3E094-F237-38AE-B8E5-E21DA5F39BC5]@0xfffffe0015ef4000->0xfffffe0016003fff
            dependency: com.apple.driver.AppleEffaceableStorage(1.0)[A5E352E6-5917-3B81-AAE0-3C921283FA19]@0xfffffe00141a8000->0xfffffe00141affff
            dependency: com.apple.iokit.CoreAnalyticsFamily(1)[C835604F-5B87-3425-B13C-6D8662DEC7C8]@0xfffffe0014d44000->0xfffffe0014d4bfff
            dependency: com.apple.iokit.IOStorageFamily(2.1)[56FEA90C-4868-3086-BA0D-4147A2FFA126]@0xfffffe0015890000->0xfffffe00158affff
            dependency: com.apple.kec.corecrypto(11.1)[E7263606-770E-3C0F-B5A1-F10042B34365]@0xfffffe0016044000->0xfffffe001608ffff

last started kext at 2910756057: com.apple.iokit.SCSITaskUserClient   436.40.6 (addr 0xfffffe0013034000, size 16384)
loaded kexts:
net.lundman.zfs   2.0.0
com.apple.iokit.SCSITaskUserClient   436.40.6
com.apple.driver.AppleTopCaseHIDEventDriver   4030.5
com.apple.fileutil   20.036.15
com.apple.filesystems.autofs   3.0
com.apple.iokit.IOBluetoothSerialManager   8.0.3d9
com.apple.driver.BCMWLANFirmware4378.Hashstore   1
com.apple.driver.AppleAOPVoiceTrigger   11.5
com.apple.driver.AppleThunderboltIP   4.0.3
com.apple.iokit.AppleBCM5701Ethernet   11.0.0
com.apple.driver.CoreKDL   1
com.apple.driver.SEPHibernation   1
com.apple.driver.AppleUSBDeviceNCM   5.0.0
com.apple.driver.DiskImages.ReadWriteDiskImage   493.0.0
com.apple.driver.DiskImages.UDIFDiskImage   493.0.0
com.apple.driver.DiskImages.RAMBackingStore   493.0.0
com.apple.driver.DiskImages.FileBackingStore   493.0.0
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.filesystems.apfs   1677.81.1
com.apple.driver.AppleFileSystemDriver   3.0.1
com.apple.nke.l2tp   1.9
com.apple.filesystems.tmpfs   1
com.apple.driver.ApplePMP   1
com.apple.driver.ApplePMPFirmware   1
com.apple.IOTextEncryptionFamily   1.0.0
com.apple.filesystems.hfs.kext   556.60.1
com.apple.security.BootPolicy   1
com.apple.BootCache   40
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib   1.0.0
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless   1.0.0d1
com.apple.driver.AppleTAS5770LAmp   437.96
com.apple.driver.AppleSmartIO2   1
com.apple.driver.AppleCS42L83Audio   437.96
com.apple.AppleEmbeddedSimpleSPINORFlasher   1
com.apple.driver.AppleSPMIPMU   1.0.1
com.apple.driver.AppleJPEGDriver   4.6.0
com.apple.driver.AppleAVE2   401.63.3
com.apple.driver.AppleMobileDispH13G-DCP   140.0
com.apple.driver.AudioDMAController-T8103   1.59
com.apple.AGXG13G   172.26.2
com.apple.driver.AppleT8103CLPCv3   1
com.apple.driver.AppleT8020SOCTuner   1
com.apple.driver.AppleSPIMC   1
com.apple.driver.usb.AppleUSBHostT8103   1
com.apple.driver.AppleS5L8960XNCO   1
com.apple.driver.AppleAVD   376
com.apple.driver.AppleT8103PMGR   1
com.apple.driver.AppleS8000AES   1
com.apple.driver.AppleS5L8920XPWM   1.0.0d1
com.apple.driver.AppleS8000DWI   1.0.0d1
com.apple.driver.AppleS5L8960XWatchDogTimer   1
com.apple.driver.AppleInterruptController   1.0.0d1
com.apple.driver.AppleBluetoothModule   1
com.apple.driver.AppleSamsungSerial   1.0.0d1
com.apple.driver.AppleBCMWLANBusInterfacePCIe   1
com.apple.driver.AppleMCDP29XXUpdateSupport   1
com.apple.driver.AppleT8020DART   1
com.apple.driver.AppleS5L8940XI2C   1.0.0d2
com.apple.driver.AppleM68Buttons   1.0.0d1
com.apple.driver.AppleT8101   1
com.apple.iokit.IOUserEthernet   1.0.1
com.apple.iokit.IOKitRegistryCompatibility   1
com.apple.iokit.EndpointSecurity   1
com.apple.driver.AppleDiskImages2   1
com.apple.AppleSystemPolicy   2.0.0
com.apple.nke.applicationfirewall   310
com.apple.kec.InvalidateHmac   1
com.apple.driver.usb.cdc   5.0.0
com.apple.driver.AppleUSBAudio   401.4
com.apple.iokit.IOAudioFamily   300.6.1
com.apple.vecLib.kext   1.2.0
com.apple.driver.AppleBluetoothHIDKeyboard   223
com.apple.driver.AppleHIDKeyboard   223
com.apple.driver.AppleActuatorDriver   4400.28
com.apple.driver.AppleMultitouchDriver   4400.28
com.apple.driver.AppleInputDeviceSupport   4400.35
com.apple.driver.AppleHSBluetoothDriver   4030.5
com.apple.driver.IOBluetoothHIDDriver   8.0.3d9
com.apple.kext.triggers   1.0
com.apple.iokit.IOAVBFamily   930.1
com.apple.plugin.IOgPTPPlugin   900.11
com.apple.iokit.IOEthernetAVBController   1.1.0
com.apple.driver.AppleAOPAudio   14.32
com.apple.driver.IOBluetoothHostControllerPCIeTransport   8.0.3d9
com.apple.iokit.IOBluetoothHostControllerTransport   8.0.3d9
com.apple.driver.usb.AppleEmbeddedUSBXHCIPCI   1
com.apple.driver.usb.AppleUSBXHCIPCI   1.2
com.apple.driver.AppleEmbeddedUSB   1
com.apple.driver.AppleConvergedIPCOLYBTControl   1
com.apple.driver.AppleConvergedPCI   1
com.apple.driver.AppleBluetoothDebug   1
com.apple.driver.AppleSEPHDCPManager   1.0.1
com.apple.iokit.AppleSEPGenericTransfer   1
com.apple.driver.usb.networking   5.0.0
com.apple.driver.DiskImages.KernelBacked   493.0.0
com.apple.driver.AppleThunderboltDPInAdapter   8.1.4
com.apple.driver.AppleThunderboltDPAdapterFamily   8.1.4
com.apple.driver.AppleThunderboltUSBDownAdapter   1.0.4
com.apple.driver.AppleThunderboltPCIDownAdapter   4.1.1
com.apple.driver.AppleBTM   1.0.1
com.apple.driver.AppleXsanScheme   3
com.apple.driver.AppleDCPDPTXProxy   1.0.0
com.apple.driver.DCPDPFamilyProxy   1
com.apple.nke.ppp   1.9
com.apple.driver.AppleSPU   1
com.apple.AGXFirmwareKextG13GRTBuddy   172.26.2
com.apple.AGXFirmwareKextRTBuddy64   172.26.2
com.apple.driver.AppleBSDKextStarter   3
com.apple.filesystems.hfs.encodings.kext   1
com.apple.driver.AppleHPM   3.4.4
com.apple.driver.AppleDiagnosticDataAccessReadOnly   1.0.0
com.apple.driver.AppleCSEmbeddedAudio   437.96
com.apple.driver.AppleEmbeddedAudio   437.96
com.apple.iokit.AppleARMIISAudio   80.34
com.apple.iokit.IONVMeFamily   2.1.0
com.apple.driver.AppleNANDConfigAccess   1.0.0
com.apple.driver.AppleDialogPMU   1.0.1
com.apple.driver.AppleStockholmControl   1.0.0
com.apple.driver.AppleH11ANEInterface   4.52.0
com.apple.driver.AppleSPMI   1.0.1
com.apple.driver.DCPAVFamilyProxy   1
com.apple.iokit.IOMobileGraphicsFamily-DCP   343.0.0
com.apple.driver.AppleDCP   1
com.apple.driver.AppleFirmwareKit   1
com.apple.iokit.IOMobileGraphicsFamily   343.0.0
com.apple.iokit.IOGPUFamily   20.23
com.apple.driver.AppleMCA2-T8103   510.72
com.apple.driver.AppleSART   1
com.apple.driver.ApplePassthroughPPM   3.0
com.apple.driver.AppleT8103TypeCPhy   1
com.apple.driver.AppleUSBXDCIARM   1.0
com.apple.driver.AppleUSBXDCI   1.0
com.apple.iokit.IOUSBDeviceFamily   2.0.0
com.apple.driver.usb.AppleUSBXHCIARM   1
com.apple.driver.usb.AppleUSBXHCI   1.2
com.apple.driver.AppleEmbeddedUSBHost   1
com.apple.driver.usb.AppleUSBHub   1.2
com.apple.driver.usb.AppleUSBHostCompositeDevice   1.2
com.apple.driver.ApplePMGR   1
com.apple.driver.watchdog   1
com.apple.driver.usb.AppleUSBHostPacketFilter   1.0
com.apple.driver.AppleDisplayCrossbar   1.0.0
com.apple.driver.AppleTypeCPhy   1
com.apple.driver.AppleThunderboltNHI   7.2.8
com.apple.driver.AppleT8103PCIeC   1
com.apple.iokit.IOThunderboltFamily   9.3.2
com.apple.driver.ApplePIODMA   1
com.apple.driver.AppleT8103PCIe   1
com.apple.driver.AppleBluetoothDebugService   1
com.apple.driver.AppleBCMWLANCore   1.0.0
com.apple.iokit.IO80211FamilyV2   1200.12.2b1
com.apple.driver.IOImageLoader   1.0.0
com.apple.iokit.IODisplayPortFamily   1.0.0
com.apple.driver.AppleGPIOICController   1.0.2
com.apple.driver.AppleMobileApNonce   1
com.apple.driver.AppleFireStormErrorHandler   1
com.apple.driver.AppleMultiFunctionManager   1
com.apple.driver.corecapture   1.0.4
com.apple.driver.AppleEmbeddedPCIE   1
com.apple.iokit.IOTimeSyncFamily   900.11
com.apple.driver.DiskImages   493.0.0
com.apple.iokit.IOGraphicsFamily   585
com.apple.iokit.IOBluetoothFamily   8.0.3d9
com.apple.iokit.IOBluetoothPacketLogger   8.0.3d9
com.apple.driver.FairPlayIOKit   68.6.0
com.apple.iokit.CoreAnalyticsFamily   1
com.apple.driver.AppleSSE   1.0
com.apple.driver.AppleSEPKeyStore   2
com.apple.driver.AppleUSBTDM   511.60.2
com.apple.iokit.IOUSBMassStorageDriver   184.40.6
com.apple.iokit.IOPCIFamily   2.9
com.apple.iokit.IOSCSIBlockCommandsDevice   436.40.6
com.apple.iokit.IOSCSIArchitectureModelFamily   436.40.6
com.apple.driver.AppleIPAppender   1.0
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleEffaceableStorage   1.0
com.apple.driver.AppleCredentialManager   1.0
com.apple.driver.KernelRelayHost   1
com.apple.iokit.IOUSBHostFamily   1.2
com.apple.driver.AppleUSBHostMergeProperties   1.2
com.apple.driver.usb.AppleUSBCommon   1.0
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.RTBuddy   1.0.0
com.apple.driver.AppleEmbeddedTempSensor   1.0.0
com.apple.driver.AppleARMPMU   1.0
com.apple.iokit.IOAccessoryManager   1.0.0
com.apple.driver.AppleOnboardSerial   1.0
com.apple.iokit.IOSkywalkFamily   1
com.apple.driver.mDNSOffloadUserClient   1.0.1b8
com.apple.iokit.IONetworkingFamily   3.4
com.apple.iokit.IOSerialFamily   11
com.apple.driver.AppleSEPManager   1.0.1
com.apple.driver.AppleA7IOP   1.0.2
com.apple.driver.IOSlaveProcessor   1
com.apple.driver.AppleBiometricSensor   2
com.apple.iokit.IOHIDFamily   2.0.0
com.apple.AUC   1.0
com.apple.iokit.IOAVFamily   1.0.0
com.apple.iokit.IOHDCPFamily   1.0.0
com.apple.iokit.IOCECFamily   1
com.apple.iokit.IOAudio2Family   1.0
com.apple.driver.AppleEmbeddedAudioLibs   1.17
com.apple.driver.AppleFirmwareUpdateKext   1
com.apple.driver.AppleM2ScalerCSCDriver   265.0.0
com.apple.iokit.IOSurface   289.3
com.apple.driver.IODARTFamily   1
com.apple.security.quarantine   4
com.apple.security.sandbox   300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.kext.CoreTrust   1
com.apple.security.AppleImage4   3.0.0
com.apple.iokit.IOCryptoAcceleratorFamily   1.0.1
com.apple.driver.AppleARMPlatform   1.0.2
com.apple.iokit.IOStorageFamily   2.1
com.apple.iokit.IOSlowAdaptiveClockingFamily   1.0.0
com.apple.iokit.IOReportFamily   47
com.apple.kec.pthread   1
com.apple.kec.corecrypto   11.1
com.apple.kec.Libm   1



** Stackshot Succeeded ** Bytes Traced 416357 (Uncompressed 1135632) **


I'm happy to experiment. Please let me know what else you need turning on etc

Thanks,
Phil (one of your patreon supporters)
pgdh
 
Posts: 5
Joined: Fri Jun 26, 2015 3:58 am

Re: first blood zfs-2.0.0-rc1 on M1 MacMini

Postby pgdh » Mon Apr 05, 2021 3:37 am

Thrilled to see TRIM support on my Samsung T5...

Code: Select all
Holistix-Mini:~ root# zpool status -t
  pool: tank34
 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: scrub in progress since Mon Apr  5 12:11:41 2021
   601G scanned at 417M/s, 461G issued at 320M/s, 874G total
   0B repaired, 52.76% done, 00:22:00 to go
config:

   NAME                                          STATE     READ WRITE CKSUM
   tank34                                        ONLINE       0     0     0
     media-59A3405D-B515-C54E-AE23-4B120AC3B7C8  ONLINE       0     0     0  (100% trimmed, completed at Mon  5 Apr 12:21:05 2021)

errors: No known data errors
Holistix-Mini:~ root#


I think I'm ready for a pool upgrade now :)
pgdh
 
Posts: 5
Joined: Fri Jun 26, 2015 3:58 am

Re: first blood zfs-2.0.0-rc1 on M1 MacMini

Postby pgdh » Mon Apr 05, 2021 3:39 am

Oooh ... this looks exciting ... I've been itching to play with DRAID ...

Code: Select all
Holistix-Mini:~ root# zpool upgrade tank34
This system supports ZFS pool feature flags.

Enabled the following features on 'tank34':
  userobj_accounting
  project_quota
  redaction_bookmarks
  redacted_datasets
  bookmark_written
  log_spacemap
  livelist
  device_rebuild
  zstd_compress
  draid

Holistix-Mini:~ root#
pgdh
 
Posts: 5
Joined: Fri Jun 26, 2015 3:58 am

Re: first blood zfs-2.0.0-rc1 on M1 MacMini

Postby lundman » Mon Apr 05, 2021 3:45 am

Hey neat, not seen a panic report on M1 before. Got some learning to do, see if we can figure out how to get symbols out of it.

If you fail to export, try normal export again - and run spindump. I would not reach for unmount -f as that could likely panic, unless desperate :)
User avatar
lundman
 
Posts: 1008
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan


Return to OpenZFS on OS X Development

Who is online

Users browsing this forum: No registered users and 2 guests