Kernel panic and reboot each time I plug in ZFS Disk

Moderators: jhartley, MSR734, nola

gpt show for the device

Post by grahamperrin » Thu Sep 27, 2012 8:20 pm

With something other than PC-BSD, something other than OS X with ZEVO, please:

  • can you run gpt show for the device?

----

ZEVO aside for a moment. My general optimism about goodness of the file system is loosely based on an obscure kernel panic, of a different type, that can occur around mount time on Intel Macs running Snow Leopard or Mountain Lion without any edition of ZEVO. These two steps to panic assume that distributions of installers for FreeBSD are good:

  1. burn but do not mount FreeBSD-9.0-RELEASE-powerpc-release.iso
  2. insert the burnt disc.

Caution with that particular .iso – allowing Disk Utility to mount after burning, or simply opening the .iso with Finder, can cause a panic. (The bug has been fed to Apple.)

Postscript, 2012-10-03: this is not an encouragement for people to people to use that .iso or disc to cause a panic. It was a general reassurance that the kernel may panic in the presence of a file system that is good.
Last edited by grahamperrin on Wed Oct 03, 2012 1:31 am, edited 1 time in total.
grahamperrin Offline

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

Re: Kernel panic and reboot each time I plug in ZFS Disk

Post by grahamperrin » Thu Sep 27, 2012 8:33 pm

Also, if ever you shared the affected disk:

  • try using the Sharing pane of System Preferences to remove that share point before connecting the disk.
grahamperrin Offline

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

Re: Kernel panic and reboot each time I plug in ZFS Disk

Post by alexxx_dragon » Fri Sep 28, 2012 12:21 pm

grahamperrin wrote:Also, if ever you shared the affected disk:

  • try using the Sharing pane of System Preferences to remove that share point before connecting the disk.


First of all: Thank you for your answers!!!
Second: I did not share it, but I switch of file sharing completely and give it a try.
alexxx_dragon Offline


 
Posts: 19
Joined: Sat Sep 15, 2012 9:58 am
Location: Hamburg, Germany

Re: gpt show for the device

Post by alexxx_dragon » Fri Sep 28, 2012 12:44 pm

grahamperrin wrote:With something other than PC-BSD, something other than OS X with ZEVO, please:

  • can you run gpt show for the device?


I ran parted on a linux machine for the device. It shows me a 210 MB fat32 EFI System Partition and 2000GB partition by the name ZFS_ROCKS! with no description of the filesystem but it's parted on linux ...
alexxx_dragon Offline


 
Posts: 19
Joined: Sat Sep 15, 2012 9:58 am
Location: Hamburg, Germany

Re: gpt show for the device

Post by alexxx_dragon » Fri Sep 28, 2012 12:47 pm

grahamperrin wrote:ZEVO aside for a moment. My general optimism about goodness of the file system is loosely based on an obscure kernel panic, of a different type, that can occur around mount time on Intel Macs running Snow Leopard or Mountain Lion without any edition of ZEVO. These two steps to panic assume that distributions of installers for FreeBSD are good:

  1. burn but do not mount FreeBSD-9.0-RELEASE-powerpc-release.iso
  2. insert the burnt disc.

Caution with that particular .iso – allowing Disk Utility to mount after burning, or simply opening the .iso with Finder, can cause a panic. (The bug has been fed to Apple.)


I didn't do this one because I don't understand the sense. But I try next. Maybe you can explain what we can find out by doing so.
alexxx_dragon Offline


 
Posts: 19
Joined: Sat Sep 15, 2012 9:58 am
Location: Hamburg, Germany

Re: gpt show for the device

Post by alexxx_dragon » Fri Sep 28, 2012 1:02 pm

grahamperrin wrote:With something other than PC-BSD, something other than OS X with ZEVO, please:

  • can you run gpt show for the device?



Caution with that particular .iso – allowing Disk Utility to mount after burning, or simply opening the .iso with Finder, can cause a panic. (The bug has been fed to Apple.)[/quote]

I did gpt show on Mac OS X without ZEVO, this is the output:

