Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: tl@ae.chalmers.se (Torbj|rn Lindgren)
Subject: Re: [HELP] How to restore advfs inconsistency?
Date: 1995/05/29	[thread overview]
Message-ID: <3qckgi$o0r@nyheter.chalmers.se> (raw)
In-Reply-To: klaus.801304250@manuel.physik.fu-berlin.de

In article <klaus.801304250@manuel.physik.fu-berlin.de>,
Wolfram Klaus <klaus@manuel.physik.fu-berlin.de> wrote:
>Of course our backup is not too new. So we are desperately seeking for
>a way two recover from the inconsistency without loosing too much
>data.

You don't say which version of OSF/1 you are running!

Anyway, you could try /usr/field/msfsck (repeat a couple of times) and
then /usr/field/vchkdir (repeat a couple of times). If you run them
without parameters you get a small help-note (that isn't correct in
all details!).

I have appended a tech-note containing more information about
/usr/field in OSF/1 3.0 at the end. The syntax given there seems to be
correct one for both 2.x and 3.0, and in both cases the help given by
the programs are slightly wrong (but close enough that you could
probably figure it out without the tech-note).

Another way is using vdump/vrestore. At least in OSF/1 2.x you
sometimes had to do the vrestore to an UFS filesystem to get rid of
the inconsistency's!

-

			ADVFS Utilities in /usr/field

NOTE: This is a description of the ADVFS v3.0 version of these programs.
Earlier versions may not support all these features (or they may not
even exist on earlier version of ADVFS).

msfsck

This is the ADVFS bitfile-subsystem metadata structure checker.  It verifies
low-level meta-structures like the BMT, storage bitmap, and tag directories.

The file domain must be inactive to run msfsck.  You also need at least
one mounted fileset (this is because msfsck uses the .tags directory in the
fileset to access the metadata).

To run it, first 'cd' to the mount point of a mounted fileset.
Then, run "/usr/field/msfsck -t <domain-name>".

vchkdir

This is the ADVFS directory structure checker and fixer.  It verifies that
the directory structure is correct and that all directory entries reference
a valid file (tag) and that all files (tags) have a directory entry.  The
-f flag will create symlinks in "<mount-point>/lost+found/" to all files (tags)
that do not contain a directory entry; these are called lost files.  The -f
flag also remove 'dead' directory entries (ones that do not point to valid
tags).

The -d option will delete lost files and it will delete corrupted
directories.  Note, that you may need to run vchkdir several times
to cleanup a fileset.

The file domain must be inactive to run vchkdir.  The fileset to be
checked/fixed must be mounted.

To run it do "/usr/field/vchkdir <mount-point>".

shfragbf

This program displays information about a fileset's Fragment File.  The Fragment
File contains file fragments less than 8K.  These are used to minimize wasted
disk space due to internal file fragmentation (for example, ADVFS will store
a 1 byte file in a 1K fragment rather in a 8K page).  The Fragment File
is always tag (inode) 1 in a fileset and can be accessed via the fileset's
.tags directory.

To run it do "/usr/field/shfragbf <mount-point>/.tags/1".


tag2name

This program will display the full pathname of a file when only the
file's tag (inode) number is known.  This is mainly a debugging aid
when msfsck or vchkdir report errors for specific tags.

To run it do "/usr/field/tag2name <mount-point>/.tags/<tag-number>".


switchlog

This program provides the capability to resize the transaction log
or to move it to a specific volume in a domain.  NOTE: To date there
has been no reason to change the size of the transaction log so we
do not recommend doing this.

To move the transaction log to another disk do
"/usr/field/switchlog <domain-name> <new-volume-number>".

Use showfdmn to determine the current volume that contains the log
and to determine a suitible target volume.

switchlog can be used on an active system.



vods

Displays the BMT on-disk structure.  It is beyond the scope of this note
to describe this utility as it requires initimate knowledge of the
BMT structure to use and interpret the output of 'vods'.  It is mainly
a low-level debugging tool.



      parent reply	other threads:[~1995-05-29  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-05-24  4:00 [HELP] How to restore advfs inconsistency? Wolfram Klaus
1995-05-24  4:00 ` John Stoffel
1995-05-29  4:00 ` Torbj|rn Lindgren [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox