Setting NFS Gateway Parameters

Use the following syntax to set the NFS Gateway parameters. These parameters apply to the NFS Gateway volumes mounted on the system.

nfsgy [-shadowCacheSize value][-pageCacheSize value]                              [-shadowVolume volumeName][-logFileSize value][-logLevel value][-logVerbose] [-logFlushImmediate]

The following table describes the parameters.

Parameter Default Description

shadowCacheSize

8

Size of the shadow cache (in MB).

Range = 8 to 32

For improved performance, we recommend that you set the value to 32 MB.

pageCacheSize

8

Size of the page cache (in MB).

Range = 8 to system limit

The maximum limit is based on the available system memory.

For example, 8 MB of page cache size is adequate to hold up to 50,000 entries in a single directory. If the number of entries in a single directory is greater than 50,000, we recommend that you increase the pageCacheSize value.

shadowVolume

sys:

Specifies the name of the volume where shadow files are to be stored.

The shadow files are stored in shadowVolume:\gateway directory.

The shadow volume specified with the nfsgy commandis used if shadowVolume parameter is not specified with gymount command.

The NFS Gateway does not load if the specified volume is not available.

Do not use the mounted Gateway volumes as ShadowVolume when mounting another volume using gymount. For example, if vol1 is a mounted NFS Gateway volume, then do not execute the following:

gymount vol2 -shadowvolume vol1

IMPORTANT:  Do not dismount or deactivate the volume that shadowVolume points to when the NFS Gateway is loaded. Doing so results in deactivation of volumes imported by the NFS Gateway.

logFileSize

4 MB

Specifies the log file size (in MB).

The maximum value can be 32 MB.

If any invalid value is specified, then the default value is used.

After the log file size reaches the set value, the contents of the log file (.log) file are backed up as the .bak file.

The log messages specific to each volumes are saved as shadowVolume/gateway/volumename.log. The general log messages for the NFS Gateway are saved as shadowVolume/gateway/system.log.

logLevel

1

Specifies the logging level to be enabled for the volume.

0, 1, 2, and 4 are the valid log levels. The values indicate the following:

0 = None (Logging is disabled)

1 = Errors

2 = Warning , Errors

4 = Info, Warning and Errors

logVerbose

Disabled

Specifies to log verbose information.

logFlushImmediate

Disabled

If specified, forces the log messages to be written to file immediately.

If not set, the log messages are cached until the buffer is full.