今天,我在从 FreeBSD 服务器收到的每日日志邮件中发现了以下消息:
ad2c: hard error reading fsbn 1081249272 of 540624636-540624639 (ad2 bn 1081249272; cn 1072667 tn 14 sn 54) status=59 error=40
找到与上述块号对应的文件的最佳方法是什么?
答案1
您可以(并且可能必须)fsdb
为此求助于(8)——该findblk
命令应该能够追踪 inode,您可以从中获取文件名。
OBLIGATORY WARNING
fsdb is a pretty dangerous tool. You can do a lot of damage in a very short amount of time.
It is a good idea to read the man page thoroughly, and perhaps peruse a few other sources
of information before poking around in the dark sticky guts of your filesystem.
更多详情请参阅此邮件列表帖子发布到 freebsd-questions