Debian Bug report logs -
#846460
zfsutils-linux automatic monthly scrub fails due to bad default path in cron
Reported by: Ashley <ashleyf@netspace.net.au>
Date: Thu, 1 Dec 2016 08:15:02 UTC
Severity: normal
Found in version zfs-linux/0.6.5.8-1~bpo8+1
Fixed in version 0.6.5.8-2
Done: Aron Xu <happyaron.xu@gmail.com>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded
to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#846460; Package zfsutils-linux.
(Thu, 01 Dec 2016 08:15:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Ashley <ashleyf@netspace.net.au>:
New Bug report received and forwarded. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>.
(Thu, 01 Dec 2016 08:15:05 GMT) (full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
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.
Information forwarded
to debian-bugs-dist@lists.debian.org, Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>:
Bug#846460; Package zfsutils-linux.
(Thu, 01 Dec 2016 08:57:05 GMT) (full text, mbox, link).
Acknowledgement sent
to Richard Laager <rlaager@wiktel.com>:
Extra info received and forwarded to list. Copy sent to Debian ZFS on Linux maintainers <pkg-zfsonlinux-devel@lists.alioth.debian.org>.
(Thu, 01 Dec 2016 08:57:05 GMT) (full text, mbox, link).
Message #10 received at 846460@bugs.debian.org (full text, mbox, reply):
This was fixed in Ubuntu by adding a PATH line:
$ cat /etc/cron.d/zfsutils-linux
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# Scrub the second Sunday of every month.
24 0 8-14 * * root [ $(date +\%w) -eq 0 ] && [ -x
/usr/lib/zfs-linux/scrub ] && /usr/lib/zfs-linux/scrub
--
Richard
Reply sent
to Aron Xu <happyaron.xu@gmail.com>:
You have taken responsibility.
(Sat, 07 Jan 2017 09:27:05 GMT) (full text, mbox, link).
Notification sent
to Ashley <ashleyf@netspace.net.au>:
Bug acknowledged by developer.
(Sat, 07 Jan 2017 09:27:05 GMT) (full text, mbox, link).
Message #15 received at 846460-close@bugs.debian.org (full text, mbox, reply):
[Message part 1 (text/plain, inline)]
Source-Version: 0.6.5.8-2
Should be fixed in. 0.6..5.8-2 by syncing Richard's changes in Ubuntu.
Regards,
Aron
[Message part 2 (text/html, inline)]
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 05 Feb 2017 07:30:08 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sat Jul 1 20:36:21 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.