
#for i in {0..29};do ls /sys/devices/pci0000:c0/0000:c0:03.1/0000:c1:00.0/host1/port-1:0/expander-1:0/port-1:0:$i/end_device-1:0:$i/target1:0:$i/1:0:$i:0/block/ ;done

for i in {0..29};do d=$(ls /sys/devices/pci0000:c0/0000:c0:03.1/0000:c1:00.0/host1/port-1:0/expander-1:0/port-1:0:$i/end_device-1:0:$i/target1:0:$i/1:0:$i:0/block/);echo 1 > /sys/block/$d/device/delete;done

#echo "- - -" > /sys/class/scsi_host/host1/scan
