VMware vSphere

 View Only
  • 1.  Ubuntu 22 settings for disk timeour

    Posted Apr 04, 2025 06:22 AM

    Hello together,

    last week we had an issue with storage.

    the Windows VMs are running fine with a few seconds storage lost, but the ubuntu servers are crashing.

    i read a long time ago, that there is a setting to increase the timeout.

    But i cannot find.. only settings for netapp storage.

    any ideas

    Thank you



  • 2.  RE: Ubuntu 22 settings for disk timeour

    Posted Apr 11, 2025 09:08 AM

    Hi,
    this issue is quite common with modern Linux distributions like Ubuntu 22 when there's a brief storage interruption. Unlike Windows, many Linux kernels are more aggressive in how they handle I/O timeouts, especially with default settings.

    You can try increasing the disk timeout by adding a udev rule. Here's how:

    sudo vi /etc/udev/rules.d/99-scsi-timeout.rules 

    And add this line:

    ACTION=="add", SUBSYSTEM=="scsi", ATTR{device/timeout}="180"

    This will increase the timeout to 180 seconds for all SCSI devices.

    Then reload the rules:

    sudo udevadm control --reload sudo udevadm trigger 

    And verify the timeout setting with:

    cat /sys/block/sd*/device/timeout