Package: zfsutils-linux
Version: 0.6.5.8-1~bpo8+1

The monthly scrub set up by the package zfsutils-linux via cron in /etc/cron.d/zfsutils-linux fails to execute due to a bad default path in environment.


The command "zpool" located at path /sbin cannot be found by the cron script because /sbin is not included in the default path when this cron file is executed. zpool is required to perform the scrub.

I'd suggest this can be fixed by adding /sbin to a PATH var in the cron file, or by explicitly calling the full path and file name "/sbin/zpool" in the script /usr/lib/zfs-linux/scrub instead of just calling "zpool".

The path I use at the top of the /etc/cron.d/zfsutils-linux file that fixes this issue for me is: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

I am using Debian GNU/Linux 8 with jessie-backports, kernel 3.16.0-4-amd64 and libc6 2.19-18+deb8u6.

Reply via email to