[mdlug] file copy

Carl T. Miller carl at carltm.com
Mon Dec 30 09:40:45 EST 2013


Adam Tauno Williams wrote:
> On Sat, 2013-12-28 at 10:31 -0600, Bob wrote:
>> I need to copy the contents of a hard drive to another, larger, hard
>> drive.
>> What are my options for most efficient/reliable methods?
>
> Attach the drive.
>
> Create a new physical volume ppvcreate] and add it to your volume group
> [vgextend]
>
> Move the logical volumes from the old physical volume to the new
> physical volume [pvmove]
>
> Remove the old physical volume from the volume group [pvremove]
>
> Grow the logical volumes [lvextend]

Adam, I love this answer because it means no downtime (assuming
that the new drive can be hot installed).  However it does
require an existing volume group which may not exist in Bob's
environment.

c




More information about the mdlug mailing list