Okey, I see what you want here. Do you assume that scsi-0:0:0:0 is linked to what you got by "lsscsi |grep scsi_debug| awk '{print $6}'"?? I guess we can use the result of this command here, it seems more suitable than hard coding of scsi-0000 and an assumption.