Virtualization

Proxmox ZFS Scrub and SMART Monitoring: Automated Health Checks

The Back Room Tech Staff · Edited by Aseem Kishore
17 min read

The Back Room Tech is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

Proxmox ZFS scrubbing and SMART monitoring give you repeatable checks of stored data and drive health. You’ll need an existing Proxmox VE host, a local ZFS pool, and an admin shell; check installed versions first. See also our guide on Microsoft warns attackers exploited Entra Connect Health to access tenant data.

Keep a record linking each pool member to its disk, completed checks, active monitoring, and a received alert. A scheduled start or passing drive-health result proves only part of that chain.

CheckActionEvidence to keep
Pool integrityInspect status, then run a planned scrubCompleted scan result and remaining errors
Disk identityMatch pool members to physical drivesDevice path, model, serial, and partition relationship
Recurring maintenanceInspect existing timers and cron jobsPool coverage, schedule, and execution history
Drive healthQuery each supported physical deviceHealth indicators and self-test results
Alert deliveryTest the configured delivery routeReceipt at the intended administrator’s destination
Monitoring alertsRun a supported monitoring-specific testGenerated notification and external receipt

Check the Proxmox Host and Maintenance Requirements

1. Confirm administrative access and installed versions

Use an authorized admin shell on the Proxmox host that owns the pool. Run these commands on the host, outside a guest VM or container.

Administrative access: The maintenance commands below need root privileges. Confirm the hostname before starting a scrub or changing a service.

hostname
pveversion -v

Expected result: the hostname matches the intended server. The version report lists its installed Proxmox packages.

The official Proxmox VE 9.3 release announcement, dated November 25, 2026, lists ZFS 2.4. Keep your host’s actual package versions in the maintenance record. Don’t use the release announcement to describe an older or partly upgraded host.

Have these items ready:

  • An existing local ZFS pool.
  • Admin access to the host.
  • Access to drive serial numbers or enclosure records.
  • A maintenance window with room for added storage load.
  • Independent backups and a known restore procedure.
  • An administrator’s notification destination.

You don’t need to create a pool for this workflow. The Proxmox VE Administration Guide covers host-side ZFS maintenance.

2. Create a dated evidence directory

Save the starting state before changing services or running scans.

umask 077
EVIDENCE="/root/storage-health-$(date +%Y%m%d-%H%M%S)"
mkdir -p "$EVIDENCE"
printf '%s\n' "$EVIDENCE"
pveversion -v > "$EVIDENCE/proxmox-versions.txt"

Expected result: the command prints a new directory under /root/. Keep this shell open so later commands retain the EVIDENCE variable.

The restrictive umask keeps new evidence files private. Disk reports can contain serial numbers and other details about your setup.

Configure Proxmox ZFS Scrubbing and SMART Monitoring Around the Existing Pool

3. Record pool state before maintenance

Run the inventory and status commands separately:

zpool list
zpool status -v

Save both results:

zpool list > "$EVIDENCE/pools-before.txt"
zpool status -v > "$EVIDENCE/status-before.txt"

Expected result: the inventory lists your pools. The detailed report shows each pool’s state, layout, scan details, device counters, and error summary.

Enter the pool name at the prompt to avoid using an example name:

read -r -p "Pool name exactly as listed: " POOL
zpool status -v "$POOL"

Proceed only when the displayed layout belongs to the intended pool.

Status fieldWhat to check
Pool stateWhether the pool reports healthy operation or a degraded condition
scanWhether a scrub is active, completed, stopped, or absent from the displayed history
Device rowsWhich members have reported read, write, or checksum errors
Error summaryWhether ZFS reports known permanent data errors

A pool state of ONLINE doesn’t prove that a recent scrub completed. Read the scan details separately.

zpool list and zpool status output for a mirrored ZFS pool before maintenance, showing topology, last scrub result, device counters, and error summary

4. Map every pool member to a physical disk

Start with the supplied disk inventory command:

lsblk -o NAME,MODEL,SERIAL,SIZE,TYPE

Then inspect pool paths:

zpool status -P "$POOL"

Here, -P requests full device paths. Save both views:

