Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
dragnet:cluster_support [2017-08-24 20:38] – [Failing Components] answers to vendor questions on broken disk amesfoort | dragnet:cluster_support [2017-08-29 11:09] (current) – [Failing Components] add smartd restart ansible command amesfoort | ||
---|---|---|---|
Line 80: | Line 80: | ||
You may continue working, send the same command to the next drive, or even reboot. The drive will continue when no other requests are there. An extended test may take many hours. Afterwards, you can show the S.M.A.R.T. information again to see the result, but if a failure threshold was exceeded, our '' | You may continue working, send the same command to the next drive, or even reboot. The drive will continue when no other requests are there. An extended test may take many hours. Afterwards, you can show the S.M.A.R.T. information again to see the result, but if a failure threshold was exceeded, our '' | ||
+ | To run a sudo command for all drives on all '' | ||
+ | #!/bin/sh | ||
+ | hostname; smartctl --test=long /dev/sda; smartctl --test=long /dev/sdb; smartctl --test=long /dev/sdc; smartctl --test=long /dev/sdd | ||
+ | mark it executable and run it via ansible as superuser: | ||
+ | $ chmod 755 $HOME/ | ||
+ | $ ansible workers -b -K -f 25 -a ' | ||
+ | then type your password once. | ||
+ | |||
+ | To restart all smartd services, run: | ||
+ | $ ansible alldragnet -b -K -f 25 -a ' | ||
== Upon Drive Failure == | == Upon Drive Failure == | ||
Line 114: | Line 124: | ||
For disk replacement, | For disk replacement, | ||
+ | The '' | ||
==== Overview Examples of mdadm and lsblk ==== | ==== Overview Examples of mdadm and lsblk ==== |