Controls and monitors MVFS caches (dynamic views only)
Product | Command Type |
---|---|
ClearCase | command |
Platform |
---|
UNIX |
Windows |
Determine cache status:
Control cache operation:
Display name cache contents:
NOTE: This utility is not intended for general use. It is intended primarily to help ClearCase engineering and Rational Technical Support personnel diagnose problems with the MVFS. For information on user-level cache commands, see the getcache and setcache reference pages.
mvfscache manipulates a dynamic view host's MVFS caches, which are used to optimize file system performance.
Identities: No special identity is required to flush a cache. To enable or disable a cache, you must have one of the following identities:
root (UNIX)
Local Windows system administrator (Windows)
Member of the Windows Administrators group (Windows)
Mastership: (Replicated VOBs only) No mastership restrictions.
DETERMINING CACHE STATUS. With no options or arguments, mvfscache displays the enabled/disabled status of all MVFS caches. If you don't use any of the options, but specify a cache name as an argument, mvfscache does not display any output; it returns an appropriate exit status:
0 | specified cache is enabled |
1 | specified cache is disabled |
CONTROLLING CACHE OPERATION. Use one of the following options to control a cache, a set of caches, or cache-related behavior.
attr | Attribute cache. Caches information on recently accessed file-system objects. |
name | Name cache. Caches name lookup translations for recently accessed files and directories. |
slink | Symbolic link text cache. Caches the contents of recently accessed symbolic links. |
rvc | VOB root version cache. Caches VOB mount point data for each dynamic view. |
cto | (cache-related behavior) Close-to-open consistency behavior. Forces a "get file info"-type operation to the view_server on every operating-system open operation. Disabling this behavior may boost performance if mvfsstat or mvfstime shows heavy cto activity and the user is not sharing views. However, disabling this behavior may result in consistency loss. |
mnode | Mnode freelist cache. Flushes the |
name | Name cache. |
rvc | VOB root version cache. |
lcred | Global credentials cache for cleartext lookup permissions. |
DISPLAYING NAME CACHE CONTENTS. Use -p by itself or with one or more of -n, -v, and -i. The name cache contains the name lookup translations for recently accessed files and directories. The first line of a name lookup translation has this form:
VOB-tag | view:directory-dbid | name ==> view:lookup-dbid |
Determine the status of all caches.
mvfscache
Attr: on
Name: on
Rvc: on
Slink: on
Cto: on
Clear busy mount points, to prepare for unmounting VOBs.
mvfscache -f mnode
Enable the name and attr caches:
mvfscache -e name,attr
mvfslog, mvfsstat, mvfsstorage, mvfstime, mvfsversion, csh(1), stat(2)
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |