Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Filesystem inode configuration

Status
Not open for further replies.

vkostovic

IS-IT--Management
Jan 16, 2001
34
US
I have server running Solaris 8. My file system (3GB)does not have enough free blocks and I need to change my block-inode ratio.
Filesystem iused ifree %iused Mounted on
/dev/md/dsk/d1 388608 0 100% /a

What is the best way to do it.

Thanks a lot.
 
i would say, your disk is not correctly partitioned.
as root enter
-> format
select the disk entering his id
-> partition
-> print
and analyse the output
(to quit format, enter 'q' by every step)
 
Hi jamisar
Disk is partitioned OK. If I move or delete some files on the filesystem I will free up some inodes. What I need to do is to recreate filesystem and increase the density of inodes in the file system.
I found some contradictory information about the inode value. Default should be 2048b but some information indicates that inode value depends on the filesystem size(larger filesystem - larger inode value).
All that I need to know is the inode value for 3GB filesystem and than I can use
&quot;newfs -i nbpi=<inode-value>&quot;
command to recreate my filesystem and increase the density of inodes in the file system.


Thanks,
 
if i correctly understand 'man mkfs_ufs': nbpi=1024 will doubles the number of inodes
on the fs, because 3gigs divided by 1024 == 2*(3gigs / 2048)
why do you need this ? have you a big big big amount of small files ?
 
You are correct. Oracle, Documentum and IPlanet applications are installed on the same filesystem.
Application support admin unintentionally made mistake and now is to late for application reconfigurations because
this is a production server.

Thanks for replay.
 
The formula to use is the following, for calculating the right value for #nbpi when you know how many inodes you want/need.

(512 X #blocks)
---------------
nbpi

If you want/need 30000 inodes on a 2GB filesystem (4,194,304 blocks X 512)/30000 = 71583), use would use newfs -i 71583.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top