1

Dears, I have a Redhat linux server Red Hat Enterprise Linux Server release 5.5 (Tikanga). It's a production sensitive server. now it ran out of inodes in /storage2 directory. It has many space but it almost finished inodes and I need to increase the number of inodes ASAP. with this link It has the solution but it needed to have backup and after changing the number of inodes in file system restore them. I wonder if there is any online solution so I could increase the inodes without taking backup and restore.

$ df -h 
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol02
                       20G  6.5G   12G  35% /
/dev/mapper/VolGroup00-LogVol04
                       58G  4.4G   51G   8% /home
/dev/mapper/VolGroup00-LogVol01
                      9.7G  211M  9.0G   3% /tmp
/dev/mapper/VolGroup00-LogVol03
                       20G   16G  2.6G  87% /var
/dev/mapper/vg_fvnx_stg2-lv_fvnx_stg2
                      3.0T  2.2T  690G  76% /storage2



$ df -ih 
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol02
                        5.0M    270K    4.8M    6% /
/dev/mapper/VolGroup00-LogVol04
                         15M     310     15M    1% /home
/dev/mapper/VolGroup00-LogVol01
                        2.5M      71    2.5M    1% /tmp
/dev/mapper/VolGroup00-LogVol03
                        5.0M    7.9K    5.0M    1% /var
/dev/mapper/vg_fvnx_stg2-lv_fvnx_stg2
                        192M    191M    1.3M  100% /storage2
2

Answer : no, you can't increased the inodes without taking backup/restore.

man page for mkfs.ext4 (which I assume is the filesystem type in play here) is pretty clear on this:

It is not possible to change this value after the filesystem is created."

You could look into solutions such as creating a /storage2/subdirectoryname filesystem, and effectively place a few thousand files into that new filesystem, thus releasing a pile of inodes from /storage2.

  • I think that solution makes no difference, moving files to a subdirecttory release inodes? I think the inode count is constant in entire filesystem and a subdirectory is not new filesystem – amir jj Oct 15 '16 at 11:54
  • revised wording to make clear that I propose creating a new filesystem, /storage2/subdirectoryname – steve Oct 15 '16 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.