zpool在重新启动后损坏/出现故障?数据丢失



重新启动后,我无法访问区域设置文件系统。问题是我无法装载zfs文件系统。在系统启动时,它总是告诉我:;操作已经挂起";。

这样做的结果是,我的树莓将外部设备存储在/dev/sda1下(我认为之前是/dev/sda(。所以我尝试手动安装它,但我的zpool状态只显示:

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

我试着用谷歌搜索它,有人说我只需要出口和进口它。但我认为这是一个很大的错误。

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.

有人知道如何解决这个问题吗?因为我真的不认为这是硬件错误。我只想获取存储的数据。也许用一个不是zfs的工具?

root@raspberrypi:~# mount /dev/sda1 /srv/owncloud/storage/
mount: /srv/owncloud/storage: unknown filesystem type 'zfs_member'.

尝试导出池并删除zpool.cache文件。它应该在/etc/zfs/spool.cache.中

然后尝试zpool import owncloud

最新更新