diskwipetests:disks_wipe_and_tests
Ceci est une ancienne révision du document !
Table des matières
Disks wipe and tests
look at SMART values
# smartctl -a /dev/sda
check the global SMART status
# smartctl -H /dev/sda
wipe the disk
# dd if=/dev/zero of=/dev/sda bs=128M
check the bandwidth (continuous writes) with iotop (apt get update / apt-get install iotop / iotop)
test the disk with diskscan
# diskscan -s random /dev/sda
check the bandwidth (random reads) with iotop
test the disk with internal SMART routine
# smartctl -t long /dev/sda
watch test progress with
# smartctl -a /dev/sda
fio
Script :
DATEHOUR=$(date "+%Y%m%d-%H%M%S" DISKNAME="iscsi" fio \ --size=10G \ --sync=0 \ --fsync=100 \ --direct=1 \ --verify=0 \ --zero_buffers \ --invalidate=1 \ --ioengine=libaio \ --rw=randrw \ --rwmixread=50 \ --bssplit=8k/50:16k/50 \ --numjobs=50 \ --iodepth=64 \ --runtime=120 \ --time_based \ --group_reporting \ --gtod_reduce=1 \ --filename=fio_pool \ --name "fio_test_${DISKNAME}-${DATEHOUR}"
Shell :
# DATEHOUR=$(date "+%Y%m%d-%H%M%S") # DISKNAME="iscsi" # fio --size=10G --sync=0 --fsync=100 --direct=1 --verify=0 --zero_buffers --invalidate=1 --ioengine=libaio --rw=randrw --rwmixread=50 --bssplit=8k/50:16k/50 --numjobs=50 --iodepth=64 --runtime=120 --time_based --group_reporting --gtod_reduce=1 --filename=fio_pool --name "fio_test_${DISKNAME}-${DATEHOUR}"
diskwipetests/disks_wipe_and_tests.1533031194.txt.gz · Dernière modification : 2018/07/31 09:59 de ronan