Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict sanoid to single pool or list of pools #929

Open
therrmann-adwin opened this issue Jun 12, 2024 · 1 comment
Open

Restrict sanoid to single pool or list of pools #929

therrmann-adwin opened this issue Jun 12, 2024 · 1 comment

Comments

@therrmann-adwin
Copy link

I use sanoid for a NVME on my workstation to create snapshots and everything works like a charm.

But this workstation also has a 20TB zfs hard disk with a large number of backups and snapshots that sanoid should simply ignore. But I often hear loud noise from the hard drive that should normally be spun down and has no config entries in the sanoid.conf. I notice that sanoid calls this:

zfs get -Hrpt snapshot creation

which explains the current behaviour. This call takes 4 minutes to run through on my machine, causing lots of I/O on the hard drive. Is it possible to restrict sanoid to a single pool (or a set of pools)?

@tobox
Copy link

tobox commented Jun 13, 2024

As a crude workaround, I added my pool to the "zfs get" call and it works.

open FH, "$zfs get -Hrpt snapshot creation tank |";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants