LCTL-NODEMAP_ADD_IDMAP(8)
π LCTL-NODEMAP_ADD_IDMAP β the Lustre Configuration Utilities era π
okay bestie, welcome to the lctl-nodemap_add_idmap(8) page, straight out of the Lustre Configuration Utilities manual. we're doing ID mapping today and honestly? it's giving β¨main characterβ¨.
πΈ NAME πΈ
lctl-nodemap_add_idmap β define ID mappings for a nodemap
π SYNOPSIS π
lctl nodemap_add_idmap or
lctl nodemap add_idmap --name NODEMAP_NAME --idtype {uid|gid|projid}
--idmap CLIENTID[-CLIENTID_END]:FSID[-FSID_END]
two ways to spell it, same slay. pick ur fighter π
π¦ DESCRIPTION π¦
so nodemap_add_idmap adds an identity mapping to a nodemap. no cap. any client that's a member of that nodemap will have their users' identities mapped accordingly. like, you come in as one ID, you get seen as another. a whole glow-up, but for numbers π
now here's the part where you gotta pay attention, bestie, because it's the technical tea: when offsets are defined on the nodemap, any explicit identity mapping should map to an FSID in the offset range [ 0, offset_limit-1 ]. that's the range. if you don't, the mapped ID would escape offsetting π and we do not want escaping, that's not the vibe.
β¨ OPTIONS β¨
--name NODEMAP_NAMEβ the name of the nodemap that this idmap should be added to. tell it where to live π--idtype {uid|gid|projid}β either"uid"or"gid"or"projid", depending on if it is a user ID or group ID or project ID that is to be mapped. three choices, one destiny π«Ά--idmap CLIENTID[-CLIENTID_END]:FSID[-FSID_END]β the identity to map, and what it should be mapped to. the first number is the ID of the user or group as it is on the client, and the second number is the ID that it should map to on the Lustre filesystem. client-side β Lustre-side, a whole transformation arc π
π₯ EXAMPLES π₯
here's the lore, copy-paste ready:
# lctl nodemap_add_idmap --name remotesite --idtype uid --idmap 2001:1001
# lctl nodemap_add_idmap --name remotesite --idtype gid --idmap 2002:1002
# lctl nodemap_add_idmap --name remotesite --idtype projid --idmap 33:1
# lctl nodemap_add_idmap --name othersite --idtype uid --idmap 0-999:9000
see how the last one does 0-999:9000? that's the range syntax eating, literally obsessed π
π AVAILABILITY π
lctl nodemap_add_idmap is part of the lustre(7) filesystem package since release 2.6.0. it's been iconic since day one, fr fr.
π SEE ALSO π
lustre(7), lctl-nodemap-activate(8), lctl-nodemap-add-offset(8), lctl-nodemap-add-range(8), lctl-nodemap-del(8), lctl-nodemap-del-idmap(8), lctl-nodemap-del-offset(8), lctl-nodemap-del-range(8), lctl-nodemap-modify(8), lctl-nodemap-new(8)
the whole friend group, go say hi π₯°
aaaand that's the page! this lil masterpiece is from the Lustre manual, dated 2024-08-14 π go map some IDs, bestie, you got this π β¨
π¦ 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