FedoraForum.org - Fedora Support Forums and Community
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2006
    Location
    Italy
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    how to increase inode number on ext4

    Hi all

    i have a slave disk with some data formatted in ext4 , now i have 95 % of inode used ( and 50% of used space )

    how can increase inode ?

    thanks a lot

  2. #2
    Join Date
    Jan 2005
    Posts
    5,057
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to increase inode number on ext4

    Doesn't seem correct for ext4 to me.

    List output of these commands.

    df h
    df i
    df l
    fdisk -l
    lvs

    Read this -
    http://en.wikipedia.org/wiki/Ext4

    The extent part and the dirindex part.
    But I think the answer is NO because the inode bitmap size it set at file system creation.
    BTRFS will have dynamic inodes in the future.

    The only thing I can think of is that you create a huge number of dir and files and then delete them and do it again?
    Or you have a huge number of dir with 1 or 2 files in each?

    SJ
    Do the Math

  3. #3
    Join Date
    Mar 2006
    Location
    Italy
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to increase inode number on ext4

    hi thanks for the reply

    this is the output: , the problem is /dev/sdb1

    [root@local-server1 ~]# df -i
    Filesystem Inodes IUsed IFree IUse% Mounted on
    /dev/mapper/VolGroup00-LogVol00
    10246368 107081 10139287 2% /
    /dev/mapper/VolGroup00-LogVol02
    21331968 79290 21252678 1% /store
    /dev/sda1 26104 45 26059 1% /boot
    tmpfs 1021047 1 1021046 1% /dev/shm
    /dev/sdb1 54870016 50702454 4167562 93% /store_server

    [root@local-server1 ~]# df -l
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
    39676508 6187404 31441104 17% /
    /dev/mapper/VolGroup00-LogVol02
    82590240 14168704 64158420 19% /store
    /dev/sda1 101086 25527 70340 27% /boot
    tmpfs 4084188 0 4084188 0% /dev/shm
    /dev/sdb1 864144896 317560492 502688400 39% /store_server

    [root@local-server1 ~]# fdisk -l

    Disk /dev/sda: 146.1 GB, 146163105792 bytes
    255 heads, 63 sectors/track, 17769 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 13 104391 83 Linux
    /dev/sda2 14 17769 142625070 8e Linux LVM

    Disk /dev/sdb: 898.9 GB, 898990342144 bytes
    255 heads, 63 sectors/track, 109296 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 109296 877920088+ 83 Linux

    [root@local-server1 ~]# lvs
    LV VG Attr LSize Origin Snap% Move Log Copy% Convert
    LogVol00 VolGroup00 -wi-ao 39.06G
    LogVol01 VolGroup00 -wi-ao 15.62G
    LogVol02 VolGroup00 -wi-ao 81.31G


    yes insite /dev/sdb i have a lot of directory with 3-4 files ,,

    i need to increase the inode , maybe e4fsprogs can help me ? tun4fs ??
    i really need this ..

    thanks a lot

  4. #4
    Join Date
    Jan 2005
    Posts
    5,057
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to increase inode number on ext4

    Only by adding more space to the LV/ext4 f/s but it can never get more full as a percent as it is doing now.

    SJ
    Do the Math

  5. #5
    Join Date
    Mar 2010
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to increase inode number on ext4

    From 'man mkfs.ext4':
    Be warned that it is not possible to expand the number of inodes on a filesystem after it is created, so be careful deciding the correct value for this parameter.
    You have this options:
    - backup your data, recreate file system with increased number of inodes, restore the data
    - reorganize the data on your disk (archive less used data, remove duplicates)

  6. #6
    Join Date
    Mar 2006
    Location
    Italy
    Posts
    264
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: how to increase inode number on ext4

    thank all , maybe i try to backup and after use XFS ...

Similar Threads

  1. ext3_get_inode_block: bad inode number
    By i2ambler in forum Using Fedora
    Replies: 2
    Last Post: 16th December 2009, 05:25 PM
  2. about inode number
    By preone in forum Using Fedora
    Replies: 6
    Last Post: 4th February 2009, 09:02 PM
  3. Replies: 8
    Last Post: 9th August 2008, 11:43 AM
  4. How does one increase the number of retained kernels?
    By torpedo8 in forum Using Fedora
    Replies: 3
    Last Post: 1st May 2008, 05:11 AM
  5. Replies: 4
    Last Post: 9th April 2005, 04:42 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •