1xfsinvutil(8)               System Manager's Manual              xfsinvutil(8)
2
3
4

NAME

6       xfsinvutil - xfsdump inventory database checking and pruning utility
7

SYNOPSIS

9       xfsinvutil [-F|-i] [-m media_label] -M mount_point mm/dd/yyyy
10       xfsinvutil [-F|-i] [-m media_label] -u UUID mm/dd/yyyy
11       xfsinvutil -i
12       xfsinvutil -C
13

DESCRIPTION

15       xfsdump  maintains  an online dump inventory in /var/lib/xfsdump/inven‐
16       tory.  The -I option of xfsdump displays the inventory contents hierar‐
17       chically.   The  levels of the hierarchy are: filesystem, dump session,
18       stream, and media file.
19
20       xfsinvutil is a utility to check this inventory  database  for  consis‐
21       tency,  to  remove  entries  of dump sessions which may no longer be of
22       relevance, and to browse the contents of the inventory.
23
24       The following command line options are available:
25
26       -F   Don't prompt the operator.  When xfsinvutil encounters a  matching
27            dump  session,  xfsinvutil will normally ask the operator for per‐
28            mission to delete the entry. With this option the deletion is per‐
29            formed, no questions asked.
30
31       -i   Interactive  mode.   Causes  xfsinvutil to run in a mode that will
32            allow the operator to browse and modify the contents of the inven‐
33            tory.  Please refer to the Interactive Mode section below for more
34            information.
35
36       -M mount_point mm/dd/yyyy
37            Prunes dump sessions identified by the  given  mount  point  which
38            were  created prior to the specified date. Optionally -m may be be
39            specified to further limit the matching  dump  sessions  by  media
40            label.   xfsinvutil  will  prompt  the operator prior to pruning a
41            dump session unless the -F or -i options are given.
42
43       -u UUID mm/dd/yyyy
44            Like -M, except the matching filesystem  is  specified  using  its
45            universally unique identifier (UUID) instead of its mount point.
46
47       -m media_label
48            If  specified,  only  sessions  with at least one media file whose
49            label matches this value  will  be  eligible  for  pruning.   This
50            restriction is in addition to those imposed by the date and the -M
51            or -u options.  This option allows the pruning  of  all  inventory
52            references  to media which may have been overwritten or lost. Note
53            that this option does not apply to sessions with no media files.
54
55       -C   With this option, xfsinvutil performs consistency checks  for  all
56            entries  in  the inventory database.  It fixes any problems found.
57            If no consistent entries are found , the  corresponding  inventory
58            database file is removed.
59
60   Interactive Mode
61       When  run  with -i, xfsinvutil will present the operator with a hierar‐
62       chical representation of the xfsdump  inventory.   In  this  mode,  the
63       operator  can  use the arrow keys (or the h j k l keys) to navigate the
64       inventory and also use the following keys and functionality:
65
66       +    Expand a branch of the tree.
67
68       -    Collapse a branch of the tree.
69
70       *    Fully expand a branch of the tree.
71
72       %    Fully collapse a branch of the tree.
73
74       h    Move selection to the parent entry.
75
76       l    Move selection to the child entry.
77
78       j    Move selection to next entry.
79
80       k    Move selection to previous entry.
81
82       d    Mark the current record, and all sub-records, to be deleted.
83
84       u    Clear the  current  record  and  all  parent  records  from  being
85            deleted.
86
87       i    Import another xfsdump inventory.
88
89       ?    Show help window.
90
91       x    Commit any changes made to the inventory, and exit the program.
92
93       q    Exit the program without committing any changes to the inventory.
94
95       Inventories  from other hosts can be imported to create a larger common
96       inventory.  It  is  recommended  that  the  contents  of  /var/lib/xfs‐
97       dump/inventory on the remote host be copied to a temporary local direc‐
98       tory prior to running xfsinvutil.  When xfsinvutil is run  in  interac‐
99       tive  mode, and the operator hits i, they will be prompted for the path
100       to the inventory to be imported.  xfsinvutil will then add the contents
101       of  the  imported inventory to the main window, and all entries will be
102       marked as imported.  The operator can then delete any of these  entries
103       that  are  not  to be imported.  When the operator commits the changes,
104       xfsinvutil will import any entries which were not  marked  as  deleted.
105       Deleted  entries  are  not  actually deleted from the original imported
106       inventory.
107

NOTES

109   Inventory
110       Each dump  session  updates  an  inventory  database  in  /var/lib/xfs‐
111       dump/inventory.   xfsdump  uses  the inventory to determine the base of
112       incremental and resumed dumps.
113
114       This database can be displayed by invoking xfsdump with the -I  option.
115       The display uses tabbed indentation to present the inventory hierarchi‐
116       cally.  The first level is filesystem.  The second  level  is  session.
117       The  third  level  is  media  stream (currently only one stream is sup‐
118       ported).  The fourth level lists the media files sequentially composing
119       the stream.
120

FILES

122       /var/lib/xfsdump/inventory
123                                dump inventory database
124

SEE ALSO

126       xfsdump(8), xfsrestore(8).
127
128
129
130                                                                 xfsinvutil(8)
Impressum