How can i fix it: EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full
I have noticed that in dmesg and syslog i have something like that:
EXT4-fs warning (device sda3): ext4_dx_add_entry: Directory index full!
I have checked df -i too:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda3 182943744 27534820 155408924 16% /
And i see that IUse% is 16%. I rebooted that server but it's happened again. I check where i have too much files and the biggest number was 3200 files in one folder. Is it to much?
I have found in Google - that i can try fsck but how can i do it on mount system. Is not possible i think or it could crash my data.
Do you have some idea?
Thank you very much for help.
Rafal
Solution 1:
I have found in Google - that i can try fsck but how can i do it on mount system. Is not possible i think or it could crash my data.
Yes, this is what I would recommend. Sounds like you might have filesystem corruption.
fsck
cannot repair a filesystem which is mounted. You'll need to either boot and stop the boot process before your filesystem gets mounted to run fsck
(this may or may not be possible depending on your configuration) or boot from different media (like an installer disc or LiveCD) to check and repair your root filesystem.