[linux-lvm] Inode usage on lvm volumes?
Lars Ellenberg
lars.ellenberg at linbit.com
Sun Sep 6 18:46:14 UTC 2009
On Sun, Sep 06, 2009 at 01:03:33PM -0400, Charles Marcus wrote:
> Hello,
>
> I've googled for an hour now and cannot find an answer to this question...
>
> I'm on gentoo linux, and when I run:
>
> df -i
>
> I get a list of inode usage for everything except my lvm volumes - they
> show zeros all the way across:
>
> /dev/sda3 2501856 11865 2489991 1% /
> udev 257496 4956 252540 2% /dev
> /dev/sda4 8437760 11 8437749 1% /backups
> /dev/mapper/vg2-home 0 0 0 - /home
> /dev/mapper/vg2-usr 0 0 0 - /usr
> /dev/mapper/vg2-var 0 0 0 - /var
>
do a "df -T -i"
and I bet it will show that you are using ext3 for / and /backups,
tmpfs for /dev, and reiserfs for those "zero inode" volumes.
> Is this normal? If so, how do I check inode usage on an lvm volume?
In which case that is normal, yes.
Reiserfs simply puts its inodes anywhere, until there is no more space.
It does not have any notion of "total" inodes, thus there are no
"free" inodes, either. It probably knows the number of used inodes.
But because statfs() does only provide for "total" and "free",
and leaves "used" to be calculated, there is no way to return that info.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the linux-lvm
mailing list