Kernel Panic after enclosure loses and regains power

This forum is to find answers to problems you may be having with ZEVO Community Edition.

Moderators: jhartley, MSR734, nola

Kernel Panic after enclosure loses and regains power

Post by NakkiNyan » Wed Jun 05, 2013 12:31 am

Before I begin: This post is apparently to help grahamperrin increase his post count, it is simply another wasted "KP when my disks try to mount after not being exported correctly" post. This has already addressed multiple times and will take an update to ZEVO or a real, integrated (read: part of 10.9+), implementation of ZFS to fix.

Basics:
Retina MBP running OSX 10.8.3
2.3 GHz Intel Core i7 with 16 GB RAM
ZEVO 1.1.1
Sans Digital 4bay USB3 enclosure running in JBOD mode connected directly (not through a hub)
3 SAMSUNG EcoGreen F4 ST2000DL004 2TB in a RAIDz array (shame they were discontinued)
Disks set to not sleep

Issue:
When I lose power, unfortunately this happens 1-2 times a month lasting between a few seconds and a couple minutes, the drives obviously disconnect but the computer switches to battery so it is still operational; when I regain power and the disks try to reconnect the single HFS drive connects just fine but the RAID set causes a kernel panic with a "type 14=page fault" error in the log with a backtrace to com.getgreenbytes.filesystem.zfs(2012.9.23) with the dependency com.apple.iokit.IOStorageFamily(1.8) at the BSD process name "zpool" connected to the thread that caused the error --see the full log if you wish below.

For those not too familiar with ZFS, in human speak, it failed at the automatic "zpool import PoolNameHere" because no "zpool export PoolNameHere"** was performed before the unexpected power loss. You see this same error with bad USB cables and hubs, ejecting disks** and other issues already mentioned in the troubleshooting section.

**The eject you may perform on the sidebar or right click is handled by the plugin and changed to a "zpool export PoolName" so don't change how you do that, you are doing it correctly.

Code: Select all
Interval Since Last Panic Report:  4915795 sec
Panics Since Last Report:          2
Anonymous UUID:                    5F230CFE-9D6B-9476-2D6E-D24C1671A9BD

Sun May 19 12:54:33 2013
panic(cpu 0 caller 0xffffff800acb7e95): Kernel trap at 0xffffff7f8b173cf5, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0x0000000000000000, CR3: 0x00000001f40bc06d, CR4: 0x00000000001606e0
RAX: 0x0000000000000000, RBX: 0xffffff802ddc3b00, RCX: 0xffffff800b2e04f0, RDX: 0xffffff802ddb1d00
RSP: 0xffffff81d2ecb060, RBP: 0xffffff81d2ecb080, RSI: 0x0000000020000001, RDI: 0x0000000000000000
R8:  0x0000000000002caf, R9:  0x0000000000000000, R10: 0xffffff8031dea260, R11: 0x0000000000000000
R12: 0xffffff802dca2c00, R13: 0xffffff802ddc3b00, R14: 0x0000000000000001, R15: 0x0000000000000000
RFL: 0x0000000000010282, RIP: 0xffffff7f8b173cf5, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x0000000000000000, Error code: 0x0000000000000000, Fault CPU: 0x0

