move extents

Go to solution
Regular Advisor

move extents

Hi, I have an lvol that someone setup that spans over two disks.  What they were supposed to do is set it up on one disk and then mirror the lvol to the other disk.    Is there a way to move the extents on the mirrored disk to the root disk?

So all extents on c2t0d0s2 be moved to c2t1d0s2 while all filesystems and applications are online?  Like with no service interruption?


This is an HP-UX 11.23 server


lvdisplay -v /dev/vg00/lvol16


  00541 /dev/dsk/c2t1d0s2       04330 current  
   00542 /dev/dsk/c2t1d0s2       04331 current  
   00543 /dev/dsk/c2t1d0s2       04332 current  
   00544 /dev/dsk/c2t1d0s2       04333 current  
   00545 /dev/dsk/c2t1d0s2       04334 current  
   00546 /dev/dsk/c2t1d0s2       04335 current  
   00547 /dev/dsk/c2t1d0s2       04336 current  
   00548 /dev/dsk/c2t1d0s2       04337 current  
   00549 /dev/dsk/c2t1d0s2       04338 current  
   00550 /dev/dsk/c2t1d0s2       04339 current  
   00551 /dev/dsk/c2t1d0s2       04340 current  
   00552 /dev/dsk/c2t1d0s2       04341 current  
   00553 /dev/dsk/c2t1d0s2       04342 current  
   00554 /dev/dsk/c2t1d0s2       04343 current  
   00555 /dev/dsk/c2t1d0s2       04344 current  
   00556 /dev/dsk/c2t1d0s2       04345 current  
   00557 /dev/dsk/c2t0d0s2       02669 current   <--- the start of the extents on c2t0d0s2
   00558 /dev/dsk/c2t0d0s2       02670 current
   00559 /dev/dsk/c2t0d0s2       02671 current  
   00560 /dev/dsk/c2t0d0s2       02672 current  
   00561 /dev/dsk/c2t0d0s2       02673 current  
   00562 /dev/dsk/c2t0d0s2       02674 current  
   00563 /dev/dsk/c2t0d0s2       02675 current  
   00564 /dev/dsk/c2t0d0s2       02676 current  
   00565 /dev/dsk/c2t0d0s2       02677 current  
   00566 /dev/dsk/c2t0d0s2       02678 current  
   00567 /dev/dsk/c2t0d0s2       02679 current  
   00568 /dev/dsk/c2t0d0s2       02680 current  
   00569 /dev/dsk/c2t0d0s2       02681 current 

Acclaimed Contributor

Re: move extents

Related to ???



Remove the mirror and set up again.


Make sure the second disk is bootable!

Hope this helps!

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!   
Regular Advisor

Re: move extents

There is no you can see from my snippett above, all data is spread over two disks and I want it on one disk and then mirrored to the other.

Patrick Wallek
Honored Contributor

Re: move extents

You can use 'pvmove'.


If you want to move the vg00/lvol6 extents on c2t0d0s2 to c2t1d0s2, do the following:


# pvmove -n /dev/vg00/lvol6 /dev/dsk/c2t0d0s2 /dev/dsk/c2t1d0s2

Regular Advisor

Re: move extents

Thank you Patrick, yes I found the pvmove command and that is what I will use.