Lost zfs pool after power lost

Status
Not open for further replies.

mx738

Dabbler
Joined
Dec 25, 2016
Messages
10
Hello togther,

i have a problem, after a power lost the FreeNAS starts but my mail Storage is missing.
I have a Volume named "raid1" the status of it is "UNKNOWN" "Error getting available space"
The physical drive (Hardware RAID) is still there:
Code:
[root@nas] ~# gparted
gparted: Command not found.
[root@nas] ~# gpart show
=>  34  29296803773  da0  GPT  (14T)
  34  94  - free -  (47K)
  128  4194304  1  freebsd-swap  (2.0G)
  4194432  29292609368  2  freebsd-zfs  (14T)
  29296803800  7  - free -  (3.5K)

But zpool list show:
Code:
[root@nas] ~# zpool list
NAME  SIZE  ALLOC  FREE  EXPANDSZ  FRAG  CAP  DEDUP  HEALTH  ALTROOT
freenas-boot  59.5G  2.66G  56.8G  -  -  4%  1.00x  ONLINE  -
home  928G  508K  928G  -  0%  0%  1.00x  ONLINE  /mnt
srv  472G  3.21G  469G  -  0%  0%  1.00x  ONLINE  /mnt

What is there wrong, how can i get back the drive and the Datas on it?
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
Please supply the output of zpool import in code tags.

Also, please supply the various information about your hardware and the FreeNAS version.

Note that in general, it is highly unlikely to loose a ZFS pool due to a power outage. ZFS was specifically designed and tested to remove the need for file system checks due to crashes or power loss. You may loose in flight data, (data that has not been completely written). But, that is the price of ZFS paid for reliability.

That said, hardware faults can be caused, or made worse by power failures. That can cause loss of a ZFS pool.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
The physical drive (Hardware RAID) is still there:
You set up a hardware RAID, which appeared to FreeNAS as a single physical disk, and then created a ZFS pool on that? Bad decision, as it eliminates many of ZFS's data integrity protections.
 

mx738

Dabbler
Joined
Dec 25, 2016
Messages
10
Here the Output of zpool import:
Code:
  pool: raid1
  id: 17178716862559896177
  state: FAULTED
 status: The pool metadata is corrupted.
 action: The pool cannot be imported due to damaged devices or data.
   The pool may be active on another system, but can be imported using
   the '-f' flag.
  see: http://illumos.org/msg/ZFS-8000-72
 config:

   raid1  FAULTED  corrupted data
	gptid/274db7c3-dc2f-11e6-a6b2-001b215f2faf  ONLINE


FreeNAS Version is: FreeNAS-9.10.2-U6 (561f0d7a1)
I use this Hardware:
MSI C236A Mainboard
Intel(R) Xeon(R) CPU E3-1235L v5 @ 2.00GHz
64 GB RAM (ECC)
Areca ARC-1226-8i RAID Controller
On this 8x 3TB WD RED in a RAID 6 with Hot Spare
Intel 10GbE XF SR 2 Port LAN
2x 1TB Samsung SSD (SQL Database)
2x 512MB Samsung SSD extra Storage

On the Hardware RAID are the main Datas ZFS Pool Name raid1.

Any other informations needed?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
action: The pool cannot be imported due to damaged devices or data.
I'm thinking your hardware RAID solution just trashed your pool, and doubt it will be recoverable.
 

Jailer

Not strong, but bad
Joined
Sep 12, 2014
Messages
4,977

rs225

Guru
Joined
Jun 28, 2014
Messages
878
It might be recoverable. But it also could be a mess.

For now, try zpool import -f raid1 and if that fails zpool import -f -F raid1 If those fail, then it won't be the simple way.

This is probably caused by write caching in the RAID controller without a battery backup.
 

mx738

Dabbler
Joined
Dec 25, 2016
Messages
10
zpool import -F raid1 helped.
The Pool is back. Now i have a new Problem, small one, because the Data are back and fine.

The pool is mounted direct to the root /
But that i can share it, it should be in /mnt
How can i umount the zfs and remount it under /mnt?
 

DrKK

FreeNAS Generalissimo
Joined
Oct 15, 2013
Messages
3,630
In case it's not obvious

DO. NOT.
USE.
HARDWARE.
RAID.
WITH.
FREENAS.

I suggest immediately getting your data out of that configuration, sir.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
How can i umount the zfs and remount it under /mnt?
You should be able to zpool export raid1 and then go to Storage -> Import Volume in the GUI to import it.

And, as @DrKK says, get your data out of that configuration and ditch the hardware RAID controller ASAP.
 

dirkme

Contributor
Joined
Jul 19, 2017
Messages
162
I think, first step should be to check if you hardware raid is working OK, if that would be the case ZFS should get the pool running again.

After that find a solution to get away from your hardware raid with FreeNas ZFS. From many videos I have seen, if you don't use hardware raid, it is almost impossible to lose your data as long as you have at least 1 drive redundancy. There are people crash testing FreeNas raids with no success of destroying any pool so far.
 

Stux

MVP
Joined
Jun 2, 2016
Messages
4,419
What HW RAID controller are you using?
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504

mx738

Dabbler
Joined
Dec 25, 2016
Messages
10
The zpool export worked, thank you all.
First of all i will do a new uptodate backup...
The datas looking fine, all there as i can see.

As soon i have an uptodate back i start thinking about the new infrastructur of the NAS system.
But i see that the current situation is not good.
 
Status
Not open for further replies.
Top