Backtrace (CPU 0), Frame : Return Address
0xffffff81d2ecad00 : 0xffffff800ac1d626
0xffffff81d2ecad70 : 0xffffff800acb7e95
0xffffff81d2ecaf40 : 0xffffff800accd4dd
0xffffff81d2ecaf60 : 0xffffff7f8b173cf5
0xffffff81d2ecb080 : 0xffffff800b02f7eb
0xffffff81d2ecb0e0 : 0xffffff7f8b17b395
0xffffff81d2ecb0f0 : 0xffffff7f8b1756d1
0xffffff81d2ecb150 : 0xffffff800b02f7eb
0xffffff81d2ecb1b0 : 0xffffff7f8b17b395
0xffffff81d2ecb1c0 : 0xffffff7f8b17675f
0xffffff81d2ecb230 : 0xffffff800ad1eb4c
0xffffff81d2ecb2a0 : 0xffffff800ad10c66
0xffffff81d2ecb2e0 : 0xffffff800ad0838c
0xffffff81d2ecb390 : 0xffffff800ad07aeb
0xffffff81d2ecb4f0 : 0xffffff800acf2f40
0xffffff81d2ecb6c0 : 0xffffff7f8b227d6a
0xffffff81d2ecb790 : 0xffffff800acf7aee
0xffffff81d2ecbae0 : 0xffffff800acf87fa
0xffffff81d2ecbf10 : 0xffffff800acf7fd9
0xffffff81d2ecbf50 : 0xffffff800afe063a
0xffffff81d2ecbfb0 : 0xffffff800accdd23
      Kernel Extensions in backtrace:
         com.apple.iokit.IOStorageFamily(1.8)[A3CC4E44-8E10-3D9A-BA8E-95743E79D125]@0xffffff7f8b16c000->0xffffff7f8b190fff
         com.getgreenbytes.filesystem.zfs(2012.9.23)[04497DBB-8849-31D8-8496-BE10E5711C53]@0xffffff7f8b199000->0xffffff7f8b333fff
            dependency: com.apple.iokit.IOStorageFamily(1.8)[A3CC4E44-8E10-3D9A-BA8E-95743E79D125]@0xffffff7f8b16c000

BSD process name corresponding to current thread: zpool

Mac OS version:
12D78

Kernel version:
Darwin Kernel Version 12.3.0: Sun Jan  6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Kernel UUID: 3EB7D8A7-C2D3-32EC-80F4-AB37D61492C6
Kernel slide:     0x000000000aa00000
Kernel text base: 0xffffff800ac00000
System model name: MacBookPro10,1 (Mac-C3EC7CD22292981F)

