All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] Inode usage on lvm volumes?
@ 2009-09-06 17:03 Charles Marcus
  2009-09-06 18:13 ` Luca Berra
  2009-09-06 18:46 ` Lars Ellenberg
  0 siblings, 2 replies; 5+ messages in thread
From: Charles Marcus @ 2009-09-06 17:03 UTC (permalink / raw)
  To: LVM general discussion and development

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Inode usage on lvm volumes?
  2009-09-06 17:03 [linux-lvm] Inode usage on lvm volumes? Charles Marcus
@ 2009-09-06 18:13 ` Luca Berra
  2009-09-06 18:38   ` Eugene Vilensky
  2009-09-06 18:46 ` Lars Ellenberg
  1 sibling, 1 reply; 5+ messages in thread
From: Luca Berra @ 2009-09-06 18:13 UTC (permalink / raw)
  To: linux-lvm

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:
>
>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.

-- 
Luca Berra -- bluca@comedia.it
         Communication Media & Services S.r.l.
  /"\
  \ /     ASCII RIBBON CAMPAIGN
   X        AGAINST HTML MAIL
  / \

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Inode usage on lvm volumes?
  2009-09-06 18:13 ` Luca Berra
@ 2009-09-06 18:38   ` Eugene Vilensky
  0 siblings, 0 replies; 5+ messages in thread
From: Eugene Vilensky @ 2009-09-06 18:38 UTC (permalink / raw)
  To: LVM general discussion and development

> 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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Inode usage on lvm volumes?
  2009-09-06 17:03 [linux-lvm] Inode usage on lvm volumes? Charles Marcus
  2009-09-06 18:13 ` Luca Berra
@ 2009-09-06 18:46 ` Lars Ellenberg
  2009-09-06 18:55   ` Charles Marcus
  1 sibling, 1 reply; 5+ messages in thread
From: Lars Ellenberg @ 2009-09-06 18:46 UTC (permalink / raw)
  To: linux-lvm

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] Inode usage on lvm volumes?
  2009-09-06 18:46 ` Lars Ellenberg
@ 2009-09-06 18:55   ` Charles Marcus
  0 siblings, 0 replies; 5+ messages in thread
From: Charles Marcus @ 2009-09-06 18:55 UTC (permalink / raw)
  To: LVM general discussion and development

On 9/6/2009, Lars Ellenberg (lars.ellenberg@linbit.com) wrote:
> 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...

> 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... :)

-- 

Best regards,

Charles

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-09-06 18:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-06 17:03 [linux-lvm] Inode usage on lvm volumes? Charles Marcus
2009-09-06 18:13 ` Luca Berra
2009-09-06 18:38   ` Eugene Vilensky
2009-09-06 18:46 ` Lars Ellenberg
2009-09-06 18:55   ` Charles Marcus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.