...
코드 블럭 | ||||
---|---|---|---|---|
| ||||
B # dnf install -y pv libnbd B # qemu-img create -f qcow2 disk.qcow2 500G Formatting 'disk.qcow2', fmt=qcow2 size=536870912000 cluster_size=65536 lazy_refcounts=off refcount_bits=16 B # ls -alh disk.qcow2 200K disk.qcow2 B # ssh root@remote "dd if=/dev/sda bs=256M | gzip -1 -" | gzip -d | pv | nbdcopy -- - [ qemu-nbd -f qcow2 --detect-zeroes=on --discard=on disk.qcow2 ] 21.5GiB 21GiB 0:04:33 [36.9MiB/s] 159GiB446GiB 0:2045:3830 [ 212MiB167MiB/s] B # virt-filesystems -l -h -a disk.qcow2 Name Type VFS Label Size Parent /dev/sda2 filesystem ext4 - 1.0G - /dev/ubuntu-vg/ubuntu-lv filesystem ext4 - 200G - |
참고
How to dd a remote disk using SSH on local machine and save to a local disk - https://unix.stackexchange.com/questions/132797
...