Extremely Large Metadata size for directory on an ext4 filesystem
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Extremely Large Metadata size for directory on an ext4 filesystem
I am running CentOS 5.5 with a 14T ext4 volume. We are sharing out a few sub-directories via NFS. Our customer was doing some penetration testing with our web app that writes to one of those NFS shares. We are not sure if they did something to cause the metadata to grow so large or if it is corrupt. Here is the listing:
drwxrwxr-x 1 owner owner 470M Jun 24 18:15 temp.bad
I guess the metadata could actually be that large, however we have been unable to perform any operations on that directory to determine if the directory is just loaded with files or corrupted. We have not run an fsck on the volume because we would need to schedule downtime for out customers to do so. Has anyone come across this before? Do you have any recommendations to examine more detail on this issue? Thanks.
Mike
Volume in question:
/dev/sdb1 ext4 13T 1.7T 11T 14% /data01
what command did you use to know the dimension of the directory? Could you post the output of "ls -lsd <dir>"?
Third, a suggestion... you could try running a readonly fsck, by using the "-n" option... this will tell you if there is any problem, but remember, be careful and test this on another filesystem first! I tried on my /boot with ext3 and worked fine...
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
Rep:
What were the parameters during creation of the 14 TB file system? (AFAIR there is a default of 5 % of the file system reserved for the journal up to an upper limit of (...darn, memory fails here )).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.