Solstice Backup 5.1 Administration Guide

File Index and Media Database Management

The Backup client file indexes contain entries that enable users to browse and recover any files backed up by Backup that have not exceeded their assigned browse policy. The Backup media database managed by the server contains information about where the backed-up data resides. You can query the Backup client file indexes as well as the server's media database to obtain information.

mminfo

The mminfo program reports information about Backup media and save sets. The default mminfo report displays information about the save sets that completed properly during the last twenty four hours. This report includes; the volume name, client name, creation date, amount of data saved to the volume, level of backup performed and the name of the save set.

See "Examples of mminfo Report Commands" for a list of examples of how to use the mminfo command.

The following example describes the format and options available for the mminfo command:


mminfo [-avV] [-o order] [-s server] [report] [query] [volname...]
<report>: [-m | -B | -S | -X | -r reportspecification]
<query>: [-c client] [-N name] [-t time] [-q query specification]

name, is the name of a database attribute, such as "name="hot"name="hot"" Save Set" comp, is a valid comparator for the attribute, from the set ">", ">=","=" value, is the value being compared.

The comparator and value must be specified for all attributes, except flags. If a string contains commas, quote the value using single or double quotes. The following is a valid string comparison:


name="Daily, ""hot"" Save Set"

Except for multiple character string values, all of the specified constraints must match a given save set and/or media volume. Numeric constraints can be specified by a, and all character string constraints can be specified by multiple possible values. For example:


%used>20,%used<80
client=mars,client=saturn 

Refer to the CUSTOM QUERIES AND REPORTS section in the mminfo(1m) man page for further information on the syntax to use for the query specification.

The first line of each multi-line group starts on the left margin and includes the save set identifier (ssid), save time, client and save set names. Subsequent lines for this save set are indented. The next line displays the level, the save set flags, the save set size, the number of files within the save set, and the save set expiration date. Extended attributes, clones and instances of the save set are displayed on the lines that follow.

Examples of mminfo Report Commands

The following examples provide a guideline for you to follow when you create your own customized queries. Shortened syntax, wherever acceptable, is shown.

To display all the information about all the volumes managed by the server:


mminfo -m

To display media information from volumes that are labeled mars.001 and mars.002:


mminfo -m mars.001 mars.002

To display all save sets found in the file indexes named /usr:


mminfo -N /usr

To display save sets named /usr, generated by a client named venus, backed up in the past week:


mminfo -N /usr -c venus

To display save sets named /usr, generated by a client named venus, on a volume that is labeled mars.001:


mminfo -N /usr -c venus mars.001

To display a media report of all volumes written on in the past week:


mminfo -m -t `last week'

To display a media report of all non-full volumes, showing the percent used, pool name, and location of each volume:


mminfo -a -r `volume,%used,pool,location' -q `!full'

To display a media report similar to the -m report that shows the barcode instead of the volume label:


mminfo -a -r \ `state,barcode,written,%used,read,space,volexp' \
-r`mounts(5),space(2),capacity'

To display a verbose list of the instances of all save sets with more than one copy, sorted by save time and client name:


