error moving last PE away
Hi
# pvmove -v /dev/hda10 /dev/hda8 ... pvmove -- /dev/hda10 [PE 999 [lvol5 [LE 1365]] -> /dev/hda8 [PE 560] [1/1] pvmove -- ERROR reading input physical volume "/dev/hda10" (still 65536 bytes to read) pvmove -- ERROR "pv_move_pe(): read input PV" pv_move_pe pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
I wanted to release this partition from the LVM to use it with another OS. The error once occured in June 2001 but I couldn't find a solution in the archives.
Any ideas? More infos below.
bye,
-christian-
# uname -a Linux app109 2.4.18-pre6 #7 Mit Jan 23 00:32:29 CET 2002 i686 unknown
# pvmove --version pvmove: Logical Volume Manager 1.0.1 Heinz Mauelshagen, Sistina Software 26/11/2001 (IOP 10)
# pvmove -d -v /dev/hda10 /dev/hda9
...
<333> pe_lock_internal -- CALLED for vg0
<4444> vg_check_name -- CALLED with VG: vg0
<55555> lvm_check_chars -- CALLED with name: "vg0" <55555> lvm_check_chars -- LEAVING with ret: 0 <4444> vg_check_name -- LEAVING with ret: 0
<333> pe_lock_internal -- LEAVING with ret: 0
<22> pv_move_pe -- LEAVING with ret: -253
<22> lvm_error -- CALLED with: -253
<22> lvm_error -- LEAVING with: "pv_move_pe(): read input PV" pvmove -- ERROR "pv_move_pe(): read input PV" pv_move_pe
<1> pv_move_pes -- LEAVING with ret: -253
<1> lvm_error -- CALLED with: -253
<1> lvm_error -- LEAVING with: "pv_move_pe(): read input PV" pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
<1> lvm_unlock -- CALLED
<1> lvm_unlock -- LEAVING with ret: 0
# vgdisplay -v --- Volume group --- VG Name vg0 VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 4 Open LV 4 MAX LV Size 255.99 GB Max PV 256 Cur PV 5 Act PV 5 VG Size 19.53 GB PE Size 4.00 MB Total PE 5000 Alloc PE / Size 2610 / 10.20 GB Free PE / Size 2390 / 9.34 GB VG UUID LuuTlh-HESy-ugJF-nxye-TC8f-MAe6-aIvT84
...
--- Physical volumes ---
PV Name (#) /dev/hda6 (1) PV Status available / allocatable Total PE / Free PE 1000 / 0
PV Name (#) /dev/hda7 (2) PV Status available / allocatable Total PE / Free PE 1000 / 1
PV Name (#) /dev/hda8 (3) PV Status available / allocatable Total PE / Free PE 1000 / 440
PV Name (#) /dev/hda9 (4) PV Status available / allocatable Total PE / Free PE 1000 / 950
PV Name (#) /dev/hda10 (5) PV Status available / NOT allocatable Total PE / Free PE 1000 / 999
[linux-lvm] SOLUTION: error moving last PE away
Quoted 7 lines · Christian Hammers
# pvmove -v /dev/hda10 /dev/hda8 ... pvmove -- /dev/hda10 [PE 999 [lvol5 [LE 1365]] -> /dev/hda8 [PE 560] [1/1] pvmove -- ERROR reading input physical volume "/dev/hda10" (still 65536 bytes to read) pvmove -- ERROR "pv_move_pe(): read input PV" pv_move_pe pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents
A friend gave me the hint to enlarge the partition by one block. It helped, after rebooting to let the kernel reload the partition table, pvmove ran successfully.
The partition in question looked like:
$ LC_ALL=C fdisk -l
Disk /dev/hda: 255 heads, 63 sectors, 4867 cylinders Units = cylinders of 16065 * 512 bytes
Device Boot Start End Blocks Id System /dev/hda1 1 8 64228+ 83 Linux /dev/hda2 * 9 518 4096575 b Win95 FAT32 /dev/hda3 519 4867 34933342+ 5 Extended /dev/hda5 519 773 2048256 83 Linux /dev/hda6 774 1283 4096543+ 8e Linux LVM /dev/hda7 1284 1793 4096543+ 8e Linux LVM /dev/hda8 1794 2303 4096543+ 8e Linux LVM /dev/hda9 2304 2813 4096543+ 8e Linux LVM
/dev/hda10 2814 3323 4096543+ 8e Linux LVM NOT WORKING /dev/hda10 2814 3324 4096543+ 8e Linux LVM WORKING
[the rest of the drive was already empty]
bye,
-christian-
Christian,
you are probably suffering from a misalignment bug introduced in the LVM 0.9.1 Beta series :-(
Send "pvdisplay -v /dev/hda10" output to me ([email protected]) to check this.
Regards,
Heinz -- The LVM Guy --
Quoted 93 lines · Christian Hammers
Hi
# pvmove -v /dev/hda10 /dev/hda8 ... pvmove -- /dev/hda10 [PE 999 [lvol5 [LE 1365]] -> /dev/hda8 [PE 560] [1/1] pvmove -- ERROR reading input physical volume "/dev/hda10" (still 65536 bytes to read) pvmove -- ERROR "pv_move_pe(): read input PV" pv_move_pe pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extentsI wanted to release this partition from the LVM to use it with another OS. The error once occured in June 2001 but I couldn't find a solution in the archives.
Any ideas? More infos below.
bye,
-christian-
# uname -a Linux app109 2.4.18-pre6 #7 Mit Jan 23 00:32:29 CET 2002 i686 unknown# pvmove --version pvmove: Logical Volume Manager 1.0.1 Heinz Mauelshagen, Sistina Software 26/11/2001 (IOP 10)# pvmove -d -v
/dev/hda10/dev/hda9
...
<333>pe_lock_internal-- CALLED for vg0
<4444>vg_check_name-- CALLED with VG: vg0
<55555>lvm_check_chars-- CALLED with name: "vg0" <55555>lvm_check_chars-- LEAVING with ret: 0 <4444>vg_check_name-- LEAVING with ret: 0
<333>pe_lock_internal-- LEAVING with ret: 0
<22>pv_move_pe-- LEAVING with ret: -253
<22>lvm_error-- CALLED with: -253
<22>lvm_error-- LEAVING with: "pv_move_pe(): read input PV" pvmove -- ERROR "pv_move_pe(): read input PV"pv_move_pe<1>
pv_move_pes-- LEAVING with ret: -253
<1>lvm_error-- CALLED with: -253
<1>lvm_error-- LEAVING with: "pv_move_pe(): read input PV" pvmove -- ERROR "pv_move_pe(): read input PV" moving physical extents<1>
lvm_unlock-- CALLED
<1>lvm_unlock-- LEAVING with ret: 0# vgdisplay -v --- Volume group --- VG Name vg0 VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 4 Open LV 4 MAX LV Size 255.99 GB Max PV 256 Cur PV 5 Act PV 5 VG Size 19.53 GB PE Size 4.00 MB Total PE 5000 Alloc PE / Size 2610 / 10.20 GB Free PE / Size 2390 / 9.34 GB VG UUID LuuTlh-HESy-ugJF-nxye-TC8f-MAe6-aIvT84...
--- Physical volumes ---
PV Name (#) /dev/hda6 (1) PV Status available / allocatable Total PE / Free PE 1000 / 0PV Name (#) /dev/hda7 (2) PV Status available / allocatable Total PE / Free PE 1000 / 1PV Name (#) /dev/hda8 (3) PV Status available / allocatable Total PE / Free PE 1000 / 440PV Name (#) /dev/hda9 (4) PV Status available / allocatable Total PE / Free PE 1000 / 950PV Name (#) /dev/hda10 (5) PV Status available / NOT allocatable Total PE / Free PE 1000 / 999
Quoted 5 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf Germany
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-