All zpool and zfs commands hangs forever

All your general support questions for OpenZFS on OS X.

All zpool and zfs commands hangs forever

Postby TooDizzy » Sat Jul 13, 2019 11:59 pm

Hi Guys,

I am having some nasty problems and I need some help to sort them out and/or recover my data.

I run a single disk pool that is mounted on boot. Normally everything is great, but now (for some reason) the pool never gets online. When I try to check the status by running
Code: Select all
zpool status
the command just hangs. Can't even ctrl-c it to kill it. It is frozen.
I also tried to look for errors in the log files, but nothing obvious.

My best guess is that this is related to starting hardware failure on the disk, but I would really like to get the data out!
Disk util can read the disk and Disk Drill can also scan the disk can find most, if not all, files on the disk. So it can't be completely dead.

Tried to reinstall ifs, but it fails as I need to first export the pool. Which I can't as any
Code: Select all
zpool
command never returns to the prompt.

Read somewhere that I should try to mount the pool as read only. How can I do this when I can't access any of the CLI commands?
Can I specify this in a config file somewhere?

Hope that you can help me or at least point me in the right direction :)
TooDizzy
 
Posts: 9
Joined: Sun May 25, 2014 8:52 am

Re: All zpool and zfs commands hangs forever

Postby TooDizzy » Sun Jul 14, 2019 4:13 am

any easy way to not import all pools on boot?
TooDizzy
 
Posts: 9
Joined: Sun May 25, 2014 8:52 am

Re: All zpool and zfs commands hangs forever

Postby lundman » Sun Jul 14, 2019 7:52 pm

The all-pool-import is a script run by launchctl - easiest thing is simply to comment out the line with "zpool import -a" from that script.

If that hangs, then yes, any further command could potentially hang too - you can use "spindump" to get a list of the stacks to see where it is stuck. But really, you should comment out the auto-import, then try importing with "-o readonly=on" and "-N" (don't mount) - then see if you can mount the datasets one at a time.
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: All zpool and zfs commands hangs forever

Postby TooDizzy » Mon Jul 15, 2019 8:31 am

lundman wrote:The all-pool-import is a script run by launchctl - easiest thing is simply to comment out the line with "zpool import -a" from that script.


Great and thank you for the advise. Any hints on where this script is located? Tried to find it, but no luck so far... :?

/Tue
TooDizzy
 
Posts: 9
Joined: Sun May 25, 2014 8:52 am

Re: All zpool and zfs commands hangs forever

Postby lundman » Mon Jul 15, 2019 3:42 pm

User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: All zpool and zfs commands hangs forever

Postby TooDizzy » Tue Jul 16, 2019 11:41 am

lundman wrote:I believe this has the path:

https://openzfsonosx.org/wiki/FAQ#Q.29_ ... t_work_.3F


Worked. Thanks a lot!
In process of recovering data.
TooDizzy
 
Posts: 9
Joined: Sun May 25, 2014 8:52 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 30 guests