System uptime in nanoseconds: 211303560946286
last loaded kext at 211295210843227: com.apple.iokit.SCSITaskUserClient   3.5.5 (addr 0xffffff7f8d204000, size 36864)
last unloaded kext at 316135041600: com.apple.filesystems.msdosfs   1.8 (addr 0xffffff7f8d1f3000, size 57344)
loaded kexts:
org.pqrs.driver.KeyRemap4MacBook   7.8.0
com.globaldelight.driver.BoomDevice   1.1
com.getgreenbytes.driver.zfs   2012.09.14
com.getgreenbytes.filesystem.zfs   2012.09.23
at.obdev.nke.LittleSnitch   3864
com.apple.iokit.SCSITaskUserClient   3.5.5
com.apple.driver.AppleUSBCDC   4.1.23
com.apple.driver.AppleBluetoothMultitouch   75.19
com.apple.driver.AppleHWSensor   1.9.5d0
com.apple.iokit.IOBluetoothSerialManager   4.1.3f3
com.apple.filesystems.autofs   3.0
com.apple.driver.ApplePlatformEnabler   2.0.6d1
com.apple.driver.AGPM   100.12.87
com.apple.driver.X86PlatformShim   1.0.0
com.apple.driver.AppleMikeyHIDDriver   122
com.apple.driver.AudioAUUC   1.60
com.apple.iokit.IOUserEthernet   1.0.0d1
com.apple.driver.AppleHDA   2.3.7fc4
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleMikeyDriver   2.3.7fc4
com.apple.GeForce   8.1.0
com.apple.driver.AppleMuxControl   3.3.0
com.apple.driver.ApplePolicyControl   3.3.0
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport   4.1.3f3
com.apple.driver.AppleLPC   1.6.0
com.apple.driver.AppleSMCLMU   2.0.3d0
com.apple.driver.AppleUpstreamUserClient   3.5.10
com.apple.driver.AppleMCCSControl   1.1.11
com.apple.driver.AppleSMCPDRC   1.0.0
com.apple.driver.AppleIntelHD4000Graphics   8.1.0
com.apple.driver.AppleIntelFramebufferCapri   8.1.0
com.apple.driver.AppleUSBTCButtons   237.1
com.apple.driver.AppleUSBTCKeyboard   237.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless   1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib   1.0.0d1
com.apple.BootCache   34
com.apple.driver.XsanFilter   404
com.apple.iokit.IOAHCIBlockStorage   2.3.1
com.apple.driver.AppleUSBHub   5.5.5
com.apple.driver.AirPort.Brcm4331   614.20.16
com.apple.driver.AppleSDXC   1.4.0
com.apple.driver.AppleAHCIPort   2.5.1
com.apple.driver.AppleUSBEHCI   5.5.0
com.apple.driver.AppleUSBXHCI   5.5.5
com.apple.driver.AppleEFINVRAM   1.7
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   1.7
com.apple.driver.AppleRTC   1.5
com.apple.driver.AppleHPET   1.8
com.apple.driver.AppleSMBIOS   1.9
com.apple.driver.AppleACPIEC   1.7
com.apple.driver.AppleAPIC   1.6
com.apple.driver.AppleIntelCPUPowerManagementClient   196.0.0
com.apple.nke.applicationfirewall   4.0.39
com.apple.security.quarantine   2
com.apple.driver.AppleIntelCPUPowerManagement   196.0.0
com.apple.driver.AppleMultitouchDriver   235.29
com.apple.driver.AppleBluetoothHIDKeyboard   170.2
com.apple.driver.IOBluetoothHIDDriver   4.1.3f3
com.apple.driver.AppleHIDKeyboard   170.2
com.apple.iokit.IOSerialFamily   10.0.6
com.apple.kext.triggers   1.0
com.apple.iokit.IOSurface   86.0.4
com.apple.driver.DspFuncLib   2.3.7fc4
com.apple.iokit.IOBluetoothFamily   4.1.3f3
com.apple.iokit.IOAudioFamily   1.8.9fc11
com.apple.kext.OSvKernDSPLib   1.6
com.apple.nvidia.gk100hal   8.1.0
com.apple.driver.AppleBacklightExpert   1.0.4
com.apple.driver.AppleGraphicsControl   3.3.0
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport   4.1.3f3
com.apple.driver.X86PlatformPlugin   1.0.0
com.apple.driver.AppleSMC   3.1.4d2
com.apple.driver.AppleSMBusController   1.0.11d0
com.apple.NVDAResman   8.1.0
com.apple.driver.AppleSMBusPCI   1.0.11d0
com.apple.driver.IOPlatformPluginFamily   5.3.0d51
com.apple.driver.AppleHDAController   2.3.7fc4
com.apple.iokit.IOHDAFamily   2.3.7fc4
com.apple.iokit.IOAcceleratorFamily   30.14
com.apple.iokit.IONDRVSupport   2.3.7
com.apple.iokit.IOGraphicsFamily   2.3.7
com.apple.driver.AppleUSBMultitouch   237.3
com.apple.iokit.IOUSBHIDDriver   5.2.5
com.apple.driver.AppleThunderboltDPInAdapter   1.8.9
com.apple.driver.AppleThunderboltDPAdapterFamily   1.8.9
com.apple.driver.AppleThunderboltPCIDownAdapter   1.2.6
com.apple.iokit.IOSCSIBlockCommandsDevice   3.5.5
com.apple.iokit.IOUSBMassStorageClass   3.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily   3.5.5
com.apple.driver.AppleUSBMergeNub   5.5.5
com.apple.driver.AppleUSBComposite   5.2.5
com.apple.driver.AppleThunderboltNHI   1.6.3
com.apple.iokit.IOThunderboltFamily   2.2.6
com.apple.iokit.IO80211Family   522.4
com.apple.iokit.IOUSBUserClient   5.5.5
com.apple.iokit.IONetworkingFamily   3.0
com.apple.iokit.IOAHCIFamily   2.3.1
com.apple.iokit.IOUSBFamily   5.5.5
com.apple.driver.AppleEFIRuntime   1.7
com.apple.iokit.IOHIDFamily   1.8.1
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox   220.2
com.apple.kext.AppleMatch   1.0.0d1
com.apple.security.TMSafetyNet   7
com.apple.driver.DiskImages   345
com.apple.iokit.IOStorageFamily   1.8
com.apple.driver.AppleKeyStore   28.21
com.apple.driver.AppleACPIPlatform   1.7
com.apple.iokit.IOPCIFamily   2.7.3
com.apple.iokit.IOACPIFamily   1.4
com.apple.kec.corecrypto   1.0
System Profile:
Model: MacBookPro10,1, BootROM MBP101.00EE.B02, 4 processors, Intel Core i7, 2.3 GHz, 16 GB, SMC 2.3f35
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 512 MB
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80CE, 0x4D34373142314737334248302D434B302020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80CE, 0x4D34373142314737334248302D434B302020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.98.100.16)
Bluetooth: Version 4.1.3f3 11349, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM256E, 251 GB
USB Device: USB to ATA/ATAPI Bridge, 0x152d  (JMicron Technology Corp.), 0x0551, 0x14900000 / 1
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1a100000 / 2
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8510, 0x1a110000 / 3
USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1d100000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2512, 0x1d180000 / 3
USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1d181000 / 5
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8286, 0x1d181300 / 8
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0264, 0x1d182000 / 4
NakkiNyan Offline


 
Posts: 47
Joined: Tue Oct 02, 2012 12:19 pm

