Gottfried ~ # fdisk -l /dev/sda
Disk /dev/sda: 599.6 GB, 599550590976 bytes, 1170997248 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xcc1ce4ca
Device Boot Start End Blocks Id System
/dev/sda1 63 80324 40131 de Dell Utility
/dev/sda2 * 81920 1130495 524288 83 Linux
/dev/sda3 1130496 168902655 83886080 8e Linux LVM
/dev/sda4 168902656 1170997247 501047296 83 Linux
Gottfried ~ # fdisk -l /dev/sdb
Disk /dev/sdb: 4000.2 GB, 4000225165312 bytes, 7812939776 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x3b454267
Device Boot Start End Blocks Id System
/dev/sdb1 2048 50333695 25165824 83 Linux
/dev/sdb2 50333696 1052772351 501219328 83 Linux
Gottfried ~ # mount | grep /mnt/sas
/dev/sda4 on /mnt/sas15k type xfs (rw)
/dev/sdb2 on /mnt/sas7.2k type xfs (rw)
filesystem=xfs; datestr=$(date +%Y%m%d); for dev in sas15k sas7.2k
do
for rw in randwrite randread write read
do
for i in $(seq 10)
do
(time fio -filename=/mnt/${dev}/fio.bin -ioengine=libaio -direct=1 -invalidate=1 -rw=${rw} -bs=4k -size=4G -numjobs=64 -runtime=180 -group_reporting -name=job1) > ~/fio.${rw}.${dev}.${filesystem}.${datestr}.${i}.txt 2>&1
done
done
done