HOW TO: Manage File Locking on Server for NFS (324220)
The information in this article applies to:
- Microsoft Windows 2000 Server
- Microsoft Windows 2000 Advanced Server
- Microsoft Windows 2000 Professional
- Microsoft Windows XP Professional
- Microsoft Windows NT Server 4.0 SP6a
- Microsoft Windows NT Workstation 4.0 SP6a
- Microsoft Windows Services for UNIX 3.0
This article was previously published under Q324220 SUMMARY
Network File Service (NFS) servers process and assign locks on files based on requests from NFS client computers. The server waits for a designated time when a connection is broken for the client to reestablish the connection. If the client does not reconnect in that time period, Server for NFS releases the lock. If you are the administrator, you can manually release all of the locks that are held by a client. This article describes how to use either Services for UNIX Administration Microsoft Management Console (MMC) or the NFSAdmin.exe utility to perform locking tasks.
back to the top
Configuring Server for NFS Locking
You can use Services for UNIX Administration MMC to configure the locking wait period and to release the locks that are held by a client.
To configure locking on a Server for NFS computer:
- Log on to the Server for NFS computer by using an administrative level account.
- Click Start, point to Programs, point to Services for UNIX, and then click Services for UNIX Administration.
- Click the Server for NFS pane, and then click the Locking tab.
- Enter a time (in seconds) for the waiting period that the server holds a lock for a disconnected client. The default value is 0.
- Click Apply to apply the change.
back to the top
Managing Locks by Using NFSAdmin
If you use the Nfsadmin.exe command-line utility, you can control any locks that are held by the server. You can use Nfsadmin to view the current locking status and to release the locks that are held by individual clients.
To manage locks by using NFSAdmin:
- Log on to the Windows server by using an administrative level account.
- Click Start, click Run, type cmd, and then click OK.
- From the command prompt, run the following command to list the existing locks held by all clients:
- From the command prompt, run the following command to release the locks that are held by a client:
nfsadmin server -r client_name - From the command prompt, run the following command to release all of the locks that are held by all clients:
NOTE: For more information about the Nfsadmin utility, see the "man nfsadmin" pages in an Interix shell.
back to the top
REFERENCESFor additional information about performing maintenance tasks after a UNIX to Windows migration, click the article number below
to view the article in the Microsoft Knowledge Base:
324539 HOW TO: Perform Maintenance and Ancillary Tasks After a UNIX to Windows Migration
back to the top
Modification Type: | Major | Last Reviewed: | 6/6/2003 |
---|
Keywords: | kbhowto kbHOWTOmaster KB324220 kbAudITPro |
---|
|