Jump to content

User:Elukey/Ops/Disks

From Wikitech

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