scsi remove-single-device

/ ... / Linux / scsi remove-single-device

scsi remove-single-device

 

:

echo "scsi remove-single-device H B T L" > /proc/scsi/scsi

H = Host  
B = Bus    
T = Target ""
L = LUN ( )

echo 1 > /sys/class/scsi_host/hostH/device/H:B:T:L/delete

echo 1 > /sys/class/scsi_host/hostH/device/targetH:B:T/H:B:T:L/delete

echo "- - -" > /sys/class/scsi_host/host<H>/scan

<H>:
echo "- - -" > /sys/class/scsi_host/host<H>/scan


echo "scsi add-single-device 0 0 0 0" > /proc/scsi/scsi
echo "B T L" > /sys/class/scsi_host/hostH/scan

## !!! - - sda sdc,
## .. - -
## UUID

::