Re: Moving partitions from one disk to another



On Wed, Nov 28, 2007 at 02:09:05PM -0800, Robert Miller wrote:
Folks,

We have an "admin" here that decided to try to create a mirrored copy of
an LV from directions I had sent out earlier using mklvcopy.
Unfortunately, they flubbed the command, and apparently then extended
the LV onto the other hdisk.

So, we have lv20 sitting on hdisk2 and hdisk3, and I'd like to move the
partitions sitting on hdisk3 to hdisk2 so I can properly mirror it. I'm
hoping this doesn't mean removing the filesystem and recreating it, but
I have a suspicion it does...

No, it doesn't..

Use migratepv:

Usage: migratepv [-i] [-l LVname] SourcePV DestinationPV...

migratepv -l lv20 hdisk3 hdisk2

cheers,

bob