Operating System - HP-UX
1834018 Members
2081 Online
110063 Solutions
New Discussion

Increasing inodes in HFS FS

 
suki
Frequent Advisor

Increasing inodes in HFS FS

Hi,
I have a HP-UX 10.20 System with HFS FS. In one of my HFS FS the free inode is only 5% . The FS is using a full 4GB HDD without LVM.I need to increase the No of inodes so as there won't be any problem when creating new files. Please let me know the steps to be perform to increase the HFS FS inodes.
Thanks,
suki
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor

Re: Increasing inodes in HFS FS

There is no magic bullet here. You have to backup, create a new filesystem, and restore. Unlike vxfs which can dynamically increase the number of inodes, hfs is static. If it were me, I would backup and create a vxfs filesystem to replace your existing one. Even on 10.20, in almost everycase, vxfs will outperform hfs.
If it ain't broke, I can fix that.
RAC_1
Honored Contributor

Re: Increasing inodes in HFS FS

You will have to recreate the file system in order to increase the no. of inodes.
and once created, you will have to restore the backup.

check the man page for mkfs_hfs/newfs_hfs

you specify the no. of inodes with -i option.
There is no substitute to HARDWORK
Chakravarthi
Trusted Contributor

Re: Increasing inodes in HFS FS

T G Manikandan
Honored Contributor

Re: Increasing inodes in HFS FS

Armin Feller
Honored Contributor

Re: Increasing inodes in HFS FS

Unfortunately if a filesystem does run out of inodes there are only three
possibilities to rectify the situation:

1. Move or delete files within the filesystem to free up inodes currently in
use.

2. Recreate the filesystem with more inodes. This will require the data to be restored after running newfs(1m) again.

3. Extend the size of the filesystem.

NOTE: Increasing the size of the filesystem will allocate inodes at the same
nbpi rate the filesystem was originally created with. For this reason,
extending the filesystem may be a temporary solution.