[debian-edu-commits] [Git][debian-edu/upstream/sitesummary][master] Throw away errors from hdparm to reduce noise from HW RAID machines
Petter Reinholdtsen
gitlab at salsa.debian.org
Wed Mar 13 08:10:21 GMT 2019
Petter Reinholdtsen pushed to branch master at Debian Edu / upstream / sitesummary
Commits:
4744e2d5 by Petter Reinholdtsen at 2019-03-13T08:10:01Z
Throw away errors from hdparm to reduce noise from HW RAID machines
At least on some HW RAID setups, hdparm -I report an error.
Closes: #924451
- - - - -
1 changed file:
- collect.d/system
Changes:
=====================================
collect.d/system
=====================================
@@ -44,7 +44,7 @@ fi
# Collect hard disk information
for diskdev in $(grep 'sd.$' /proc/partitions|awk '{print $4}'|sort); do
- hdparm -I /dev/$diskdev || true
+ hdparm -I /dev/$diskdev 2>/dev/null || true
done > hdparm-I
# Collect zfs hard disk information too
View it on GitLab: https://salsa.debian.org/debian-edu/upstream/sitesummary/commit/4744e2d5e411b3e24c785b3898108631811d8b1d
--
View it on GitLab: https://salsa.debian.org/debian-edu/upstream/sitesummary/commit/4744e2d5e411b3e24c785b3898108631811d8b1d
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-edu-commits/attachments/20190313/a46b523a/attachment.html>
More information about the debian-edu-commits
mailing list