Reputation: 29
I can't access my locale file system after a reboot. The problem is that I can't mount my zfs filesystem. On system startup it always tells me: "An operation is already pending".
The result of this is, that my raspberry stored the external device under /dev/sda1 (I think before it was /dev/sda). So I tried to mount it manually but my zpool status just says:
pi@raspberrypi:~ $ sudo zpool status -v
pool: owncloud
state: UNAVAIL
status: One or more devices could not be opened. There are insufficient
replicas for the pool to continue functioning.
action: Attach the missing device and online it using 'zpool online'.
see: http://www.sun.com/msg/ZFS-8000-3C
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
owncloud UNAVAIL 0 0 0 insufficient replicas
sda UNAVAIL 0 0 0 cannot open
I tried to google it and somebody said that I only have to export and import it. But I think this was a big fault.
root@raspberrypi:~# zpool export owncloud
root@raspberrypi:~# zpool import -FX owncloud
cannot import 'owncloud': one or more devices is currently unavailable
Destroy and re-create the pool from
a backup source.
root@raspberrypi:~# zpool import -f
pool: owncloud
id: 6716847667614780371
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://www.sun.com/msg/ZFS-8000-72
config:
owncloud FAULTED corrupted data
disk/by-id/ata-WDC_WD10JPVX-22JC3T0_WD-WX41AA58A29S ONLINE
root@raspberrypi:~# zpool import -f 6716847667614780371
cannot import 'owncloud': I/O error
Destroy and re-create the pool from
a backup source.
Does anyone know how to fix this problem? Because I really don't think this is a hardware error. I just want to get the stored data. Maybe with a tool not from zfs?
root@raspberrypi:~# mount /dev/sda1 /srv/owncloud/storage/
mount: /srv/owncloud/storage: unknown filesystem type 'zfs_member'.
Upvotes: 2
Views: 3078
Reputation: 1888
Try exporting the pool and removing the zpool.cache file. It should be in /etc/zfs/spool.cache.
Then try zpool import owncloud
.
Upvotes: 0