[Bug 1293152] Re: fstrim-all weekly cron generate noise when hdparm isn't installed or on a VM; noisy in VMs
Matthew L. Dailey
matthew.l.dailey at dartmouth.edu
Wed Apr 23 17:59:51 UTC 2014
Unless I'm missing something, I don't think the fix here was fully
successful. In the case of a VMware VM running 14.04, hdparm spits out a
sense data error on stderr:
# hdparm -I /dev/sda1 1>/dev/null
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
So, fstrim-all also spits this out on stderr which then gets sent to
root's mail by cron.weekly:
# /sbin/fstrim-all 1>/dev/null
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 20 00 00 c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
It looks like the intent was to have the stderr of hdparm piped to
/dev/null, but this isn't inside the backticks in the fstrim-all script.
To fix this, I think we just need the attached trivial patch.
This is mostly just an annoyance, but it would be nice to get fixed. If
it makes more sense to open this as a new bug, let me know.
** Patch added: "fstrim-all.patch"
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1293152/+attachment/4094509/+files/fstrim-all.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1293152
Title:
fstrim-all weekly cron generate noise when hdparm isn't installed or
on a VM; noisy in VMs
Status in “util-linux” package in Ubuntu:
Fix Released
Bug description:
Every week, the fstrim-all cron job sends such email alert to the
admin if hdparm isn't available:
hdparm not available, cannot TRIM
The cron job doesn't fail, thanks to LP: #1278048, but those emails
are probably not very useful to the admin.
$ lsb_release -rd
Description: Ubuntu Trusty Tahr (development branch)
Release: 14.04
$ apt-cache policy util-linux
util-linux:
Installed: 2.20.1-5.1ubuntu16
Candidate: 2.20.1-5.1ubuntu16
Version table:
*** 2.20.1-5.1ubuntu16 0
500 http://archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1293152/+subscriptions
More information about the foundations-bugs
mailing list