qmrestore issues

bread-baker

Member
Mar 6, 2010
432
0
16
1: on 1.9 this works:
Code:
ionice -c 3  qmrestore --unique  --storage  vg8    /data/fbc8-bkup/pvebkp8/vzdump-qemu-8201-2011_11_18-15_51_51.tar   8033

INFO: restore QemuServer backup '/data/fbc8-bkup/pvebkp8/vzdump-qemu-8201-2011_11_18-15_51_51.tar' using ID 8033
INFO: extracting 'qemu-server.conf' from archive
INFO: extracting 'vm-disk-virtio0.raw' from archive
INFO:   Rounding up size to full physical extent 12.00 GB
INFO:   Logical volume "vm-8033-disk-1" created
..

but on 2.0 --unique and --storage do not:
Code:
ionice -c 3  qmrestore --storage pve1 --unique  vzdump-qemu-7022-2011_11_17-16_30_40.tar 10221
400 too many arguments
qmrestore <archive> <vmid> [OPTIONS]

ionice -c 3  qmrestore --storage pve1  vzdump-qemu-7022-2011_11_17-16_30_40.tar 10221
400 too many arguments
qmrestore <archive> <vmid> [OPTIONS]

2- then eliminating the arguments i got: [ note the storage 'replicated-drbd1' does not exists' ]
Code:
ionice -c 3  qmrestore  vzdump-qemu-7022-2011_11_17-16_30_40.tar 10221

extracting archive '/bkup/fbc-bkup/pvebkp2/vzdump-qemu-7022-2011_11_17-16_30_40.tar'
tar: write error
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-virtio0.raw' from archive
storage 'replicated-drbd1' does not exists
tar: vm-disk-virtio0.raw: Cannot write: Broken pipe
tar: 34956: Child returned status 9
tar: Skipping to next header
got strange file size '0'
tar: 34959: Child returned status 255
tar: Skipping to next header
got strange file size '0'
tar: 34961: Child returned status 255
tar: Skipping to next header
tar: Archive contains `h\237S\372\377\0\215\037\332\'\324\376' where numeric off_t value expected
tar: Archive contains `\317_\177\327\251\315\032v' where numeric mode_t value expected
tar: Archive contains `\277\343Y\037\331\247\327\377\0B\377' where numeric time_t value expected
tar: Archive contains `\242>n};{\311\217' where numeric uid_t value expected
tar: Archive contains `\327\365\357\232\0\331\246\177' where numeric gid_t value expected
tar: \337\247\340\1777k\347\370\371[\364\374\r\2157\370\377: Unknown file type `�', extracted as normal file
tar: Skipping to next header
tar: Archive contains `&F\327\300\0\0\0!&V\327\300' where numeric time_t value expected
got strange file size '0'
tar: 34970: Child returned status 255
tar: Skipping to next header
got strange file size '0'
tar: 34972: Child returned status 255
tar: Skipping to next header
^Cstarting cleanup
command 'zcat -f|tar xf /bkup/fbc-bkup/pvebkp2/vzdump-qemu-7022-2011_11_17-16_30_40.tar '--to-command=/usr/lib/qemu-server/qmextract'' failed: interrupted by signal

pveversion -v
Code:
pve-manager: 2.0-10 (pve-manager/2.0/7a10f3e6)
running kernel: 2.6.32-6-pve
proxmox-ve-2.6.32: 2.0-52
pve-kernel-2.6.32-6-pve: 2.6.32-52
lvm2: 2.02.86-1pve1
clvm: 2.02.86-1pve1
corosync-pve: 1.4.1-1
openais-pve: 1.1.4-1
libqb: 0.6.0-1
redhat-cluster-pve: 3.1.7-1
pve-cluster: 1.0-11
qemu-server: 2.0-3
pve-firmware: 1.0-13
libpve-common-perl: 1.0-7
libpve-access-control: 1.0-2
libpve-storage-perl: 2.0-6
vncterm: 1.0-2
vzctl: 3.0.29-3pve3
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 0.15.0-1
ksm-control-daemon: 1.1-1
 
using: qemu-server: 2.0-5

Code:
qmrestore --unique  --storage  lvm8  /bkup/pvebkp-fbc8/vzdump-qemu-7140-2011_11_16-00_56_23.tar  8006
400 too many arguments
qmrestore <archive> <vmid> [OPTIONS]
 
and
Code:
qmrestore /bkup/pvebkp-fbc8/vzdump-qemu-7140-2011_11_16-00_56_23.tar 8006
extracting archive '/bkup/pvebkp-fbc8/vzdump-qemu-7140-2011_11_16-00_56_23.tar'
extracting 'qemu-server.conf' from archive
extracting 'vm-disk-virtio0.raw' from archive
storage 'replicated-drbd1' does not exists
tar: vm-disk-virtio0.raw: Cannot write: Broken pipe
tar: 222325: Child returned status 9
tar: Exiting with failure status due to previous errors
starting cleanup
command 'zcat -f|tar xf /bkup/pvebkp-fbc8/vzdump-qemu-7140-2011_11_16-00_56_23.tar '--to-command=/usr/lib/qemu-server/qmextract'' failed: exit code 2
 
You need to provide the storage argument - try:

# qmrestore --storage lvm8 /bkup/pvebkp-fbc8/vzdump-qemu-7140-2011_11_16-00_56_23.tar 8006
 
Ignore previous post - you just need to reorder the options to be at the end:

# qmrestore vzdump-qemu-7022-2011_11_17-16_30_40.tar 10221 --storage pve1 --unique