mminfo -otc -v -q `copies>1' 

To display all archive save sets with an annotation of "my project" for the past four months:


mminfo -q'annotation=my project' \
-r"volume,client,savetime,sumsize,ssid,name,annotation" \ -t'four
months ago' 

mmlocate

The mmlocate program accesses and manages the volume location information contained in the media database. Any user can use this command with the -l (default) or -L options. The -c, -d and -u options are limited to Backup administrators. Running mmlocate without any arguments lists all volumes and their locations for the specified server. (If you do not specify a server, the current host is used.)

If you use the nsrjb command to move a volume inside a jukebox, the location of a volume is set to the name of the jukebox.

The following example describes the format and options available for the mmlocate program:


mmlocate [-s server] [-l] [-n volume-name | -i volumeID | location]
mmlocate [-s server] -L
mmlocate [-s server] -d location
mmlocate [-s server] -c {-n volume-name | -i volumeID}
mmlocate [-s server] -u

{-n volume-name | -i volumeID} location

mmpool

The mmpool program accesses pool information stored in the Backup server's media database. You can also use the command to delete all the volumes in a particular pool. If you specify one or more volume names with the mmpool program, the report shows the pool to which each named volume belongs. By default, all volumes and their pools are displayed.

You cannot change the pool to which a volume belongs without relabeling the volume, which destroys all data stored on the volume. Pools are configured through a Backup administration tool, such as nwadmin or nsradmin. Use the administration tool to create and modify unique pools (see "NSR pool ").

The following examples describe the format and options available for the mmpool program:


mmpool [-s server] [volume...]
mmpool [-s server] -d pool-name
mmpool [-s server] -l [pool-name]
mmpool [-s server] -L

mmrecov

The mmrecov program recovers a Backup server's online file index and media database from backup volumes when either of the files is lost or damaged. Note that this command overwrites the server's existing online file index and media database. The mmrecov program is not used to recover Backup clients' client file indexes; you can use normal recover procedures for this purpose.

You must fully install and correctly configure the Backup server software and run a backup that includes the server's file index and media database before using the mmrecov program for the first time. If any of the Backup software is lost, reinstall the software from the distribution files before you run mmrecov. Use the same release of Backup, and install it in the same location as it was before the software was lost.

After you start the mmrecov program, the program prompts for the device from which the bootstrap save set will be extracted. Then, it asks for the bootstrap ssid. This number is found in the fourth column (labeled ssid) of the last line of the bootstrap report printed each time you run the savegrp program. Refer to the mmrecov(1m) man page for an example of the bootstrap report.

The mmrecov program works in two phases. First, it extracts the contents of the bootstrap save set, which contains the media database and online file index. The online file index contains only one entry: for itself. In the second phase, the mmrecov program runs the recover program to completely recover the server's online file index. The final phase is performed in the background, so that you can respond to subsequent media mount requests.

The following example describes the format and options available for the mmrecov program:


mmrecov [-q | -v] 

nsrck

The nsrck program checks the consistency of the Backup online index of clients' save sets.

Use the nsrck to check the consistency of the Backup client file indexes. Typically, the nsrck program is automatically started by the nsrindexdstartup. The .nsrck file is locked upon program execution; therefore, only one instance of nsrck can run on the server.

You can restart the nsrck program at any time during its execution. Therefore, it can survive system crashes or exhaustion of resources without losing data.

Index consistency checking is done in up to four phases:

nsrim

The nsrim program manages the Backup server's client file indexes and media database. Typically, the nsrim program is run automatically by the nsrmmdbd daemon when a scheduled backup starts, by the savegrp program upon completion of the backup, and by nsrd as a result of selecting the option to remove the oldest index cycle. Ordinarily, you should not run the nsrim program manually.

The nsrim program accesses the defined policies to determine how to manage each client's file index. Entries that have existed in the index longer than the period specified by the client's defined browse policy are removed from the client's file index. Save sets that have existed in the media database longer than the period specified by the client's defined retention policy are marked as recyclable in the media database. When all of the save sets contained on a single volume are marked recyclable, the volume itself is considered recyclable. Recyclable volumes may be selected and, in the case of volumes managed by an autochanger, automatically relabeled for use by Backup when a writable volume is requested for another backup. After you relabel the recycled volume, the data once contained on it is destroyed. Until you relabel the volume, you can still use the scanner program to recover the save sets. See "scanner " for information on how to use the scanner program.

The following example describes the format and options available for the nsrim program:


nsrim [-b browse] [-c client] [-N saveset]

[- r retention] [-x percent] [-lnqvMX] 

nsrinfo

The nsrinfo program generates reports about the contents of a client's file index. The Backup client name is required; if you provide no further options, the nsrinfo program produces a report of all the names of the files and objects, one per line, found in the backup namespace for the specified client. The nsrinfo program can also generate reports for a specific client file index namespace, either for all the namespaces at once, or for a particular XBSA (X-Open Backup Services) application. The report can be restricted to a single time period, called the savetime, which is the time the entry was entered into the client file index.

If you do not specify the -L option, you must be listed on the Backup server's Administrators list to use the nsrinfo program. If you do specify the -L option, you must be the system administrator (for example, root on a UNIX system).

The following example describes the format and options available for the nsrinfo program:


nsrinfo [-vV] [-s server | -L] [-n namespace]

[- N filename] [-t time] [-X application] client 

nsrls

The nsrls program, when invoked without any options, prints the number of files in client file index, the number of kilobytes that the client file index currently requires, and the utilization of the client file index with respect to the number of kilobytes allocated to its UNIXfile.

The following example describes the format and options available for the nsrls program:


nsrls [client-name...]
nsrls -f file-name...