Inode usage on lvm volumes?
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
Is this normal? If so, how do I check inode usage on an lvm volume?
Thanks,
Charles
Quoted 8 lines · Charles Marcus
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
Quoted 9 lines
I get a list of inode usage for everything except my lvm volumes - they show zeros all the way across:
Is this normal? If so, how do I check inode usage on an lvm volume?
Thanks,
Charles
weird, df -i works on all of my boxes. (redhats and mandriva)
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Quoted 1 line
weird, df -i works on all of my boxes. (redhats and mandriva)
I'll second that. Rhel 3/4/5 and CentOS are just fine with df -i.
Quoted 11 lines · Charles Marcus
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:
Quoted 7 lines
/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.
Quoted 1 line
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.
Signature · 5 lines
: 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.
Quoted 3 lines · Lars Ellenberg
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.
Ahh... yep, and especially yep (reiserfs for the zero inode volumes)...
<whew> was a little concerned that this might be indicating a serious problem...
Quoted 5 lines
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.
Many thanks for the explanation... :)
Signature · 3 lines
Best regards, Charles