>>>>> "Peter" == Peter Mueller <[EMAIL PROTECTED]> writes:
Peter> unfortunately there is no easy way to figure out which
Peter> mountpoint corresponds to which volume from the volume's view
Peter> point ...
There is with AFS 3.4...
Peter> One possibility is to parse down the whole (!) AFS tree on your
Peter> site and to check each directory if it is a mountpoint. Then,
Peter> collect this information and check it against the list of
Peter> available volumes.
I think just about every major AFS site has done something similar to
this, and naturally, so did we.
The AFS 3.4 salvager makes the data-gathering part of this code
trivial.
salvager -showmount
will print into the SalvageLog, one line per mount, per volume
scanned. Since this command line option implies -nowrite (i.e. RO
access to the data) you can run this without shutting down the
fileserver, and gather data in batch mode. Sample output looks like:
02/05/96 13:29:43 In volume 536870928 (ms.dist) found mountpoint ./sunos.5.4 to
'#dt.2329.sunos.5.4.'
You can then gather the SalvageLog files (using bos getlog, perhaps),
and parse these to build a complete tree of volume/mounts. You can
then scan this for mount loops, missing volumes (i.e. mounted
nowhere), etc.
W. Phillip Moore Phone: (212)-762-2433
Information Technology Department FAX: (212)-762-1009
Morgan Stanley and Co. E-mail: [EMAIL PROTECTED]
750 7th Ave, NY, NY 10019
"Grant me the serenity to accept the things I cannot change, the
courage to change the things I can, and the wisdom to hide the
bodies of the people that I had to kill because they pissed me
off."
-- Anonymous
"Every normal man must be tempted at times to spit on his
hands, hoist the black flag, and begin slitting throats."
-- H.L. Mencken