Drive virtIO to isci

Norberto Iannicelli

Renowned Member
May 9, 2016
54
0
71
39
good morning everyone. I need to change my drive from virtio virtual machines to iscsi and I would like to know if there is any way to do this.
I have had a lot of trouble with read mode when my storage migrates from master to slave. In virtio I can not set timeout for disks, in iscsi I can set this timeout and solve this problem.
Has anyone here been through this that might be giving me a hint on how to do this conversion?
I researched a lot and saw that through the virtio I can not set this timeout on the disk of the virtual machines, so I need to migrate to iscsi.

My storage is a NAS-HA and I connect it via NFS.
 
Last edited:
This working for me?

for a in /sys/class/scsi_generic/*/device/timeout; do echo -n "$a "; cat "$a" ; done;
for i in /sys/class/scsi_generic/*/device/timeout; do echo 360 > "$i"; done