Was going to try SmartOS, partially because I was not satisfied with FreeNAS for my usage. Created new zpool on old cache drive for SmartOS zones. That was all just backstory. The point is that now can't import the old FreeNAS pool on Ubuntu 15.04.
pool: pool5
id: 14850262647910895720
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://zfsonlinux.org/msg/ZFS-8000-EY
config:
pool5 UNAVAIL missing device
raidz2-0 ONLINE
ata-WL3000GSA6472_WOL240282406 ONLINE
ata-WL3000GSA6472_WOL240282471 ONLINE
ata-WL3000GSA6472_WOL240282504 ONLINE
ata-WL3000GSA6472_WOL240282506 ONLINE
ata-WL3000GSA6472_WOL240282472 ONLINE
cache
ata-ST31500341AS_6VS073SA
pool: zones
id: 513536768382594111
state: ONLINE
status: The pool was last accessed by another system.
action: The pool can be imported using its name or numeric identifier and
the '-f' flag.
see: http://zfsonlinux.org/msg/ZFS-8000-EY
config:
zones ONLINE
ata-ST31500341AS_6VS073SA ONLINE
I have since destroyed zones.
Tried most of the force options and combinations, similar results:
$ sudo zpool import pool5
cannot import 'pool5': pool may be in use from other system, it was last accessed by freenas.local (hostid: 0x8120288a) on Tue Oct 27 16:24:56 2015
$ sudo zpool import -f pool5
cannot import 'pool5': one or more devices is currently unavailable
$ sudo zpool import -Ff pool5
cannot import 'pool5': one or more devices is currently unavailable
$ sudo zpool import -fm pool5
cannot import 'pool5': one or more devices is currently unavailable
$ sudo zpool import -FfmX pool5
cannot import 'pool5': one or more devices is currently unavailable
$ sudo zpool import -fD pool5
cannot import 'pool5': no such pool available
$ sudo zpool import -nF pool5
cannot import 'pool5': pool may be in use from other system, it was last accessed by freenas.local (hostid: 0x8120288a) on Tue Oct 27 16:24:56 2015
use '-f' to import anyway
$ sudo zpool import -m pool5
cannot import 'pool5': pool may be in use from other system, it was last accessed by freenas.local (hostid: 0x8120288a) on Tue Oct 27 16:24:56 2015
use '-f' to import anyway
$ sudo zdb -e pool5
says:
Configuration for import:
vdev_children: 2
version: 5000
pool_guid: 14850262647910895720
name: 'pool5'
state: 0
hostid: 2166368394
hostname: 'freenas.local'
vdev_tree:
type: 'root'
id: 0
guid: 14850262647910895720
children[0]:
type: 'raidz'
id: 0
guid: 142933150631883837
nparity: 2
metaslab_array: 33
metaslab_shift: 37
ashift: 12
asize: 15002891714560
is_log: 0
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 79266291072794538
whole_disk: 1
DTL: 356
create_txg: 4
path: '/dev/disk/by-id/ata-WL3000GSA6472_WOL240282406-part1'
children[1]:
type: 'disk'
id: 1
guid: 1087294782673888508
whole_disk: 1
DTL: 258
create_txg: 4
path: '/dev/disk/by-id/ata-WL3000GSA6472_WOL240282471-part1'
children[2]:
type: 'disk'
id: 2
guid: 2219503574895013140
whole_disk: 1
DTL: 257
create_txg: 4
path: '/dev/disk/by-id/ata-WL3000GSA6472_WOL240282504-part1'
children[3]:
type: 'disk'
id: 3
guid: 6460403329296563235
whole_disk: 1
DTL: 202
create_txg: 4
path: '/dev/disk/by-id/ata-WL3000GSA6472_WOL240282506-part1'
children[4]:
type: 'disk'
id: 4
guid: 9844978706073275260
whole_disk: 1
DTL: 167
create_txg: 4
path: '/dev/disk/by-id/ata-WL3000GSA6472_WOL240282472-part1'
children[1]:
type: 'missing'
id: 1
guid: 0
zdb: can't open 'pool5': No such device or address
versions:
libzfs2 0.6.5.3-1~vivid amd64 Native OpenZFS filesystem library for Linux
ubuntu-zfs 9~vivid amd64 Native ZFS filesystem metapackage for Ubuntu.
zfs-dkms 0.6.5.3-1~vivid amd64 Native OpenZFS filesystem kernel modules for Linux
zfsutils 0.6.5.3-1~vivid amd64 Native OpenZFS management utilities for Linux
Tried importing from devnodes:
~/tmp$ ln -s $(for link in /dev/disk/by-id/ata-WL3000GSA6472_WOL240282406* /dev/disk/by-id/ata-WL3000GSA6472_WOL240282471* /dev/disk/by-id/ata-WL3000GSA6472_WOL240282504* /dev/disk/by-id/ata-WL3000GSA6472_WOL240282506* /dev/disk/by-id/ata-WL3000GSA6472_WOL240282472* ; do readlink -f "${link}" ; done) ./
~/tmp$ ls
sdb sdb1 sdb9 sdc sdc1 sdc9 sdd sdd1 sdd9 sde sde1 sde9 sdf sdf1 sdf9
~/tmp$ sudo zpool import -d ./ pool5
cannot import 'pool5': pool may be in use from other system, it was last accessed by freenas.local (hostid: 0x8120288a) on Tue Oct 27 16:24:56 2015
use '-f' to import anyway
~/tmp$ sudo zpool import -fd ./ pool5
cannot import 'pool5': one or more devices is currently unavailable
and the weird part (what is ada1? oh. probably a freebsd devnode):
$ sudo zpool import -d tmp
pool: pool5
id: 14850262647910895720
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://zfsonlinux.org/msg/ZFS-8000-EY
config:
pool5 UNAVAIL missing device
raidz2-0 ONLINE
sde ONLINE
sdc ONLINE
sdd ONLINE
sdb ONLINE
sdf ONLINE
cache
ada1
Can I maybe reinitialize the cache device so it can find it again? How much information does a cache device store about it's pool? Would it work to just make another zpool and add it as a cache to it? zdb doesn't seem to have a guid listed for it - will it just take a free cache drive? Can I make a cache drive and symlink it to ada1 and have it pick it up?
zdb
show anything useful?zpool import -nF
says that the pool cannot be imported because it is "in use" (meaning it has not been exported) and to use-f
, which is a very different error from that given by most other combinations you have tried, it seems likely thatzpool import -fF
could work. Note that using-F
without-n
may cause data loss; see the man page for details. If you can live with potentially losing a small amount of data (specifically recent transaction groups), you may want to give that a try. @-ping me in a comment and let me know how if that works.