Clearing orphaned inode
转载:https://bugzilla.redhat.com/show_bug.cgi?id=147748
Clearing orphaned inode:
This is not a bug, it's the journaling clearing up a normal situation.An "orphaned" inode in this context is one which has been explicitly deleted, but which was still open by some process when it was deleted.The file vanishes completely from the directory structure, but normal Unix semantics require it to remain present on disk until the last user of that file closes it. At that point, the inode itself (as opposed to the directory entries pointing to it) is deleted, and the disk space used by the file is cleaned up.Now, if such an orphaned file is present when we crash or forcibly reboot/shutdown, then the reboot counts as a "close" of the file, because it is obviously no longer open! But the inode is still present on disk, because it was open when the system rebooted. In that case it is perfectly legal for ext3 to delete the inode during its recovery, because the file has already been explicitly deleted during previous operations.This happens all the time when, for example, an rpm upgrade of system libraries is done. The old libraries may still be in use by running applications, but the rpm upgrade will delete the files. The expected behaviour is that the old files are gone after a reboot, with no disk space leaking to the previously-in-use inodes. So the inode delete is required. It would be a bug if this situation lead to properly-deleted inodes coming back from the dead into /lost+found.
按照回答者的描述:
clearing orphaned inode为系统恢复时的正常操作
其是清理上次系统不正常关闭时,那么在磁盘但是已经不可达的文件。
而这些文件产生的一个原因,如一个进程打开一个文件,
但是这个文件被更新或者删除了,这时候旧的文件虽然不可达了,但是
磁盘不会马上清理它,而是等到最后一个还引用这个文件的用户/进程退出后,
便会清理这个文件。但是如果这个时候系统宕机或者不正确关闭了。
这时候这个不可达文件仍然在系统中,这时候系统恢复的时候,发现这类文件,
便会重新清理这些文件
Clearing orphaned inode相关推荐
- Fix ‘Clearing orphaned inodes’ on Ubuntu
Run in terminal sudo dpkg --configure -a sudo apt-get -y update sudo apt autoremove sudo apt update ...
- Linux操作系统报:read-only file system
在对集群测试过程中发现系统中某一节点中的磁盘变成read-only file system,从而导致测试任务出错,从网上查找资料,找到以下解决方案: 这个报错的意思是硬盘属性变成只读,不可写入: VO ...
- 解决Ubuntu18无法进入-显示/dev/nvme0n1p8:recovering Journal
一.操作环境 联想小新pro13 ubuntu18双系统 二.前情提要 [联想小新pro13安装ubuntu18双系统后出现分辨率问题,字体非常小] 今天安装的navicat软件界面文字太小,询问老师 ...
- su user oracle does not exist,【案例】Linux文件系统无法mount 由superblock损坏导致
[案例]Linux文件系统无法mount 由superblock损坏导致 时间:2016-12-19 10:33 来源:Oracle研究中心 作者:网络 点击: 次 天萃荷净 Oracle ...
- [OpenStack] Linuxbridge 的Permission Denied故障调查
同事发现compute节点无法创建虚拟机:调查发现是因为compute网络断开. 从ipmi进入compute节点查看情况,发现是物理网卡对应的linuxbridge的mac地址不对,全部为0,如下图 ...
- 如何恢复 Linux 上删除的文件
转自:http://blog.csdn.net/chinalinuxzend/article/details/2591694 如何恢复 Linux 上删除的文件 来源:developerWorks 中 ...
- 恢复被删除的文件-linux篇
恢复被删除的文件-linux篇 http://blog.chinaunix.net/u2/83058/showart_1404769.html 本文转自IBM中国上的文档 [http://www.ib ...
- 如何恢复 Linux 上删除的文件:ext2
要想恢复误删除的文件,必须清楚数据在磁盘上究竟是如何存储的,以及如何定位并恢复数据.本文从数据恢复的角度,着重介绍了 ext2 文件系统中使用的一些基本概念和重要数据结构,并通过几个实例介绍了如何手工 ...
- openstack部署及使用过程中遇到的问题汇总
报错01 Applying 10.130.0.148_controller.pp 10.130.0.148_controller.pp: [ ERROR ] Applying Puppet manif ...
最新文章
- 右键缺少open terminal选项的解决方法
- Quarkus:一个Kubernetes原生Java框架
- python写个礼物送人_送你个情人节礼物:Python版抖音同款表白神器
- 用Java2D画出树的结构图
- future java 原理_Java线程池FutureTask实现原理详解
- java读取excel中的数据存到数据库
- Outlier Detection for Improved Data Quality and Diversity in Dialog Systems-学习笔记
- 正则表达式的一些规则
- wordpress CAS
- 漫步线性代数二十——快速傅里叶变换(下)
- oc_转_类的数组的实现和操作
- WebBrowser自动点击链接 广告自动点击 Ads Auto Click
- BricsCAD 22 for Mac(CAD建模软件)
- iOS开发全套资源,从入门到全栈IOS工程师
- Windows 10怎样不利用第三方付费软件实现对C盘的深度清理
- JAVA中什么 和 什么的区别--面试最经常问的(全)
- python整行列匹配,python-熊猫将行与列值匹配
- I8700手机使用感受
- shiro注册登录流程(如何加密加盐)+配置多个Ream+密码加密验证底层分析+Remember使用+不同密码比对器原理(二)
- python3 输入一个数然后输出他的平方_汇编实验(输入一个数输出其平方值)