Bug 919311

Summary: running /etc/cron.daily/0logwatch spins up drive
Product: [Fedora] Fedora Reporter: Peter Backes <rtc>
Component: logwatchAssignee: Jan Synacek <jsynacek>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 18CC: frank, jsynacek, richardfearn, varekova
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-25 07:15:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 454582    

Description Peter Backes 2013-03-08 03:09:41 UTC
Description of problem:
since about a week or two, the automatic (or a manual) run of /etc/cron.daily/0logwatch spins up disks that have no mounted partitions and that have been put to sleep with hdparm -y

Version-Release number of selected component (if applicable):
logwatch-7.4.0-23.20130102svn127.fc18.noarch

How reproducible:
always

Steps to Reproduce:
1. add disk
2. put disk to sleep with eg hdparm -y /dev/sdb
3. run /etc/cron.daily/0logwatch
  
Actual results:
disk spins up

Expected results:
disk status unaffected

Comment 1 Peter Backes 2013-03-09 06:07:25 UTC
apparently caused by mdadm --examine --scan being invoked in /usr/share/logwatch/scripts/services/mdadm

Comment 2 Peter Backes 2013-03-09 06:18:29 UTC
Workaround: yum downgrade logwatch

It currently downgrades to 7.4.0-18.20120619svn110.fc18.noarch which has no /usr/share/logwatch/scripts/services/mdadm

Comment 4 Peter Backes 2013-06-21 19:17:46 UTC
Better workaround: Append the following line to /etc/logwatch/conf/logwatch.conf

Service = "-mdadm"

Comment 5 Jan Synacek 2013-06-25 07:15:25 UTC
(In reply to Peter Backes from comment #4)
> Better workaround: Append the following line to
> /etc/logwatch/conf/logwatch.conf
> 
> Service = "-mdadm"

Not a workaround, it's just a matter of configuration. Closing this as NOTABUG.