When I try to restore a RAW image to a new server with ZFS, I get this error:
This is an old machine which we migrated from a physical (IDE) harddisk some years ago. Problem seems to be the filesize of the RAW image, but how can I solve this? Resizing the image (adding zeros at the end) until it reaches a multiple of the volume block size?
Code:
restore vma archive: lzop -d -c /mnt/pve/pmxnfs/dump/vzdump-qemu-165-2016_08_26-16_55_26.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp176751.fifo - /var/tmp/vzdumptmp176751
CFG: size: 272 name: qemu-server.conf
DEV: dev_id=1 size: 40000000000 devname: drive-ide0
CTIME: Fri Aug 26 16:55:27 2016
TASK ERROR: command 'lzop -d -c /mnt/pve/pmxnfs/dump/vzdump-qemu-165-2016_08_26-16_55_26.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp176751.fifo - /var/tmp/vzdumptmp176751' failed: zfs error: cannot create 'tank/vm-disks/vm-165-disk-1': volume size must be a multiple of volume block size
ls -l /var/lib/vz/images/165/
total 38665648
-rw-r--r-- 1 root root 40000000000 Aug 26 17:47 vm-165-disk-1.raw
cat /etc/pve/qemu-server/165.conf
...
ide0: local:165/vm-165-disk-1.raw,format=raw,size=39062500K
...
This is an old machine which we migrated from a physical (IDE) harddisk some years ago. Problem seems to be the filesize of the RAW image, but how can I solve this? Resizing the image (adding zeros at the end) until it reaches a multiple of the volume block size?