Skip to content
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

nvme: run nvme connect-all --nbft before running the actual probes #150

Closed
wants to merge 1 commit into from

Conversation

ogayot
Copy link
Member

@ogayot ogayot commented Sep 12, 2024

When running in an environment where a NBFT is available, we want probert to collect information about the remote NVMe drives too.

This can be done by calling the nvme connect-all --nbft command. That said, running the command in the NVMe probe code itself will be too late for other probes (e.g., blockdev, filesystem, ...) to pick-up information about the remote NVMe drives.

Instead, we run the command before dispatching the probes ; in a function called "activate_devices". In the long run, I would like to move some code that is currently in the probes (e.g., vgchange --activate=y) to the activate_devices function ; to avoid side effects in the probe code.

@ogayot
Copy link
Member Author

ogayot commented Sep 12, 2024

Marked as a draft because I haven't managed to get a NBFT available in the live installer environment ; using EDK II from timberland-sig.

When running in an environment where a NBFT is available, we want
probert to collect information about the remote NVMe drives too.

This can be done by calling the `nvme connect-all --nbft` command. That
said, running the command in the NVMe probe code itself will be too late
for other probes (e.g., blockdev, filesystem, ...) to pick-up
information about the remote NVMe drives.

Instead, we run the command before dispatching the probes ; in a
function called "activate_devices". In the long run, I would like to
move some code that is currently in the probes (e.g., vgchange
--activate=y) to the activate_devices function ; to avoid side effects
in the probe code.

Signed-off-by: Olivier Gayot <[email protected]>
@ogayot
Copy link
Member Author

ogayot commented Sep 12, 2024

I just tested this by dumping a NBFT and passing it back to qemu using -acpitable file=... . It looks like the command ran properly.

However, it also looks like it is not necessary. nvme-cli ships a nvmf-autoconnect.service systemd service that takes care of it.

@ogayot ogayot closed this Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant