Visit Our UNIX and Linux User Community

100% Inode full with only 67% FS full.

Thread Tools Search this Thread
Operating Systems AIX 100% Inode full with only 67% FS full.
# 1  
Old 10-06-2016
100% Inode full with only 67% FS full.

AIX Version 6.1 and 7.1.
I understand that when the OS initially creates the FS and inodes, its pretty strict, but not always tuned to a 1:1 ratio. I see the same thing when adding a whole disk LV to a separate device.
It seems that when we expand a filesystem the inodes don't get tuned appropriately. So we end up with a 100% inode table full with a % of FS still available.

I know under some other OS's they have like tunefs or other type of filesystem maintenance to help with the inodes to FS space allocation.

What does AIX provide to do the same. getting kinda tired of seeing a 12gb root (/ fs) full with only 67% fs full and a 100% inode table full. I cannot expand the filesystem any more due lack of free PP's.
# 2  
Old 10-06-2016
If you are using jfs2, additional inodes are supposed to be automatically allocated if needed and there is space available.

Here is IBM's note on it
# 3  
Old 10-06-2016
Smilie I would seriously worry why you think you need a 12Gb root filesystem. Smilie

You should only have files necessary for the OS boot in the root filesystem, ideally with home directories, /usr, /var and /tmp in separate filesystems. Perhaps you should focus on removing non-OS files from the root filesystem.

How do you prepare for disaster recovery? Is your mksysb excluding huge sections of the root filesystem? If so, it would be better to get them into their own filesystems and leave root alone. Have a look in /etc/exclude.rootvg to see what you leave out of a mksysb

# 4  
Old 10-10-2016
Originally Posted by mrmurdock
AIX Version 6.1 and 7.1.
I understand that when the OS initially creates the FS and inodes, its pretty strict, but not always tuned to a 1:1 ratio. I see the same thing when adding a whole disk LV to a separate device.
It seems that when we expand a filesystem the inodes don't get tuned appropriately. So we end up with a 100% inode table full with a % of FS still available.
What you are looking for ist the chfs command, but your question gives the possibility to explain some general concepts. Bear with me if i tell things you already know, it might be of benefit to others.

When a file is stored on disk not only its data get stored, but also "data about the data" or "meta data" for short: the files name, its creation date, ownership and so on. The data itself is stored in what you call a "file", the meta data are stored in a data structure of the filesystem called "Inode".

The main difference between "normal" filesystem space and the inodes is that FS space is a contiguous resource: every file takes out as much as it needs. Inodes are a record-like structure and they are distinct: they can either be occupied or empty, but there is always a limited number of them.

Typically, when a filesystem is created, a certain number of these inodes are created and then used as files get stored in the FS. How many in fact are needed is a matter of educated guesswork on the side of the sysadmin: in most filesystem creation tools some sensible defaults are built in. If you know the FS will hold only a few very large files (like i.e. DB data files) you can reduce the number of inodes, wasting less space for these leaving more FS space to be used for file content. If you know there will be many small files you may need to increase this number, otherwise you might run out on Inodes before you run out of disk space.

In classical filesystems (this is not only true for JFS, but also the filesystems of other Unixes and Linuxes: sfs, zfs, e2fs, ....) the number of Inodes was defined upon creation time of the FS and fixed: typically the FS creation program had some default built in, which created one Inode for every X kb of disk space (the defaults varied but the principle was always the same). This default could be changed by a set of command line switches should the need arise (for special cases like the ones mentioned above).

With the possibility of dynamically growing FSes (historically an FS could only be grown offline, while it was not mounted) the possibility arose that the originally calculated defaults for the ratio of inodes vs. FS space became invalidated. IBM reacted to this with the JFS2 file system: part of its innovations was that the number of inodes will now be dynamically adjusted. You do not need to change that manually any more. padow has pointed that out in post #2 already.

So, if you still have one of the old JFS filesystems: get a downtime, change the JFS to JFS2 and don't be bothered with it any more. JFS2 has several other advantages over JFS, so this will be beneficial in other regards too. This may mean having to reinstall the OS, because all the recent OS versions i know of already use JFS2 for the rootvg FSes.

The notion of Robin is absolutely correct, btw.: if you need 12G in your "/" FS you are doing something seriously wrong. Even yy biggest DB system (like every other system i run) has a "/" FS of 256MB, which is absolutely sufficient! Everything not part of the OS is put into separate FSes and even separate VGs. You do not want to mix up OS and application data.

I hope this helps.


Last edited by bakunin; 10-10-2016 at 06:30 AM..
This User Gave Thanks to bakunin For This Post:
# 5  
Old 01-23-2017
Run a

du -kx / | sort -n

And figure out what on earth you have in root using 12GB. To echo bakunin, that's... not right. Maybe a file system isn't mounted and files have been written into a directory meant to be a file system (mount point), in which case there is probably a permission issue on the underlying mount point's directory (or the 12GB was written by root)
# 6  
Old 01-23-2017
This thread is several months old. I doubt if the OP read any new posts from today.
However useful they might be.

Previous Thread | Next Thread
Test Your Knowledge in Computers #959
Difficulty: Medium
The first virus attack against a Linux machine was by a virus called Stooge,
True or False?

9 More Discussions You Might Find Interesting

1. Solaris

Zpool showing 100% full

Hi, This is Solaris-10 on Sparc. Due to some reason, one zpool size is showing 100% full, while nothing is there in that. dstr03-zone02 is a non global zone running on physical machine - dstr03 root@dstr03:/# df -h | grep -i zone02 zone02_app_pool 60G 31K 3.8G 1% ... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. AIX

Paging space is 100% full

Paging space is 100% full? what step can i take (3 Replies)
Discussion started by: ramraj731
3 Replies

3. Shell Programming and Scripting

How to extract strings from full path when full path is not fixed

/Path/snowbird9/nrfCompMgrRave1230100920.log.gz:09/20/2010 06:14:51 ERROR Error Message. /Path/snowbird6/nrfCompMgrRave1220100920.log.gz:09/20/2010 06:14:51 ERROR Error Message. /Path/snowbird14/nrfCompMgrRave920100920.log.gz:09/20/2010 06:14:51 ERROR Error Message.... (0 Replies)
Discussion started by: Shirisha
0 Replies

4. UNIX for Dummies Questions & Answers

dev/sda1 100% full

Hi! I have a problem with my disk, it is full as you can see # df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 64380356 63125180 0 100% / none 3116000 0 3116000 0% /dev/shm /dev/sdb1 282015652... (10 Replies)
Discussion started by: ruisof
10 Replies

5. Linux

Disk full 100%

one of my servers / was full by 100% i cleard some space, now though i have enough space on / partition still df is showing disk usage as 100% am not able to create any single txt file ? why so ? (3 Replies)
Discussion started by: bryanabhay
3 Replies

6. AIX

/var 100% full

What to do if /var filesystem in Aix is completely full ? (2 Replies)
Discussion started by: kkhan
2 Replies

7. Solaris

when 100% full, it says some available

Just a quick question per my df -k below, I have a file system marked at 100% full, why does it say there is 44,240 kb available ?? Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 2055463 1753694 240106 88% / /proc 0 ... (1 Reply)
Discussion started by: hcclnoodles
1 Replies

8. Solaris

/ directory is 100% full

Dear experts My / directory shows 100% full. What should I do??? What is normal size and how can I prevent it. I am using Solaris 8 on an Ultra 60. Thanks for your advises. Reza (6 Replies)
Discussion started by: Reza Nazarian
6 Replies

9. AIX

%Inode used full

Hello I have used 100% of inode in a file system can you increase thie number of inode without backup-make the file system again-restore ? thank you (0 Replies)
Discussion started by: pascalbout
0 Replies

Featured Tech Videos