How Can I Set the fp and fcp Drivers' Time Parameters That Determine How Long a Host Will Wait Before Offlining Disks Upon a Link Failure?
- After fp_offline_ticker of driver fp and fcp_offline_delay of driver fcp are modified, the time that a host will wait before offlining disks upon a link failure is changed, affecting I/O suspension time.
- Modification of the two parameters applies to all storage device links controlled by the fp and fcp drivers on the host.
- If the value of fp_offline_ticker is beyond [10, 90] or the value of fcp_offline_delay is beyond [10, 60], an alarm is recorded in the log file /var/adm/messages of the operating system.
- After modifying the parameters, restart the host for the modification to take effect.
- For Solaris 10:
- Modify fp_offline_ticker (default value: 90 seconds) in the /kernel/drv/fp.conf file. If this configuration item does not exist, add the following configuration:
fp_offline_ticker = time;
Wherein, time is expressed in seconds.
- Modify fcp_offline_delay (default value: 20 seconds) in the /kernel/drv/fcp.conf file. If this configuration item does not exist, add the following configuration:
fcp_offline_delay = time;
Wherein, time is expressed in seconds.
- Restart the server for the configuration to take effect.
- After the server is restarted, check whether the modification takes effect.
- Run the echo "fp_offline_ticker/U"|mdb -k command to check whether fp_offline_ticker is successfully modified.
# echo "fp_offline_ticker/U"|mdb -k fp_offline_ticker: fp_offline_ticker: 90
- Run the echo"fcp_offline_delay/U"|mdb -k command to check whether fcp_offline_delay is successfully modified.
# echo "fcp_offline_delay/U"|mdb -k fcp_offline_delay: fcp_offline_delay: 20
- Run the echo "fp_offline_ticker/U"|mdb -k command to check whether fp_offline_ticker is successfully modified.
- Modify fp_offline_ticker (default value: 90 seconds) in the /kernel/drv/fp.conf file. If this configuration item does not exist, add the following configuration:
- For Solaris 11:
- Check whether the fp.conf file exists in the /etc/driver/drv/ directory.
If the file does not exist, run the cp /kernel/drv/fp.conf /etc/driver/drv/fp.conf command to copy the fp.conf file to the /etc/driver/drv/ directory.
- Modify fp_offline_ticker (default value: 90 seconds) in the /etc/driver/drv/fp.conf file. If this configuration item does not exist, add the following configuration:
fp_offline_ticker = time;
Wherein, time is expressed in seconds.
- Check whether the fcp.conf file exists in the /etc/driver/drv/ directory.
If the file does not exist, run the cp /kernel/drv/fcp.conf /etc/driver/drv/fcp.conf command to copy the fcp.conf file to the /etc/driver/drv/ directory.
- Modify fcp_offline_delay (default value: 20 seconds) in the /etc/driver/drv/fcp.conf file. If this configuration item does not exist, add the following configuration:
fcp_offline_delay = time;
Wherein, time is expressed in seconds.
- Restart the server for the configuration to take effect.
- After the server is restarted, check whether the modification takes effect
- Run the echo "fp_offline_ticker/U"|mdb -k command to check whether fp_offline_ticker is successfully modified.
# echo "fp_offline_ticker/U"|mdb -k fp_offline_ticker: fp_offline_ticker: 90
- Run the echo "fcp_offline_delay/U"|mdb -k command to check whether fcp_offline_delay is successfully modified.
# echo "fcp_offline_delay/U"|mdb -k fcp_offline_delay: fcp_offline_delay: 20
- Run the echo "fp_offline_ticker/U"|mdb -k command to check whether fp_offline_ticker is successfully modified.
- Check whether the fp.conf file exists in the /etc/driver/drv/ directory.