I have tried to use the below command to scan Lun0 as the design:
echo "1" > /sys/class/fc_host/$i/issue_lip
echo '- - -' >/sys/class/scsi_host/host*/scan
But It doesn't work with exec.command.
So I use ioutil.WriteFile to scan the lun0.
I have test with the branch, and it works well.
The CI with this branch is ongoing.
Coverage decreased (-2.0%) to 50.0% when pulling 2a19e60835ebe2471d192d4f6fc5782132710f2f on fix/UB-1103_ds8k_storwize_lun0_rescan into eef6f1dbc6707425a6b4b56a76d3b9029f01c83e on master.
I have tried to use the below command to scan Lun0 as the design: echo "1" > /sys/class/fc_host/$i/issue_lip echo '- - -' >/sys/class/scsi_host/host*/scan But It doesn't work with exec.command. So I use ioutil.WriteFile to scan the lun0. I have test with the branch, and it works well. The CI with this branch is ongoing.
This change is