This commit is contained in:
brent s 2017-10-09 14:46:47 -04:00
parent 300beededb
commit b489c69772

View File

@ -44,11 +44,11 @@ def chkDisk(disk):
if not diff >= timedelta: if not diff >= timedelta:
d += '_secondary' d += '_secondary'
bb = ['badblocks', bb = ['badblocks',
'-o /var/log/badblocks/{0}.log'.format(d), '-o', '/var/log/badblocks/{0}.log'.format(d),
disk] disk]
smctl = ['smartctl', smctl = ['smartctl',
'-t long', '-t', 'long',
'-d sat', '-d', 'sat',
disk] disk]
for c in (bb, smctl): for c in (bb, smctl):
subprocess.run(c) subprocess.run(c)