I create nodemap1 and add range then delete the range in anthoer nodemap2.
Then nodemap1 ip range disappeared.
[Test steps:]
lctl nodemap_add nodemap1
lctl nodemap_add nodemap2
lctl nodemap_add_range --name nodemap1 --range 192.168.19.[0-255]@o2ib20
lctl get_param nodemap.nodemap1.* | grep start_nid
lctl nodemap_del_range --name nodemap2 --range 192.168.19.[0-255]@o2ib20
lctl get_param nodemap.nodemap1.* | grep start_nid
[Test result:]
[root@mdsb1 ~]# lctl nodemap_add nodemap1
[root@mdsb1 ~]# lctl nodemap_add nodemap2
[root@mdsb1 ~]# lctl nodemap_add_range --name nodemap1 --range 192.168.19.[0-255]@o2ib20
[root@mdsb1 ~]# lctl get_param nodemap.nodemap1.* | grep start_nid
{ id: 20, start_nid: 192.168.19.0@o2ib20, end_nid: 192.168.19.255@o2ib20 }
[root@mdsb1 ~]# lctl nodemap_del_range --name nodemap2 --range 192.168.19.[0-255]@o2ib20
[root@mdsb1 ~]# lctl get_param nodemap.nodemap1.* | grep start_nid
[root@mdsb1 ~]#
John L. Hammond (john.hammond@intel.com) merged in patch https://review.whamcloud.com/29138/
Subject:
LU-9682nodemap: delete nids range from nodemap correctlyProject: fs/lustre-release
Branch: b2_10
Current Patch Set:
Commit: 783b470f800c85e9ca5c9453fdb3c13062f67e41