old boot zfs usb stick keys and db recovery!

Status
Not open for further replies.

Radu

Dabbler
Joined
Mar 7, 2014
Messages
45
I have the old stick mounted in a new freenas instalation:

[root@fns] /mnt/test# zpool status oldboot
pool: oldboot
state: DEGRADED
status: The pool is formatted using a legacy on-disk format. The pool can
still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'. Once this is done, the
pool will no longer be accessible on software that does not support feature
flags.
scan: scrub repaired 0 in 0h5m with 0 errors on Sat Oct 17 04:09:04 2015
config:

NAME STATE READ WRITE CKSUM
oldboot DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
replacing-0 UNAVAIL 0 0 0
6084986419970871387 UNAVAIL 0 0 0 was /dev/da17p2/old
16363155523381452286 FAULTED 0 0 0 was /dev/da17p2
gptid/c71114c8-9ffd-11e4-b19c-002590f0d4ba ONLINE 0 0 0

errors: No known data errors
[root@fns] /mnt/test# zpool list
NAME SIZE ALLOC FREE EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
buffer 1.36T 540G 852G - 36% 38% 1.00x ONLINE /mnt
freenas-boot 7.38G 521M 6.87G - - 6% 1.00x ONLINE -
oldboot 7.19G 4.89G 2.30G - - 67% 1.00x DEGRADED /mnt/test
sys_jail 53.5G 15.8G 37.7G - 31% 29% 1.00x ONLINE /mnt

I can not see any data in /mnt/test ....
 

Radu

Dabbler
Joined
Mar 7, 2014
Messages
45
[root@fns] /mnt/test# ls -la
total 4
drwxr-xr-x 2 root wheel 0 Oct 17 03:37 ./
drwxr-xr-x 5 root wheel 160 Oct 17 03:37 ../
[root@fns] /mnt/test#

The mount was succesful with:

[root@fns] /mnt# zpool import
pool: freenas-boot
id: 8922001717568289556
state: DEGRADED
status: One or more devices were being resilvered.
action: The pool can be imported despite missing or damaged devices. The
fault tolerance of the pool may be compromised if imported.
config:

freenas-boot DEGRADED
mirror-0 DEGRADED
replacing-0 UNAVAIL insufficient replicas
6084986419970871387 UNAVAIL cannot open
16363155523381452286 UNAVAIL cannot open
gptid/c71114c8-9ffd-11e4-b19c-002590f0d4ba ONLINE
[root@fns] /mnt# zpool import -f -R /mnt/test 8922001717568289556 oldboot
 

Radu

Dabbler
Joined
Mar 7, 2014
Messages
45
I did actually.
On freenas 9.3 live boot instance the USB sticks have resilvered and i was able to obtain the keys from the gui.
Prior to resilvering, I have tried to mount the stick that was good, importing the zpool with -f and with different name. Importing was succesful but after the mount there was no data available.

DO MAKE BACKUP'S OF YOUR KEYS AND RECOVERY KEYS !
 
Status
Not open for further replies.
Top