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

Support of two NICs for PXE boot / diskless deployment #7484

Open
langeseb opened this issue Dec 9, 2024 · 0 comments
Open

Support of two NICs for PXE boot / diskless deployment #7484

langeseb opened this issue Dec 9, 2024 · 0 comments

Comments

@langeseb
Copy link

langeseb commented Dec 9, 2024

Hey all!

We have encountered some issues using 2 different NICs for the pxe-boot.
Reason: We have two NICs on two separate switchstacks in our servers due to redundancy. During boot, we can't tell which NIC has the active uplink.
Description of issue: Therefore you can setup both NICs in the boot order (BIOS), switching to the second NIC after a timeout. On the other side, this must be setup within the xcat database in order recognize both NICs for xnba netboot. You can setup with chdef myNode mac="firstNICsMAC|secondNICsMAC" two MAC adresses in the xcat database in order to have them recognized by the DHCP deamon. Then, you setup your node with nodeset myNode osimage and makedhcp myNode. This generates the required entries in the dhcp.leases file in /var/lib/dhcpd/dhcpd.leases. The makedhcp writes two blocks in the leases file host myNode { .... firstNICsMAC ...} and host myNode { .... secondNICsMAC ...}. After that, you have to restart the dhcp service with systemctl restart dhcpd. The issue is, that the dhcp service will complain about two entries for the same host and will overwrite the file, deleting the second entrie.
Suggested solution: The entries made by makedhcp command should have different host identifieres in the leases file. I've tested it manually: renaming myNode in e.g. myNode_N1 and the second entry in the leases file accordingly will not be deleted by the dhcpd restart. The rest of the function block can have the identical entries (e.g. hostname), only the identifier of the block must be unique. With that adaption the leases will be given for both MAC adresses during boot.
Cheers
Sebastian

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

No branches or pull requests

1 participant