linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Matthias Meyer <Matthias.Meyer@gmx.li>
To: linux-lvm@redhat.com
Subject: [linux-lvm] can't reduce my lvm
Date: Sat, 19 Nov 2005 21:42:14 +0100	[thread overview]
Message-ID: <200511192142.14779.Matthias.Meyer@gmx.li> (raw)

Hello,

I've just created a VG called LVM, the PV /dev/hdc1..3 and a LV (called 
Media) containing all three PVs. It have 233 GB free space. Than I copy 198 
GB of data from another device to it.

After this I want to extend my LV. Therefore I add the PVs /dev/hdd1 
and /dev/hdd2 to the VG.
All this will be done with webmin.

vdr:~# vgdisplay LVM
--- Volume group ---
VG Name               LVM
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                1
Open LV               0
MAX LV Size           2 TB
Max PV                256
Cur PV                5
Act PV                5
VG Size               418.97 GB
PE Size               32 MB
Total PE              13407
Alloc PE / Size       13407 / 418.97 GB
Free  PE / Size       0 / 0
VG UUID               4lE9xF-g9JE-o98E-y3H6-IqsS-0fbT-SDhR1x

Than I try to resize my LV.
lvextend -L+5959 /dev/LVM/Media /dev/hdd1 /dev/hdd2
e2fsadm -l 13407 /dev/LVM/Media
e2fsadm -- size of "/dev/LVM/Media" would not change

The reason is that my LV can't grow about 256 GB because my physical extend 
is 32MB ?

Ok. I like to remove the two PV /dev/hdd1 and /dev/hdd2 from the VG.
vdr:~# pvmove /dev/hdd2
pvmove -- moving physical extents in active volume group "LVM"
pvmove -- WARNING: if you lose power during the move you may need
        to restore your LVM metadata from backup!
pvmove -- do you want to continue? [y/n] y
pvmove -- not enough free/allocatable physical extents

Whats That !?
I can't use /dev/hdd in the LV and I can't remove it from it?

Please help me!
Matthias
-- 
Don't Panic

             reply	other threads:[~2005-11-19 20:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-19 20:42 Matthias Meyer [this message]
2005-11-19 20:54 ` [linux-lvm] can t reduce my lvm Matthias Meyer

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=200511192142.14779.Matthias.Meyer@gmx.li \
    --to=matthias.meyer@gmx.li \
    --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).