LCTL-NOD...ET_MODIFY(8)

πŸ“¦ version 2.17.58, in ubuntu stonking

✨ LCTL-NODEMAP_FILESET_MODIFY πŸ’…

okay bestie, welcome to the lctl nodemap_fileset_modify page (yes the manual is LCTL-NOD...ET_MODIFY(8), don't worry about it, the name got squished by the terminal fr). this is the glow-up command for a fileset you already have β€” no new filesets here, we're just editing the one that exists. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

lctl-nodemap_fileset_modify β€” literally just glams up an existing fileset of a nodemap. that's it. that's the job.


✨ SYNOPSIS ✨

lctl nodemap_fileset_modify --name NODEMAP_NAME --fileset SUBDIRECTORY
                            [--rename|-r NEW_SUBDIRECTORY]
                            [--primary|-p] [--alt|-a] [--rw] [--ro]

look at that lineup, it's giving main character energy πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

so nodemap_fileset_modify changes up the properties of a fileset that already exists inside a nodemap. you find your fileset by its SUBDIRECTORY path, inside the nodemap you name with NODEMAP_NAME. easy peasy.

when you modify a fileset, you can touch three things:

  • its path πŸ›€οΈ
  • its type β€” primary or alternate πŸ‘‘
  • its access permissions β€” read-write or read-only πŸ”
huge heads up: this command cannot move filesets between nodemaps. nope. not happening. no cap. the --name and --fileset options are mandatory, so don't come in here with only half the info and expect slay πŸ’€

and here's the dynamic nodemap tea β˜• β€” nodemap_fileset_modify can be used with dynamic nodemaps, but:

  • filesets in dynamic nodemaps cannot be modified to escape the namespace restrictions imposed by any fileset set on the parent's nodemap πŸ™ˆ
  • read-only filesets on the parent nodemap cannot become read-write on the child nodemap 🚫
  • if the parent nodemap has no fileset defined, then the child nodemap can freely modify any fileset β€” freedom, finally 🌈

πŸ’… OPTIONS πŸ’…

  • -n, --name NODEMAP_NAME β€” tells us which nodemap is holding the fileset you wanna modify. mandatory, bestie, don't skip it.
  • -f, --fileset SUBDIRECTORY β€” the path of the fileset you're modifying. also mandatory. yes, both. always. 🫢
  • -r, --rename NEW_SUBDIRECTORY β€” changes the fileset's path to the new subdirectory you specify. two rules though, and they're not optional: the new path must begin with a slash (/), and it cannot yet exist as a fileset of that type on the same nodemap. the audacity of trying to reuse a name, we don't do that ✨
  • -p, --primary β€” converts the fileset to a primary fileset. if it's already primary, this flag does literally nothing (no effect, zero, nada). but here's the catch, and it's a big one: --primary can only convert an alternate fileset to primary if there is currently no primary fileset set on the nodemap. oh and it's mutually exclusive with the --alt option β€” so pick a side, you can't be both πŸ’€
  • -a, --alt β€” converts the fileset to an alternate fileset. already alternate? then no effect, moving on. this one is mutually exclusive with the --primary option. same rules. choose one πŸ”₯
  • --rw β€” sets the fileset to read-write access mode. if it's already read-write, this flag has no effect (we love a no-op icon). mutually exclusive with the --ro option βš”οΈ
  • --ro β€” sets the fileset to read-only access mode, which is enforced when the fileset applies for a given SUBDIRECTORY at mount time. if it's already read-only, no effect. mutually exclusive with the --rw option. yeah, again. pick one, we've been over this πŸ’…

πŸŽ€ EXAMPLES πŸŽ€

rename a fileset. a fileset is unique, so the name alone is enough to find it:

# lctl nodemap_fileset_modify --name tenant1 --fileset '/dir1' --rename '/dir2'

flip a primary fileset into an alternate and vice versa (glow-up, glow-down, glow-up again):

# lctl nodemap_fileset_modify --name tenant1 --fileset '/dir1' --alt
# lctl nodemap_fileset_modify --name tenant1 --fileset '/dir1' --primary

change the access mode to read-only and back to read-write:

# lctl nodemap_fileset_modify --name tenant1 --fileset '/dir1' --ro
# lctl nodemap_fileset_modify --name tenant1 --fileset '/dir1' --rw

combine ALL the options to change a fileset's path, type, and access mode in one go. so we're renaming a primary fileset '/dir1' to '/dir2', converting it to an alternate fileset, and setting it to read-only:

# lctl nodemap_fileset_modify --name tenant1 --fileset '/dir1' --rename '/dir2' --alt --ro

one command, three transformations. that's the whole vibe check and it passed πŸ”₯


🌈 AVAILABILITY 🌈

lctl nodemap_fileset_modify has been part of the lustre(7) filesystem package since release 2.17.0. iconic since day one, basically πŸ‘‘


πŸ‘€ SEE ALSO πŸ‘€

lustre(7), lctl-nodemap-fileset-add(8), lctl-nodemap-fileset-del(8) lctl-nodemap-new(8),

(go read those too, they're the friend group. this one's the editor, they're the creators and the deleters 🫢)


okay that's the whole page, you ate it, no crumbs left πŸ’– and for the record this gorgeous thing is from Lustre, dated 2025-06-18 β€” so yes, fairly fresh, very much serving. now go modify some filesets responsibly, bestie. periodt βœ¨πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from