我刚刚从FreeNAS 8.0.2升级到8.3.0 Release-p1。
在更新报告成功后,我打算将ZFS池从ZFSv15升级到ZFSv28。 首先,我检查了zpool的状态。 那时我发现游泳池有错误。 以下是zpool status -v命令的输出:
[root@freenas] ~# zpool status -v pool: first state: ONLINE status: One or more devices has experienced an error resulting in data corruption. Applications may be affected. action: Restore the file in question if possible. Otherwise restore the entire pool from backup. see: http://www.sun.com/msg/ZFS-8000-8A scan: scrub in progress since Sat Feb 2 17:15:20 2013 496G scanned out of 886G at 74.9M/s, 1h28m to go 0 repaired, 55.95% done config: NAME STATE READ WRITE CKSUM first ONLINE 0 0 2 mirror-0 ONLINE 0 0 4 gptid/5f279dd0-0ce9-11e1-919a-001871691677 ONLINE 0 0 4 gptid/5f76d1d1-0ce9-11e1-919a-001871691677 ONLINE 0 0 4 errors: Permanent errors have been detected in the following files: first/[email protected]:<0x198b> first/[email protected]:<0x4b3> first/[email protected]:<0x18ec> first/[email protected]:<0x9fd> <0x1eed>:<0x4b3> <0x1efd>:<0x9fd>
正如你从输出中看到的,我已经开始擦洗。 到目前为止,它没有修复任何错误,但只发现了2个额外的校验和错误。
我读了其他论坛的build议,首先删除错误的文件,然后进行擦洗。 问题是:在哪里可以find和如何删除文件,如first/[email protected]:<0x9fd> 。
我没有find这些文件的位置。
我最终做的是创build一个新的卷,将所有文件复制到它,分离有错误的旧卷,然后将其硬盘连接到新创build的卷(又名zpool)。
无论如何,我打算扩展我的存储空间,但是最初我想将新的硬盘连接到现有的卷上。 相反,我创build了一个全新的卷,将所有文件从现有卷复制到新卷。 1TB的数据花了我大约2个小时,但是现在我在FreeNAS服务器的Web GUI上没有恼人的黄色交通灯闪烁。 此外,我需要重新创buildCIFS股票,以便指向新的交易量而不是旧的交易量。