summaryrefslogtreecommitdiff
path: root/roles/elevate/media/templates/dstat.sh.j2
blob: fe1848da3f75a14a809e6fbb470f2e477c59d81d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

SSD=$(readlink -f /dev/disk/by-id/ata-Samsung_SSD_840_Series_S14GNEACC92243K | xargs basename)
RAID_DISK0=$(readlink -f /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N6PJ1CSJ | xargs basename)
RAID_DISK1=$(readlink -f /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4ND0PVLUE | xargs basename)
RAID_DISK2=$(readlink -f /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N2AYHY8E | xargs basename)
RAID_DISK3=$(readlink -f /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N2AYH7RF | xargs basename)

DISKS="$SSD,$RAID_DISK0,$RAID_DISK1,$RAID_DISK2,$RAID_DISK3"
if [ -n "$1" ]; then
  DISKS="$DISKS,$1"
fi

exec dstat -cymnd -D "$DISKS" --top-io --top-bio