Bug 786350 - cronjob doesn't handle not running zfsd well
Summary: cronjob doesn't handle not running zfsd well
Keywords:
Status: CLOSED DUPLICATE of bug 757488
Alias: None
Product: Fedora
Classification: Fedora
Component: zfs-fuse
Version: 16
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-01 07:38 UTC by Tobias Mueller
Modified: 2012-02-28 13:49 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-28 13:49:14 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Tobias Mueller 2012-02-01 07:38:26 UTC
Description of problem:
I have logwatch and zfs-fuse installed. I am not running any ZFS filesystems at all. Every week I get an angry email about the weekly cronjob in /etc/cron.weekly/98-zfs-fuse-scrub failing:

To: root
Content-Type: text/plain; charset="UTF-8"
Subject: Anacron job 'cron.weekly' on bigbox

/etc/cron.weekly/98-zfs-fuse-scrub:

connect: No such file or directory
Please make sure that the zfs-fuse daemon is running.
internal error: failed to initialize ZFS library


$ sudo cat /etc/cron.weekly/98-zfs-fuse-scrub
#!/bin/bash
#
# This script reads it's configuration from /etc/sysconfig/zfs-fuse
# Please use that file to enable/disable this script or to set the
# type of check you wish performed.

[ -f /etc/sysconfig/zfs-fuse ] || exit 0
. /etc/sysconfig/zfs-fuse

[ "$ZFS_WEEKLY_SCRUB" != "yes" ] && exit 0

zpool=/usr/bin/zpool

pools=`$zpool list -H | cut -f1`

if [ "$pools" != "" ] ; then
    echo Found these pools: $pools

    for pool in $pools; do
	echo "Starting scrub of pool $pool"
	$zpool scrub $pool
    done

    echo "ZFS Fuse automatic scrub start done.  Use '$zpool status' to see progress."
fi
$ zpool list -H 
connect: No such file or directory
Please make sure that the zfs-fuse daemon is running.
internal error: failed to initialize ZFS library
$

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:
I expected to not get an email.

Additional info:

Comment 1 Fedora Admin XMLRPC Client 2012-02-27 20:57:12 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Gwyn Ciesla 2012-02-28 13:49:14 UTC

*** This bug has been marked as a duplicate of bug 757488 ***


Note You need to log in before you can comment on or make changes to this bug.