[mdlug] file copy
Bob
bob at starlinephoto.com
Mon Dec 30 10:48:43 EST 2013
The big question is, can I create a vol, add the 2tb drive to it WITH
OUT losing any data, add the new 4tb drive and then move the vol 2tb > 4tb?
Bob
On 12/30/2013 09:38 AM, Adam Tauno Williams wrote:
> On Mon, 2013-12-30 at 10:35 -0500, Adam Tauno Williams wrote:
>> On Mon, 2013-12-30 at 09:40 -0500, Carl T. Miller wrote:
>>> 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).
>> And it preserves all meta-data, permissions, etc... which an rsync will
>> *not* unless you are very careful.
>>> However it does
>>> require an existing volume group which may not exist in Bob's
>>> environment.
>> Hey, this is **2013**. If you are not using volume management -
>> reinstall now using volume management.
>
> One of the most awesome things - replace a computer... move the volumes
> from the old drive to the drive in the new computer... easy.
>
> pvmove /home to a USB attached drive. move the USB cable, pvadd and
> them move the volumes from the USB drive to the internal storage. No
> farting around; fast and *complete*.
>
> Or do this to virtual disks between VMs!
>
More information about the mdlug
mailing list