Project

General

Profile

Bug #35497

Wait for all-device probe to complete before mounting root

Added by Bonnie Follweiler over 2 years ago. Updated about 2 years ago.

Status:
Done
Priority:
No priority
Assignee:
Alexander Motin
Category:
OS
Target version:
Seen in:
Severity:
Low
Reason for Closing:
Reason for Blocked:
Needs QA:
No
Needs Doc:
No
Needs Merging:
No
Needs Automation:
No
Support Suite Ticket:
n/a
Hardware Configuration:
ChangeLog Required:
No

Description

Is there a way to mute the message (screenshot provided) during installation of the latest version of FreeNAS (FreeNAS 11.2-INTERNAL7)

install error.jpg (89.4 KB) install error.jpg Bonnie Follweiler, 06/21/2018 07:32 AM
19135

Associated revisions

Revision 63c31d6a (diff)
Added by Alexander Motin about 2 years ago

Wait for all device probe to complete before mounting root, even if the root device is already available. This allows to avoid USB probe messages printed over the installer menu. This is needed only in installer with its UFS, since ZFS root of installed system implies it automatically. Ticket: #35497

Revision 7e8810f6 (diff)
Added by Alexander Motin about 2 years ago

Wait for all device probe to complete before mounting root. (#91) This allows to avoid late USB device probe messages printed over the installer menu. This is needed only in installer with its UFS, since ZFS root of installed system implies it automatically. Ticket: #35497 (cherry picked from commit 63c31d6a7e7126c2ec9a7a2fc7092e0544f77de5)

History

#1 Updated by Dru Lavigne over 2 years ago

  • Assignee changed from William Grzybowski to Alexander Motin

#2 Updated by Alexander Motin over 2 years ago

That message is a regular device detection message, possibly some USB detection takes too long time. I am not sure we can block that, at least I don't know how right now. If we wait a bit more during boot, it may not be a problem, but that is also a high-cost workaround, not a fix.

#3 Updated by Alexander Motin about 2 years ago

  • Status changed from Unscreened to Screened
  • Target version changed from Backlog to 11.2-RC2
  • Severity changed from New to Low
  • Seen in changed from 11.2-RC2 to 11.2-BETA1

I'll probably add some boot delay after beta1 is out to hide those.

#4 Updated by Alexander Motin about 2 years ago

What we need here is estimate minimal value of kern.cam.boot_delay loader tunable, sufficient to make USB devices complete probing before the root mounting attempt. Right now we have it set to 30000 milliseconds for FreeNAS normal boot, and 10000 milliseconds for TrueNAS normal boot, and no values set for installer. But those values, especially FreeNAS one, are pretty high, and I'd really like them to be lower.

Bonnie, could you experiment with that on different systems with different USB devices plugged in, doing different `set kern.cam.boot_delay=XXXXXX` in loader prompt and checking that no USB devices are reported in `dmesg` after the root mount or root mount waiting line? I could just blindly add 5-10 seconds wait there for installer, but would prefer to have any real input there.

#5 Updated by Dru Lavigne about 2 years ago

  • Target version changed from 11.2-RC2 to 11.2-BETA3

#6 Avatar?id=14398&size=24x24 Updated by Kris Moore about 2 years ago

  • Target version changed from 11.2-BETA3 to Backlog

#8 Updated by Alexander Motin about 2 years ago

  • Status changed from Screened to In Progress
  • Target version changed from Backlog to 11.2-BETA2
  • Needs Doc changed from Yes to No

I think I've found nicer workaround without fixed delay: https://github.com/freenas/build/pull/91

#9 Updated by Alexander Motin about 2 years ago

  • Status changed from In Progress to Ready for Testing

#10 Updated by Alexander Motin about 2 years ago

  • Needs Merging changed from Yes to No

#11 Updated by Dru Lavigne about 2 years ago

  • Subject changed from Can we Mute the uhub0: message when installing using 11.2-INTERNAL7 to Wait for all device probe to complete before mounting root

#12 Updated by Bonnie Follweiler about 2 years ago

  • Status changed from Ready for Testing to Passed Testing

Test passed in FreeNAS-11.2-MASTER-201807230852

#13 Updated by Bonnie Follweiler about 2 years ago

  • Needs QA changed from Yes to No

#14 Updated by Dru Lavigne about 2 years ago

  • Subject changed from Wait for all device probe to complete before mounting root to Wait for all-device probe to complete before mounting root
  • Status changed from Passed Testing to Done

Also available in: Atom PDF