Data ONTAP® PowerShell Toolkit

Switch to clustered Data ONTAP documentation.

Cmdlet: Clear-NaNfsLock


NAME
Clear-NaNfsLock

SYNOPSIS
Reclaims NFS locks.

SYNTAX
Clear-NaNfsLock [[-Hosts] <String[]>] [-Controller <NaController>] [<CommonP
arameters>]

Clear-NaNfsLock -Host <String> -PID <String> [-Controller <NaController>] [<
CommonParameters>]


DESCRIPTION
Reclaims the NFS locks for the specified client hosts. If no hosts are speci
fied, then all the clients locks are removed and are notified about lock rec
overy, as if an NFS server crash/reboot had happened. If any hosts are speci
fied, then only those client hosts locks are reclaimed. If a host and proce
ss ID are specified, only the locks for that process are removed.


PARAMETERS
-Hosts <String[]>
Hosts whose locks have to be reclaimed. If no hosts are specified, then
all the clients locks are reclaimed.

Required? false
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-Controller <NaController>
The Data ONTAP controller object, embodied by an NaController object. T
his parameter is returned by the Connect-NaController cmdlet. If not sp
ecified, the value in the global variable CurrentNaController is used.

Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false

-Host <String>
Specify Host to reclaim the locks on one specific process on that host.

Required? true
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

-PID <String>
Specify PID to reclaim the locks on one specific process.

Required? true
Position? named
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false

<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS



OUTPUTS



NOTES


Category: nfs
API: nfs-monitor-reclaim, nfs-monitor-remove-locks

-------------- Example 1 --------------

C:\PS>Clear-NaNfsLock -Hosts sportster


Reclaim all NFS locks from host 'sportster'.






RELATED LINKS
Add-NaNfsMonitor







 Data ONTAP® PowerShell Toolkit