ieee1275/ofdisk: retry on open and read failure
PATCH RESEND v6 1/1 ieee1275/ofdisk: retry on open and read failure
Sometimes, when booting from a very busy SAN, the access to the disk can fail and then GRUB will eventually drop to GRUB prompt. This scenario is more frequent when deploying many machines at the same time using the same SAN.
This patch aims to force the ofdisk module to retry the open or read function for network disks after it fails. We use DEFAULT_RETRY_TIMEOUT, which is 15 seconds to specify the time it'll retry to access the disk before it definitely fails. The timeout can be changed by setting the environment variable ofdisk_retry_timeout. If the environment variable fails to read, GRUB will consider the default value of 15 seconds.
--- docs/grub.texi | 8 ++++ grub-core/disk/ieee1275/ofdisk.c | 82 ++++++++++++++++++++++++++++++-- 2 files changed, 87 insertions(+), 3 deletions(-)
docs/grub.texi +8 -0
@@ -3308,6 +3308,7 @@ These variables have special meaning to GRUB. * net_default_ip:: * net_default_mac:: * net_default_server:: +* ofdisk_retry_timeout:: * pager:: * prefix:: * pxe_blksize::
@@ -3738,6 +3739,13 @@ The default is the value of @samp{color_normal} (@pxref{color_normal}). @xref{Network}. +@node ofdisk_retry_timeout +@subsection ofdisk_retry_timeout + +The time in seconds till which the GRUB will retry to open or read a disk in +case of failure to do so. This value defaults to 15 seconds. + + @node pager @subsection pager
grub-core/disk/ieee1275/ofdisk.c +79 -3
112 lines not on this page · raw message
Signature · 7 lines
2.46.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel