LCTL-NODEMAP_ADD_RANGE(8)
β¨ NAME β¨
lctl-nodemap_add_range β bestie, this is the one that defines a whole range of NIDs for a nodemap π
It lives in the Lustre Configuration Utilities, manual section 8, so if you ever need the receipts, that's where you look π
πΈ SYNOPSIS πΈ
Two ways to say the same thing, pick your fighter:
lctl nodemap_add_range
or
lctl nodemap add_range --name NODEMAP_NAME --range NID_RANGE
π¦ DESCRIPTION π¦
Okay so here's the tea β nodemap_add_range takes a range of NIDs and drops it into a nodemap that already exists. Not a new one, an existing one, mkay?
Huge caveat, no cap: that NID range cannot overlap with a NID range that's already chillin' in there β the only exception is a dynamic overlay range. So don't try to double-book, okay? π
And here's the fun part β the moment you add that range, every client whose NID falls inside it gets moved into that nodemap πβ¨ and from then on, every future RPC they send gets judged by whatever properties you configured for that nodemap. It's giving "you live here now, these are the house rules" π
π OPTIONS π
--name NODEMAP_NAMEβ the name of the nodemap you're adding this range to. Like, which one? Tell it. π--range NID_RANGEβ the NID range being added to the nodemap. The syntax is the exact same as the rootsquash syntax, with one extra little rule: the range has to be contiguous. No gaps, no skipping around, it's a straight line bestie β
π« Formal LNet NID Range Definition π«
Yep, we're doing grammar. It's giving math class but make it cute π here's the whole thing, verbatim, don't panic:
NID_RANGE :== ADDR_RANGE@NET
ADDR_RANGE :== '*' | NETMASK | IPV6_ADDR | IPADDR_RANGE | NUM_RANGE
IPADDR_RANGE :== NUM_RANGE.NUM_RANGE.NUM_RANGE.NUM_RANGE
NUM_RANGE :== NUMBER | EXPR_LIST
EXPR_LIST :== '['RANGE_EXPR[,RANGE_EXPR]']'
RANGE_EXPR :== NUMBER | MIN-MAX | MIN-MAX/SKIP
NET :== NET_TYPE[NUMBER]
NET_TYPE :== "lo" | "tcp" | "o2ib" | "ptlf" | "gni" | "gip" | "kfi"
NUMBER :== NONNEGATIVE_DECIMAL | HEXADECIMAL
A few translations for the girlies who don't speak BNF π«Ά
NETMASKis an IPv4 or IPv6 network mask in CIDR notation.IPV6_ADDRis a single IPv6 address.MIN-MAX/SKIPmeans a sequence of numbers starting atMINand incrementing bySKIPeach time until it's no larger thanMAX.MIN-MAXis literally justMIN-MAX/1. Same thing, shorter vibe β¨
π₯ EXAMPLES π₯
Look at her go π
# lctl nodemap_add_range --name remotesite --range 192.168.1.[1-254]@tcp
# lctl nodemap_add_range --name othersite --range 192.168.2.[1-254]@tcp
π AVAILABILITY π
lctl nodemap_add_range has been part of the lustre(7) filesystem package since release 2.6.0. Been here. Iconic. Periodt π
π SEE ALSO π
Go read these next, bestie, they're all in the family π§
lustre(7)lctl-nodemap-activate(8)lctl-nodemap-add-idmap(8)lctl-nodemap-del(8)lctl-nodemap-del-idmap(8)lctl-nodemap-del-range(8)lctl-nodemap-modify(8)lctl-nodemap-new(8)
Ok that's the whole page, you ate that π This one's stamped Lustre, dated 2024-08-14, so if you're reading it in your terminal and the vibes are immaculate, that's why πβ¨π¦
π¦ where this page comes from
- ubuntu stonking: lustre-client-utils 2.17.58+dfsg-0ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms