Crash when importing

All your general support questions for OpenZFS on OS X.

Re: Crash when importing

Postby patmuk » Sat May 14, 2016 5:23 pm

Good idea - unfortunately the receiving dataset has to be empty.
I have no disk left, and detach does not work with a read-only pool.

To set up a new pool and receive the snapshot there I would need to
a) detach a disk from another pool
or
b) export the crashing pool and create a new pool, using one of the disks of the crashing pool.

I wonder if I would be able to import the pool readonly if a disk is missing ... but I saved all data already.
Now it is more about avoiding that some files where corrupt.
patmuk
 
Posts: 19
Joined: Fri May 13, 2016 2:41 pm

Re: Crash when importing

Postby Brendon » Sun May 15, 2016 1:26 pm

The corruption issue didn't effect files, rather some meta-data to do with deletion. If you just upgraded from ~1.3.x to 1.5.x then there is some chance you have this issue, otherwise its likely something else. If you have a different failure, then in the absence of a crash dump we cant really tell you what has happened.

Cheers
Brendon
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Re: Crash when importing

Postby patmuk » Sun May 15, 2016 4:22 pm

Hi,

I got it fixed :)

It was a 3-disk-mirror.
I created a new pool with one of the disks of the mirror.
Next I mounted both, the corrupt zpool and the new pool.
Using zsf send |receive
I could get all data to the new pool.
Now I will attach another disk from the corrupt pool and finally destroy and recreate the old pool.

My learning is now that I rather have a 1-disk pool and use send/receive with a cron job to create a mirror.
optimally I would have 2 2.disk mirrors ... but I don't want to buy the needed disks.
The drawback would be that when a disk fails in between the send/receive runs all data which has not been send is lost ... but my important data is on that 2-disk-mirror.

@Brandon: Yes, I updated from 1.3 to 1.5, though I executed the uninstall-script in between.
The last time it crashed I saw in the log that no crash dump could be written :(

Thanks for your thoughts, that really helped!!
patmuk
 
Posts: 19
Joined: Fri May 13, 2016 2:41 pm

Re: Crash when importing

Postby Brendon » Tue May 17, 2016 4:02 am

Ideally you would keep you data on a dataset with some redundancy (mirror, raidz), and consider sending it to a weaker setup. I keep my data on a raidz and backup to a couple of single disk datasets.

- Brendon
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Re: Crash when importing

Postby patmuk » Tue May 17, 2016 1:35 pm

Thanks for sharing! Ok, that somehow confirms my idea. For my important (non-retrievable data, like photos) I will use a 2-disk-mirror with a 1-disk-backup dataset. For the rest I will use a 1-disk-dataset for the live data and a 1-disk-dataset for the backup.
Next I will change my cron script to not only create snapshots but send them to the backup datasets as well.
Thus I have basically the same disk-redundancy as before, but a gap of x minutes (time in between writing new data and making & sending the snapshot to the backup) in which data could get lost. But with an additional protection from metadata corruption of a dataset.

Thanks a lot Brendon.
patmuk
 
Posts: 19
Joined: Fri May 13, 2016 2:41 pm

Previous

Return to General Help

Who is online

Users browsing this forum: No registered users and 11 guests

cron