ZFS zfs partition deleted

Hi,
I'm running FreeNAS. I have a raidz1 configuration. In an attempt to increase my storage, I put one disk "offline" (I now know NOT to do that). I then removed that I thought was the "offline" disk, inserted a new disk and formatted the wrong disk.
I now have one disk OFFLINE and one disk UNKNOWN. The UNKNOWN disk was erased with a quick format.
Via the command line, i tried to "gpart recover ada1". I am pretty sure this is the risk disk because when I ran "gpart show -l", ada1 had a "40" rather than a "34" like all of the other disks.
when I ran the recover command, it said "ada1 recovery is not needed".
3 of the disks basically look like this
Code:
=>           34   5860533101  ada3  GPT  (2.7T)
                34                  94            -free- (47k)
               128         419304       1  (null)  (2.0G)
       4194432 5856338696       2  (null)  (2.7T)
 5860533128                   7           -free- (3.5K)
except, ada3 reads ada0, ada2 or ada3 (depending on the disk)
1 of the disks looks like this
Code:
=>           40   5860533088  ada1  GPT  (2.7T)
                40                  88           -free- (44k)
               128         419304       1  (null)  (2.0G)
       4194432 5856338696       2  (null)  (2.7T)
 5860533128                   7           -free- (3.5K)
In particular, ada2 looks very similar, except for the "34" and the "40" in the first row.

I have not written anything to the NAS since I started this process.
So, I think I need to "recover" ada1. Basically, I have 3 disks intact, one OFFLINE and one quick-formatted.

If I type zpool import, it still recognizes my pool HPNAS, but, I can't do anything with it. It says HPNAS does not exist.
Code:
root@freenas:~ # zpool import
pool: HPNAS
id: 10342560618609615770
state: UNAVAIL
status: One or more devices are missing from the system.
action: The pool cannot be imported. Attach the missing devices and try again.
see: [URL]http://illumos.org/msg/ZFS-8000-3C[/URL]
config:
  HPNAS                            UNAVAIL  insufficient replicas
  raidz1-0                          UNAVAIL  insufficient replicas
            1056674614550561172                                            OFFLINE
            17914818884535021667                                          UNAVAIL  cannot open
            gptid/b79788f7-7b83-11e1-bd89-e83935209a      ONLINE
            gptid/1c8ff3ea-5535-11e5-abbc-e83935209a        ONLINE
Any advice would be appreciated.
Thank you
 
I'm running FreeNAS.
PC-BSD, FreeNAS, XigmaNAS, and all other FreeBSD Derivatives

You managed to remove/destroy two disks in a RAID-Z pool. That means the entire pool is now gone.

You may get lucky if you online that disk you offline'd earlier. Remove that disk you nuked (it's not going to be recoverable). Hopefully when the offline disk comes back online there are enough disks for the RAID-Z set to be online but in a degraded state. If not, then you're screwed and I hope you have backups.
 
Thanks SirDice. That's very helpful!!
There look to be a few challenges. I'm hoping you can help me because I'm genuinely stuck.

1. HPNAS doesn't seem to be recognised other than via the zpool import command.
2. I don't know how do I put disk "1056674614550561172" online.
3. According to the FreeNAS User Interface, none of these disks (my 4x 3TB disks) belong to a pool.

My original plan was to put the disk "1056674614550561172" online. However, for it to be online, it needs to be part of a pool and it needs at least 3 disks. I'm sort of going around in circles.
Thanks again. Really appreciate your time.
 
Thanks again!!
I've tried many options so far. I mentioned earlier that all of my disks are now listed as not being a part of any pool. If I try any command with HPNAS, it says that HPNAS doesn't exist. However, for some reason, "1056674614550561172" says its OFFLINE.

Is there a way to get the disk online if it's not part of a pool?
Do I need to add the disks back into the HPNAS pool? If so, how do I do this? I tried zpool import HPNAS 1056674614550561172 and it told me HPNAS didn't exist.

FYI, I created a new bootdisk and it spent ages scanning my new set of disks to see if they contained a valid pool. That might be a way to go...
 
Things are so messed up now I'm afraid you're not going to be able to recover it. Unless someone else has a brilliant idea I've been overlooking.
 
Back
Top