savemeta - Takes a snapshot of an AdvFS domain's metadata
/sbin/advfs/savemeta [-LSTtr] [-f fileset] domain savedir
Saves the structure information from the frag file in each
named fileset to the savedir. If this option is not specified,
the default is to write no frag file information to
the savedir. Do not save the domain's log file to the
savedir. If this option is not specified, the default is
to write the log file to the savedir. Allows savemeta to
run on mounted but corrupt domains by acquiring metadata
information from the raw device. Do not save each volume's
storage bitmap (SBM) to the savedir. If this option
is not specified, the default is to write each volume's
SBM to the savedir. Do not save the domain's root tag
file to the savedir. If this option is not specified, the
default is to write the root tag file to the savedir. Do
not save the fileset tag files to the savedir. If this
option is not specified, the default is to write the fileset
tag files to the savedir.
The name of the AdvFS domain from which you want to obtain
the metadata. The name of a directory into which the
saved metadata is to be written.
This script saves a snapshot of the specified domain metadata
into a directory, savedir, that has the following
structure:
savedir/volume_directory/RBMT_file
/BMT_file
/SBM_file
/log_file
/tag_file
/fileset_directory/frag_file
/tag_file
By default, the savemeta command saves all the bitfile
metadata (BMT), all the SBM, the log and root tag files,
and the fileset tag files. If you specify the -f option,
the command saves the frag file information for each fileset.
Caution
When the -r option is supplied and a fileset is mounted,
the raw disk being read may not have all the data that is
in the kernel's buffers. When this happens the data saved
by savemeta may be inconsistent.
You must be the root user to use this command.
This command returns a 0 (zero) on success. Otherwise, it
returns a 1 and displays an error diagnostic.
The command path.
Commands: nvbmtpg(8), nvfragpg(8), nvlogpg(8), nvtagpg(8),
vsbmpg(8)
savemeta(8)
[ Back ] |