公司有台服务器,上面配了阵列卡,3 块硬盘做了 raid5 ,另外一块热备,最初时候没配电池,后来加装的。 上周五同事反馈服务器卡顿,查询后发现,Raid5 所在分区 IO 有问题,于是去机房检查服务器状态,发现 raid 的 1 号成员盘跟热备盘同时黄灯常亮,怀疑硬盘坏了。 所以采购了新的硬盘准备替换上去,重启服务器进入 bios 界面,发现 1 号成员盘跟热备盘同时显示不在线,但是硬盘状态又是 0 错误,怀疑只是单纯的硬盘掉盘导致的。于是尝试重新上线下硬盘,结果一上线,就显示重建状态,不敢打断,就保存重启了下服务器。 进入服务器以后发现服务器 raid5 所在的分区无法自动挂载,于是手动挂在了下,结果满屏幕的显示 htree_dirblock_to_tree:984: inode #87556100: block 1: comm smbd: Directory block failed checksum 3: comm smbd: Directory block failed checksum [48427.551162] EXT4-fs error: 118823 callbacks suppressed [48427.551164] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551206] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551249] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551329] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551370] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551423] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551473] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551516] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551558] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48427.551602] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552207] EXT4-fs error: 117129 callbacks suppressed [48432.552221] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552254] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552297] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552381] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552425] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552467] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552540] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552581] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552625] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum [48432.552667] EXT4-fs error (device sdb1): htree_dirblock_to_tree:984: inode #87953926: block 3: comm smbd: Directory block failed checksum 类似信息。 查阅资料,猜测可能是之前阵列卡没配备电池之前,几次异常断电导致的。 我就参照教程,执行了 efsck 命令,本以为是很快就能好,结果周六下午 1 点开始修复的,一直到周日晚上 11 点还在修复,由于服务器要继续使用,就尝试中断了下 fsck ,结果有部分文件丢失,也有部分文件被还原到历史某个版本。同时有的文件夹无法访问,提示: ls: cannot access 'adas.xlsx': Structure needs cleaning 也有部分文件夹提示只读 mkdir: cannot create directory ‘1’: Read-only file system
问了以前合作过的一家数据修复公司,说没辙 这种情况怎么修复呢????
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.