* [linux-lvm] pvmove -- not enough free/allocatable physical extends .. but: there had to be enough!
@ 2002-02-26 7:49 "Müßig-Trapp, Peter"
2002-02-26 10:56 ` Andreas Dilger
0 siblings, 1 reply; 2+ messages in thread
From: "Müßig-Trapp, Peter" @ 2002-02-26 7:49 UTC (permalink / raw)
To: linux-lvm
Hi,
perhaps I have a misunderstanding in concept, therefore I am
glad for each assistance:
My plan is, to remove a partition (/dev/hda4) from lv and use
it seperatly (mount it on /usr).
I tried pvmove and get errors:
root@icezentral:/home/muessig > pvmove /dev/hda4 /dev/hdb1
pvmove -- moving physical extents in active volume group "daten"
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
Than I used pvscan to check pv and see, there are no extends
allocatable (on each partition 0 free). How is that possible?
df tells me, there enough space available.
root@icezentral:/home/muessig > pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/sda1" of VG "daten" [8.51 GB / 0 free]
pvscan -- ACTIVE PV "/dev/sdb1" of VG "daten" [8.51 GB / 0 free]
pvscan -- ACTIVE PV "/dev/sdc1" of VG "daten" [4.25 GB / 0 free]
pvscan -- ACTIVE PV "/dev/hda4" of VG "daten" [5.05 GB / 0 free]
pvscan -- ACTIVE PV "/dev/hdb1" of VG "daten" [57.27 GB / 0 free]
pvscan -- total: 5 [83.59 GB] / in use: 5 [83.59 GB] / in no VG: 0 [0]
root@icezentral:/home/muessig > df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 2.5G 2.2G 163M 94% /
/dev/hda1 15M 3.3M 11M 23% /boot
/dev/daten/1 84G 22G 61G 27% /daten
shmfs 238M 0 238M 0% /dev/shm
Can anybody explain me, whats going on?
Thanks in advance, Peter
--
root@icezentral:/home/muessig > lvdisplay /dev/daten/1
--- Logical volume ---
LV Name /dev/daten/1
VG Name daten
LV Write Access read/write
LV Status available
LV # 1
# open 1
LV Size 83.58 GB
Current LE 21396
Allocated LE 21396
Allocation next free
Read ahead sectors 120
Block device 58:0
root@icezentral:/home/muessig > pvdisplay /dev/hdb1
--- Physical volume ---
PV Name /dev/hdb1
VG Name daten
PV Size 57.27 GB / NOT usable 4.11 MB [LVM: 178 KB]
PV# 5
PV Status available
Allocatable yes (but full)
Cur LV 1
PE Size (KByte) 4096
Total PE 14660
Free PE 0
Allocated PE 14660
PV UUID Z7AuR8-61ZB-7uze-kq8h-dH3Z-REfN-JRG0dX
--
Peter Müßig-Trapp (muessig@his.de), HIS Hochschul-Informations-System,
Goseriede 9, D 30159 Hannover, Tel.: +49-511-1220-193, Fax: -1220-250
EDV-Gruppe Abteilung II Studierendenforschung / Informationssysteme
http:// www.his.de iceland.his.de hisbus.his.de evanet.his.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-lvm] pvmove -- not enough free/allocatable physical extends .. but: there had to be enough!
2002-02-26 7:49 [linux-lvm] pvmove -- not enough free/allocatable physical extends .. but: there had to be enough! "Müßig-Trapp, Peter"
@ 2002-02-26 10:56 ` Andreas Dilger
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Dilger @ 2002-02-26 10:56 UTC (permalink / raw)
To: Müßig-Trapp, Peter; +Cc: linux-lvm
On Feb 26, 2002 14:50 +0100, Müßig-Trapp, Peter wrote:
> My plan is, to remove a partition (/dev/hda4) from lv and use
> it seperatly (mount it on /usr).
>
> I tried pvmove and get errors:
>
> root@icezentral:/home/muessig > pvmove /dev/hda4 /dev/hdb1
> pvmove -- moving physical extents in active volume group "daten"
> 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
>
> Than I used pvscan to check pv and see, there are no extends
> allocatable (on each partition 0 free). How is that possible?
> df tells me, there enough space available.
>
> root@icezentral:/home/muessig > pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE PV "/dev/sda1" of VG "daten" [8.51 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/sdb1" of VG "daten" [8.51 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/sdc1" of VG "daten" [4.25 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hda4" of VG "daten" [5.05 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdb1" of VG "daten" [57.27 GB / 0 free]
> pvscan -- total: 5 [83.59 GB] / in use: 5 [83.59 GB] / in no VG: 0 [0]
This is correct, you have no PEs free on hdb1.
> root@icezentral:/home/muessig > df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/hda3 2.5G 2.2G 163M 94% /
> /dev/hda1 15M 3.3M 11M 23% /boot
> /dev/daten/1 84G 22G 61G 27% /daten
The 'df' command is telling you how much free space is in the filesystem.
Obviously you have a lot of free space in the _filesystem_ because you have
allocated all of your PEs to it.
What you need to do is reduce the size of your /daten filesystem (it needs
to be unmounted to do this) and also reduce the size of the daten/1 LV by
at least 5.1 GB. If you have ext2/ext3 filesystems on daten/1 I would
recommend using e2fsadm to do this.
Once you have done this, then the pvmove should work. Note that depending
on where the PEs from the end of the daten/1 LV are, you may have to
just use "pvmove /dev/hda4" so that it moves the PEs from hda4 to the first
available free PE.
Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-02-26 10:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26 7:49 [linux-lvm] pvmove -- not enough free/allocatable physical extends .. but: there had to be enough! "Müßig-Trapp, Peter"
2002-02-26 10:56 ` Andreas Dilger
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).