Linux LVM users
 help / color / mirror / Atom feed
From: Dax Kelson <dax@gurulabs.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Cleanly removing a PV from an LV or, how do I get more available extents?
Date: Sun, 18 Jul 2004 23:30:38 -0600	[thread overview]
Message-ID: <1090215038.3929.6.camel@mentorng.gurulabs.com> (raw)
In-Reply-To: <40F99EDF.3070005@menalto.com>

On Sat, 2004-07-17 at 15:49, Bharat Mediratta wrote:
> I've been happily using LVM for a couple of months now to aggregate a 
> bunch of disks together into one logical drive for a Debian box that I 
> use as an over-the-network backup of my various other boxen.  Thus far, 
> it's been great.
> 
> Recently however, I started getting parity errors on one of the drives 
> that's in my logical volume.  It's a tiny drive that I threw in there 
> merely because I had it, and its loss will not be missed.  I just want 
> to remove it altogether and pretend like it never existed.  I'd like to 
> preserve the data that's on the drive, if possible, but if not -- I'm ok 
>   with losing it, since that data will come back next time I run my backups.
> 
> I read the FAQ, the HOWTO and scanned the mailing list archives and it 
> appears that I need to do a pvmove to get the data off of that drive, 
> and then a vgreduce to remove it from the volume group.  Unfortunately, 
> when I try to do the pvmove, I get:
> 
> % pvmove /dev/sdb
> No extents available for allocation
> 
> I'm assuming that this means that there's nowhere to move the data that 
> is on /dev/sdb.  I further assume this means that I need some free 
> physical extents somewhere.  This is where I'm confused.  When I set up 
> LVM, I allocated all of my spare drives to it.  So I have a 271GB
> logical volume of which I'm using only 32GB.  So I know that I have free 
> space to move the data around; I just don't know how to do it.

Your logical volume is 100% used by the filesystem. It sounds like the
filesystem isn't full though, but LVM doesn't know that.

You need to shrink your filesystem, then shrink your LV, then use
pvmove.

Dax Kelson
Guru Labs

      reply	other threads:[~2004-07-19  5:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-17 21:49 [linux-lvm] Cleanly removing a PV from an LV or, how do I get more available extents? Bharat Mediratta
2004-07-19  5:30 ` Dax Kelson [this message]

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=1090215038.3929.6.camel@mentorng.gurulabs.com \
    --to=dax@gurulabs.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