Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2833578
  • 博文数量: 200
  • 博客积分: 2413
  • 博客等级: 大尉
  • 技术积分: 3067
  • 用 户 组: 普通用户
  • 注册时间: 2011-04-01 22:07
文章分类

全部博文(200)

文章存档

2018年(2)

2017年(8)

2016年(35)

2015年(14)

2014年(20)

2013年(24)

2012年(53)

2011年(44)

分类: LINUX

2016-08-04 13:36:12

巡检时,一台oracle数据库操作系统/var/log/message日志中有大量如下warning:
Aug  4 09:18:23 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:23 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:23 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:25 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:25 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:25 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:25 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!
Aug  4 09:18:25 your_hostname kernel: EXT4-fs warning (device sda5): ext4_dx_add_entry:2024: Directory index full!


产生warning原因如下:
单个目录下的子目录和文件超过64k个。

经排查,Oracle的adump目录下有9113975个.aud文件,将文件删除后,warning不再产生。

涉及命令:
1) 统计当前文件夹下文件的个数
ls -l |grep "^-"|wc -l

2) 统计当前文件夹下目录的个数
ls -l |grep "^d"|wc -l

3) 统计当前文件夹下文件的个数,包括子文件夹里的 
ls -lR|grep "^-"|wc -l

4) 统计文件夹下目录的个数,包括子文件夹里的
ls -lR|grep "^d"|wc -l


参考:

阅读(5917) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~