zfs 存储池无法挂载解决方案

bash-4.1# zpool import -d /dev/disk/by-id

pool: data

id: 16015589977926012805

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://zfsonlinux.org/msg/ZFS-8000-72

config:

data FAULTED corrupted data

dm-name-VolGroup-lv_data ONLINE

bash-4.1# zpool import -d /dev/disk/by-id data

cannot import 'data': I/O error

Recovery is possible, but will result in some data loss.

Returning the pool to its state as of Thu Jun 28 19:53:45 2018

should correct the problem. Approximately 5 seconds of data

must be discarded, irreversibly. Recovery can be attempted

by executing 'zpool import -F data'. A scrub of the pool

is strongly recommended after recovery.

bash-4.1# zpool import -f -d /dev/disk/by-id data

cannot import 'data': I/O error

Recovery is possible, but will result in some data loss.

Returning the pool to its state as of Thu Jun 28 19:53:45 2018

should correct the problem. Approximately 5 seconds of data

must be discarded, irreversibly. Recovery can be attempted

by executing 'zpool import -F data'. A scrub of the pool

is strongly recommended after recovery.

bash-4.1# zfs list

no datasets available

bash-4.1# zpool import -F data ##执行这条命令,强制挂载

bash-4.1# zfs list

NAME USED AVAIL REFER MOUNTPOINT

data 5.13G 785G 5.13G /data

猜你喜欢

转载自blog.csdn.net/qq_14915781/article/details/81093258
zfs