1759612 Members
3521 Online
108885 Solutions
New Discussion юеВ

Re: Need help

 
Reena Dodake
Occasional Contributor

Need help

Hi All,

How can i find
1 File count of the entire system
2 directory count
3 maximum value of i-node count and
Number of bytes for each i-node
on unix platform.

Thanks
Reena
5 REPLIES 5
Pete Randall
Outstanding Contributor

Re: Need help

The first two are easy - use find and wc.

1. find / -type f |wc -l

2. find / -type d |wc -l

If you have NFS mounts, you would need to modify to keep from traversing them (find / 1 -fstype nfs -type f |wc -l).


Pete

Pete
Marvin Strong
Honored Contributor

Re: Need help

well the default inode size for vxfs filesystems is 256 bytes however that can be changed per filesystem. so you would have to look at each filesystem and check. This will also show you the maximum inode count on each filesystem.

man mkfs for more information

example:

#mkfs -F vxfs -m /dev/vg01/lvol4
mkfs -F vxfs -o ninode=unlimited,bsize=8192,version=4,inosize=256,logsize=256,largefiles /dev/vg01/lvol4 4194304
Reena Dodake
Occasional Contributor

Re: Need help

Hi,

I require this information respective to the filesystem(jfs,ufs,ext2,ext3,qfs,gpfs,reiserfs).
I have tried to with mkfs -F vxfs -o,but could not able to find inode.

Thanks,
Reena
rariasn
Honored Contributor

Re: Need help

Hi,

# man inode
# man ncheck

View file /usr/include/sys/ino.h

rgs,

ran
Reena Dodake
Occasional Contributor

Re: Need help

Thanks to all !!!

How can i get the maximum number of files a process can open on windows platform?

Thanks n Regards,
Reena