Deleted 3 corrupt files, now ZFS array can't mount, any fix?

Status
Not open for further replies.

mofonyx

Cadet
Joined
Apr 10, 2016
Messages
2
Sorry if this is the wrong forum to ask for help, but I'm just trying to recover from my ZFS array which I think is gone

The events as follows, I run Ubuntu 14.04 with native ZFS.

I had 3 files that have been corrupt for a while on repeated scrubs so I deleted them today. My ZFS pool was previously mounted on a legacy mountpoint. I rebooted and could not get past the purple Ubuntu screen. I thought I crashed my system so I re-installed Ubuntu and erased the previous install (the OS is kept on a separate drive to the ZFS array).Upon fresh install, it appears I am unable to import the ZFS pool as it just hangs for a long time with

zpool import poolname

Various usages of -F, -f, -X in combination yields same results

I am able to import with

-o readonly=on

But as it was previously legacy mounted, it doesn't show up as I don't have /etc/fstab configured. When I configure /etc/fstab to mount the ZFS array, I get stuck on the purple screen and it fails to boot.

I suspect the pool is corrupt, but I am able to still import it to read only and not mounted. It just shows that all disks are online when I use zpool import.

Any way to recover the files, or am I stuffed and should just start from scratch?

Silly me, I am on a system with non-ECC RAM, as I was blissfully unaware of this beforehand.

Thanks all
WS
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
From what I have read, (could be wrong), is that if you don't have enough memory during
a recovery, things go badly.

How much memory do you have?
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
You could try installing FreeNAS on a USB drive and see if the pool is accessible that way. :smile:
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
mod note: nothing to do with FreeNAS, evicted to off-topic.
 

jgreco

Resident Grinch
Joined
May 29, 2011
Messages
18,680
You could try installing FreeNAS on a USB drive and see if the pool is accessible that way. :)

Not sure I'd recommend that, since it could simply cause a totally different set of issues.

Your pool is probably trashed but the data may be recoverable. Mounting it readonly and then preparing to copy the data off is probably the way to go.

Possibly useful:

http://docs.oracle.com/cd/E19253-01/819-5461/6n7ht6r3o/index.html

So probably import your pool as read-only, and then you'll need some Ubuntu-compatible ZFS legacy mounting command, probably something like "mount -o ro -t zfs mypool/mydataset /mnt"
 

depasseg

FreeNAS Replicant
Joined
Sep 16, 2014
Messages
2,874
Not sure I'd recommend that, since it could simply cause a totally different set of issues.
True, sorry. That was more of a tongue in cheek answer.
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
That'd depend on the size of the array.
Yes, I forgot to ask that too;

How large is the pool?
And how full is the pool, percent wise?
 

styno

Patron
Joined
Apr 11, 2016
Messages
466
Before you do anything else, please run memtest86 for a day on this system to make sure your ram is ok. It's probably already in your grub or on the Ubuntu install media you've used.
 
Status
Not open for further replies.
Top