lsblk -o NAME,MODEL,SERIAL,SIZE,TYPE > "$EVIDENCE/disk-identities.txt"
zpool status -P "$POOL" > "$EVIDENCE/pool-device-paths.txt"

Expected result: the two views help you match each pool member to a disk model and serial number.

A pool member can be a partition. Follow that partition to its parent disk in the lsblk tree. A partition name alone doesn’t identify the physical drive.

If a pool member uses a symbolic link, resolve that specific path:

read -r -p "Exact pool member path to resolve: " MEMBER
readlink -f -- "$MEMBER"

Compare the resolved path with the disk inventory. Record the result in a small mapping table:

Pool memberParent diskModelSerialPhysical location
Record actual pathRecord actual diskRecord actual modelRecord actual serialRecord verified bay or slot

Don’t infer bay numbers from Linux device letters. Match the serial to enclosure records or a physical label during suitable maintenance.

A controller can expose a logical volume instead of individual disks. Work out what it exposes before issuing drive-specific commands.

lsblk disk inventory beside zpool status -P full device paths, with readlink resolving a by-id pool member to its parent disk partition

5. Discover supported SMART device access

SMART, or Self-Monitoring, Analysis and Reporting Technology, exposes information supplied by the drive. First check which devices the installed tool can open:

smartctl --scan-open

Save the discovery report:

smartctl --scan-open > "$EVIDENCE/smart-device-discovery.txt" 2>&1

Expected result: the report lists accessible devices and may specify a required device type.

Compare this list with your pool-to-disk mapping. You need a known monitoring path for every physical drive. Finding a RAID volume doesn’t prove that monitoring covers its member disks.

If the command isn’t installed, check whether the package is available before installing it:

apt-cache policy smartmontools

If your configured Proxmox repositories offer a candidate, install the package:

apt-get install smartmontools

Expected result: installation completes, and smartctl --scan-open becomes available. If the package download fails, fix the repository problem before continuing.

Don’t guess a controller-specific -d option. Use the detected access method and the installed tool’s documentation:

man smartctl

Search for the relevant device type inside the manual. Controller and USB bridge support varies.

Inspect Existing Scrub Automation Before Enabling Anything

6. Inventory systemd timers and cron jobs

Scrub scheduling depends on the installed Proxmox VE and ZFS versions and the host’s configuration. Inspect this host to determine whether a timer or cron job exists and covers the selected pool.

Start with systemd’s timer inventory:

systemctl list-timers --all

Then inspect root’s crontab and the system cron locations:

crontab -l
cat /etc/crontab
ls -la /etc/cron.d /etc/cron.daily /etc/cron.weekly /etc/cron.monthly

Expected result: you can check whether a timer or cron entry starts ZFS scrubs. A message reporting no root crontab describes only that crontab. It doesn’t rule out system cron jobs.

Read any candidate file you find:

read -r -p "Absolute path of the candidate cron file or script: " JOB_FILE
cat -- "$JOB_FILE"

For a candidate systemd timer, inspect the actual unit:

read -r -p "Exact scrub timer unit name from the inventory: " SCRUB_TIMER
systemctl cat "$SCRUB_TIMER"
systemctl status "$SCRUB_TIMER" --no-pager

Read its associated service too:

read -r -p "Exact service unit activated by that timer: " SCRUB_SERVICE
systemctl cat "$SCRUB_SERVICE"
journalctl -u "$SCRUB_SERVICE" --since "30 days ago" --no-pager

Record four things:

  • Which pools the job covers.
  • When it runs.
  • Whether it skips selected pools.
  • What its run history shows.

Don’t add another job because a familiar filename is absent. Inspect the mechanism installed on this host.

Proxmox host showing the zfsutils-linux cron scrub schedule, the imported pool list, and the last scrub result for each pool

7. Enable an existing scrub timer only after confirming coverage

If the intended timer already runs and covers the selected pool, retain it. Record its next activation and check the last completed scrub separately.

If the verified timer is disabled, enable it during the chosen maintenance window:

Scheduling change: A persistent timer can trigger overdue work when activated. Check its definition before enabling it.

systemctl enable --now "$SCRUB_TIMER"
systemctl list-timers --all "$SCRUB_TIMER"

