Yeah, I think LNet needs the address to be tagged with a unique label. The 
patch https://review.whamcloud.com/c/fs/lustre-release/+/53605 may allow you to 
configure the desired NIDs without the labels.

Chris Horn

From: lustre-discuss <[email protected]> on behalf of 
Michael DiDomenico via lustre-discuss <[email protected]>
Date: Tuesday, April 23, 2024 at 8:54 PM
To: lustre-discuss <[email protected]>
Subject: [lustre-discuss] lnet ip aliases
in the past under rhel7 i would do this

[root]# ip add add 192.168.12.29/24<http://192.168.12.29/24> dev enp0s13f0u1 
label enp0s13f0u1:1 broadcast 192.168.12.255 noprefixroute
[root]# ip add show enp0s13f0u1
2: enp0s13f0u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state 
UP group default qlen 1000
    link/ether a0:ce:c8:b2:22:f7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.29/24<http://192.168.10.29/24> brd 192.168.10.255 scope 
global noprefixroute enp0s13f0u1
       valid_lft forever preferred_lft forever
    inet 192.168.12.29/24<http://192.168.12.29/24> brd 192.168.12.255 scope 
global noprefixroute enp0s13f0u1:1
       valid_lft forever preferred_lft forever

[root@cyan ~]# lnetctl net add --ip2net="tcp1(enp0s13f0u1) 192.168.10.*"
[root@cyan ~]# lnetctl net add --ip2net="tcp2(enp0s13f0u1:1) 192.168.12.*"
[root@cyan ~]# lctl list_nids
192.168.10.29@tcp1
192.168.12.29@tcp2

but i've upgraded to redhat9 using network manager fully now.  when i do

[root@cyan system-connections]# nmcli c modify Wired\ connection\ 1 
ipv4.addresses 
"192.168.10.29/24,192.168.12.29/24<http://192.168.10.29/24,192.168.12.29/24>"
[root@cyan system-connections]# nmcli c up Wired\ connection\ 1
Connection successfully activated (D-Bus active path: 
/org/freedesktop/NetworkManager/ActiveConnection/22)
[root@cyan system-connections]# ip add show enp0s13f0u1
2: enp0s13f0u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state 
UP group default qlen 1000
    link/ether a0:ce:c8:b2:22:f7 brd ff:ff:ff:ff:ff:ff
    inet 192.168.10.29/24<http://192.168.10.29/24> brd 192.168.10.255 scope 
global noprefixroute enp0s13f0u1
       valid_lft forever preferred_lft forever
    inet 192.168.12.29/24<http://192.168.12.29/24> brd 192.168.12.255 scope 
global noprefixroute enp0s13f0u1
       valid_lft forever preferred_lft forever

this doesn't work

[root@cyan ~]# lnetctl net add --ip2net="tcp1(enp0s13f0u1) 192.168.10.*"
[root@cyan ~]# lnetctl net add --ip2net="tcp2(enp0s13f0u1) 192.168.12.*"
[root@cyan ~]# lctl list_nids
192.168.10.29@tcp1
192.168.10.29@tcp2

i'm pretty sure this is expected behavior based on how lnet works, but i 
figured i'd ask around


_______________________________________________
lustre-discuss mailing list
[email protected]
http://lists.lustre.org/listinfo.cgi/lustre-discuss-lustre.org

Reply via email to