Hi all,
I have an lxc container with two volumes:
I need to export the volume on mp0 to move my machine to another pve. As i cannot backup it (too large) i want to export it and reimport it via qm import. I tried to export the zfs volume to a .qcow2 file following this post. Unfortunately the disks are not shown in
So how can I export the volume? Can you also give me the trick how to pipe
This will help me a lot!
I have an lxc container with two volumes:
Code:
arch: amd64
cores: 10
features: nesting=1
hostname: foo
memory: 4096
mp0: local-zfs:subvol-112-disk-1,mp=/media/foo,backup=0,size=2000G
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=<mac>,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: local-zfs:subvol-112-disk-0,size=20G
startup: order=3
swap: 512
unprivileged: 1
I need to export the volume on mp0 to move my machine to another pve. As i cannot backup it (too large) i want to export it and reimport it via qm import. I tried to export the zfs volume to a .qcow2 file following this post. Unfortunately the disks are not shown in
/dev/zvol/rpool/data/
(but many others). I guess it's because they're named differently as "subvol" in zfs. Here is a (shortened) zfs list
:
Code:
root@pve:/etc/pve# zfs list
NAME USED AVAIL REFER MOUNTPOINT
rpool 5.16T 5.24T 151K /rpool
rpool/ROOT 3.23T 5.24T 140K /rpool/ROOT
rpool/ROOT/pve-1 3.23T 5.24T 3.23T /
rpool/data 1.93T 5.24T 209K /rpool/data
rpool/data/subvol-112-disk-0 1.75G 18.3G 1.75G /rpool/data/subvol-112-disk-0
rpool/data/subvol-112-disk-1 401G 1.56T 401G /rpool/data/subvol-112-disk-1
rpool/data/vm-100-disk-0 2.13G 5.24T 2.13G -
So how can I export the volume? Can you also give me the trick how to pipe
dd
(if done with dd) into qemu-img
and this into scp
to send it directly to the new pve?This will help me a lot!