diff --git a/README.md b/README.md index 862fae7..40b4f49 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ it's not aware of that paramter. ## Installation of prerequisites -```apt install git pv gawk +```apt install git pv gawk jq ## Install the Script somewhere, eg to /opt diff --git a/crossover b/crossover index b3e2734..0f0dda7 100755 --- a/crossover +++ b/crossover @@ -387,7 +387,7 @@ function mirror() { if [ -z $basets ]; then log debug "No matching Snapshot found on destination - Full Copy $src_image_pool/$src_image_name$snapshot_name to $dst_image_pool/$dst_image_name" snapts=$(echo $currentlocal | sed -r -e 's/.*@mirror-(.*)/\1/') - snapshotsize=$(rbd du --pretty-format --format json $src_image_pool/$src_image_name|jq '.images[] | select (.snapshot_id == null) | {provisioned_size}.provisioned_size') + snapshotsize=$(rbd du --pretty-format --format json $src_image_pool/$src_image_name|jq '.images[] | select (.snapshot_id == null) | {provisioned_size}.provisioned_size'|tail -1) log debug "snapsize $snapname: $snapshotsize " xmitjob="rbd export --rbd-concurrent-management-ops 8 $src_image_pool/$src_image_name$snapshot_name --no-progress - | pv -s $snapshotsize -F \"VM $vm_id - Full xmit: $PVFORMAT_FULL\" | ssh $opt_destination rbd import --image-format 2 - $dst_image_pool/$dst_image_name" # create initial snapshot on destination diff --git a/eve4pve-barc b/eve4pve-barc new file mode 120000 index 0000000..330a512 --- /dev/null +++ b/eve4pve-barc @@ -0,0 +1 @@ +../cv4pve-barc/eve4pve-barc \ No newline at end of file