所以我连接到我的FreeNas 7系统的USB驱动器坏了,所以我把这个情况当成了升级到FreeNas 8的机会。现在的问题是,我无法让我的ZFS启动:
[root@media] ~# zpool import pool: filetank id: 17702465758427828599 state: FAULTED status: The pool was last accessed by another system. 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-EY config: filetank FAULTED corrupted data raidz1 FAULTED corrupted data ada3 ONLINE ada1 ONLINE ada4 ONLINE ada2 ONLINE [root@media] ~# zpool import -f filetank cannot import 'filetank': one or more devices is currently unavailable
有什么奇怪的是,只是raidz说,它的损坏,我不知道该怎么办。 我可以find的大多数东西都包括replace单个设备,但是看起来没有任何特定的设备出现故障? 我回到FreeNas 7,得到了同样的错误,这基本上是我的预期。
尝试使用zpool import -f -F -n filetank 。
这实际上不会导入池,但会告诉你它是否可以恢复。
如果它给了你绿灯,然后继续:
zpool import -f -F filetank
有关这些选项的详细信息,请参见手册页:
-f Forces import, even if the pool appears to be poten- tially active. -F Recovery mode for a non-importable pool. Attempt to return the pool to an importable state by discarding the last few transactions. Not all damaged pools can be recovered by using this option. If successful, the data from the discarded transactions is irre- trievably lost. This option is ignored if the pool is importable or already imported. ... -n Used with the -F recovery option. Determines whether a non-importable pool can be made importable again, but does not actually perform the pool recovery. For more details about pool recovery mode, see the -F option, above.
尝试使用其数字标识符(id)导入它。 这经常做魔术。
zpool import -f 17702465758427828599
您可能会遇到一个旧的ZFS导入错误,导致强制导入只能通过id进行。 请在这篇文章的评论中看到一个解释。
如果这解决了这个问题,我很高兴。
如果没有,你应该检查你的日志zfs抱怨校验和不匹配。 如果是这种情况,您可能需要查看zdb -l / dev / dsk / ad *告诉您关于磁盘的内容,因为这意味着损坏的元数据。