iSCSI Settings
The iSCSI service does not start automatically by default when the PVE-node boots. For more information, see iSCSI Multipath.
The /etc/iscsi/iscsid.conf file must change the line so that the initiator starts automatically.
The default 'node.session.timeo.replacement_timeout' is 120 seconds. It is recommended to use a smaller value of 15 seconds instead.
If a port reinitialize is done, the port may be unable to login on its own. In this case, the attempts must be increased here:
Restart the service using the following command:
systemctl start iscsid
Logging in to the iSCSI Targets on Boot
For each connected iSCSI target, set the node.startup parameter in the target to automatic. The target is specified in the /etc/iscsi/nodes/<TARGET>/<PORTAL>/default file.
SCSI Disk Timeout
Set the timeout to 80 seconds for all the SCSI devices created from the SANsymphony virtual disks.
For Example: cat /sys/block/sda/device/timeout
Two methods may be used to change the SCSI disk timeout for a given device.
- Use the ‘echo’ command – this is temporary and will not survive the next reboot of the Linux host server.
- Create a custom ‘udev rule’ – this is permanent, however, will require a reboot for the setting to take effect.
Using the ‘echo’ Command (will not survive a reboot)
Set the SCSI Disk timeout value to 80 seconds using the following command:
echo 80 > /sys/block/[disk_device]/device/timeout
Creating a Custom ‘udev’ Rule
Create a file called /etc/udev/rules.d/99-datacore.rules with the following settings:
- Ensure that the udev rule is exactly as written above. If not, the Linux operating system will default back to 30 seconds.
- There are four blank white-space characters after the ATTRS {model} string which must be observed. If not, paths to SANsymphony virtual disks may not be discovered.
For more information, see the Linux Host Configuration Guide.