1. Verificare gli attributi delle porte remote FC utilizzando il comando seguente:
# udevadm info --attribute-walk --path=/sys/class/fc_remote_ports/rport-x:y-z
2. Quindi creare regole udev che corrispondano a tutti i rapporti validi facendo corrispondere il "ruolo" menzionato negli attributi restituiti nel comando precedente. Ad esempio, crea /etc/udev/rules.d/99-tmo.rules e includi i seguenti contenuti.
ACTION!="add|change", GOTO="tmo_end" KERNELS=="rport-?*", SUBSYSTEM=="XXXX", ATTR{roles}=="XXXX", ATTR{dev_loss_tmo}="xx" LABEL="tmo_end"
Nell'esempio, gli attributi restituiti dall'output del primo comando dove,
SUBSYSTEM="fc_remote_ports" roles="FCP Target" dev_loss_tmo=30
Quindi la regola per aumentare il dev_loss_tmo a 700000 sarà come;
ACTION!="add|change", GOTO="tmo_end" KERNELS=="rport-?*", SUBSYSTEM=="fc_remote_ports", ATTR{roles}=="FCP Target", ATTR{dev_loss_tmo}="700000" LABEL="tmo_end"
3. Quindi ricarica le regole di udev:
# udevadm control --reload
4. Attiva le regole per il sottosistema:
# udevadm trigger --subsystem-match="XXXX"Nota :Se l'attributo fast_io_fail_tmo restituisce 0 o è disattivato, abilitalo anche affinché l'attributo dev_loss_tmo abbia effetto.
Ad esempio:
ACTION!="add|change", GOTO="tmo_end" KERNELS=="rport-?*", SUBSYSTEM=="fc_remote_ports", ATTR{roles}=="FCP Target", ATTR{dev_loss_tmo}="700000", ATTR{fast_io_fail_tmo}="5" LABEL="tmo_end"