Page 1 of 1

Re: kernel panics and auto-import

PostPosted: Sun Jul 27, 2014 3:22 am
by ilovezfs
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}"

Re: Automated suppression of auto-import?

PostPosted: Sun Jul 27, 2014 3:31 am
by ilovezfs
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.

Re: kernel panics and auto-import

PostPosted: Wed Aug 06, 2014 8:05 am
by ilovezfs
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.