Kernel panics when mounting or unmounting zfs drive

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

Moderators: jhartley, MSR734, nola

Re: Kernel panics when mounting or unmounting zfs drive

Post by jdleider » Thu Oct 25, 2012 12:05 pm

The two disks are 3TB seagate drives: http://www.amazon.com/gp/product/B005T3 ... 00_s00_i00
The enclosure is a Mediasonic 2 bay USB3 enclosure: http://www.amazon.com/gp/product/B004L6 ... 00_s00_i01

The raid controller is set in the enclosure to be "single" drives so they appear as two individual disks to the OS, not a single volume raid 0, 1, or spanning JBOD representation.
jdleider Offline


 
Posts: 8
Joined: Fri Oct 05, 2012 9:00 am

Seagate ST3000DM001 x2 in Mediasonic HUR1-SU3S2

Post by grahamperrin » Thu Oct 25, 2012 1:14 pm

Thanks.

Seagate ST3000DM001 Barracuda Desktop 6-Gb/s 3TB Hard Drive generation 7200.14, 4k bytes per sector.

Mediasonic Dual Bay Raid+ 0/1/Single 3.5" SATA HDD Enclosure - SuperSpeed USB 3.0 & eSATA HUR1-SU3S2

> … added to our catalog on Wednesday 13 October, 2010 …

– maybe a Mediasonic-branded Hotway HUR1-SU3S2.
grahamperrin Offline

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

HUR1-SU3S2 discussion in the MacZFS area

Post by grahamperrin » Thu Oct 25, 2012 1:32 pm

In the MacZFS area, when someone considered a Mediasonic/Hotway HUR1-SU3S2:

jasonbelec wrote:… That enclosure will probably not work. At least the 3 MediaSonic enclosures I've tested never did work, driver issue, even after firmware updates. Perhaps someone else will post success. You could of course use them with some modifications. ;)


- https://groups.google.com/d/msg/zfs-mac ... JbkfeOxAoJ (2012-01-23)

… USB will probably work …


- https://groups.google.com/d/msg/zfs-mac ... rqxaXUnqcJ (2012-01-25)

More generally, in the same topic:

AlBlue wrote:… I disable sleep and disk power down from my zfs servers as the wake up time of the drives often exceeds what zfs is willing to wait and will therefore error on disk io whilst it is coming up. Such io errors can easily cause a kernel panic.

You may get lucky and not be hit by this; I'm just sharing my experience (which admittedly may only be relevant to older releases) …


- https://groups.google.com/d/msg/zfs-mac ... e79AfW3TIJ (2012-01-23)
grahamperrin Offline

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

Re: Kernel panics when mounting or unmounting zfs drive

Post by jdleider » Thu Oct 25, 2012 2:27 pm

Is there any way to increase the zfs wait timeout? The information in that thread is kind of a deal breaker.
jdleider Offline


 
Posts: 8
Joined: Fri Oct 05, 2012 9:00 am

Re: Kernel panics when mounting or unmounting zfs drive

Post by grahamperrin » Thu Oct 25, 2012 9:39 pm

It's certainly thought-provoking, but I shouldn't treat that MacZFS topic as conclusive – different versions of ZFS pool etc., and you use USB 2.0 instead of eSATA.

For when the enclosure is already connected

You might reduce the risk of kernel panic with the current version 1.1.1 of ZEVO:

Code: Select all
sudo pmset disksleep 0


In addition … 

Before connecting the enclosure

A wild guess: you might reduce the risk by sleeping the MacBook5,1 before making the connection. (Or might that increase the risk? I have no experience with enclosures of your type so please, proceed with caution.)

Or hibernate before connection (but do not disconnect whilst the Mac hibernates) - I use SmartSleep.

I can think of other, more physical, ways to have disks partly spun up before making a USB connection, but these ways may be not particularly kind to the hardware – so I'll hold back …

Partly related

Answers to a question in Server Fault, hdparm on OS X

Timeouts

jdleider wrote:Is there any way to increase the zfs wait timeout? …


Sorry, I don't know. For ZFS on other platforms I couldn't find anything relevant.

Anyone else?

If there is a way, I should hesitate (seek developer advice) before experimenting with changes.
grahamperrin Offline

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

Re: Kernel panics when mounting or unmounting zfs drive

Post by grahamperrin » Fri Oct 26, 2012 7:15 am

… Or hibernate before connection (but do not disconnect whilst the Mac hibernates) - I use SmartSleep. …


An issue arose for me: (2012.09.23) hibernate versus pool on USB

So: if not hibernation, you could try sleep of the laptop before connection to the drive.
grahamperrin Offline

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

Re: Kernel panics when mounting or unmounting zfs drive

Post by jdleider » Sat Oct 27, 2012 10:29 am

Not sure if this helps but this is the information reported to the system info application:

Code: Select all
USB High-Speed Bus:

  Host Controller Location:   Built-in USB
  Host Controller Driver:   AppleUSBEHCI
  PCI Device ID:   0x7250505300000aa9
  PCI Revision ID:   0x72505053000000b1
  PCI Vendor ID:   0x72505053000010de
  Bus Number:   0x26

USB to ATA/ATAPI Bridge:

  Capacity:   3 TB (3,000,592,982,016 bytes)
  Removable Media:   Yes
  Detachable Drive:   Yes
  BSD Name:   disk2
  Product ID:   0x0539
  Vendor ID:   0x152d  (JMicron Technology Corp.)
  Version:    1.00
  Serial Number:   1F1192FFFFFF
  Speed:   Up to 480 Mb/sec
  Manufacturer:   JMicron
  Location ID:   0x26200000 / 2
  Current Available (mA):   500
  Current Required (mA):   2
  Partition Map Type:   GPT (GUID Partition Table)
  S.M.A.R.T. status:   Not Supported
  Volumes:
disk2s1:
  Capacity:   209.7 MB (209,715,200 bytes)
  BSD Name:   disk2s1
  Content:   EFI
disk2s2:
  Capacity:   3 TB (3,000,249,008,128 bytes)
  BSD Name:   disk2s2
  Content:   ZFS


I only see one of these devices even though there are two attached to the system. I'm guessing this is because my zpool is running mirrored?
jdleider Offline


 
Posts: 8
Joined: Fri Oct 05, 2012 9:00 am

Re: Kernel panics when mounting or unmounting zfs drive

Post by grahamperrin » Sat Oct 27, 2012 2:18 pm

disk2s2
(disk 2, slice 2) is only part of the mirror.

On a disk with a different number,
expect to see another slice 2 with ZFS content.
Maybe disk4s2 (as shown by zpool status in your opening post).
grahamperrin Offline

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

Previous

Return to Troubleshooting

Who is online

Users browsing this forum: bileyqrkq, ilovezfs and 0 guests

cron