1833696 Members
3429 Online
110062 Solutions
New Discussion

pvmove

 
STEFFEN_1
Occasional Contributor

pvmove

I'm currently increasing /opt. This logical volume was mirrored. I first removed the mirroring, extended the lvol and file system then i tried to mirror again.
This was impossible because i did not precise on which PV i wanted to increase the lvol, so now /opt's extents are splitted on the two disks of vg00.
In order to mirror the lvol i want to make a pvmove to bring back the extents located on the mirror disk to the primary disk.

The question is : Is it possible to move only some extents of a lvol from one disk to another ?

Thanks.
Beginner
3 REPLIES 3
Victor BERRIDGE
Honored Contributor

Re: pvmove

You should be able to move the data of a lvol localized on one disk to another:
pvmove -n /dev/vg01/titi /dev/dsk/c1t0d0 /dev/dsk/c0t0d0

Good luck

Cheers
Victor
James R. Ferguson
Acclaimed Contributor

Re: pvmove

Steffen:

Yes, see 'man pvmove':

e.g. move only the physical extents in logical volume /dev/vg01/lvol2 that are on /dev/dsk/c1t0d0 to /dev/dsk/c2t0d0:

# pvmove -n /dev/vg01/lvol2 /dev/dsk/c1t0d0 /dev/dsk/c2t0d0

...JRF...
Alan Riggs
Honored Contributor

Re: pvmove

Victor has it nailed, just make sure to specify your disks in the right order.

pvmove -n