Re: Kernel Panic after enclosure loses and regains power

Post by ilovezfs » Wed Jun 05, 2013 10:33 pm

Hey Nakki,

I know this is of course no real solution to this very serious bug, but if you lose power regularly and only for at most a few minutes, have you considered buying an uninterruptible power supply for under $100? For example,

http://amzn.com/B000OTEZ5I

Also, I wonder if anyone has had luck blocking ZEVO auto imports using /etc/fstab or perhaps changing the filesystem type code in the GPT.

Finally, please be nice to Graham. He's helped a lot of noobs and doesn't deserve your scorn.

BjoKaSH of the ZFS on OSX project said to Graham: "Nice to have you on the list, I very much look up to your incredible work in the Zevo forum!" https://groups.google.com/forum/?fromgr ... Burtudl_QQ
ilovezfs Online


 
Posts: 249
Joined: Sun Feb 10, 2013 9:02 am

Link

Post by grahamperrin » Thu Jun 06, 2013 12:39 am

ilovezfs wrote:… blocking ZEVO auto imports …


disable automatic zpool import
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Kernel Panic after enclosure loses and regains power

Post by NakkiNyan » Thu Jun 06, 2013 1:02 am

ilovezfs wrote:I know this is of course no real solution to this very serious bug, but if you lose power regularly and only for at most a few minutes, have you considered buying an uninterruptible power supply for under $100? For example

Since I have a laptop I would only need it for the enclosure so I am better off not wasting the money and buying another HDD.

ilovezfs wrote:Finally, please be nice to Graham. He's helped a lot of noobs and doesn't deserve your scorn.

This is not our first run in with his condescending remarks in response to a post I, or others, made. Often he points to things as answers for a problem with no solution like he did above or a long video that have nothing to do with the question, like when people were asking if they should use ashift or not rallying against it because the video said it sucked for databases which is not what my system is for and he already knew it at the time.
NakkiNyan Offline


 
Posts: 47
Joined: Tue Oct 02, 2012 12:19 pm

Re: Kernel Panic after enclosure loses and regains power

Post by grahamperrin » Thu Jun 06, 2013 1:20 am

I recall NakkiNyan taking offence.

It's a public forum; what one person finds insulting to their intelligence, another reader may find helpful.

… databases which is not what my system is for and he already knew it …


Known how?

It's a public forum. Some readers of the performance topic might use databases.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Re: Kernel Panic after enclosure loses and regains power

Post by ilovezfs » Thu Jun 06, 2013 1:47 am

NakkiNyan wrote:Since I have a laptop I would only need it for the enclosure so I am better off not wasting the money and buying another HDD.

Sounds like the right decision to me! The UPS would only really make sense if the power-loss panics were causing data loss or really annoying you. I'm assuming your subsequent scrubs have not been turning up any possibly related data corruption.

NakkiNyan wrote:This is not our first run in with his condescending remarks in response to a post I, or others, made. Often he points to things as answers for a problem with no solution like he did above or a long video that have nothing to do with the question, like when people were asking if they should use ashift or not rallying against it because the video said it sucked for databases which is not what my system is for and he already knew it at the time.

I see. I think the main reason for putting in the links is to try to tie together potentially related threads to avoid duplication of topics and to make people aware of possibly related posts so that whatever additional evidence or solutions they might contain won't be missed. Perhaps that's what the search feature is supposed to be for, but I suspect it turns out to be the case that many more people end up reading through the possibly related posts due to Graham's links than would read through them if they were only accessible via proactive individual searches. You might be right that in some cases other threads that Graham thinks are related are in fact really about something quite different, but on balance it's probably better to have the suggested links than to not have them.

