Can I move an LVM as I can move an ISO
Peter Matulis
peter.matulis at canonical.com
Tue Oct 5 17:41:57 UTC 2010
On 10/05/2010 12:01 PM, Tapas Mishra wrote:
> On Tue, Oct 5, 2010 at 7:31 PM, Serge E. Hallyn
> <serge.hallyn at canonical.com> wrote:
>>
>> There might be a nifty way of copying it as though it were a file, but
>> I think I would do something like
>>
>> dd if=/dev/mapper/myvolume of=- | ssh $remotehost dd of=newfile
> This is a nice trick I had not thought of this.I will try it.
>
You can transfer the volume over the network and end up with another
volume if you create one on $remotehost beforehand of the same size.
Then have netcat listen on some port, say 9000, and pipe it to that new
volume:
$ nc -l 9000 | sudo dd of=/dev/vg/backup
Then on the source:
$ sudo dd if=/dev/mapper/myvolume | nc $remotehost 9000
--
Peter Matulis
More information about the ubuntu-server
mailing list