-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timberland final v3 with preserved autoconnect logic #7
Timberland final v3 with preserved autoconnect logic #7
Conversation
da7b094
to
7a62d85
Compare
7a62d85
to
83a5260
Compare
modules.d/95nvmf/nvmf-autoconnect.sh
Outdated
# Make sure we don't use unsupported options with earlier versions. | ||
NBFT_SUPPORTED= | ||
# shellcheck disable=SC2016 | ||
/usr/sbin/nvme connect-all --help 2>&1 | sed -n '/[[:space:]]--nbft[[:space:]]/q1;$q0' \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Let's push this upstream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
@johnmeneghini, if you approve, please merge this into your branch. It would feel odd if I did it. |
The hostname field in the NBFT is optional. Don't print a confusing error message 'NBFT: jq error while processing ".host_name"' if it is missing.
Since nvme-cli 2.0, configuration of subsystems to connect to is stored under `/etc/nvme` in either `discovery.conf` or `config.json`. Attempt discovery also if the latter exists, but not the former. Also, install "config.json" if it's present on the root FS. As before, "rd.nvmf.discover=fc,auto" will force either file to be ignored, and NBFT-defined targets take precedence if found.
This parameter causes any NVMe-oF targets specified during initramfs build to be ignored. This includes discovery.conf and config.json, as well as hostonly parameters determined at initramfs build time. The rationale is that network topology and available connections may have changed since the initramfs was built. Statically configured connections may fail or time out, causing potential boot failure. This parameter allows skipping such broken connections, and relying on dynamic configuration (NBFT or FC-autoconnect) exclusively.
3869355
to
64d30f4
Compare
83a5260
to
9865102
Compare
I have rebased this branch onto the new |
Thanks John! |
Changes