I can see how this would be quite annoying to you if it deterred other people from responding to your posts, as if they had already been "solved." That is definitely a legitimate concern. I would hope that most people here that know what they're talking about would still respond to your remarks. Nonetheless, it is probably empirically true that fewer total responses from people other than Graham end up coming in when he has responded with what on a cursory read might seem like complete solutions but are actually mainly links to other threads which do not resolve the issue.

In most forums it is considered bad manners to bump a long-since dead thread, especially one where it is very unlikely that the OP is paying attention to or cares about the thread anymore. So you create a new thread. And then Graham links to an old thread that it would usually be considered rude to resurrect, as if you should have posted there. I can see how this could be jarring given standard forum etiquette. And all the more so if you feel the links are unrelated.

Usually these sorts of issues are sorted out by forum moderators, but Greenbytes seems to be asleep at the switch.

Your primary issue, though, seems to be your perception that Graham has spoken condescendingly to you and others. I think tone is something very difficult to discern from online text alone, especially when you do not know people personally. In general, it is best to assume good intentions.
Last edited by ilovezfs on Thu Jun 06, 2013 1:52 am, edited 1 time in total.
ilovezfs Online


 
Posts: 249
Joined: Sun Feb 10, 2013 9:02 am

Re: Kernel Panic after enclosure loses and regains power

Post by NakkiNyan » Thu Jun 06, 2013 1:51 am

grahamperrin wrote:Known how?

Because I said I tried doing some timing on reading and writing a 10.63GB file using dd and here is what I got. in the post you responded to and you just linked to above and linked to the video I mentioned above that had nothing to do with my issue.
NakkiNyan Offline


 
Posts: 47
Joined: Tue Oct 02, 2012 12:19 pm

Re: Kernel Panic after enclosure loses and regains power

Post by NakkiNyan » Thu Jun 06, 2013 2:28 am

ilovezfs wrote:Sounds like the right decision to me! The UPS would only really make sense if the power-loss panics were causing data loss or really annoying you. I'm assuming your subsequent scrubs have not been turning up any possibly related data corruption.

Yeah, not really, I think it may have had to make 1 fix since using ZFS and that was a while ago and a small repair.

In my case it is storage of massive files I simply can't hold on my tiny SSD (obvious reasons there). When the power goes out I simply keep working since it is a laptop and without ZFS I wouldn't have the KP, it would gracefully reconnect. If it was some production server of some sort I would agree.

As for your links comment, if he would simply read carefully what the issue is and vet his links for relevancy (current talk or a solution). That is where his response to your comment before was just bad, responding to your previous question with the now dead "disable automatic zpool import", it makes people click on a link to a thread he derailed and died with no answer, a simple "not yet" would have sufficed and saved reading all the posts to find that out.
NakkiNyan Offline


 
Posts: 47
Joined: Tue Oct 02, 2012 12:19 pm

Re: Kernel Panic after enclosure loses and regains power

Post by ilovezfs » Thu Jun 06, 2013 2:58 am

NakkiNyan wrote:As for your links comment, if he would simply read carefully what the issue is and vet his links for relevancy (current talk or a solution). That is where his response to your comment before was just bad, responding to your previous question with the now dead "disable automatic zpool import", it makes people click on a link to a thread he derailed and died with no answer, a simple "not yet" would have sufficed and saved reading all the posts to find that out.

Yes, you are right. There is a huge difference between using /etc/fstab to specify in the standard unix way that a certain filesystem should not be automounted and some sort of ZEVO feature perhaps accessible from the ZEVO gui to toggle autoimporting of ZEVO pools. There is also a huge difference between trying to sneak passed ZEVO with a GPT type code change on a specific partition and a feature request for built-in toggling or VMware style prompting.
ilovezfs Online


 
Posts: 249
Joined: Sun Feb 10, 2013 9:02 am

Apology

Post by grahamperrin » Sat Jun 22, 2013 11:37 pm

NakkiNyan, I'm sorry that I upset you those months ago and more recently.

Negativity breeds negativity. Please, let's put the past behind us.

I hope that I have learnt, but I'm only human.
grahamperrin Offline

User avatar
 
Posts: 1596
Joined: Fri Sep 14, 2012 10:21 pm
Location: Brighton and Hove, United Kingdom

Next

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 1 guest

cron