FreeBSD/scripts/cam_tag.sh
2020-05-26 21:15:31 -07:00

8 lines
260 B
Bash
Executable File

#!/usr/local/bin/bash
#shrinking the command Native Command Queue down to 1 effectively disabling queuing
for Disk in `camcontrol devlist | grep "ST8000DM" | cut -d"," -f2 | cut -d")" -f1`;
do
camcontrol tags $Disk -N 1 ;
camcontrol tags $Disk -v
done