2

重新启动后我无法访问我的语言环境文件系统。问题是我无法挂载我的 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'.
4

1 回答 1

0

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

然后尝试zpool import owncloud

于 2020-04-30T10:03:19.417 回答