Previous | Contents | Index |
There is no supported method of computing the OpenVMS name of a file by
restoring just the container file from the save set. You need to
restore the entire container file system to a temporary location as
described in Section 16.9.8.1.
16.9.8.5 Recovering a Container File Only
This section applies to the situation where a container file has been deleted or is so badly corrupted that the ANALYZE CONTAINER /REPAIR command does not help, but the other OpenVMS file and directory parts of the container file system are still intact.
The NFS server and the OpenVMS operating system provide many levels of security controls you can use to protect your file systems. Section 16.1.3, Section 16.1.4, and Section 16.1.7 reviewed how the server uses the proxy and export databases to restrict client access as well as how to use OpenVMS account privileges and protection schemes to control access to files and directories.
The NFS server provides additional security options by defining the logical name TCPIP$NFS00000000_SECURITY in the NFS server startup file SYS$STARTUP:TCPIP$NFS_SERVER_STARTUP.COM.
The server reads this logical name when it is started and applies the following security features:
TCPIP$-W-NFS_ACCNOA, access to the OpenVMS account is denied |
The file SYS$STARTUP:TCPIP$NFS_SERVER_STARTUP.COM defines a set of logical names that set characteristics of the NFS server. These characteristics include:
You can modify NFS server characteristics by temporarily changing values with the SET NFS_SERVER command, or you can make permanent changes by modifying a site-specific startup file that you create. The site-specific file, TCPIP$SYSTARTUP.COM holds any definitions you want to preserve for the NFS server and other TCPIP components. (Subsequent product upgrades or installations will not overwrite the definitions in the TCPIP$SYSTARTUP.COM file.)
To make permanent modifications:
Note that modifying server characteristics affects server performance. Be sure you understand the impact (review Section 16.13) before making any changes.
Table 16-2 describes the NFS server logical names.
Logical Name | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
TCPIP$NFS00000000_ERROR | Enables or disables error message logging. | ||||||||||||
TCPIP$NFS00000000_OPCOM | Enables or disables error logging to the operator console (OPCOM). Setting the value to zero (0) disables this option. | ||||||||||||
TCPIP$NFS00000000_HOSTS |
Specifies the maximum number of client hosts that can be defined in the
server's host table. This parameter should be large enough to allow the
definition of all the hosts present in the proxy database. For this
purpose, wildcard hosts counts as one.
Making the parameter value larger than needed makes NFS allocate redundant virtual memory within the server. |
||||||||||||
TCPIP$NFS00000000_UID
TCPIP$NFS00000000_GID |
Defines the default user. The default values for these logical names
are -2/-2 (the UNIX account "nobody").
You can change the values for these logical names. File access is determined by the privileges assigned to the OpenVMS account that maps to the default user in the proxy database. You can also set parameters dynamically by supplying the /UID_DEFAULT and /GID_DEFAULT qualifiers to the SET NFS_SERVER command. |
||||||||||||
TCPIP$NFS00000000_INACTIVITY |
Specifies, in minutes and seconds, the time interval since the last
file access request.
The server keeps an activity timestamp for each opened file to help manage the open file cache. You can also modify this value with the /INACTIVITY_TIMER qualifier of the SET NFS_SERVER command. The default setting for this value is 02:00, or 2 minutes. Making the interval too short causes the NFS server to close files more often, which reduces performance. |
||||||||||||
TCPIP$NFS00000000_SECURITY |
Gives a bit-mask value. Each set bit adds a different security feature
to the NFS operation as follows:
|
||||||||||||
TCPIP$NFS00000000_THREADS |
Defines the maximum number of threads that can be active at the same
time.
The performance of the server is directly related to this value. The recommended value for an average load is a thread maximum of 20. If you increase this value, you should also increase the XID cache value. You may need to increase the page file quota for the TCPIP$NFS account as well. |
||||||||||||
TCPIP$NFS00000000_XID |
Defines the size of the transaction cache, specified in a number of
8K-byte buffers. The default value is 256 buffers (258 x 8K byte).
In a busy server environment, increasing the size of the cache improves server performance. See Section 16.13.6 for more information. Depending on the frequency of file operations, the size of the cache is critical. If you increase this parameter, you may need to increase the page file quota for the TCPIP$NFS account as well. |
The file SYS$STARTUP:TCPIP$NFS_SERVER_STARTUP.COM also defines a set of logical names that set the file system parameters. Table 16-3 describes these logical names.
Logical Name | Description |
---|---|
TCPIP$CFS_CACHE_LOW_LIMIT |
Defines the minimum size of the free buffer list. Below this number,
the file system starts to reclaim used buffers.
The default is 4 buffers. The free buffer list needs at least four free buffers (not taken by cache). If the actual number of free buffers is less than TCPIP$CFS_CACHE_LOW_LIMIT, the used buffers are freed up and returned to the free list, until the size of the free list reaches TCPIP$CFS_CACHE_HIGH_LIMIT. |
TCPIP$CFS_CACHE_HIGH_LIMIT |
Defines the number of buffers the file system tries to keep in the free
buffer list.
The default is eight buffers. See TCPIP$CFS_CACHE_LOW_LIMIT. In a busy server environment, setting this parameter higher is likely to improve performance. |
TCPIP$CFS_CACHE_SIZE | Defines the maximum number of cache buffers to be allocated. |
TCPIP$CFS_TRANSFERSIZE |
Defines the optimum size, in bytes, of the data transferred between
server and client on READ and WRITE operations.
The default is 8K bytes (8192 bytes). This value is used in most NFS server implementations. |
TCPIP$CFS_KEEP_ALLOC |
Defines whether the KEEP_ALLOC option should be turned ON or OFF.
The default is 0 (OFF). If the KEEP_ALLOC option is OFF, unused blocks at the end of a file are freed. If it is ON, then unused blocks are kept allocated. |
TCPIP$CFS_SHOW_VERSION |
Sets the SHOW_VERSION logical name ON or OFF. If ON, the NFS server
returns to the client file names with version numbers, even if there is
only one version of the file.
The default is 0 (OFF). |
TCPIP$CFS_MODUS_OPERANDI | Defines various operating modes. Use only under the advice of your Compaq support representative. |
TCPIP$CFS_FATAL_MESSAGES |
Defines the terminal device to which the important error messages are
directed, in addition to the normal error messages that are sent to the
operator's console.
The default is _OPA0:. |
This section provides information to help you identify and resolve
problems and tune system performance.
16.13.1 Displaying Performance Information
The SHOW NFS_SERVER command displays information about the running NFS server that you can use to tune its performance. You can enter SHOW NFS_SERVER for a specific client or host if it is listed in the proxy database. The counter information can be especially useful in determining the load on your system.
In the following sample the numbers are keyed to the discussion that follows.
TCPIP> SHOW NFS_SERVER Server:NFS$SERVER Loaded: 14-NOV-1995 15:35:01.73 Status: ACTIVE Running: 0 00:24:21.26 Memory allocated (1) 470260 RPC errors (2) Message processing: Authentication 0 Threads busy (3) 0 Others 0 Threads free 15 Mount data base: (4) Max. threads busy 5 Mounted file systems 1 Duplicate cache xid (5) 0 Current users 1 Duplicate active xid 0 Maximum mounted 1 Dropped 0 Maximum users 1 Data exchange: (6) NFS operations: (7) Bytes sent 11839124 null 0 getattr 42 Bytes rcvd 10900824 setattr 12 lookup 186 Messages sent 2956 readlink 0 rename 0 Messages rcvd 2956 read 1417 write 1284 Max. message sent 8292 statfs 1 create 2 Max. message rcvd 8328 remove 1 link 0 Open files: (8) symlink 0 mkdir 1 Maximum opened 2 rmdir 1 readdir 7 Closed per interval 0 Total NFS operations 2954 Currently opened 0 Error messages (9) 0 |
The SHOW CFS command is useful for monitoring the distribution of the file system services and the consumption of system time by the various system services. See the DIGITAL TCP/IP Services for OpenVMS Management Command Reference manual for a detailed description of the SHOW CFS command.
Example 16-1 shows file system information that is displayed after entering the SHOW CFS command. The numbers in the example are keyed to the discussion that follows. (The NFS server must be running when you enter this command.)
Example 16-1 SHOW CFS |
---|
TCPIP> SHOW CFS CFS SERVICES 13-MAR-1999 14:10:02.74 CFS Services(1) OpenVMS System Services(2) ----------------------- ------------------------------------------------ CLOSE 8 CREATE_FH 1 $ASSIGN 9 $QIO 0 CREDIR_FH 0 $DASSGN 8 Access 7 FREEBUFF 0 Create 1 GETATTR 28 $DEQ 182 Deaccess 8 LINK_FH 0 $ENQ 603 LOOKUP_FH 72 Read_attr 159 OPEN_FH 7 $EXPREG 16 Write_attr 33 READ 1 $SETPRT 5 READBUFF 0 Lookup 108 READDIR_FH 2 $CLREF 169 READLINK_FH 0 $SETEF 169 Extend 1 REMDIR_FH 0 REMOVE_FH 0 $DCLAST 232 Delete 0 RENAME_FH 0 $CLRAST 9 Enter 0 SETATTR 8 $SETAST 360 Remove 0 STATFS 1 SYMLINK_FH 0 $GETDVI 7 Read_V 9 WRITE 41 Write_V 57 OTHER 1 $CHKPRO 95 TOTAL 170 |
Previous | Next | Contents | Index |