The --now flag starts the timer as well as enabling it.

Expected result: the timer is enabled and has an activation schedule. Inspect its associated service if activation starts maintenance right away.

For a cron-based setup, retain the existing job after checking its command, pool coverage, and timing. Don’t enable a competing timer alongside it.

If neither mechanism covers the pool, finish the manual baseline first. Current OpenZFS releases ship per-pool zfs-scrub-weekly@.timer and zfs-scrub-monthly@.timer units, where the instance name is the pool name. Check that the installed package provides them, read the unit, and only then enable the one that matches your interval:

systemctl list-unit-files 'zfs-scrub*'
systemctl cat "zfs-scrub-monthly@${POOL}.timer"
systemctl enable --now "zfs-scrub-monthly@${POOL}.timer"
systemctl list-timers --all "zfs-scrub-monthly@${POOL}.timer"

Expected result: the per-pool timer is enabled and lists a next activation. If the list command shows no zfs-scrub units, the installed package doesn’t provide them, so keep using the cron mechanism it ships instead. Don’t enable a per-pool timer for a pool that an existing cron job already scrubs.

Choose the interval based on observed completion time, workload, and your maintenance policy. One schedule won’t suit every pool.

A timer’s activation alone doesn’t prove that its service ran successfully. Check the service’s execution history and the pool’s completed scan report to establish what ran and what the scrub accomplished.

Run a ZFS Scrub and Verify That It Finishes

8. Check workload and backup availability

Just before starting, inspect the pool again:

zpool status -v "$POOL"
zpool iostat "$POOL" 5

The second command reports pool activity at five-second intervals. Press Ctrl+C after reviewing several samples.

Expected result: the scan line in zpool status shows whether a scrub or resilver is already active. The iostat samples only show I/O load, so use them to judge whether current workloads leave room for another scan.

Confirm the most recent independent backup and its restore location. A backup job’s success message alone doesn’t prove that you can restore it. Keep restore testing in your routine.

I’d postpone a routine scrub if a drive is already failing and recovery decisions are still open. Judge the risk of extra full-pool reads for that incident.

Also avoid overlapping the scrub with intensive drive self-tests or backup jobs.

9. Start the selected pool’s scrub

zpool scrub "$POOL"

Expected result: the command submits the scrub request. It can return without a completion report.

Check right away:

zpool status -v "$POOL"

Expected result: the scan details report an active scrub, unless it has already completed or the request failed.

A scrub checks stored data against ZFS checksums. ZFS can repair damaged blocks when it can access a valid redundant copy. Recovery depends on the available copies and pool condition. The Proxmox ZFS documentation explains those limits.

zpool status output during an active scrub, showing scan progress, rate, and estimated time remaining for the pool

10. Preserve the completed scan result

Repeat this command during maintenance and after the scrub finishes:

zpool status -v "$POOL"

Once the scan reports completion, save its result:

date -Is > "$EVIDENCE/scrub-completion-time.txt"
zpool status -v "$POOL" > "$EVIDENCE/status-after-scrub.txt"

Expected result: the scan line describes a completed scrub. Review repaired data, scan errors, device counters, and permanent errors together.

A clean result should show a completed scan without remaining reported data errors. If ZFS repaired data, save that information even when the final error summary is clear.

If guest latency becomes unacceptable, stop the scrub:

zpool scrub -s "$POOL"
zpool status -v "$POOL"

The -s option stops the scrub; confirm it appears in your installed zpool scrub help (man zpool-scrub) before relying on it. Record the interruption and arrange another maintenance window for a complete run.

zpool status after a completed scrub that repaired data, showing checksum counters on one RAIDZ2 member and the error summary

Check SMART and NVMe Health on Each Mapped Drive

11. Read each supported physical device’s report

Choose a device from the confirmed mapping and discovery results:

read -r -p "Confirmed physical device path: " DEVICE
smartctl -a "$DEVICE"

The -a option requests the device’s available SMART information. If discovery specified a device type, use that exact supported type:

read -r -p "Device type reported by discovery: " DEVICE_TYPE
smartctl -a -d "$DEVICE_TYPE" "$DEVICE"

