File restore failing from a directory with thousands of files

resoli

Renowned Member
Mar 9, 2010
147
4
83
Hello, our pve 7.2-4 cluster is running backups of a file server with some huge directories (one of these contains more than 75000 subdirectories). File restore from gui fails while trying to list content of these dirs. Atm the only way I found to restore contents from these dirs is to point to single files or subdirs using REST API.

Backups are being done on a separate dedicated hardware with pbs v2.2-1.

Any hint?
 
Last edited:
A workaround: use proxmox-backup-client map command for mapping the remote (encrypted) snapshot to /dev/loop0 and mounting it as a local device.

proxmox-backup-client map "my_snapshot_name" "my_drive_image" --repository my_pbshost:my_datastore_name --ns my_namespace --keyfile /etc/pve/priv/storage/my_pbs_storage_id.enc
 
Last edited:
mhmm.. can you post the log of the pbs from that time?
and the log from /var/log/proxmox-backup/file-restore/qemu.log ?
 
Here's the log. I guess the salient part is this OOM:
Out of memory: Killed process 53 (proxmox-restore) total-vm:434868kB, anon-rss:49756kB, file-rss:5000kB, shmem-rss:0kB, UID:0 pgtables:224kB oom_score_adj:0
 

Attachments

yeah it seems the directory listing uses too much memory... i'll see how we can improve that... until then, you could restore the vm to a different vmid and use any livecd to restore the files
 
  • Like
Reactions: flames
yeah it seems the directory listing uses too much memory... i'll see how we can improve that...
Thank you
until then, you could restore the vm to a different vmid and use any livecd to restore the files
Imho, use of `proxmox-backup-client map` as detaild in #2 is much more practical (and really great for large restores, in general).

rob
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!