<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Inodes in 'df -i' and /proc/sys/fs/inode-nr in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638186#M40932</link>
    <description>I can't answer your question directly, (check the Linux kernel mailing list archives for some [maybe] discussion on this matter,) but not all filesystems have to worry about pre-allocated inodes. For example, Reiser3 has no pre-defined limit - it's based on the free number of blocks. Any filesystem modeled after the UFS model (such as ext2/ext3) may need to take this into consideration.&lt;BR /&gt;&lt;BR /&gt;What problem are you trying to solve, if any? If none, are you just looking for clarification?</description>
    <pubDate>Wed, 26 May 2010 22:13:06 GMT</pubDate>
    <dc:creator>macosta</dc:creator>
    <dc:date>2010-05-26T22:13:06Z</dc:date>
    <item>
      <title>Inodes in 'df -i' and /proc/sys/fs/inode-nr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638185#M40931</link>
      <description>*********/proc/sys/fs/inode-nr&lt;BR /&gt;ALLOCATED FREE&lt;BR /&gt;INODES     INODES&lt;BR /&gt;&lt;BR /&gt;64689   256&lt;BR /&gt;&lt;BR /&gt;********* df -i&lt;BR /&gt;Filesystem            Inodes   IUsed   IFree IUse% Mounted on&lt;BR /&gt;/dev/sda1             856480  109553  746927   13% /&lt;BR /&gt;none                  209419       1  209418    1% /dev/shm&lt;BR /&gt;/dev/sda5             146592     502  146090    1% /tmp&lt;BR /&gt;/dev/sda3             292608     857  291751    1% /var&lt;BR /&gt;/dev/sda6             147744      27  147717    1% /var/tmp&lt;BR /&gt;rcdn9-9u-filer01a:/vol/dfs1/usrcisco-linux-x86/usrcisco-linux-rhel3.0-x86-32&lt;BR /&gt;                     8800918  498125 8302793    6% /auto/usrcisco-linux-rhel3.0-x86-32&lt;BR /&gt;rcdn9-40b-filer14b:/vol/local3/apollo_dev1_opt&lt;BR /&gt;                     30515486       1 30515485    1% /apps&lt;BR /&gt;&lt;BR /&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;I'm investigating inodes and max-inodes and getting some conflicting info.&lt;BR /&gt;&lt;BR /&gt;Tell what I should know about red hat 2.6 inodes, in 5.1.&lt;BR /&gt;&lt;BR /&gt;Question:  There is no longer a /proc/sys/fs/inode-max value, but you still have to mkfs -i number of inodes in a file system.  What's up ?&lt;BR /&gt;</description>
      <pubDate>Wed, 26 May 2010 18:07:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638185#M40931</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-05-26T18:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Inodes in 'df -i' and /proc/sys/fs/inode-nr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638186#M40932</link>
      <description>I can't answer your question directly, (check the Linux kernel mailing list archives for some [maybe] discussion on this matter,) but not all filesystems have to worry about pre-allocated inodes. For example, Reiser3 has no pre-defined limit - it's based on the free number of blocks. Any filesystem modeled after the UFS model (such as ext2/ext3) may need to take this into consideration.&lt;BR /&gt;&lt;BR /&gt;What problem are you trying to solve, if any? If none, are you just looking for clarification?</description>
      <pubDate>Wed, 26 May 2010 22:13:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638186#M40932</guid>
      <dc:creator>macosta</dc:creator>
      <dc:date>2010-05-26T22:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inodes in 'df -i' and /proc/sys/fs/inode-nr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638187#M40933</link>
      <description>/proc/sys/fs/inode-* files are all about the kernel's inode structures _in RAM_. This used to be tuned manually, but now it's managed automatically. As far as I see, it's kind of like "ninode" in HP-UX with HFS filesystems.&lt;BR /&gt;&lt;BR /&gt;mkfs -i deals with inodes _on disk_, in the filesystem. In ext2/ext3 filesystems, you decide at filesystem creation time how many inodes you're going to allocate per unit of disk space. Once the filesystem is in use, this ratio is set in stone: you can only add inodes to an existing filesystem by extending it.&lt;BR /&gt;&lt;BR /&gt;All the files in /proc/sys are various kernel-level parameters, collectively known as "sysctls". Some can be adjusted at run-time, others are read-only. The read-only sysctls allow the kernel developers (and sysadmins, if so inclined) to easily monitor some parameters related to kernel's internal workings.&lt;BR /&gt;&lt;BR /&gt;For more information, install the kernel-doc package and look into /usr/share/doc/kernel-doc-&lt;VERSION&gt;/Documentation/sysctl/ directory. Within that directory, a file called "fs.txt" describes the files in /proc/sys/fs/ directory. &lt;BR /&gt;&lt;BR /&gt;MK&lt;/VERSION&gt;</description>
      <pubDate>Thu, 27 May 2010 05:23:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638187#M40933</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2010-05-27T05:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inodes in 'df -i' and /proc/sys/fs/inode-nr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638188#M40934</link>
      <description>Macosta:&lt;BR /&gt;&lt;BR /&gt;Not using Reiser.  Using standard ext2 and ext3.&lt;BR /&gt;&lt;BR /&gt;"...it's based on the free number of blocks...."&lt;BR /&gt;&lt;BR /&gt;Yes, this is what I reading from the man pages.  But the documentation doesn't seem up to date since I've seen internet procedures on changing "..inode-max..." in /proc/sys/fs.  And the man pages specify "...Be warned that is not possible to expand the number of inodes on a filesystem after it is created...".&lt;BR /&gt;&lt;BR /&gt;Comments Please?&lt;BR /&gt;&lt;BR /&gt;Question:  Given that the man pages also state "...mke2fs creates an inode for every bytes-per-inode bytes of space on the disk....", when using the "...-i bytes-per-inode..." option, what is the value to use here.  Note:  The man pages also state "...This value shouldn't be smaller than the block size...".  (* Typical block size is 4096, so what value is typically used here? *)&lt;BR /&gt;&lt;BR /&gt;Question:  Does this apply for ext2 only or does ext3 also have this option?&lt;BR /&gt;&lt;BR /&gt;Given:  Man page for mke2fs, -N number-of-inodes&lt;BR /&gt;&lt;BR /&gt;Question:  Is this an obsolete option?&lt;BR /&gt;&lt;BR /&gt;Matt:&lt;BR /&gt;&lt;BR /&gt;Thanks very much.  You're really hitting close to the mark.  "... Once the filesystem is in use, this ratio is set in stone: you can only add inodes to an existing filesystem by extending it...."&lt;BR /&gt;&lt;BR /&gt;That's what I'm looking for.  &lt;BR /&gt;&lt;BR /&gt;So, if you run out of inodes:&lt;BR /&gt;&lt;BR /&gt;a) do you prune the Linux Inode table&lt;BR /&gt;b) expand the file system&lt;BR /&gt;&lt;BR /&gt;Question:  Thanks very much for the doc. But it seems out of date.  It makes references to 'inode-max' under /proc/sys/fs and this is what set me on this posting in the first place.  Its not there.  Is it obsolete at Red Hat 5.1?  Or is it a transient file that I should be looking for?  (* There are hundreds of linux boxes over here. I'm traditionally an HP-UX admin and tranistioning over *)</description>
      <pubDate>Thu, 27 May 2010 11:37:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638188#M40934</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-05-27T11:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Inodes in 'df -i' and /proc/sys/fs/inode-nr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638189#M40935</link>
      <description>One final question:  I really don't see the relationship between 'df -i' inode report and /proc/sys/inode-nr.  &lt;BR /&gt;&lt;BR /&gt;Can someone explain this?</description>
      <pubDate>Thu, 27 May 2010 12:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638189#M40935</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2010-05-27T12:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inodes in 'df -i' and /proc/sys/fs/inode-nr</title>
      <link>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638190#M40936</link>
      <description>As Matti pointed out, there is no relationship between the inode counts in your file systems and the /proc/sys/fs/inode-nr values.  The numbers in inode-nr track the state of the kernel's inode cache.&lt;BR /&gt;&lt;BR /&gt;/proc/sys/fs/inode-max was dropped as of kernel 2.4.18 (see &lt;A href="http://lkml.indiana.edu/hypermail/linux/kernel/0203.3/0211.html)," target="_blank"&gt;http://lkml.indiana.edu/hypermail/linux/kernel/0203.3/0211.html),&lt;/A&gt; when it was converted from static to dynamic (see &lt;A href="http://lkml.indiana.edu/hypermail/linux/kernel/9909.1/0917.html)." target="_blank"&gt;http://lkml.indiana.edu/hypermail/linux/kernel/9909.1/0917.html).&lt;/A&gt;  That would be way back around Red Hat 7.3.&lt;BR /&gt;&lt;BR /&gt;If you run out of inodes you will need to either extend or recreate an ext2/3 file system.</description>
      <pubDate>Thu, 27 May 2010 15:45:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/inodes-in-df-i-and-proc-sys-fs-inode-nr/m-p/4638190#M40936</guid>
      <dc:creator>Randy Jones_3</dc:creator>
      <dc:date>2010-05-27T15:45:50Z</dc:date>
    </item>
  </channel>
</rss>

