kernel panics and auto-import

Here you can discuss every aspect of OpenZFS on OS X. Note: not for support requests!

Re: kernel panics and auto-import

Postby ilovezfs » Sun Jul 27, 2014 3:22 am

Boot to safe mode, open /usr/libexec/zfs/launchd.d/zpool-import-all.sh, and change

Code: Select all
"${ZPOOL}" import -a
touch "${ZPOOL_IMPORT_ALL_COOKIE}"


to

Code: Select all
# "${ZPOOL}" import -a
# touch "${ZPOOL_IMPORT_ALL_COOKIE}"
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Re: Automated suppression of auto-import?

Postby ilovezfs » Sun Jul 27, 2014 3:31 am

gperrin wrote:Sorry! I omitted a keyword.

Is there any automated mechanism to suppress auto-import following a kernel panic?

No, nor does that make much sense, since it is not trivial to determine whether a panic is attributable to ZFS, let alone a panic particular to import, which the vast majority of the time it is not. Moreover, this is one of the main reasons safe mode exists on OS X - to deal with third party kext issues.
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Re: kernel panics and auto-import

Postby ilovezfs » Wed Aug 06, 2014 8:05 am

Instead of "safe mode," I suppose I should have said "safe mode or equivalent."

The same changes can be made from safe mode, from a restore partition, from OS X installation media (I keep a partition with the complete OS X installer at the end of my system drive), or from another OS X installation. So indeed one need not "assume that safe mode will be possible in a troubleshooting situation" to deal with a third-party kext issue just as easily as you could from safe mode itself.
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 8 guests