diskwipetests:disks_wipe_and_tests
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| diskwipetests:disks_wipe_and_tests [2018/07/31 09:59] – créée ronan | diskwipetests:disks_wipe_and_tests [2025/01/30 16:02] (Version actuelle) – ghusson | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ===== look at SMART values ===== | ===== look at SMART values ===== | ||
| - | + | <code bash> | |
| - | # | + | smartctl -a /dev/sda |
| + | </ | ||
| ===== check the global SMART status ===== | ===== check the global SMART status ===== | ||
| - | + | <code bash> | |
| - | # | + | smartctl -H /dev/sda |
| + | </ | ||
| ===== wipe the disk ===== | ===== wipe the disk ===== | ||
| - | + | <code bash> | |
| - | # | + | dd if=/ |
| + | </ | ||
| ===== check the bandwidth (continuous writes) with iotop (apt get update / apt-get install iotop / iotop) ===== | ===== check the bandwidth (continuous writes) with iotop (apt get update / apt-get install iotop / iotop) ===== | ||
| ===== test the disk with diskscan ===== | ===== test the disk with diskscan ===== | ||
| - | + | <code bash> | |
| - | # | + | diskscan -s random /dev/sda |
| + | </ | ||
| ===== check the bandwidth (random reads) with iotop ===== | ===== check the bandwidth (random reads) with iotop ===== | ||
| ===== test the disk with internal SMART routine ===== | ===== test the disk with internal SMART routine ===== | ||
| - | + | <code bash> | |
| - | # | + | smartctl -t long /dev/sda |
| + | </ | ||
| ===== watch test progress with ===== | ===== watch test progress with ===== | ||
| - | + | <code bash> | |
| - | # | + | smartctl -a /dev/sda |
| + | </ | ||
| ===== fio ===== | ===== fio ===== | ||
| **Script :** | **Script :** | ||
| - | DATEHOUR=$(date " | + | DATEHOUR=$(date " |
| DISKNAME=" | DISKNAME=" | ||
| fio \ | fio \ | ||
| Ligne 57: | Ligne 57: | ||
| **Shell :** | **Shell :** | ||
| - | + | <code bash> | |
| - | # | + | DATEHOUR=$(date " |
| - | # | + | DISKNAME=" |
| - | # | + | fio --size=10G --sync=0 --fsync=100 --direct=1 --verify=0 --zero_buffers --invalidate=1 --ioengine=libaio --rw=randrw --rwmixread=50 --bssplit=8k/ |
| + | </ | ||
diskwipetests/disks_wipe_and_tests.1533031194.txt.gz · Dernière modification : 2018/07/31 09:59 de ronan