[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Moving logical volumes from one disk to another



Ed Wilts wrote:

I should know this, but I need to know what steps I need to do to move a
logical volume group from one disk to another. The newer disk is bigger
(they're actually both Compaq SmartArray raidsets) and I'd like to
extend vg00 to include the full disk space on the target disk. I'll
then be pulling the original disks out of the system (actually, the new
disks will be moving to a new system where they'll be the only disks in
that system). To make matters a little more complex, / is on that disk.
/boot is a separate partition so that's easy.


The source is /dev/ida/c0d0p<1-3> and the target is /dev/ida/c0d1p<1-3>

I would hope that an vgextend to the new physical volume followed by an
vgreduce but I'm not convinced that the used blocks would migrate in the
process.

Is it as easy as dropping to single user mode and doing a dd of the
lvm partition?  An lvm expert I'm not...

It would be nice if the lvm did software mirroring the way it does on
HP-UX...

Thanks,
.../Ed


I usually do it on HP_UX without mirroring with pvmove command;
and i have tested also with redhat taroon;

the limit is you cannot move a logical volume from different volume group;
so under vg01:
pvmove -n /dev/vg01/mylv /dev/ida/c0d0p1 <- source /dev/ida/c0d1p1 <- target
bye
Chris




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]