|
|
Data ONTAP® PowerShell Toolkit
|
Cmdlet: Set-NaLunShare
NAME
Set-NaLunShare
SYNOPSIS
Enables file system protocol-based access to a lun.
SYNTAX
Set-NaLunShare [-Path] <String> [-ShareType] <String> [-Controller <NaContro
ller>] [<CommonParameters>]
DESCRIPTION
Enables file system protocol-based access to a lun. By default, all accesses
are disallowed. Note that file permissions and ACL entries still apply.
PARAMETERS
-Path <String>
Path of the LUN.
Required? true
Position? 1
Default value
Accept pipeline input? true (ByValue, ByPropertyName)
Accept wildcard characters? false
-ShareType <String>
Possible values: all, none, read, write
Required? true
Position? 2
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
<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
DataONTAP.Types.Lun.LunInfo
NOTES
Category: lun
API: lun-set-share
-------------- Example 1 --------------
C:\PS>Set-NaLunShare /vol/vol2/lun101 read
Set the share access state of LUN 'lun101' to 'read'.
BackingSnapshot :
BlockSize : 512
IsSpaceReservationEnabled : True
Mapped : False
MultiprotocolType : image
Online : True
Path : /vol/vol2/lun101
ReadOnly : False
SerialNumber : 123456abcdef
ShareState : read
Size : 2000683008
Uuid : d44cf834-180e-11df-9cab-00a09806c227
Comment :
RELATED LINKS
Get-NaLun
| Copyright © 2013 NetApp. All rights reserved. Use is subject to license terms. |
|
Data ONTAP® PowerShell Toolkit
|