How to view the inode number lvm volumes

I use df-i view the inode number lvm volume to 0, this value is wrong. So what command to view the inode case lvm volumes of it. For example, a total number of inode, inode has spent much more.

Hi andyleigood,

“inodes” is a concept of certain file systems, while LVM is a mechanism for managing physical disk space (creating virtual disk devices called logical volumes).

So there will never be any inodes per LV :wink:

To answer your question, we’d need at least the file system type - please copy&paste the output of your “df” command (both the invocation line and the resulting output) and the output of “mount” (the line describing the file system in question would be fully sufficient).

Regards,
Jens

linux-02:~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 10325748 3753616 6047612 39% /
udev 1030432 140 1030292 1% /dev
/dev/sda3 202225 14894 176889 8% /boot
/dev/mapper/group1-lvm1
819168 62984 756184 8% /tmp
/dev/hdc 3155086 3155086 0 100% /media/SUSE-Linux-Enterprise-Server_001

linux-02:~ # mount
/dev/sda1 on / type ext3 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/sda3 on /boot type ext3 (rw,acl,user_xattr)
/dev/mapper/group1-lvm1 on /tmp type reiserfs (rw,acl,user_xattr,usrquota,grpquota)
securityfs on /sys/kernel/security type securityfs (rw)
none on /proc/fs/vmblock/mountPoint type vmblock (rw)
/dev/hdc on /media/SUSE-Linux-Enterprise-Server_001 type iso9660 (ro,nosuid,nodev,utf8,uid=0)

Hi andyleigood,

from your previous descriptions, I assume that the /tmp file system is the one you were looking at with “df -i” - not only because it’s the only one that is on a LV, but because it is the only one with ReiserFS.

Does this thread https://forums.suse.com/showthread.php?2611-Reiserfs-inode-count-is-0&p=12954#post12954 answer your question? (In short: ReiserFS works differently, there’s no such thing as “free inodes”)

Regards,
Jens

Thank you jmozdzen.