Expected result: the report identifies the intended drive and shows its supported health information. Confirm the model and serial before reading the results.

For SATA/SAS devices, review the available health assessment, error details, and self-test history. For NVMe devices, review the supported health log and reported warnings.

Don’t apply one temperature or attribute threshold across different drive models. Read the fields the device actually exposes.

Save the report:

smartctl -a "$DEVICE" > "$EVIDENCE/drive-health-$(basename "$DEVICE").txt" 2>&1

If discovery reported a device type, save the report with that same option instead:

smartctl -a -d "$DEVICE_TYPE" "$DEVICE" > "$EVIDENCE/drive-health-$(basename "$DEVICE").txt" 2>&1

Repeat the inspection for every mapped physical drive.

smartctl -a report for a SATA SSD showing device identity, overall health result, key SMART attributes, and short self-test history

12. Run a supported self-test separately from the scrub

First inspect the device report and installed manual for self-test support:

smartctl -a "$DEVICE"
man smartctl

For a confirmed compatible device, start a short self-test:

smartctl -t short "$DEVICE"

Expected result: the device accepts the test and reports completion guidance. The command returning doesn’t mean the test has finished.

After the stated interval, inspect the result:

smartctl -a "$DEVICE"

For a compatible drive that needs an extended test, schedule a separate window:

smartctl -t long "$DEVICE"

Follow the device’s completion guidance, then inspect the report again. Retain any required device-type option.

Don’t assume NVMe hardware or every bridge supports these tests the same way. I’d skip an optional test until support is confirmed. An unsupported operation gives you no basis for calling the drive healthy.

Verify SMART Monitoring and the Actual Alert Route

13. Inspect the daemon and its device coverage

Check the monitoring service:

systemctl status smartd --no-pager
systemctl is-enabled smartd
journalctl -u smartd --since "7 days ago" --no-pager

Expected result: the service state and logs show whether monitoring runs and which devices it can access.

If the unit name isn’t found, discover the installed service name:

systemctl list-unit-files '*smart*'

Inspect the confirmed unit:

systemctl cat smartd

Read its startup configuration and referenced files. Confirm the actual polling interval, monitored devices, and notification command or recipient.

The Proxmox administration guide describes background SMART monitoring. Check the installed configuration before relying on a particular interval or recipient.

If smartd is the correct unit and its configuration is valid, enable it:

systemctl enable --now smartd
systemctl status smartd --no-pager
journalctl -u smartd --since "10 minutes ago" --no-pager

Expected result: the daemon starts successfully and stays active. Fix device-access or configuration errors before calling monitoring complete.

smartmontools service status and smartd startup journal showing monitored devices and an access warning, followed by a SMART health report

14. Test mail delivery independently

Find the route used by the monitoring configuration. If it sends mail to local root, check how that recipient reaches the intended administrator.

For a host with an installed mail client and working local transport, send the documented delivery test:

printf 'Proxmox test\n' | mail -s 'SMART test' root

Expected result: the intended administrator receives the message at the external destination. Confirm its subject and timestamp.

A successful command exit doesn’t prove external receipt. Check the destination itself.

This test verifies the tested mail route. It doesn’t test drive-health detection, smartd notification generation, or every Proxmox notification matcher.

If the configured route uses Postfix, inspect that transport:

systemctl status postfix --no-pager
journalctl -u postfix --since "10 minutes ago" --no-pager

Use those checks only when Postfix is the actual transport. Follow the relevant logs when the host uses a different transport.

15. Test monitoring notification generation separately

Open the installed daemon manual:

man smartd
man smartd.conf

Find the notification directives and supported test-notification procedure. Match that procedure to the installed configuration and device access method.

Before editing, back up the confirmed configuration file:

read -r -p "Absolute path of the active SMART configuration file: " SMART_CONFIG
cp -a -- "$SMART_CONFIG" "${SMART_CONFIG}.before-notification-test-$(date +%Y%m%d-%H%M%S)"

The standard smartmontools test directive is -M test. Added to a device line that already carries the -m recipient, it makes smartd send one test message when it starts. Add it to the intended device entry, restart the daemon, then inspect the journal:

