[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: moving lv from local VG to a remote VG



On Fri, Oct 30, 2009 at 6:01 AM, Israel Garcia <igalvarez@gmail.com> wrote:
> Sorry if it's OT, but we have a debian lenny with a big VG1 a some LVs
> inside and want to move all LV's  from VG1 to another VG2 located in
> other server. Is it possible?

- Create LV in VG2 with the same size from LVs in VG1
- cat /dev/VG1/lv1 | ssh server2 "cat > /dev/VG2/lv1"

If you want to know thoughput use pv and not cat

Of course you can script it to do it in a for bucle ... with awk help :) ...

Regards,


Reply to: