Re: moving physical extents from one disk to another. (33 Views)
Reply
Honored Contributor
someone_4
Posts: 1,563
Registered: ‎05-16-2000
Message 1 of 6 (33 Views)
Accepted Solution

moving physical extents from one disk to another.

Hello,

I have two disks and I want to free one one up.
But some of the pysical extents of the file systems are shared. From /dev/dsk/c1t0d0 to /dev/dsk/c1t2d0.


/dev/dsk/c1t0d0
Total PE 4340
Free PE 4163
Allocated PE 177

/dev/dsk/c1t2d0
Total PE 4340
Free PE 1458
Allocated PE 2882


I just need to confirm that this is what I need to do and that this will work.


pvmove -n /dev/vg00/lvol6 /dev/dsk/c1t0d0 /dev/dsk/c1t2d0


pvmove -n /dev/vg00/lvol11 /dev/dsk/c1t0d0 /dev/dsk/c1t2d0


Thanks
Richard


Please use plain text.
Honored Contributor
someone_4
Posts: 1,563
Registered: ‎05-16-2000
Message 2 of 6 (33 Views)

Re: moving physical extents from one disk to another.

Oh and after this i want to pull /dev/dsk/c1t0d0.

Richard
Please use plain text.
Outstanding Contributor
Pete Randall
Posts: 16,205
Registered: ‎11-03-1996
Message 3 of 6 (33 Views)

Re: moving physical extents from one disk to another.

Richard,

From the pvmove man page:

"Move only the physical extents for logical volume /dev/vg01/lvol2 that
are currently on /dev/dsk/c1t0d0 to /dev/dsk/c2t0d0:

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


That looks to me like exactly what you're trying to do.


Pete


Pete
Please use plain text.
Honored Contributor
Andreas Voss
Posts: 1,364
Registered: ‎10-14-1997
Message 4 of 6 (33 Views)

Re: moving physical extents from one disk to another.

Hi,

as you want to free up total /dev/dsk/c1t0d0
there is no need to specify logvols.
Just pvmove /dev/dsk/c1t0d0 /dev/dsk/c1t2d0 will move all extents over.
Before pulling remember to unconfigure disk with vgreduce vg?? /dev/dsk/c1t0d0

Regards
Please use plain text.
Honored Contributor
twang
Posts: 1,264
Registered: ‎11-15-2000
Message 5 of 6 (33 Views)

Re: moving physical extents from one disk to another.

You should of course make a full backup before attemping this, then
# vgdisplay -v vgxx
# pvmove /dev/dsk/c1t0d0 /dev/dsk/c1t2d0

and to verify the physical data move.
# lvdisplay -v /dev/vgxx/lvolxx (for each logical volume)
Please use plain text.
Honored Contributor
Massimo Bianchi
Posts: 2,472
Registered: ‎01-18-1999
Message 6 of 6 (33 Views)

Re: moving physical extents from one disk to another.

Hi,
your sintax is correct.

But i hate pvmove, it's dangerous. I wuold go with a couple ok backup before doing this.

Of, since you have space, create a new lvol, copy the data on it, remove the first lvol, mirror the orignal lvol to the disk, and finally remove the mirror.

I know to be a little anxious, but once i had a pvmove interrupted by a telnet close, and i lost all data...

Use the "screen" utility at least.

Massimo
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation