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
110 questions
Score of 9
2 answers
718 views
In the XFS file system, does the ls command (syscall getdents) access the disk, or is there a cached directory structure in memory? [closed]
Just for test, I created and mounted the same XFS file system on two hosts based on a shared device (pmem).Host A created a file in its mounted directory and executed the sync command to ensure that ...
Score of 0
2 answers
3106 views
how to delete a file by a inode in linux kernel
I got the inode of a file in linux kernel, I want to delete the file by the inode.
Do I need to unlink every dentry of the inode? or do I need to unlink any dentry?
Which locks should I use to protect ...
Score of 1
1 answer
1248 views
How ZFS avoids inodes' number exhaustion and why wasn't it implemented in previous filesystems (e.g. ext4)?
Chapter 1 of Oracle's ZFS Guide states that
all metadata is allocated dynamically, so no need exists to preallocate inodes
which was a positive surprise, but makes me wonder why the methods ZFS uses ...
Score of 0
1 answer
256 views
How can I monitor deletion of /dev/null
Usually I use inotfiy_add_watch to monitor deletion of files, it works for regular files or even most device files(/dev/zero,etc...), but fails for /dev/null. It seems that any operations to it will ...
Score of 0
0 answers
92 views
Directory not read
I have a problem with a user's folder.
ls -la shows the permissions as ???? instead of drwx.
I tried with
sudo chmod ug+rw -R /path/folder
to reassign the value but it doesn't change.
How can i make ...
Score of 1
0 answers
394 views
EBS 12.1.3 issues on 64 bit RHEL 7 OS due to 64 bit inode numbers
We recently got an issue with adpatch, it is failing to read driver files from APPL_TOP or unable to write to adworker log files, when the affected files have 64 bit inode numbers.
As per my findings, ...
Score of 0
0 answers
241 views
is the linux directory inode different then the file inode?
Im currently reading the book
"How Linux Works" by Brian Ward
and on chapter 4.5 it is said
"A directory inode contains a list of filenames and corresponding
links to other inodes&...
Score of 0
2 answers
757 views
Monitor Linux Server filesystem health and suspicious activities
I run my own, small server here. The server runs on Ubuntu 18.04. There is one single HDD using LVM on a partition together with EXT4. LVM is used for taking snapshots. I also use Webmin with ...
Score of 2
1 answer
1211 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 ...
Score of 0
0 answers
206 views
XFS inodes not neessarily unique?
(Debian 10.5, kernel 4.19.132-1 )
My understanding is that inodes are unique on a given filesystem, and indeed if we look at man inode we get the following assertion:
Each file in a filesystem has ...
Score of 0
3 answers
298 views
We are migrating our wordpress to static site. That is creating over 400,000 folders within 1 folder. Is there any limit to the number of sub-folders?
Our wordpress web site is several years old and has many posts indexed and ranking well on google. With any serious traffic my wordpress server tanks - and this happens even after several rounds of ...
Score of 0
1 answer
863 views
inode usage is full under / partition
The inode usage of the server is full
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vda2 2305632 2305632 0 100% /
tmpfs 490504 6 490498 1% /dev/...
Score of 3
0 answers
238 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 to ...
Score of 0
3 answers
2536 views
Disk inodes full due to PHP sessions [closed]
We have been struggling with this problem for over 2 years now. We have an eCommerce shop that uses PHP sessions to store user baskets and other information.
The problem is that after a while, the ...
Score of 0
1 answer
466 views
Why does `chattr +e <file>` fail with no space left on the device when there's plenty?
I have a problem. chattr +e <file> does not work, if the file does not have the +e attr set on it, or if it's removed and re-added.
[root@ip-203-0-113-13 log]# df -Th
Filesystem Type ...