Formatted my unmirrored ZIL drive... am I screwed?

Status
Not open for further replies.

nobodyspecial

Dabbler
Joined
Nov 20, 2013
Messages
11
I won't bore (entertain?) you with the how and why this happened so let me just stick to the facts.

I've got a ZFS pool of five total drives. One 64GB SSD acting as ZIL to 4 storage drives (3TB each) in a single pool. I hadn't yet gotten around to adding the second SSD to be the ZIL's mirror but let's just say the current ZIL has been formatted and had Windows 2K8 installed on it. The remaining drives are untouched.

I can't mount the pool because it says a drive is missing (the ZIL, obviously). In the wiki, it sounds like I'm screwed with a missing ZIL but there's another section that says missing the ZIL will result in degraded performance and loss of the last writes to the pool (which I would be fine with).

So how fubar'd am I? Is there any software for ZFS like GetDataBack that can bring the ZIL back from it's formatted grave and be reinstalled back to my FreeNAS server?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,526
What version of FreeNAS are you running? You may be screwed, or you may not. That depends. There are no recovery tools for ZFS. At all.

Post the output of zpool import.
 

nobodyspecial

Dabbler
Joined
Nov 20, 2013
Messages
11
I'm using 9.2.0 RELEASE. Here's the output of zpool import. The ZIL drive is available to the system but it's not being recognized (obviously). I've also tried the -f switch and get the same message.

[root@freenas ~]# zpool import
pool: STORAGE
id: 13139480359482752609
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: http://illumos.org/msg/ZFS-8000-EY
config:

STORAGE UNAVAIL missing device
gptid/a3e68365-5167-11e3-9186-002590c67bb8 ONLINE
gptid/a4fb4862-5167-11e3-9186-002590c67bb8 ONLINE
gptid/a616f286-5167-11e3-9186-002590c67bb8 ONLINE
gptid/a738a437-5167-11e3-9186-002590c67bb8 ONLINE
[root@freenas ~]#
 

nobodyspecial

Dabbler
Joined
Nov 20, 2013
Messages
11
Found a thread somewhere on another forum that mentioned adding a -m switch and I'm a little closer. Is there a way to safely remove the log drive at this point?

Here's my current zpool status.

[root@freenas ~]# zpool status
pool: STORAGE
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: scrub repaired 0 in 1h30m with 0 errors on Sun Feb 2 01:30:46 2014
config:

NAME STATE READ WRITE CKSUM
STORAGE DEGRADED 0 0 0
gptid/a3e68365-5167-11e3-9186-002590c67bb8 ONLINE 0 0 0
gptid/a4fb4862-5167-11e3-9186-002590c67bb8 ONLINE 0 0 0
gptid/a616f286-5167-11e3-9186-002590c67bb8 ONLINE 0 0 0
gptid/a738a437-5167-11e3-9186-002590c67bb8 ONLINE 0 0 0
logs
14246537465359208603 UNAVAIL 0 0 0
was /dev/gptid/a7e33fc5-5167-11e3-9186-002590c67bb8

errors: No known data errors
 

Yatti420

Wizard
Joined
Aug 12, 2012
Messages
1,437
You can still access the files correct? Losing the ZIL would affect any writes "in progress" if you were to lose it? (using newer FreeNAS)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,994
Copy off all your important data before you continue!

You should be able to remove the zil with the zpool remove command however I can't stress enough that if you can access your data, back it up first. It's easy to accidentally destroy your data, I think you know this.
 

nobodyspecial

Dabbler
Joined
Nov 20, 2013
Messages
11
Ha. Yes, I know enough to know that I'm on thin ice here (but not much more than that!) so I just want to get my data off to another server and then I'll rebuild the pool if needed. No biggie at that point.

So, here's where I'm currently at. After my last post, I tried to mount the pool so I started with zpool list to be sure it's there. It is!

[root@freenas] /# zpool list
NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT
STORAGE 10.9T 3.17T 7.71T 29% 1.00x DEGRADED -

Sweet! It's there and it says there's 3.17TB of data which is correct. So what now?

I tried to mount the pool to /mnt which appears to work (no error messages). However, when I access /mnt via shell, the folders are there but there are no files.

[root@freenas] /# mount -t zfs STORAGE /mnt

Here's where I'm fairly ignorant and uncomfortable. I have no idea what I'm doing at this point. I have no idea which switches to use and, frankly, I have no idea what -tfs does which is why I'm now abusing Google search.

In the meantime, if someone here wants to chime in with a hint at what to do next, I'm all ears.

Thanks!
 

nobodyspecial

Dabbler
Joined
Nov 20, 2013
Messages
11
GOOOOOOOOOOOOOOOOOOOOOOOAAAAAAAAAALLLLLLLLLLLLLLLL!!!!!!!!!!

Dodged a bullet here but I have access to my files again. Stumbled upon another post from the forum suggesting to use the following command to mount my pool.

zpool import -R /mnt -m -f -n -F -X STORAGE

That's probably obvious to everyone here but since this is the Noob forum, I wanted to come back and finish this thread in case someone in the future runs into this issue.

As of now, I can SFTP in to my FreeNAS server and I'm in the process of moving files to another server.
 
Status
Not open for further replies.
Top