首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >extundelete :如何恢复“可恢复的节点仍然丢失”?

extundelete :如何恢复“可恢复的节点仍然丢失”?
EN

Server Fault用户
提问于 2017-06-18 12:19:18
回答 1查看 3.7K关注 0票数 1

我使用extundelete来恢复从AWS EBS卷中删除的大约9000个文件,意外地是因为编程错误。

报告的结尾说

代码语言:javascript
复制
2864 recoverable inodes still lost.

有谁能解释一下这意味着什么,以及如何使用extundelete恢复不可恢复的内容?

全壳输出

代码语言:javascript
复制
NOTICE: Extended attributes are not restored.
Loading filesystem metadata ... 240 groups loaded.
Loading journal descriptors ... 30077 descriptors loaded.
Searching for recoverable inodes in directory /srv/www/mysite.com/photo-gallery ...
9000 recoverable inodes found.
Looking through the directory structure for deleted files ...
Unable to restore inode 330 (srv/www/mysite.com/photo-gallery/group56/myimage7.jpg): Space has been reallocated.
Unable to restore inode 1179649 (srv/www/mysite.com/photo-gallery/group189/myimage5.jpg): Space has been reallocated.
2864 recoverable inodes still lost.
EN

回答 1

Server Fault用户

发布于 2020-05-29 15:53:15

摘自extundelete的作者:

我猜它没有找到将inode链接到文件名的方法,在这种情况下,--restore-all方法是您获取文件的最佳方法。

https://sourceforge.net/p/extundelete/mailman/message/30159985/

根据您的问题,我猜您使用--restore directory /srv/www/mysite.com/photo-gallery运行了extundelete

如果是这样的话,那么您可以将所有这些替换为--restore-all

代码语言:javascript
复制
sudo extundelete /dev/sda1 --restore-all

尽管根据我的经验,输出是具有欺骗性的,因为仍然“丢失”的文件(inodes)是针对整个分区的,而不仅仅是针对您指定的目录,这意味着它能够恢复的大部分内容已经恢复。但是尝试--restore-all并不会有什么影响,因为它可能会找到一些它不知道路径的文件片段。

票数 0
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/856475

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档