ZFS Health

matthew

Active Member
Jul 28, 2011
209
5
38
I installed Proxmox 4 on two 4TB drives with ZFS RAID1. How can I tell the health status of the RAID array? Will it email me etc if one drive fails?
 

wolfgang

Proxmox Staff Member
Staff member
Oct 1, 2014
6,496
475
103
If you want to get informed of failure you must set up the zed client.
edit the config in /etc/zfs/zed.d/zed.rc
 

tom

Proxmox Staff Member
Staff member
Aug 29, 2006
15,251
810
163
I use a weekly cronjob for scrubbing my ZFS pool "zfsspace".

> nano /etc/cron.weekly/zfs-scrub-weekly

Code:
#!/bin/bash


# set PATH
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin


# set pool name
ZFS_POOL="zfsspace"


# start scrub
zpool scrub "$ZFS_POOL"

> chmod +x /etc/cron.weekly/zfs-scrub-weekly

and I send this my root email address, configured in etc/zfs/zed.d/zed.rc
 
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 your own in 60 seconds.

Buy now!