Questions tagged [inode]
The inode is a data structure in a Unix-style file system which describes a filesystem object such as a file or a directory
109
questions
41
votes
8
answers
26k
views
Relinking a deleted file
Sometimes people delete files they shouldn't, a long-running process still has the file open, and recovering the data by catting /proc/<pid>/fd/N just isn't awesome enough. Awesome enough would ...
23
votes
6
answers
36k
views
How to clean up an unprocessed orphan inode list?
I tried to mount a formerly readonly mounted filesystem read-writeable:
mount -o remount,rw /mountpoint
Unfortunately it did not work:
mount: /mountpoint not mounted already, or bad option
dmesg ...
19
votes
3
answers
62k
views
ext4 file-system max inode limit - can anyone please explain?
Recently we had a problem where one of the ext4 file-systems seemed unable to handle very large number of files, more than 6mln in this case, in spite of having enough space. Is it 6mln the max number,...
17
votes
6
answers
33k
views
Linux - Help, I'm running out of inodes!
I have a filesystem that has lots of small files. Currently about 80% of inodes are used (I checked with df -i), however only 60% of disk space is used. How can I 'increase' the number of inodes? If ...
16
votes
12
answers
28k
views
Determine Location of Inode Usage
I recently installed Munin on a development web server to keep track of system usage. I've noticted that the system's inode usage is climbing by about 7-8% per day even though the disk usage has ...
15
votes
4
answers
16k
views
Linux: Why change inode size?
Tune2fs allows to change inode size from default (128 bytes on ext3, 256 bytes on ext4) to almost anything, but it should be power of two. What are the reasons for changing default inode size?
Here ...
14
votes
3
answers
4k
views
Link to a specific inode
I have a file that was deleted, but is still held open by a program. I found the inode number using lsof. How can I create a hard link back to that inode?
11
votes
3
answers
16k
views
disk space overhead in ext4
I'd like to know if there's some rule (or formula) I can apply to find out how much of disk space will be used by the filesystem in an ext4 partition. for example, in a partition of 100 GB, how much ...
11
votes
4
answers
5k
views
How to find the file at a certain btrfs inode
I have a corrupt file according to btrfs
BTRFS info (device sdb1): csum failed ino 367 off 310013952 csum 1601485211 expected csum 3692975992
I assumed ino 367 means inode 367, so I can use find and ...
10
votes
5
answers
112k
views
100 % inodes in root directory, how to free inodes?
df -i
Filesystem-----Inodes-----Iused-----IFree-----IUse-----Mounted on
dev/sda2-------732960-----727804-----5156-----100%---- /
Only these 2 are having higest inodes, rest all are too low. what can ...
9
votes
2
answers
8k
views
ext4: Running out of inodes [duplicate]
I am running out of inodes. Only 11% available:
the-foo:~ # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/mapper/system-home 9830400 8702297 1128103 89% /home
Is ...
9
votes
2
answers
11k
views
Can I increase inode count in Linux?
I have a Linux MIPS router with 2.4.17 kernel. Root fs is a tmpfs and /rom is a cramfs. There is 4MB free memory and 3MB free on tmpfs.
I can create a few new empty files, but the next ones fail ...
9
votes
3
answers
11k
views
tuning linux cache settings for inode caching
I am dealing with hundred million files in a filesystem (distributed among a lot of subdirectories), and I need to be able to list them very quickly, particularly in order to rsync them efficiently.
...
8
votes
3
answers
3k
views
Monotonic growth of Linux directory size/block count
On Linux, (perhaps as a function of the filesystem block size), when I create a directory and stat it, it returns a size of 4096. I can create files in this directory, up to a point, without ...
8
votes
3
answers
25k
views
No space left on device error, but df reports as more space available
My PHP sessions on my Debian webserver using Apache2 with mod_php seem to be failing randomly, saying that there’s no space to write them:
sudo tail -60 /var/log/apache2/error.log
[Fri Jan 30 15:55:...
8
votes
2
answers
11k
views
What is the function in Windows similar to Inode in Linux?
Is there any commands which is same as the function inode in Linux. Any info will be helpful.
7
votes
4
answers
36k
views
What does it mean if inode usage is high?
After some google research I have figured out inode usage probably relates to the number of directorys/files.
I am guessing there is a limit (thus what determines the inode usage %). What
is this ...
6
votes
2
answers
8k
views
Diagnosing cause of orphaned inodes on Linux, busy MySQL?
One of our servers recently experienced some file system corruption and our root file system was automatically remounted as read only. The steps I took to recover were:
attempted to remount > ...
6
votes
1
answer
1k
views
The impact of a high directory-to-file ratio on XFS
We're building a product that is likely to generate very large XFS volumes, and I'm trying to discover the scaling bottlenecks we're likely to run into given the architecture.
As we manipulate files ...
5
votes
1
answer
8k
views
Can I delete files in nginx client_body_temp directory?
On my nginx server, I can't login to my wordpress site. The error log mentions " No space left on device".
2014/09/26 02:02:05 [crit] 1197#0: *32 open() "/usr/local/nginx/client_body_temp/...
5
votes
2
answers
1k
views
xfs: find files on the first 1 TB
I have been hit by xfs' No space left on device. According to the FAQ:
http://xfs.org/index.php/XFS_FAQ#Q:_Why_do_I_receive_No_space_left_on_device_after_xfs_growfs.3F
The only way to fix this is ...
5
votes
1
answer
1k
views
How to distribute files and folders to handle large number of files
I want to manage a huge number of files on my server (say millions). It is needed to save files in two or three levels of folders to keep the number of files in each folder low. On the other hand, it ...
4
votes
1
answer
2k
views
How to rescue a server with no free inodes (from DDOS)
One of my web server was DDOS attacked. All is well except there are millions of PHP session files used up 100% inodes of the partition. There is only one partition for the entire /
Tried several ...
4
votes
3
answers
4k
views
Why don't linux distributions default to mounting tmpfs with infinite inodes?
According to this answer it is possible to mount at least tmpfs with "infinite" inodes.
Consider this specific (numbers chosen for example purposes, I know that they're not realistic) situation:
...
4
votes
2
answers
8k
views
Monitoring /proc/sys/fs/inode-nr
As part of a general overhaul of some Nagios scripts, I am adding parameters to the scripts so that the thresholds can be determined on a machine-by-machine basis. As an example, we are specifying ...
4
votes
1
answer
4k
views
dirtied inode
I am investigating a very strange io issue. I have vm.block_dump enabled and I am seeing allot of messages in this form:
process(29177): dirtied inode 42254471 (filename) on 0:14
What does dirtied ...
4
votes
4
answers
12k
views
How to determine which processes have most inodes opened
Here is my problem, visibile in a munin chart:
My used/opened inodes are "suddenly" constantly increasing.
Is there a way to determine which process is keeping the most currently opened inodes?
I ...
3
votes
2
answers
16k
views
-bash: cannot create temp file for here-document: No space left on device
I'm getting following error while doing tab, tab inside of shell:
-bash: cannot create temp file for here-document: No space left on device
root@alexus:~# cat /etc/issue.net
Ubuntu 14.04.3 LTS
...
3
votes
2
answers
21k
views
Understanding XFS inode limits
I reached the inode limit on my XFS partition. There are plenty of questions about this. Some suggest the answer is to increase the maximum percentage of space allocated for inodes. Or, as the ...
3
votes
2
answers
3k
views
eCryptfs headers errors
I'm getting the following error on a server where a partition is encrypted thru ecryptfs.
[3440851.003561] Valid eCryptfs headers not found in file header region or xattr region, inode 22545087
[...
3
votes
1
answer
545
views
How do I replace the root filesystem (ext4) with a new one in LVM with one which has more inodes?
I have a few systems which have been running over a decade in a cluster on SLES 10 (now long past EOL). We're migrating to CentOS 6 64-bit. I got everything done but the final data syncs, and lo and ...
3
votes
2
answers
17k
views
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 ...
3
votes
4
answers
3k
views
How can I reduce inode utilization on an ext4 filesystem?
Summary of My Need
We put a large amount of files on a filesystem for analysis at a later time. We can't control how many files we're going to have, and this one box needs access to all of them.
...
3
votes
2
answers
2k
views
Setting up tmpfs `/run/lock` for hundreds of thousands of 0 byte lock files, and dealing with the inode limit
I have a situation where I need to create 100s of thousands of 0 byte lock files for concurrency control.
I've tested creating them by using:
for i in `seq 1 50000`; do touch "/run/lock/${i}.lock"; ...
3
votes
2
answers
1k
views
Unexplained cache RAM drops on Linux machine
I run a CentOS 5.7 64 machine with 24gb ram and running kernel 2.6.18-274.12.1.el5.
This machine runs only Nginx, php-fpm and Xcache as extra applications.
Since about 3 weeks my memory behavior on ...
3
votes
0
answers
167
views
What is directory's blockmap? And how many disk I/Os will happen?
I am reading this paper from Facebook (Beaver). The paper says that
We initially stored thousands of files in each directory of an NFS
volume which led to an excessive number of disk operations ...
2
votes
2
answers
1k
views
Could swap use many inodes?
I have got a graph about high inode use of our server's disk but I haven't got any detailed information (like df -i) so I'd like to guess the reason.
Operating System: Red Hat Linux
Process: PDF ...
2
votes
2
answers
13k
views
How can I remove a corrupted file in Linux?
The power went out at home and my Linux server (Plugbox Linux) went down. After it came back up, one of the files on the USB drive that was connected is corrupt. "ls -il" gives this:
? -????????? ?...
2
votes
1
answer
3k
views
Process has opened inode that's not on any filesystem?
So I'm trying to find out if the stderr of a process has been redirected to somewhare unusual (it's a java process and I want a thread dump, but it's launched through a nest of startup scripts).
I ...
2
votes
4
answers
13k
views
Centos INODES usage
We are using Centos & cPanel server but we have a important problem for INODES usage.
"df -i" command showing for / directory using 6 million inodes!.
When I check number of files for / ...
2
votes
1
answer
3k
views
Recovering any deleted file using Inode value?
Please correct me If I'm wrong
Is possible to recover the deleted file if you have inode number of file.
2
votes
3
answers
8k
views
Where is the inode number stored?
I know that the filename is stored in directories and not in inode. Kindly tell me where the inode number of a file is stored? Is it stored in the directory file?
2
votes
2
answers
289
views
How does directory complexity influences on i-nodes?
For single project, which uses a lot of images( ± 1k-3k per day) I use custom PHP script to process images and save them to server.
Currenty PHP script processes them and saves in the following ...
2
votes
1
answer
3k
views
Icinga2 perfdata directory is overflowed
I`ve installed icinga2 on a virtual machine for monitoring 5 other ones with graphite support for the graphics and icingaweb2 as an interface. Recently on my web interface I got the follow:
Fatal ...
2
votes
3
answers
464
views
Is it possible to have orphaned hard links?
I'm not sure if it is even possible to have an orphaned hard link. Let me explain why I'm asking. Bear with me.
My Setup
I am using rsync to sync my file server to my backup server. I am using the -...
2
votes
2
answers
9k
views
What is INODE usage and can I reduce it?
My webserver keeps giving me the error backup failed due to high INODE usage...
What is this and how can I prevent it?
2
votes
2
answers
3k
views
'inode table usage' spiking every morning at 8am
I installed munin on my ubuntu server. It's showing my 'inode table usage' spiking every morning at 8am. It then rapidly curves down and settles over the course of several hours. What might cause ...
2
votes
1
answer
1k
views
Does smbfs create constant inode numbers?
If I use smbfs to mount a filesystem, will the inodes always be the same for each file? Or am I in danger of the inodes changing when I mount the fs again or if the remote system reboots?
2
votes
2
answers
277
views
Serve large number of small images in ext4
I read through some similar question, but still have some confuse about my situation.
My website allow user upload huge number of large images (scan pages of book). My server will auto tiling and ...
2
votes
1
answer
777
views
How can I create disk for smaller files with good read/write speeds?
I'm trying to find the best way to store lots of small files on a volume, without hitting the inode limits. I created a new drive with:
sudo mkfs.ext4 -N 100000000 /dev/device
and this correctly ...