Re: bash script: move large LV to another machine

Ed Heron <[email protected]> Wed, 14 Sep 2011 10:47:41 -0600
Newsgroups gmane.org.user-groups.nmlug
Message-ID <[email protected]>
On Wed, 2011-09-14 at 10:26 -0600, Geoff Chesshire wrote:
> Hi Ed,
> 
> > I've copied part of a large (100G) logical volume from one virtual  
> > machine server to another, but it broke.  I'm looking for a way to  
> > verify it copied and complete the copy in a way that would survive  
> > another interruption.  rsync is cool, but doesn't work on devices.
> 
> What I sometimes do is attach the disk image of the broken virtual machine  
> as a second drive of another (working) VM.  Then you can run rsync or  
> whatever you like.  Also, you can attach a block device directly to a  
> virtual machine as a disk image, if you're willing to run kvm as root.
> 
> Geoff

  Thanks.  I've done the same when both virtual disks are on the same
server.  In this case, my servers are in different physical locations.

  My virtual disk is for a windows machine.

  I'm really trying to do a device sync to a remote location.  DRBD
isn't reliable unless you pay their license & support fees for their
commercial buffering solution.  They want about 18K per year for my 8
locations.

  If I can sync the device changes, I could snapshot the windows
machines and sync it over.

  Ideally, I'd get that device copy patch for rsync working, but I'm
having difficulty with it.


_______________________________________________
NMLUG mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug