# Kopiowanie wolumenów LVM z dd i netcat

DevFeed: [Kopiowanie wolumenów LVM z dd i netcat](<https://devfeed.tech/articles/kopiowanie-wolumenow-lvm-z-dd-i-netcat-27575.md>)

Original publisher: [Read original article](<https://gagor.pro/2013/09/kopiowanie-wolumenow-lvm-z-dd-i-netcat/>)

Author: Tom

Published: 2013-09-02T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [LVM](<https://devfeed.tech/topics/lvm.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [linux](<https://devfeed.tech/tags/linux.md>), [live](<https://devfeed.tech/tags/live.md>), [lvm](<https://devfeed.tech/tags/lvm.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [pv](<https://devfeed.tech/tags/pv.md>), [xen](<https://devfeed.tech/tags/xen.md>)

## AI overview

This tutorial explains how to copy LVM volumes between hypervisors using snapshots, dd, and netcat. It also discusses live transfer, pv for progress monitoring, and optional compression with pigz, with compression settings depending on network throughput.

## Source excerpt

Niedawno chciałem skopiować maszynę wirtualną z jednego hypervisora na innego. Były to 3 wolumeny LVM o rozmiarach od 50 do 100GB. Dawno temu zrobiłem sobie skrypty do backupu - jeden kompresuje wolumeny LVM - a drugi pozwala odtworzyć z dekompresja na drugim serwerze. Tyle że przy tak dużej maszynce będzie to trwało masakrycznie długo - fajnie byłoby móc równocześnie kopiować i odtwarzać (live)... I wtedy przypomniało mi się narzędzie netcat - zrobiłem snapshoty wolumenów i mogłem zaczynać. W najbardziej podstawowej wersji potrzebowałem tylko tyle: