FreeBSD/scripts/cam_tag.sh

17 lines
428 B
Bash
Raw Normal View History

2020-05-26 21:15:31 -07:00
#!/usr/local/bin/bash
2021-04-18 01:07:42 -07:00
# Copyright (c) 2018-2021, diyIT.org
# All rights reserved.
#
# BSD 2-Clause License ("Simplified BSD License" or "FreeBSD License")
# https://diyit.org/license/
#
#
2020-05-26 21:15:31 -07:00
#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