Page 1 of 1

data recovery - zfs pool damage

Posted: 29 May 2016 16:48
by TWART016
Hello,

I have a PC with nasfree 9.3.0.2 and 2 big drives. Since a few week I can't access the ZFS pool from the network.

It seems that the ZFS pool didn't exist anymore. I just can see one drive in the Pools / virtual devices.
With shh (camcontrol devlist) it says I have two drives:
<WDC WD30EZRX-00D8PB0 80.00A80> at scbus1 target 0 lun 0 (pass2,ada0)
<WDC WD30EZRX-00D8PB0 80.00A80> at scbus1 target 1 lun 0 (pass3,ada1)

More commands:
zpool status -> no pools available
zpool import ->
pool: data
id: 3802854832492432771
state: ONLINE
Assertion failed: (reason == ZPOOL_STATUS_OK), file /usr/src/cddl/sbin/zpool/../ ../../cddl/contrib/opensolaris/cmd/zpool/zpool_main.c, line 1707.
Abort

If I want to open the topic Disks / Management the GUI is hanging so the site is not opening and I have to reload the page.

The most important thing is the data on the both drives. How can I get them? CLI command? Recovery tool?


Greetings
TWART016

Re: data recovery - zfs pool damage

Posted: 30 May 2016 01:04
by wingenieur
Have you tried to import the pool by its name:

Code: Select all

zpool import data
Without the name it only shows which pools are ready to be imported.
You could also use

Code: Select all

zpool import -a
which will import any pool found at default dev-location.

If importing is successful, it will mount automatically.
So your data should be available.

Edit: Found something similar here:
https://forums.freebsd.org/threads/44359/

Re: data recovery - zfs pool damage

Posted: 30 May 2016 21:00
by TWART016
With:
zpool import data
zpool import -a

It just says:
cannot import 'data': pool may be in use from other system
use '-f' to import anyway

zpool list -> no pools available

Re: data recovery - zfs pool damage

Posted: 31 May 2016 01:05
by wingenieur
TWART016 wrote:With:
zpool import data
zpool import -a

It just says:
cannot import 'data': pool may be in use from other system
use '-f' to import anyway

zpool list -> no pools available
And have you tried the -f option?

Code: Select all

zpool import -f data

Re: data recovery - zfs pool damage

Posted: 31 May 2016 01:31
by crowi
and please post the SMART values of your disks

Re: data recovery - zfs pool damage

Posted: 31 May 2016 18:35
by TWART016
crowi wrote:and please post the SMART values of your disks
Thank you really much. This works. I set the wrong parameter.