nfsdclddb(8)

πŸ’Ύ NAME πŸ’Ύ

okay bestie, meet nfsdclddb β€” the little tool that lets you mess with the nfsdcld sqlite database (schema stuff, mainly) and also just, like, read it. she's giving database whisperer energy fr fr. πŸ¦‹


✨ SYNOPSIS ✨

nfsdclddb [-h|--help]

nfsdclddb [-p|--path dbpath] fix-table-names [-h|--help]

nfsdclddb [-p|--path dbpath] downgrade-schema [-h|--help] [-v|--version
to-version]

nfsdclddb [-p|--path dbpath] print [-h|--help] [-s|--summary]

like, every one of those lines is a whole vibe, and yes you have to keep the wrapping exactly as-is. iykyk πŸ’…


🌸 DESCRIPTION 🌸

The **nfsdclddb command exists so you can do a lil bit of manipulation of the nfsdcld sqlite database schema, and also print out what's inside the database. that's it, that's the job, and she does it flawlessly. πŸ‘‘

πŸŽ€ Sub-commands πŸŽ€

here's the roster of valid nfsdclddb subcommands, no more no less:

  • fix-table-names β€” okay so a previous version of nfsdcld(8) had a bug 😭 that corrupted the reboot epoch table names. this sub-command fixes those table names right up. glow-up moment.
  • downgrade-schema β€” downgrades the database schema. rn the schema can only be downgraded from version 4 to version 3. that's the whole range, bestie, no flexing beyond that.
  • print β€” displays the contents of the database. prints the schema version and the values of the current and recovery epochs. and if you don't pass the -s|--summary option, she also prints the clients in the reboot epoch tables. ✨

πŸ’… OPTIONS πŸ’…

Options valid for all sub-commands

  • -h, --help β€” show the help message and exit. classic. iconic. always there for you. 🫢
  • *-p *dbpath, --path dbpath β€” open the sqlite database located at dbpath instead of /var/lib/nfs/nfsdcld/main.sqlite. this one's mainly for testing purposes, so don't be weird about it. 🧚

Options specific to the downgrade-schema sub-command

  • -v to-version, --version to-version β€” the schema version to downgrade to. currently the schema can **only be downgraded to version 3. that's the only destination on the map, periodt. ⭐

Options specific to the print sub-command

  • -s, --summary β€” do not list the clients in the reboot epoch tables in the output. yes, it's a "don't do the thing" flag, she's a little chaotic like that. πŸ™ˆ

πŸ‘‘ NOTES πŸ‘‘

heads up bestie: the nfsdclddb command will not allow the fix-table-names or downgrade-schema subcommands to be used if nfsdcld(8) is running. so like, shut her down first, ok?? 😀

πŸ“ FILES πŸ“

  • /var/lib/nfs/nfsdcld/main.sqlite

🌈 SEE ALSO 🌈


πŸ’– AUTHOR πŸ’–

Scott Mayhew <smayhew@redhat.com> β€” thank you for the tool, king 🫑


and that's the whole page, bestie!! this was the nfsdclddb(8) page from the System Manager's Manual, dated 07 Aug 2019 β€” she ate and left no crumbs, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from