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
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
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
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
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
From 'man mkfs.ext4':You have this options: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.
- 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)
thank all , maybe i try to backup and after use XFS ...