我的 FreeNAS 9.10 ZFS 池一直存在问题。
其中一个驱动器被警告有许多坏扇区,所以我决定更换它。在让“zpool replace”识别新驱动器时遇到了巨大的问题(它在 ada3 中,但它不接受它作为参数)。我唯一能想到的是将新驱动器作为“备用”添加到 zpool,然后使用zpool replace [poolname] [old device id] [spare device id]
这有效并重新同步了新驱动器。但是,一旦 resilver 完成,池仍处于降级状态,并且似乎想要恢复旧驱动器。
我如何说服它“忘记”旧驱动器并永久接受新驱动器?
非常感谢
pool: ZFS_NAS
state: DEGRADED
status: One or more devices could not be opened. Sufficient replicas exist for
the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
see: http://illumos.org/msg/ZFS-8000-2Q
scan: resilvered 989G in 4h42m with 0 errors on Mon May 2 19:45:33 2016
config:
NAME STATE READ WRITE CKSUM
ZFS_NAS DEGRADED 0 0 0
raidz1-0 DEGRADED 0 0 0
spare-0 DEGRADED 0 0 0
12082773611957310038 UNAVAIL 0 0 0 was /dev/gptid/1418d56c-431b-11e4-b9f7-28924a2f106f
gptid/503d6d1c-106e-11e6-a169-28924a2f106f ONLINE 0 0 0
gptid/1608e28a-431b-11e4-b9f7-28924a2f106f ONLINE 0 0 0
gptid/1699dab6-431b-11e4-b9f7-28924a2f106f ONLINE 0 0 0
spares
16673430511205791764 INUSE was /dev/gptid/503d6d1c-106e-11e6-a169-28924a2f106f
errors: No known data errors