cat_convert converts NetBackup catalog
.f
files between version 3.4, 4.0v,
or 4.5 ASCII format and 4.5 or later binary format. It
automatically detects the source catalog file format and converts
it to the other format. NetBackup 6.5 does not support writing new
ASCII catalog images. However, it still supports the ability to
read existing ASCII catalog images.
The -dump option enables users to view the contents of
the binary catalog image .f (dot-f)
files. It echoes the contents of the .f
file to stdout in a readable format. It also
has helper options to use to limit the output to only certain
records in the file or a subset of the output columns.
The -check option provides a consistency check on specified binary .f files.
If cat_convert detects inconsistencies, the utility generates up to four of the following reports that depend on the types of inconsistencies reported:
This report lists invalid inodes. The following is an example:
Type Problem Additional Information Dir No Data Path element name: SUNWmlib Dir No Name Filenum: 7 File No Data Path element name: vmd.uds File No Data Path element name: bpcompatd.uds File No Name Filenum: 8356 Dir No Name Filenum: 8374
The following describes the column information in this report:
This report lists inconsistent directories. The following is an example:
Index InodeIndex 1stChild 1stDir LastChild NextIndex NextDirName 2539 2230 5605F -1 5605F 788763F -1 JSP.cla 21281 2229 43380F -1 1122108F 257809F 56110 fr.tmp 24157 3330 53103F -1 2688747F -1F -1 UNKNOWN 36766 4406 98367F -1 98367F -1F -1 Root 97393 5134 471040F -1 3136322F -1F -1 udst.js 107597 5297 529762F -1 2625774F 540379F 89162 WNT.ini 114675 1234 575751F -1 3406262F 784893F -1 MEM.WPD 225464 1236 1420664F -1 1420666F -1F -1 CVS Total Directories: 150307 Total Files: 1137006
The following describes the column information in this report:
Index - the relative position of the directory that is reported to the catalog.
Inode Index - an index into the temporary file in which inode information is stored while the backup is in process.
1st Child - the index to the first child (file or directory) under the listed directory. This value is -1 if there is no child. The character F follows the index if the first child is a file, or the character D follows the index if it is a directory.
1st Dir - the index to the first directory under the listed directory. This value is -1 if there is no subdirectory.
Last Child - the index to the last child (file or directory) under the listed directory. This value is -1 if there is no child. The character F follows the index if the last child is a file, or the character D follows the index if it is a directory.
Next Index - the index to the next sibling (file or directory) of the listed file. This value is -1 if there is no sibling. The character F follows the index if the first next sibling is a file, or the character D follows the index if it is a directory.
Next Dir - the index to the next sibling directory of the listed directory. This value is -1 if no sibling directory exists.
Name - the short name of the directory if available, or UNKNOWN if not available.
This report lists inconsistent files. The following is the format of the report:
Index Inode Index Next Index Name 2364 12180 2368F Report.doc 39774 16642 39776D UNKNOWN
The following describes the column information in this report:
Index - the relative position of the file as reported to the catalog.
Inode Index - an index into the temporary file in which inode information is stored while the backup is in process.
Next Index - the index to the next sibling (either a file or directory) of the listed file. This value is -1 if there is no sibling. The character F follows the index if the next sibling is a file, or the character D follows the index if it is a directory.
Name - the short name of the directory if available, or UNKNOWN if not available.
Invalid Directory and File Report
This report lists both inconsistent files and directories. The following is the format of the report:
Index Inode Type Name 2363 11134 Directory /Documents/Directory 1 13679 10077 Directory /Documents/Directory 2 Total Directories: 460724 Total Files: 3426572
Since this report traverses the directory tree, it may not list all of the files or directories that are reported in the first two reports. Since it provides the fully qualified name of the file or directory, it can be useful in problem resolution. It also provides the total number of files and directories.
Convert NetBackup 3.4, 4.0V, 4.5 ASCII format
catalog .f
file(s) to NetBackup 4.5
binary format .f
file(s).
Checks the consistency of a binary .f file. source_file must be the fully qualified path. Inconsistencies may be due to faulty FlashBackup or NDMP type backups. If this utility detects no inconsistencies, it ends silently and returns a zero return code. If the utility detects any inconsistencies, it returns the number of inconsistencies and prints up to three reports depending on the types of inconsistencies reported.
Overwrite original catalog file content with the new format that converts. -o cannot be used with target_file_directory.
Modifies the output from the cat_convert -dump. Stops the display of records at this record number.
Eliminates the data column from the output of the cat_convert -dump. The data column can result in unnecessarily large outputs.
Modifies the output from cat_convert -dump. An option that modifies the output from the cat_convert -dump. Eliminates the column headers.
Modifies the output from cat_convert -dump. Eliminates the path column. The path column can result in unnecessarily large outputs.
An option that modifies the output from cat_convert -dump. An option that modifies the output from the cat_convert -dump. Use char to separate the columns instead of the white space default separation. For example, you can use this command to generate a comma-separated output.
An option that modifies the output from cat_convert -dump. Limits the output to a subset of the usual columns.
An option that modifies the output from cat_convert -dump. An option that modifies the output from the cat_convert -dump. Starts to display the records at this record number.
Specify one of the following to convert:
If you do not specify the target file or directory when you convert source files, the files the conversion process creates have an appended suffix. (_bin.f or _ascii.f).
If the catalog .f
file size is more than 4 megabytes,
the binary catalog leaves output files separate. It puts them in
the catstore directory.