xfsinvutil(8)

πŸ’– NAME πŸ’–

xfsinvutil β€” the xfsdump inventory database checking and pruning utility. bestie, it checks ur inventory, it prunes ur inventory, it's giving janitor energy but make it ✨fabulous✨


🌸 SYNOPSIS 🌸

xfsinvutil [-F|-i] [-m media_label] -M mount_point mm/dd/yyyy
xfsinvutil [-F|-i] [-m media_label] -u UUID mm/dd/yyyy
xfsinvutil [-F] -s SESSION_ID
xfsinvutil -i
xfsinvutil -C

✨ DESCRIPTION ✨

okay so first things first: xfsdump keeps an online dump inventory chillin' in /var/lib/xfsdump/inventory. if u run xfsdump with the -I option, it shows u the inventory contents all hierarchically and cute. the levels of that hierarchy are, in order:

  1. filesystem
  2. dump session
  3. stream
  4. media file

xfsinvutil is the utility that checks this inventory database for consistency, removes entries of dump sessions that maybe aren't relevant anymore (rip to those sessions, they lived), and browses the contents of the inventory. triple threat honestly πŸ‘‘

the following command line options are available:

  • -F β€” don't prompt the operator, like at all. normally when xfsinvutil hits a matching dump session it's gonna ask u for permission to delete the entry (so polite πŸ’…). with this option the deletion just happens, no questions asked. periodt.
  • -i β€” Interactive mode πŸ¦‹. makes xfsinvutil run in a mode where u can browse AND modify the contents of the inventory. pls refer to the Interactive Mode section below for the tea.
  • -M mount_point mm/dd/yyyy β€” prunes dump sessions identified by the given mount point that were created prior to the specified date. optionally -m may be specified to further limit the matching dump sessions by media label. xfsinvutil will prompt the operator before pruning a dump session unless the -F or -i options are given. consent matters bestie 🫢
  • -u UUID mm/dd/yyyy β€” same vibe as -M, except the matching filesystem is specified using its universally unique identifier (UUID) instead of its mount point.
  • -m media_label β€” if specified, only sessions with at least one media file whose label matches this value will be eligible for pruning. this restriction is in addition to those imposed by the date and the -M or -u options. this option lets u prune all inventory references to media that may have been overwritten or lost. πŸ‘€ note that this option does not apply to sessions with no media files.
  • -s SESSION_ID β€” prunes the dump session identified by the given session id. xfsinvutil will prompt the operator before pruning a dump session unless the -F option is given.
  • -C β€” with this option, xfsinvutil performs consistency checks for all entries in the inventory database. it fixes any problems found. and if no consistent entries are found, the corresponding inventory database file gets removed. bye bye πŸ—‘οΈ

πŸŽ€ Interactive Mode πŸŽ€

when u run it with -i, xfsinvutil presents u with a hierarchical representation of the xfsdump inventory. in this mode u can use the arrow keys (or the h j k l keys, for the keyboard girlies) to navigate the inventory, and u can also use these keys and functionality:

  • + β€” expand a branch of the tree 🌳
  • - β€” collapse a branch of the tree
  • * β€” fully expand a branch of the tree
  • % β€” fully collapse a branch of the tree
  • h β€” move selection to the parent entry
  • l β€” move selection to the child entry
  • j β€” move selection to next entry
  • k β€” move selection to previous entry
  • d β€” mark the current record, and all sub-records, to be deleted πŸ’€
  • u β€” clear the current record and all parent records from being deleted (undo queen)
  • i β€” import another xfsdump inventory
  • ? β€” show help window
  • x β€” commit any changes made to the inventory, and exit the program
  • q β€” exit the program without committing any changes to the inventory

inventories from other hosts can be imported to create a larger common inventory. it is recommended that the contents of /var/lib/xfsdump/inventory on the remote host be copied to a temporary local directory prior to running xfsinvutil. when xfsinvutil is run in interactive mode and the operator hits i, they get prompted for the path to the inventory to be imported. xfsinvutil will then add the contents of the imported inventory to the main window, and all entries will be marked as imported. the operator can then delete any of those entries that are not to be imported. when the operator commits the changes, xfsinvutil will import any entries which were not marked as deleted. deleted entries are not actually deleted from the original imported inventory. no cap, they stay.


🌈 NOTES 🌈

🧚 Inventory 🧚

every dump session updates an inventory database in /var/lib/xfsdump/inventory. xfsdump uses the inventory to figure out the base of incremental and resumed dumps. it's literally the blueprint bestie.

this database can be displayed by invoking xfsdump with the -I option. the display uses tabbed indentation to present the inventory hierarchically. the first level is filesystem. the second level is session. the third level is media stream (currently only one stream is supported). the fourth level lists the media files sequentially composing the stream. it's giving family tree but for ur dumps 🌳✨


πŸ’œ FILES πŸ’œ

  • /var/lib/xfsdump/inventory β€” dump inventory database

⭐ SEE ALSO ⭐

xfsdump(8), xfsrestore(8).


and that's the whole page, bestie!! this one lives in the System Manager's Manual, and it goes by xfsinvutil(8) β€” go off, icon πŸ‘‘πŸ’–