Operating System - HP-UX
1755040 Members
3305 Online
108828 Solutions
New Discussion

Error during pvmove operation on HP-UX B.11.23

 
luissma
Advisor

Error during pvmove operation on HP-UX B.11.23

Hi all,

I'm trying to reallocate last PE from this LV:


# lvdisplay -v /dev/vgdata/lvdbdata | head -30
--- Logical volumes ---
LV Name                     /dev/vgdata/lvdbdata
VG Name                     /dev/vgdata
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            38000
Current LE                  9500
Allocated PE                9500
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

   --- Distribution of logical volume ---
   PV Name                 LE on PV  PE on PV
   /dev/dsk/c11t0d0        4325      4325
   /dev/dsk/c11t0d2        5175      5175

   --- Logical extents ---
   LE    PV1                     PE1   Status 1
   00000 /dev/dsk/c11t0d0        02048 current
   00001 /dev/dsk/c11t0d0        02049 current
   00002 /dev/dsk/c11t0d0        02050 current
   00003 /dev/dsk/c11t0d0        02051 current
   00004 /dev/dsk/c11t0d0        02052 current
   00005 /dev/dsk/c11t0d0        02053 current


# lvdisplay -v /dev/vgdata/lvdbdata | tail -5
   09496 /dev/dsk/c11t0d2        05427 current
   09497 /dev/dsk/c11t0d2        05428 current
   09498 /dev/dsk/c11t0d2        05429 current
   09499 /dev/dsk/c11t0d2        05430 current       <--------------------




From /dev/dsk/c11t0d2 to /dev/dsk/c11t0d0.


Here are the disks:

# pvdisplay /dev/dsk/c11t0d0
--- Physical volumes ---
PV Name                     /dev/dsk/c11t0d0
PV Name                     /dev/dsk/c10t0d0    Alternate Link
PV Name                     /dev/dsk/c14t0d0    Alternate Link
PV Name                     /dev/dsk/c15t0d0    Alternate Link
VG Name                     /dev/vgdata
PV Status                   available
Allocatable                 yes
VGDA                        2
Cur LV                      8
PE Size (Mbytes)            4
Total PE                    8677
Free PE                     256            <------------------ There are Free PE on destination
Allocated PE                8421
Stale PE                    0
IO Timeout                  default
Autoswitch                  On
Proactive Polling           On



# pvdisplay -v /dev/dsk/c11t0d2 | head -30
--- Physical volumes ---
PV Name                     /dev/dsk/c11t0d2
PV Name                     /dev/dsk/c10t0d2    Alternate Link
PV Name                     /dev/dsk/c14t0d2    Alternate Link
PV Name                     /dev/dsk/c15t0d2    Alternate Link
VG Name                     /dev/vgdata
PV Status                   available
Allocatable                 yes
VGDA                        2
Cur LV                      1
PE Size (Mbytes)            4
Total PE                    8677
Free PE                     3502
Allocated PE                5175
Stale PE                    0
IO Timeout                  default
Autoswitch                  On
Proactive Polling           On

   --- Distribution of physical volume ---
   LV Name                 LE of LV  PE for LV
   /dev/vgdata/lvdbdata    5175      5175

   --- Physical extents ---
   PE    Status   LV                      LE
   00000 current  /dev/vgdata/lvdbdata    04325
   00001 current  /dev/vgdata/lvdbdata    04326
   00002 current  /dev/vgdata/lvdbdata    04327
   00003 current  /dev/vgdata/lvdbdata    04328
   00004 current  /dev/vgdata/lvdbdata    04329



# pvdisplay -v /dev/dsk/c11t0d2 | grep /dev/vgdata/lvdbdata | tail -5
   05426 current  /dev/vgdata/lvdbdata    09495
   05427 current  /dev/vgdata/lvdbdata    09496
   05428 current  /dev/vgdata/lvdbdata    09497
   05429 current  /dev/vgdata/lvdbdata    09498
   05430 current  /dev/vgdata/lvdbdata    09499              <---------- PE to be reallocated



But I'm getting following error:

# pvmove /dev/dsk/c11t0d2:05430 /dev/dsk/c11t0d0
Incorrect format of Physical Extent.
Usage: pvmove
        [-A Autobackup]
        [-n LogicalVolumeName]
        SourcePhysicalVolumePath [ DestinationPhysicalVolumePath... | DestinationPhysicalVolumeGroupName... ]
        or
        pvmove [-A Autobackup] SourcePhysicalVolumePath[:0] [ DestinationPhysicalVolumePath... | DestinationPhysicalVolumeGroupName... ]



I've tried in different ways but I'm not able to do this operation.

Thanks in advance for your help!

luissma

4 REPLIES 4
Torsten.
Acclaimed Contributor

Re: Error during pvmove operation on HP-UX B.11.23

From the manual of LVM in 11.31:

pvmove Command Syntax

Beginning with the September 2008 Update, pvmove provides these options:
-p Provides a preview of the move but does not actually perform the move.

-e no_of_extents Moves the last number of physical extents, specified by
no_of_extents.

de Specifies the starting location of the destination physical extents within
a destination physical volume.

se1 [-se2] Defines the source physical extent range, provided along with source
physical volume.

Beginning with the September 2009 Update, pvmove additionally provides these options:
-a Moves data to achieve auto-rebalance of disk space usage within a volume
group. Supported for Version 2.x volume groups only. See “Moving Data for
Disk Space Balancing: Auto Re-balancing” (page 75).

-f pv_path Moves data from the specified physical path, pv_path, to remaining physical
volumes to achieve balance. Supported only with the -a option.

-s Provides a summary preview report of the data move, but does not actually move
data. Used only with the -aand -poptions for a preview of data auto-rebalance.

See the pvmove(1M) manpage for details on all its options.



Your version of pvmove either don't understand this command you gave or you just gave the wrong value.

I would try

/dev/dsk/c11t0d2:5430 instead of /dev/dsk/c11t0d2:05430


Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
luissma
Advisor

Re: Error during pvmove operation on HP-UX B.11.23

Of course I tried without the zero and it doesn't work neither.

 

Thanks!

Torsten.
Acclaimed Contributor

Re: Error during pvmove operation on HP-UX B.11.23

May I ask for what reason you want to move this extend?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
luissma
Advisor

Re: Error during pvmove operation on HP-UX B.11.23

Yes you may...

 

Is not about moving one extent but a lot of them (to be exact the 256 that would fit into destination disk) to reorganise one volume that was created in a wrong way (for mirroring reasons).

 

I'd like to verify that it works ok on one extent before trying to move them all.

 

(I have also tried to pvmove a range and it doesn't work neither)