linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Stuart D. Gathman" <stuart@bmsi.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] PFree is 0 on a drive with nothing on it
Date: Thu, 5 Nov 2009 14:24:01 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0911051412100.13658@bmsred.bmsi.com> (raw)
In-Reply-To: <896EDE05-E939-4C70-9513-5805DB864BD4@gmail.com>

On Thu, 5 Nov 2009, Adam Mooz wrote:

> That is correct.  All drives are part of 'fileshare/lv_fileshare', which only
> has 400GB of data on it at the moment; which I can see reflected in the PFREE
> columns of the PVS output.  Is there an easy way to force the LVM to rescan
> it's allocation unit or would I have to remove the drives and re-insert them
> into the LVM?

It doesn't matter how much space is free in whatever filesystem you 
made on top of lv_fileshare.  The LVM extents are allocated to that 
LV.  LVM doesn't care what you do with the LV after that.  It certainly
doesn't know about all the dozens of different kinds of filesystems you 
might put on the LV.

You could shrink the filesystem, then lvreduce the LV and allocate the
LVM extents to something else.  With most filesystems, you have to
unmount before shrinking - but a few support online shrinking.  (Many more
support online growing.)  You didn't mention what filesystem.

LVM is a block device layer that abstracts block devices so that filesystems
and stuff above the LVM layer don't care about physical drive allocation.

Many of us like this abstraction.  I don't *want* LVM to know anything
about filesystems.  I even have my own database filesystem that can run
on top of an LV.  LVM *should* support things like mirroring
and ordering of block writes to multiple physical devices - but it should never
care about specific filesystems.

If you want an integrated LVM/filesystem, then you should look
at OpenSolaris and ZFS.  There are some advantages to this approach,
but it does mean that you have only one filesystem choice.

-- 
	      Stuart D. Gathman <stuart@bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.

  parent reply	other threads:[~2009-11-05 19:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-05  7:57 [linux-lvm] PFree is 0 on a drive with nothing on it Adam Mooz
2009-11-05 15:10 ` Ray Morris
2009-11-05 15:36   ` Adam Mooz
2009-11-05 15:55     ` Ray Morris
2009-11-05 18:57       ` Adam Mooz
2009-11-05 19:16         ` Ray Morris
2009-11-05 20:49           ` Adam Mooz
2009-11-05 19:24         ` Stuart D. Gathman [this message]
2009-11-05 19:52           ` malahal
2009-11-05 20:32             ` Stuart D. Gathman
2009-11-05 20:35         ` Stuart D. Gathman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0911051412100.13658@bmsred.bmsi.com \
    --to=stuart@bmsi.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).