Operating System - HP-UX
1748072 Members
5636 Online
108758 Solutions
New Discussion юеВ

Re: moving physical extents from one disk to another.

 
SOLVED
Go to solution
someone_4
Honored Contributor

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


5 REPLIES 5
someone_4
Honored Contributor

Re: moving physical extents from one disk to another.

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

Richard
Pete Randall
Outstanding Contributor

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
Andreas Voss
Honored Contributor
Solution

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
twang
Honored Contributor

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)
Massimo Bianchi
Honored Contributor

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