Anyone managed to get ZFS Event Daemon up and running?

  • Update:


    Setting up the deamon was easier than expected. For everyone who is interested in this feature, here is a small howto:


    1. If not already done setup postfix (easiest way is to use the OMV webgui System->Notifications). After entering all needed information hit the "Send Test mail" button to make sure you recieve email notifications from your box.


    2. edit the ZFS Event Daemon (ZED) config file: nano /etc/zfs/zed.d/zed.rc


    Bash
    nano /etc/zfs/zed.d/zed.rc


    Actualy you only have to remove some comments and supply the recievers email address:



    3. restart ZED

    Code
    service zfs-zed restart


    4. to test the daemon we will corrupt some data on the first partition of one of the drives which are part of the pool
    (CAUTION: create a test pool for this!! don't run this commands on your production pool!!!!)


    if aren't able to create a test pool just skip this step. scrubbing of a healthy pool will still create a "scrub finished message"

    Code
    dd if=/dev/urandom of=/dev/<select a disc of your pool>1 bs=1024 count=200480


    5. scrub the pool

    Code
    zpool scrub <your pool name>


    6. check the status of the pool by running


    Code
    zpool status


    Now you should have two new mails with status updates in your inbox ;-)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!