|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Clear-NaNfsLock
NAME
Clear-NaNfsLock
SYNOPSIS
Reclaims NFS locks.
SYNTAX
Clear-NaNfsLock [[-Hosts] <String[]>] [-Controller <NaController>] [-Warning
Action <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]
Clear-NaNfsLock -Host <String> -PID <String> [-Controller <NaController>] [-
WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParame
ters>]
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 DataONTAP controller object, embodied by an NaController object. Th
is parameter is returned by the Connect-NaController cmdlet. If not spe
cified, the value in the global variable CurrentNaController is used.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningAction <ActionPreference>
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-WarningVariable <String>
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
| Copyright © 2010 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|