Page 1 of 1

How to import a pool in Mac OS "safe mode"?

PostPosted: Fri Jan 18, 2019 12:44 am
by patmuk
Hi,

I crashed my system by trying to symlink the iCloud folder in ~/Library/Mobile\ Documents to another location ... shouldn't be done, now my Mac crashes after a few seconds, even when there is no user logged in (it runs Sierra).

However, it is fine in "safe mode" - some apple iCloud Account daemon is causing the crash.

But I am not able to import the pools. Diskutil shows my drives, but
zpool import
returns
no pools available to import
same with giving a device name, the pool number, the pool name, ...
The only command which returns meaningful data is
zpool import -d /dev
Code: Select all
   pool: secure_bup
     id: 6202715003095819667
  state: ONLINE
 status: Some supported features are not enabled on the pool.
 action: The pool can be imported using its name or numeric identifier, though
   some features will not be available without an explicit 'zpool upgrade'.
 config:

   secure_bup  ONLINE
     disk8s1   ONLINE

   pool: datapool1
     id: 3571308118281011652
  state: ONLINE
 status: Some supported features are not enabled on the pool.
 action: The pool can be imported using its name or numeric identifier, though
   some features will not be available without an explicit 'zpool upgrade'.
 config:

   datapool1   ONLINE
     mirror-0  ONLINE
       disk6   ONLINE
       disk4   ONLINE

   pool: datapool2
     id: 11302927174597401557
  state: ONLINE
 status: Some supported features are not enabled on the pool.
 action: The pool can be imported using its name or numeric identifier, though
   some features will not be available without an explicit 'zpool upgrade'.
 config:

   datapool2   ONLINE
     mirror-0  ONLINE
       disk2   ONLINE
       disk7   ONLINE

   pool: secure
     id: 8912466580830241136
  state: ONLINE
 status: Some supported features are not enabled on the pool.
 action: The pool can be imported using its name or numeric identifier, though
   some features will not be available without an explicit 'zpool upgrade'.
 config:

   secure       ONLINE
     mirror-0   ONLINE
       disk9    ONLINE
       disk1s1  ONLINE


I forgot which kext needs to be loaded ... maybe I need to do that manually.
Do you have any hints?

Re: How to import a pool in Mac OS "safe mode"?

PostPosted: Fri Jan 18, 2019 12:46 am
by patmuk
Loading zfs.kext
/sbin/kextload /Library/Extensions/zfs.kext
didn't help.

Re: How to import a pool in Mac OS "safe mode"?

PostPosted: Sat Jan 19, 2019 9:54 am
by nodarkthings
I would try using an app called LaunchControl (there's another one called Lingon) and disable anything with "cloud" in its name — I've done it as a regular trick as I don't use iCoud, wifi, bluetooth...
The only thing is I'm not absolutely sure you can do it in safe mode, but you don't risk anything trying it.
You could also try cleaning all caches manually...
Of course, if you boot from another drive OS you might have other solutions.

Re: How to import a pool in Mac OS "safe mode"?

PostPosted: Sun Jan 20, 2019 5:03 pm
by lundman
You have to load both kexts, so its usually

kextload spl.kext zfs.kext

using full path to both kexts of course.