[SOLVED] ZFS Restore from PBS Very Slow

johndoe86x

Member
Dec 27, 2021
8
0
6
37
Hi, all,

I'm performing a restore of a VM from PBS backup. The connection is a bonded 10G going from spinning rust to SSDs. The total restore size is 1.07TB. Here is the progress so far:

brave_9KeV1luvOk.png

Any help speeding this up (or future backup restores) would be greatly appreciated.

Cheers!
 
Last edited:
You could enable relatime for your PBS datastore, so not every read operation is causing an additional write operation. In case you are using ZFS you could also increase the recordsize to 1M, so the data to metadata ratio gets better. Otherwise there isn't much you can do to make it faster. A 1TB Restore is probably doing something like 500,000x 2MB random reads. So a lot of IOPS hitting the HDDs.
 
You could enable relatime for your PBS datastore, so not every read operation is causing an additional write operation. In case you are using ZFS you could also increase the recordsize to 1M, so the data to metadata ratio gets better. Otherwise there isn't much you can do to make it faster. A 1TB Restore is probably doing something like 500,000x 2MB random reads. So a lot of IOPS hitting the HDDs.
Thanks for your reply, Dunuin. How would I go about enabling relatime for the PBS datastore? Just to verify, the command to set the record size: sudo zfs set recordsize=1M tank/backups. I'm also aware that this only applies to new data.
 
Thanks for your reply, Dunuin. How would I go about enabling relatime for the PBS datastore? Just to verify, the command to set the record size: sudo zfs set recordsize=1M tank/backups. I'm also aware that this only applies to new data.
Enabling atime then would be sudo zfs set relatime=on tank/backups
 
  • Like
Reactions: johndoe86x

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!