linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] pvmove errors
@ 2006-01-31  7:17 Tom Lanyon
  2006-01-31  8:10 ` Zac Slade
  0 siblings, 1 reply; 10+ messages in thread
From: Tom Lanyon @ 2006-01-31  7:17 UTC (permalink / raw)
  To: linux-lvm

Hi List,

I need to move all the data off of my external scsi array and remove it
from my volume group.
The external array is /dev/cciss/c1d0p0, so I issued a pvmove with the
following results:

>/sbin/sh-2.05b# pvmove --version
>pvmove: Logical Volume Manager 1.0.8-2
>Heinz Mauelshagen, Red Hat  26/05/2004 (IOP 10)
>
>/sbin/sh-2.05b# pvscan
>pvscan -- reading all physical volumes (this may take a while...)
>pvscan -- ACTIVE    PV  "/dev/cciss/c1d0p1" of VG "Volume0" [99.99 GB / 99.99 GB Free]
>pvscan -- ACTIVE    PV  "/dev/cciss/c0d0p2" of VG "Volume0" [136.61 GB / 68.89 GB Free]
>pvscan -- total: 2 [236.62 GB] / in use: 2 [236.62 GB] / in  no VG: 0 [0]
>
>/sbin/sh-2.05b# pvmove /dev/cciss/c1d0p1
>pvmove -- moving physical extents in active volume group "Volume0"
>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
>/dev/Volume0/group::/dev/Volume0/root: 6901 8704, 6802 8832
>pvmove -- ERROR "Invalid argument" copying extent from "/dev/cciss/c1d0p1"
>pvmove -- ERROR "Invalid argument" remapping
>pvmove -- ERROR "pv_move(): LE of LV remap" moving physical extents
>
I've tried a --force but that didn't help.

Any ideas? Need to get this drive out of the VG asap.

Regards,
Tom

-- 
Tom Lanyon
Systems Administrator
NetSpot Pty Ltd
183 Melbourne Street, North Adelaide, 5006
Ph: +618 8361 6800   Fax: +618 8361 6811
Email: tom@netspot.com.au

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [linux-lvm] pvmove errors
@ 2003-04-23 19:49 Carey Jung
  2003-04-25  4:41 ` Heinz J . Mauelshagen
  0 siblings, 1 reply; 10+ messages in thread
From: Carey Jung @ 2003-04-23 19:49 UTC (permalink / raw)
  To: linux-lvm

Hi,

I'm getting errors from pvmove, similar to a problem reported in December (
http://lists.sistina.com/pipermail/linux-lvm/2002-December/012973.html),
though I'm not sure if it's exactly the same.  Here's the relevant pvmove
output:

# pvmove -v -n /dev/backups2/rje /dev/sdd1 /dev/sda6
...
pvmove -- starting to move linear logical volume "/dev/backups2/rje"
pvmove -- checking for enough free physical extents in "backups2"
pvmove -- /dev/sdd1 [PE 0 [rje [LE 0]] -> /dev/sda6 [PE 2542] [1/6400]
/dev/backups2/group::/dev/backups2/rje: 0831 65920, 0806 166658560
pvmove -- ERROR "Invalid argument" copying extent from "/dev/sdd1"

pvmove -- ERROR "Invalid argument" remapping
pvmove -- ERROR "pv_move(): LE of LV remap" moving physical extents

I believe this is telling me that pvmove is having a problem copying PE 0 on
/dev/sdd1 to PE 2542 on /dev/sda6....  Yet lvdisplay indicates that LE 0 is
already on /dev/sda6, PE 02542 -- if I understand it correctly:

# lvdisplay -v /dev/backups2/rje |head -25
--- Logical volume ---
LV Name                /dev/backups2/rje
VG Name                backups2
LV Write Access        read/write
LV Status              available
LV #                   1
# open                 1
LV Size                200 GB
Current LE             6400
Allocated LE           6400
Allocation             next free
Read ahead sectors     1024
Block device           58:2

   --- Distribution of logical volume on 1 physical volume  ---
   PV Name                  PE on PV     reads      writes
   /dev/sdd1                6400         1849755    26252516

   --- logical volume i/o statistic ---
   1849755 reads  26252516 writes

   --- Logical extents ---
   LE    PV                        PE     reads      writes
   00000 /dev/sda6                 02542  904        527167
   00001 /dev/sda6                 02543  217        36574

pvdisplay confirms that PE 0 on /dev/sdd1 is free, and LE 0 is already on
/dev/sda6, PE 2542:

# pvdisplay -v /dev/sdd1|head -25
--- Physical volume ---
PV Name               /dev/sdd1
VG Name               backups2
PV Size               279.47 GB [586099332 secs] / NOT usable 32.19 MB [LVM:
162 KB]
PV#                   1
PV Status             available
Allocatable           yes
Cur LV                1
PE Size (KByte)       32768
Total PE              8942
Free PE               2568
Allocated PE          6374
PV UUID               joJY49-jRXo-3CYM-rL3Q-qy16-CA6g-0AX9tY

   --- Distribution of physical volume ---
   LV Name                   LE of LV  PE for LV
   /dev/backups2/rje         6400      6374

   --- Physical extents ---
   PE    LV                        LE      Disk sector
   00000 free
   .....
   00025 free
   00026 /dev/backups2/rje         00026   1769856
   00027 /dev/backups2/rje         00027   1835392

# pvdisplay -v /dev/sda6
...
   02542 /dev/backups2/rje         00000   166658560
   02543 /dev/backups2/rje         00001   166724096
   02544 /dev/backups2/rje         00002   166789632
   02545 /dev/backups2/rje         00003   166855168
   02546 /dev/backups2/rje         00004   166920704
...

Am I reading this correctly?  Any ideas what the problem is, or how to fix
it?  I've been moving several LVs from /dev/sdd1 to /dev/sda6; all completed
successfully.  This, the last one, is giving me an error.

Thanks in advance for any help....!

Carey Jung

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-02-02  2:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-31  7:17 [linux-lvm] pvmove errors Tom Lanyon
2006-01-31  8:10 ` Zac Slade
2006-01-31 23:26   ` Tom Lanyon
2006-02-01  4:03     ` Zac Slade
  -- strict thread matches above, loose matches on Subject: below --
2003-04-23 19:49 Carey Jung
2003-04-25  4:41 ` Heinz J . Mauelshagen
2003-04-25  8:14   ` Carey Jung
2003-04-25 10:03     ` Heinz J . Mauelshagen
2003-04-25 10:46       ` Carey Jung
2003-04-28  3:58         ` Heinz J . Mauelshagen

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).