Pool gone after reset, import does not help

Status
Not open for further replies.

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
I do have to wonder what wiped out the GPT partition and what would have happened if the swapspace had been disabled. Lots of people choose to set the swapspace to 0, and we aren't really sure how much space was wiped when whatever went wrong did whatever it did.

I'd be curious to see what a 100% full zpool would do if you scrubbed it after this accident. I'd assume that if anything more than the GPT were corrupted the zpool would have a problem. Depending on the corruption it could range from a few corrupted files to the pool being unmounted.
 

FlynnVT

Dabbler
Joined
Aug 12, 2013
Messages
36
I do have to wonder what wiped out the GPT partition and what would have happened if the swapspace had been disabled. Lots of people choose to set the swapspace to 0, and we aren't really sure how much space was wiped when whatever went wrong did whatever it did.

I'd be curious to see what a 100% full zpool would do if you scrubbed it after this accident. I'd assume that if anything more than the GPT were corrupted the zpool would have a problem. Depending on the corruption it could range from a few corrupted files to the pool being unmounted.

Good points.

If the ZFS areas were badly damaged then you're at the mercy of the location coherency of data/corruption across discs as to whether Z[1-3] redundancy would buy you anything. At least with the ZFS checksums you will be told if things were actually OK.

All I can say with certainty about this particular corruption is that it affected at least between 0 and 16Kb on Thomas' discs. Beyond that, who knows. The ZFS signature at 2Gb was intact, but random corrupted sectors could have reached beyond that.

Having thought it, I'm happier with the idea of "whole disc" ZFS then when I started out. I did it originally for cross-system compatibility, but now value the fact that ZFS occupies the entire raw block device. ZFS actually seems to have better structural redundancy than GPT: 4 copies of a 256KB structure - 2 head and 2 tail. A GPT corruption doesn't actually loose your data, but will hide it until you recreate things. Whole-disc ZFS may avoid this - but I haven't run an experiment to prove how easy or transparent it is.

A potential downside is that you may have 512KB rather than 2G of sacrificial buffer at the start of the disc to deal with whatever clobber problem first caused this for Thomas. We don't know if it's zero-oriented, sequentially extending or random so it's difficult to say.

Thomas: can you post "zpool status" after you've copied off the data and/or run a scrub. Also, how full is the zpool?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
Exactly my thoughts.. if we could determine "how" much stuff was trashed it might better clue us in as to if there's a 100% chance of recovery or only under certain circumstances.
 

Thomas

Dabbler
Joined
Jun 30, 2013
Messages
29
Good points.

...

Thomas: can you post "zpool status" after you've copied off the data and/or run a scrub. Also, how full is the zpool?
I'm still busy backing up. I'll post it later this day. The pool wasn't full at all: only 70GB of the available 1.7TB (3x1TB disks).
 

Thomas

Dabbler
Joined
Jun 30, 2013
Messages
29
Ok, so this is before scrub:
Code:
[root@freenas ~]# zpool status                                                  
  pool: tank                                                                    
 state: ONLINE                                                                  
  scan: scrub repaired 0 in 0h9m with 0 errors on Sat Jul 27 15:09:19 2013      
config:                                                                         
                                                                                
        NAME                                            STATE     READ WRITE CKS
UM                                                                              
        tank                                            ONLINE       0     0    
 0                                                                              
          raidz1-0                                      ONLINE       0     0    
 0                                                                              
            gptid/81b054d0-db49-11e2-bc54-000c29005847  ONLINE       0     0    
 0                                                                              
            gptid/82483f11-db49-11e2-bc54-000c29005847  ONLINE       0     0    
 0                                                                              
            gptid/82dbb69a-db49-11e2-bc54-000c29005847  ONLINE       0     0    
 0                                                                              
                                                                                
errors: No known data errors                                                    
[root@freenas ~]#


And this is after:
Code:
[root@freenas ~]# zpool status                                                  
  pool: tank                                                                    
 state: ONLINE                                                                  
  scan: scrub repaired 0 in 0h0m with 0 errors on Thu Aug 22 06:47:16 2013      
config:                                                                         
                                                                                
        NAME                                            STATE     READ WRITE CKS
UM                                                                              
        tank                                            ONLINE       0     0    
 0                                                                              
          raidz1-0                                      ONLINE       0     0    
 0                                                                              
            gptid/81b054d0-db49-11e2-bc54-000c29005847  ONLINE       0     0    
 0                                                                              
            gptid/82483f11-db49-11e2-bc54-000c29005847  ONLINE       0     0    
 0                                                                              
            gptid/82dbb69a-db49-11e2-bc54-000c29005847  ONLINE       0     0    
 0                                                                              
                                                                                
errors: No known data errors                                                    
[root@freenas ~]#


I haven't received any errors or whatsoever so far. Everything seems to be just the way it was..
 
Status
Not open for further replies.
Top