[SOLVED] zfs scrub crashes server -> zfs_vdev_scrub_max_active=1

hellfire

Renowned Member
Aug 17, 2016
79
47
83
46
Hi,

I have a vm host which is crashing or has crashing vms when a zfs scrub is started. The disks of the host are somewhat older and not that fast.

As a resolution I changed the zfs module option zfs_vdev_scrub_max_active to 1 in /etc/modprobe.de/zfs.conf to reduce the number of scrub workers from 2(=default) to 1 to reduce the load imposed by zpool scrub.

My zfs.conf looks like this:

Code:
# 1 GB RAM for ZFS per 1 TB userdata capacity => ~ 6 TB Data
options zfs zfs_arc_max=6442450944 zfs_vdev_scrub_max_active=1

After changing that setting, the problem is gone.
 
Last edited:

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!