Setting the lock grace period

Applies To: Windows Server 2003 R2

To set the lock grace period using the Windows interface

  1. Open Microsoft Services for Network File System: click Start, point to Programs, point to Administrative Tools, and then click Microsoft Services for Network File System.

  2. If necessary, connect to the computer you want to manage.

  3. Right-click Server for NFS and then click Properties.

  4. Click the Locking tab.

  5. In Waiting Period, type the number of seconds within which Network File System (NFS) clients can reestablish file locks after a network or server service interruption..

  6. To save this setting, click Apply.

To set the lock grace period using the command line

  1. Open the command prompt.

  2. At a command prompt, type:

    nfsadmin server [ComputerName**] config lockperiod=**LockingGracePeriod

    Argument Description

    ComputerName

    The name of the computer you want to manage.

    LockingGracePeriod

    The time period (in seconds) within which users can reestablish locks after the server restarts.

    Note

    To view the complete syntax for this command, at a command prompt, type: nfsadmin server /?