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:
- filesystem
- dump session
- stream
- 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 whenxfsinvutilhits 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 π¦. makesxfsinvutilrun 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.-Mmount_point mm/dd/yyyy β prunes dump sessions identified by the given mount point that were created prior to the specified date. optionally-mmay be specified to further limit the matching dump sessions by media label.xfsinvutilwill prompt the operator before pruning a dump session unless the-For-ioptions are given. consent matters bestie π«Ά-uUUID mm/dd/yyyy β same vibe as-M, except the matching filesystem is specified using its universally unique identifier (UUID) instead of its mount point.-mmedia_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-Mor-uoptions. 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.-sSESSION_ID β prunes the dump session identified by the given session id.xfsinvutilwill prompt the operator before pruning a dump session unless the-Foption is given.-Cβ with this option,xfsinvutilperforms 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 treehβ move selection to the parent entrylβ move selection to the child entryjβ move selection to next entrykβ move selection to previous entrydβ 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 anotherxfsdumpinventory?β show help windowxβ commit any changes made to the inventory, and exit the programqβ 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 β
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 ππ
π¦ where this page comes from
- arch rolling: xfsdump 3.3.0-1 Β· GPL-2.0-only
- centos-stream 10: xfsdump 3.2.0-2.el10 Β· GPL-1.0-or-later
- centos-stream 9: xfsdump 3.1.12-4.el9 Β· GPL+
- debian bookworm: xfsdump 3.1.11-0.1 Β· GPL
- debian trixie: xfsdump 3.2.0-2 Β· GPL
- fedora 43: xfsdump 3.2.0-3.fc43 Β· GPL-1.0-or-later
- fedora 44: xfsdump 3.2.0-4.fc44 Β· GPL-1.0-or-later
- nixos 26.05: xfsdump 3.3.0
- nixpkgs unstable: xfsdump 3.3.0
- opensuse-leap 16.0: xfsdump 3.1.12-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsdump 3.1.12-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsdump 3.1.12-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsdump 3.1.12-160000.2.2 Β· GPL-2.0-or-later
- ubuntu jammy: xfsdump 3.1.9+0+nmu2
- ubuntu noble: xfsdump 3.1.11-0.1build1 Β· GPL
- ubuntu questing: xfsdump 3.2.0-2
- ubuntu resolute: xfsdump 3.2.0-2build1 Β· GPL
- ubuntu stonking: xfsdump 3.2.0-2build1 Β· GPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms