08-07-2003 07:18 AM
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.
Total PE 4340
Free PE 4163
Allocated PE 177
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
Solved! Go to Solution.
08-07-2003 07:24 AM
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.
08-07-2003 07:25 AM
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
08-07-2003 07:33 AM
# 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)
08-07-2003 07:34 AM
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.