Jump to content

User:Elukey/Ops/Disks

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Snippets

Check smartctl on all the kafka partitions and grep for defects:

for el in `df -h | grep spool | cut -d " " -f 1`; do echo $el; sudo smartctl -a $el | grep defect; done

MegaCLI Show adapter info

sudo megacli -AdpAllInfo -aALL

MegaCLI show disks details:

sudo megacli -LDInfo -Lall -aALL (grep State is very useful)
sudo megacli -PDList -aALL

Past tasks to check

https://phabricator.wikimedia.org/T134056

https://phabricator.wikimedia.org/T131758

https://phabricator.wikimedia.org/T125199