sudo gpt show /dev/disk1
start size index contents
0 1 PMBR
1 1 Pri GPT header
2 32 Pri GPT table
34 6
40 409600 1 GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
409640 3906291632 2 GPT part - 6A898CC3-1DD2-11B2-99A6-080020736631
3906701272 262151
3906963423 32 Sec GPT table
3906963455 1 Sec GPT header

Is that helpful?
alexxx_dragon Offline


 
Posts: 19
Joined: Sat Sep 15, 2012 9:58 am
Location: Hamburg, Germany

Re: Kernel panic and reboot each time I plug in ZFS Disk

Post by dbrady » Fri Sep 28, 2012 5:22 pm

You may be able to import the pool readonly or rollback using pool recovery mode.

You can disable the auto-import feature as follows:
Code: Select all
$ sudo mv /System/Library/Extensions/ZFSDriver.kext /var/tmp/
$ sudo touch /System/Library/Extensions


Verify that the ZFS IOKit Driver isn't loaded, if it is you'll need to restart.
Code: Select all
$ kextstat | grep zfs


Then attach the device and manually import the pool read-only and don't mount any file systems:
Code: Select all
$ sudo zpool import -d /dev -o readonly=on -N <poolname>


If this still panics, you can check if rolling back to an earlier state using the recovery mode option is possible:
Code: Select all
$ sudo zpool import -d /dev -N -F -n <poolname>


Be sure to restore auto import after you're finished:
Code: Select all
$ sudo mv /var/tmp/ZFSDriver.kext /System/Library/Extensions/
$ sudo touch /System/Library/Extensions
dbrady Offline


 
Posts: 67
Joined: Wed Sep 12, 2012 12:43 am

Re: Kernel panic and reboot each time I plug in ZFS Disk

Post by alexxx_dragon » Sat Sep 29, 2012 1:36 am

dbrady wrote:Then attach the device and manually import the pool read-only and don't mount any file systems:
Code: Select all
$ sudo zpool import -d /dev -o readonly=on -N <poolname>


Thank you for your answer, dbrady!

First:
sudo zpool import -d /dev -o readonly=on -N m
cannot import 'm': pool may be in use from other system

Second:
sudo zpool import -f -d /dev -o readonly=on -N m
did not panic! But also does not show up in /Volumes/ (but seems to be normal? I'm not a specialist :-( )

Then:
zpool list
NAME SIZE ALLOC FREE CAP HEALTH ALTROOT
m 1,82Ti 921Gi 941Gi 49% ONLINE -
This looks good!
But after exporting the pool and putting the driver back into Library it panic immediately.

Next try:
Tried all steps again (remove driver form lib, import -f manually) and then a
<zfs mount m> works, no panic and I can list the directory. Hurray!!!
Now I can save the data, but where is the mistake, what's going wrong? Should I do a zfspool scrub ?
Thank you Don Brady!
But do we get the automount to work on that drive too?
alexxx_dragon Offline


 
Posts: 19
Joined: Sat Sep 15, 2012 9:58 am
Location: Hamburg, Germany

Re: Kernel panic and reboot each time I plug in ZFS Disk

Post by collegeitdept » Tue Oct 02, 2012 9:22 pm

I have the same problem!!!

When i plug my 3TB external disk into the Mac... after a few secs it restarts... I can;t access my data!
collegeitdept Offline


 
Posts: 89
Joined: Tue Oct 02, 2012 6:59 pm

Re: Kernel panic and reboot each time I plug in ZFS Disk

Post by collegeitdept » Tue Oct 02, 2012 9:26 pm

Hi Don Brady,

I purchased Zevo silver as soon as it came out.

I formatted a new 3TB external disk to ZFS now I have almost 3TB of data on it... now I can't access (mount) the drive...

When I plug the drive into the USB after a few the Mac restarts with a Kernel like message once the monitor turns on to press any key...

PLEASE PLEASE Help.... at least let me copy the data off.
collegeitdept Offline


 
Posts: 89
Joined: Tue Oct 02, 2012 6:59 pm

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: ilovezfs and 1 guest

cron