Oracle® Solaris 11.2 Tunable Parameters Reference Manual

Exit Print View

Updated: December 2014
 
 

System Check Script

Confirming Flush Behavior on the System

This script facilitates confirmation that flush behavior is correct on your system after tuning ZFS and flash storage. For more details, refer to Ensuring Proper Cache Flush Behavior for Flash and NVRAM Storage Devices. After you have completed the steps indicated, run the following script.

#!/bin/ksh
#
#cd /dev/rdsk
#for d in *d0; do
#	/export/home/admin1/bin/sdflush.sh $d
#done
#
#

if [[ $# -ne 1 ]]; then
    echo "Usage: $0 cxtx..."
    exit 1;
fi

sd=`iostat -x $1 2>&1 | grep sd | nawk '{print $1}' | sed s/sd//`
printf "Value for %s : " $1
echo '*sd_state::softstate 0t'$sd' | ::print struct sd_lun un_phy_blocksize' \
    | mdb -k

#echo '*sd_state::softstate 0t'$sd' | ::print struct sd_lun un_f_suppress_cache_flush' \
#echo '*sd_state::softstate 0t'$sd' | ::print struct sd_lun un_phy_blocksize' \