NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

brawndo8's avatar
brawndo8
Follower
Dec 19, 2011

Max number of files

I currently own an HP Media Vault mv2100 with two 500GB drives mirrored. I have run out of inodes. (Via ssh, executing df -i shows IUse% at 100%.) So while there is space to spare, no new files can be written. This is a known problem for the Media Vault v2: http://k0lee.com/hpmediavault/#inodes. I would like to know the maximum number of files that a ReadyNAS Duo v2 can hold. Let's assume the same configuration: 2 500GB drives mirrored. Thanks!

2 Replies

  • Looking up EXT3 in Wikipedia, I came across this:

    "The maximum number of inodes (and hence the maximum number of files and directories) is set when the file system is created. If V is the volume size in bytes, then the default number of inodes is given by V/213 (or the number of blocks, whichever is less), and the minimum by V/223. The default was deemed sufficient for most applications. The max number of subdirectories in one directory is fixed to 32000."

    While I have not done the calculation, but the number seems very large. You must either have a very large number of small files, or HP has a different limit.
  • siigna's avatar
    siigna
    NETGEAR Expert
    Duo v2 runs ext4 so your theoretical maximum is going to be 4 billion files, but you're still going to max out your inodes way before you hit that limit.

    Not sure what the inode size on the Media Vault is (you could find out with 'dumpe2fs -h /dev/mdX | grep -i inode') but on the Duo v2 it's 256.

    On mine it looks something like this (I have 1x2tb):


    root@nas-FF-84-E5:~# cat /proc/sys/dev/boot/info | grep model:
    model: ReadyNAS Duo v2
    root@nas-FF-84-E5:~# dumpe2fs -h /dev/c/c | grep -i inode
    dumpe2fs 1.41.14 (22-Dec-2010)
    Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
    Inode count: 60735488
    Free inodes: 60735469
    Inodes per group: 2048
    Inode blocks per group: 128
    First inode: 11
    Inode size: 256
    Journal inode: 8
    Journal backup: inode blocks

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More