Alternative to df -i for listing inodes information


 
Thread Tools Search this Thread
Operating Systems Solaris Alternative to df -i for listing inodes information
# 1  
Old 03-15-2012
Alternative to df -i for listing inodes information

Hi all,

I have a combination of Linux and Solaris servers and df -i on Linux works but not on Solaris.

Solaris OS info as below:

Code:
server01(oper01)[]/home/oper01$: df -k /db/devdb01
Filesystem            kbytes    used   avail capacity  Mounted on
/vx_mnt/db/devdb01     943018112 890853384 51918376    95%    /vx_mnt/db/devdb01
server01(oper01)[]/home/oper01$: df -i /db/devdb01
df: unknown option: i
Usage: df [-F FSType] [-abeghklntVvZ] [-o FSType-specific_options] [directory | block_device | resource]
server01(oper01)[]/home/oper01$: cat /etc/release
                      Solaris 10 10/08 s10s_u6wos_07b SPARC
           Copyright 2008 Sun Microsystems, Inc.  All Rights Reserved.
                        Use is subject to license terms.
                            Assembled 27 October 2008
server01(oper01)[]/home/oper01$:

Is there another command that I can use to list inode information. Am basically wanting to check inode information in a volume/filesystem or a directory, how many is there, free, used etc.

Any advise much appreciated. Thanks in advance.
# 2  
Old 03-15-2012
solaris:

Code:
df -o i [ path ]

# 3  
Old 03-20-2012
Code:
df -o i

works only for UFS type file systems in Solaris.

try
Code:
/usr/ucb/df -i

for dislpaying inode info of all UFS file systems in the host.


By the way, we can list the inode info of all types of file systems (including tmpfs) in Linux but only those of UFS in Solaris. Why so?


--> In Solaris:

Code:
 
#df -o i
df: operation not applicable for FSType ctfs
df: operation not applicable for FSType devfs
df: operation not applicable for FSType fd
df: operation not applicable for FSType hsfs
df: operation not applicable for FSType lofs
df: operation not applicable for FSType mntfs
df: operation not applicable for FSType nfs
df: operation not applicable for FSType objfs
df: operation not applicable for FSType proc
df: operation not applicable for FSType sharefs
df: operation not applicable for FSType tmpfs
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t0d0s0      781232 5287376    13%   /


--> In Linux:

Code:
 
# df -iT
Filesystem    Type    Inodes   IUsed   IFree IUse% Mounted on
/dev/mapper/VolGroup00-LogVol00
              ext3   2340864  179861 2161003    8% /
/dev/sda1     ext3     26104      45   26059    1% /boot
tmpfs        tmpfs    129388       1  129387    1% /dev/shm


Last edited by satish51392111; 03-20-2012 at 08:44 AM.. Reason: Illustration
# 4  
Old 03-20-2012
I suspect it is because they are psuedo file systems.
# 5  
Old 03-20-2012
Code:
/usr/bin/df -o i -F ufs

or install the GNU df
# 6  
Old 03-21-2012
Quote:
Originally Posted by fpmurphy
I suspect it is because they are psuedo file systems.
Of course they are! UFS is disk based while tmpfs,procfs,etc., are Psuedo file systems.

My doubt is while Linux can display inode usage of both types of file systems, why can't Soalris? I don't know if this question is vague.
# 7  
Old 03-21-2012
Solaris can display inode usage values on tmpfs. You can get them by using the -g option:
Code:
$ df -g /tmp
/tmp               (swap              ):         4096 block size          4096 frag size
 5522968 total blocks    5522896 free blocks  5522896 available         203559 total files
  203348 free files     78643202 filesys id  /tmp
   tmpfs fstype       0x00000004 flag             255 filename length

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[Solved] How to remove listing of current user cmd from ps -ef listing?

Hi All, Could you please help to resolve my following issues: Problem Description: Suppose my user name is "MI90". i.e. $USER = MI90 when i run below command, i get all the processes running on the system containing name MQ. ps -ef | grep MQ But sometimes it lists... (8 Replies)
Discussion started by: KDMishra
8 Replies

2. UNIX for Advanced & Expert Users

Help with Inodes please

How can i trace Inode structure and modify it in UNIX kernel? We want to change the inode structure in the sense that we want to add a new field to the inode data structure. So we want to know how and where to trace inode (7 Replies)
Discussion started by: Group_Inode
7 Replies

3. Solaris

/var: out of inodes

Dear Forum, Please help me i have SUNW,Sun-Fire-V240 with sun solaris 8,if i check inode in /var like below: # df -F ufs -o i Filesystem iused ifree %iused Mounted on /dev/md/dsk/d0 62354 310638 17% / /dev/md/dsk/d3 372992 0 100% /var... (2 Replies)
Discussion started by: fredginting
2 Replies

4. Filesystems, Disks and Memory

inodes

Hi, sorry to have written in other language i think i could do that. I would to know A file system use inodes indexed allocation as a method of allocating space. In the inode blocks are 10 references to direct, 1 indirect reference to a single block, 1 block indirect reference to a reference to... (1 Reply)
Discussion started by: maryprin
1 Replies

5. Linux

Inodes

Any good sites, tutorials that explain Inodes clearly and completely ? (3 Replies)
Discussion started by: nitin09
3 Replies

6. UNIX for Dummies Questions & Answers

inodes

how is the location of inodes in the physical disk. are they sequential like: bootblock|superblock|inode1|inode2| ....| datablock1|datablock2|datablock3 or are they distributed among data blocks like: bootblock|superblock|inode1|datablock1|inode2|datablock2|datablock3|inode3 |datablock4 (3 Replies)
Discussion started by: gfhgfnhhn
3 Replies

7. Solaris

inodes

hi i need to find all the files that r linked to the current file as i need to delete the file as well as few of its links :confused: thnx in advance (1 Reply)
Discussion started by: livemyway
1 Replies

8. Solaris

inodes???

Does anyone know what command I can run to check how many inodes are in use on a specific filesystem. On Data General servers I used to run the df -k command to check the status of the inodes for all file system.s (1 Reply)
Discussion started by: soliberus
1 Replies

9. UNIX for Dummies Questions & Answers

Recursive directory listing without listing files

Does any one know how to get a recursive directory listing in long format (showing owner, group, permission etc) without listing the files contained in the directories. The following command also shows the files but I only want to see the directories. ls -lrtR * (4 Replies)
Discussion started by: psingh
4 Replies

10. Filesystems, Disks and Memory

INodes...

Could someone please explain to me the concept of INodes? Colour me a DOS/MacOS junkie, but I don't quite understand. Is there any relation to clusters, or physical distro.? ty. (3 Replies)
Discussion started by: boris888
3 Replies
Login or Register to Ask a Question