ZFS Health

matthew

Renowned Member
Jul 28, 2011
210
5
83
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?
 
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
 
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 yours easily in our online shop.

Buy now!