File restore from vm = 0

macromoon

New Member
Aug 6, 2024
19
0
1
Hi, Colleagues!

Why when download file (iso,exe, etc) from backup size = 0, but when download pdf, office formats and archives all download fine?

7M7bSPrDAF.png
 
Hi,
did you try with a different browser? Does it depend on the file size or only on the extension? Do you have any firewall/etc. that could interfere with the traffic? Please also check the task logs on the PBS side.
 
Hi,
did you try with a different browser? Does it depend on the file size or only on the extension? Do you have any firewall/etc. that could interfere with the traffic? Please also check the task logs on the PBS side.
Hi, Fiona! Thanks for response!

Backup this VM to NAS (25Gbs LACP).

Not fw between srv and pc.
In Chrome same problem.

chrome_GRknwkgzfi.png

PBS:

I click download one file at 12:00 and this generate many tasks...

browser_DAVxNSO2Dt.png

2025-03-20T12:00:52+03:00: starting new backup reader datastore 'PBS_Backup_03': "/mnt/pbsbkp_03/vm"
2025-03-20T12:00:52+03:00: protocol upgrade done
2025-03-20T12:00:52+03:00: GET /download
2025-03-20T12:00:52+03:00: download "/mnt/pbsbkp_03/vm/vm/138/2025-03-20T02:00:10Z/index.json.blob"
2025-03-20T12:00:52+03:00: GET /download
2025-03-20T12:00:52+03:00: download "/mnt/pbsbkp_03/vm/vm/138/2025-03-20T02:00:10Z/drive-scsi9.img.fidx"
2025-03-20T12:00:52+03:00: register chunks in 'drive-scsi9.img.fidx' as downloadable.
2025-03-20T12:01:00+03:00: GET /chunk
2025-03-20T12:01:00+03:00: download chunk "/mnt/pbsbkp_03/vm/.chunks/a7e8/a7e8571d43a15ee2a2a1f264ee2e9304da2769b0783b714f3856bea02241f868"
2025-03-20T12:01:02+03:00: GET /chunk
2025-03-20T12:01:02+03:00: download chunk "/mnt/pbsbkp_03/vm/.chunks/d740/d740642941d19c396f7c1ad86a20e285af649d283352264a3bbbe63f837908c2"
2025-03-20T12:01:02+03:00: GET /chunk
2025-03-20T12:01:02+03:00: download chunk "/mnt/pbsbkp_03/vm/.chunks/b281/b281437f0736a9d76cbca2793e4b77db6550fefc6423638eac923c4dc3ddb826"
2025-03-20T12:01:02+03:00: GET /chunk
2025-03-20T12:01:02+03:00: download chunk "/mnt/pbsbkp_03/vm/.chunks/1d76/1d761fbc8c02b2e33f9116bf3eb63cd9ced935d49b9ffbd32b569ee80c6d51db"
 

Attachments

  • chrome_GRknwkgzfi.png
    chrome_GRknwkgzfi.png
    56.4 KB · Views: 5
Last edited:
is this a windows VM with NTFS? there are some features of NTFS that can lead to the linux driver reading 0-byte files..
 
is this a windows VM with NTFS? there are some features of NTFS that can lead to the linux driver reading 0-byte files..
Hi, Fabian! Yes. this is ms win srv with ntfs. Archives and office files downloads fine. How resolve this problem?
 
I think it was (NTFS) deduplication that caused this, the only solution is not using it or switching to a different way of doing (manual) file-restore.
 
I think it was (NTFS) deduplication that caused this, the only solution is not using it or switching to a different way of doing (manual) file-restore.
win srv 2012 without dedup. Do you have other variants file-restore?
 
Last edited:
then it might be some other NTFS feature that causes the same problems...

the alternative is to manually map the image from the PBS snapshot, and pass that loop device to a (Windows) VM (not the original one, else it sees a duplicate disk which might be dangerous). then you can access its contents and do whatever you want.
 
then it might be some other NTFS feature that causes the same problems...

the alternative is to manually map the image from the PBS snapshot, and pass that loop device to a (Windows) VM (not the original one, else it sees a duplicate disk which might be dangerous). then you can access its contents and do whatever you want.
Fabian, good idea! But how do I do it? Can you attach the sequence of actions in the web interface, I could not form the sequence of actions.
 
there is no sequence in the web interface, you need to (manually)

- proxmox-backup-client map ...
- qm set XXX -scsiN /dev/loopZ,...

then do the work

- qm set XXX -delete scsiN
- unmap
 
there is no sequence in the web interface, you need to (manually)

- proxmox-backup-client map ...
- qm set XXX -scsiN /dev/loopZ,...

then do the work

- qm set XXX -delete scsiN
- unmap
Hi Fabian. Thanks!
on pve node:
# apt-get install libguestfs-tools
# proxmox-backup-client list --repository root@pam@<Proxmox-Backup-Server-IP>:8007:pbs01
# proxmox-backup-client map vm/104/2021-01-03T17:21:21Z drive-scsi0.img --repository root@pam@<Proxmox-Backup-Server-IP>:8007:pbs01
Image '...' mapped on /dev/loop0
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 4.7T 1 loop
└─loop0p1 259:0 0 4.7T 1 part
# qm set 155 -scsi10 /dev/loop0p1
update VM 155: -scsi10 /dev/loop0p1
browser_ZWp0GlPGtk.png
but on vm's OS i can't add\view this disk on Disk Manager.
 
you probably want to pass through the full disk, not the partition (leave off the "p1" part)
 
you probably want to pass through the full disk, not the partition (leave off the "p1" part)
Fabian, thank's for fast response!

~# qm set 155 -scsi10 /dev/loop0
update VM 155: -scsi10 /dev/loop0
synology-note-station_7ARMF9shh4.png
unfortunately, same situation - but on vm's OS i can't add\view this disk on Disk Manager.
 
anything visible in the guest system logs?
 
could you try rebooting the VM in case you haven't yet?
 
could you try with a linux VM just to see if the disk shows up there?
 
could you try with a linux VM just to see if the disk shows up there?
Fabian, attach to linux vm. Same situation.

browser_ztK4KXppyK.png

# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 87M 1 loop /snap/lxd/29351
loop1 7:1 0 44.4M 1 loop /snap/snapd/23771
loop2 7:2 0 63.7M 1 loop /snap/core20/2434
loop3 7:3 0 89.4M 1 loop /snap/lxd/31333
loop5 7:5 0 44.4M 1 loop /snap/snapd/23545
loop6 7:6 0 63.7M 1 loop /snap/core20/2496
sda 8:0 0 32G 0 disk
├─sda1 8:1 0 1M 0 part
├─sda2 8:2 0 2G 0 part /boot
└─sda3 8:3 0 30G 0 part
└─ubuntu--vg-ubuntu--lv 252:0 0 15G 0 lvm /
sr0 11:0 1 436M 0 rom
root@ksc-websrv:/home/user# lvscan
ACTIVE '/dev/ubuntu-vg/ubuntu-lv' [<15.00 GiB] inherit
 
anything in the logs of the VM? or of the host?