NSRMMDBD(8)

NAME
nsrmmdbd - NetWorker media (volume) management database daemon

SYNOPSIS
nsrmmdbd

DESCRIPTION
The nsrmmdbd daemon provides an RPC-based database service to the local nsrd(8) and nsrmmd(8) daemons, and query-only network access to NetWorker clients. The RPC program number provided by nsrmmdbd is 390107. The RPC version numbers provided by nsrmmdbd are 3, 4, and 5. Nsrmmdbd is normally started by nsrd(8).

The daemon manages a ``media and save set database'' located in the file /nsr/mm/mmvolume. The primary purpose of the database is to remember which save sets reside on which backup volumes. Numerous access methods are provided to both save set and volume records within the database.

FILES

/nsr/mm/mmvolume
    File containing the volume data base.

/nsr/mm/cvt
    A temporary file created when converting an older media database schema to the present schema.

/nsr/mm/.cmprssd
    For performance and space reasons, the database is periodically rebuilt (or compressed). This file is created each time the database is rebuilt; its associated ctime is used to determine when to rebuild the database again. To forcibly compress the database, remove this file and run nsrim.

/nsr/mm/mmvolume.s
    This temporary file is created to hold the media database information that will be saved to tape by nsrmmdbasm(8).

/nsr/mm/mmvolume.r
    The file (created by nsrmmdbasm) that is read when the media database information is being recovered.

SEE ALSO
mmrecov(8), nsr(8), nsrd(8), nsrim(8), nsrmmd(8), nsrmmdbasm(8), nsrmm(8), mminfo(8)

DIAGNOSTICS
The nsrmmdbd diagnostic messages will normally be logged to the /nsr/logs/daemon.log file.

Besides the messages listed below, nsrmmdbd may generate other diagnostics. Any diagnostics other than those listed below indicate a serious problem with the media database. It may be necessary to recover your media database using mmrecov(8) if that occurs.

media db is converting path to version 5
media converting to version 5
    Any media databases created prior to the NetWorker 4.2 release have to be converted (once) to the new database format. Plan on allowing one second for every 100 save sets.

media conversion done
    Printed when the conversion is completed successfully.

media conversion failed! reason
    Printed when the conversion is terminates unsuccessfully. A more detailed reason may be appended to the message. NetWorker cannot work until the media database is converted successfully.

media db is converting count volumes
    This is printed after the volumes' data has been dumped from the old database, but before it has been loaded into the new database.

media db is converting count save sets
    This is printed after the save sets' data has been dumped from the old database, but before it has been loaded into the new database.

media db is saving its data, this may take a while
    Printed when the daemon is dumping its records to a temporary file when the database is being backed up. The service is unavailable while the database is dumping.

media db is recovering, this may take a while
    Printed when the daemon is reloading its database. The service is unavailable while the data is being reloaded.

media db is recovering old data, this may take a while
    Similar to the previous message, except that a pre-4.0 database is being recovered and it will have to be converted before service resumes.

media db is cross checking the save sets
    Printed each time the daemon is restarted. Upon start-up, the daemon sanity checks its records before providing its service.

media db is open for business
    Printed after any of the previous messages are printed to indicate that the service is once again available.

A copy of this process is already running!
    Another copy of nsrmmdbd(8) is currently running and has exclusive access to the media database. Only one nsrmmdbd process should be running on a given machine at a time. This can happen if the previous nsrmmdbd was not properly killed off. Use nsr_shutdown(8) or ps(1) and kill(1) to identify and kill off all the NetWorker daemons before restarting nsrd(8) again.

Cannot open lock file
    An internal error, check the permissions on the /nsr/tmp and /nsr/mm directories.