systemctl restart smartd
journalctl -u smartd --since "5 minutes ago" --no-pager

Expected result: the daemon generates its supported test notification, and the intended administrator receives it.

Keep these results separate:

TestWhat receipt demonstrates
Local mail testThe tested recipient and transport delivered a message
Monitoring-specific testThe tested daemon notification path generated and delivered a message
Real monitoring eventThat particular detected condition reached the administrator

A synthetic monitoring test doesn’t prove every failure type will be detected. But it can expose routing gaps before a real fault needs attention.

Remove the temporary test directive afterward. Retain the normal notification settings and record the test time, recipient, and result.

Investigate Errors Without Destroying the Evidence

16. Preserve a degraded pool’s state first

If the pool reports DEGRADED, FAULTED, or device errors, capture the current state:

zpool status -v "$POOL" > "$EVIDENCE/incident-pool-status.txt"
journalctl -k --since "24 hours ago" --no-pager > "$EVIDENCE/incident-kernel-log.txt"
smartctl -a "$DEVICE" > "$EVIDENCE/incident-drive-health.txt" 2>&1

Use the affected drive’s confirmed path and required access options.

Expected result: you retain the pool report, relevant host messages, and drive-health information before making repairs.

Review backups and the pool layout. Don’t start by clearing counters or replacing a disk identified only by a changing device letter.

17. Investigate checksum errors even when SMART passes

Record both reports:

zpool status -v "$POOL"
smartctl -a "$DEVICE"

Check whether ZFS repaired affected data and whether permanent errors remain.

SMART reports drive-supplied information. A scrub checks stored data against checksums. Their results can differ without either report being wrong.

Check the broader storage path, including connections, controller, power, and memory. A passing SMART assessment doesn’t rule out those faults.

Keep independent backups available for data ZFS can’t repair.

18. Resolve unavailable or disabled SMART support carefully

For unavailable information, repeat discovery:

smartctl --scan-open

Compare the result with the controller or enclosure’s supported pass-through documentation. Don’t switch controller modes as a routine monitoring fix.

This step applies only to SATA or SAS drives that smartctl -a shows as SMART-capable but disabled. Don’t run it on NVMe devices or unsupported USB bridges. For such a confirmed drive, enable it:

smartctl -s on "$DEVICE"
smartctl -a "$DEVICE"

Expected result: the device reports enabled support and exposes available health information.

This changes the device’s configuration, so record when you made the change.

19. Investigate missing alerts at the failing stage

Check the daemon first:

systemctl status smartd --no-pager
journalctl -u smartd --since "24 hours ago" --no-pager

Then repeat the delivery test for the actual configured route.

If direct delivery works but the monitoring test fails, inspect the daemon’s recipient and notification command. If both fail, check transport and recipient routing.

Don’t assume a working Proxmox notification target automatically covers SMART messages. Verify the route used by this daemon.

Keep the Checks Useful Between Maintenance Windows

20. Record completion, coverage, and restore evidence

Maintain one host record with the following:

StepActionApplies To
IdentityKeep member-to-serial mappings currentEvery physical pool member
SchedulingRetain one verified scrub mechanismEvery monitored pool
CompletionSave completed scan resultsEach scrub run
HealthReview supported reports and self-testsEach accessible drive
NotificationsRecord delivery and monitoring-test receiptEach alert route
RecoveryRetain independent backups and restore-test resultsRequired guest and host data

Repeat the mapping after hardware changes. Recheck notifications after transport, recipient, or monitoring configuration changes.

A scrub covers stored data in the pool. It doesn’t prove that a backup is restorable or that an idle drive will survive tomorrow.

A passing SMART result has similar limits. Use trends and repeated evidence, while keeping recovery independent of the monitored pool.

A UPS can reduce the risk from abrupt power loss, but it doesn’t repair existing corruption. A separate backup server or NAS drive can hold recovery copies. Keep those backups independent and test restores.

Wrapping Up

Reliable monitoring needs a completed scan, known disk identities, and a notification someone actually receives. I’d trust that evidence more than a timer showing a successful start.

Keep configuration backups beside the host’s maintenance record. After hardware or mail-routing changes, repeat the identity and alert checks before relying on unattended operation.