Using PowerShell Toolkit to create an NFS service and enabling vStorage/VAAI.
While my code is functioning, I'm encountering a warning I'd like to prevent the following warning:
WARNING: IsNfsv41PnfsStripedVolumesEnabled parameter is not available on Data ONTAP 8.3 and later.
Here's the code snippet that enables vStorage/VAAI on the SVM/NFS service
$config=Get-NcNfsService -Template
$config.IsVstorageEnabled=$true
$myVserver | Set-NcNfsService -Attributes $config
So, the config template object from Get-NcNfsService template includes a lot of properties that I'm not interested in.
TypeName: DataONTAP.C.Types.Nfs.NfsInfo
Name MemberType Definition
---- ---------- ----------
IsNfsv41PnfsEnabled Property System.Nullable[bool] IsNfsv41PnfsEnabled {get;set;}
IsNfsv41PnfsEnabledSpecified Property bool IsNfsv41PnfsEnabledSpecified {get;set;}
IsNfsv41PnfsStripedVolumesEnabled Property System.Nullable[bool] IsNfsv41PnfsStripedVolumesEnabled {get;set;}
IsNfsv41PnfsStripedVolumesEnabledSpecified Property bool IsNfsv41PnfsStripedVolumesEnabledSpecified {get;set;}
GeneralAccess :
IsNfsv3 :
IsNfsv4 :
IsNfsv41 :
AuthSysExtendedGroups :
CachedCredHarvestTimeout :
CachedCredNegativeTtl :
CachedCredPositiveTtl :
CachedTransientErrTtl :
ChownMode :
DefaultWindowsGroup :
DefaultWindowsUser :
EnableEjukebox :
ExtendedGroupsLimit :
FileSessionIoGroupingCount :
FileSessionIoGroupingDuration :
IgnoreNtAclForRoot :
IsChecksumEnabledForReplayCache :
IsMountRootonlyEnabled :
IsNetgroupDnsDomainSearch :
IsNfsAccessEnabled :
IsNfsRootonlyEnabled :
IsNfsv2Enabled :
IsNfsv364bitIdentifiersEnabled :
IsNfsv3ConnectionDropEnabled :
IsNfsv3Enabled :
IsNfsv3FsidChangeEnabled :
IsNfsv40AclEnabled :
IsNfsv40Enabled :
IsNfsv40MigrationEnabled :
IsNfsv40ReadDelegationEnabled :
IsNfsv40ReferralsEnabled :
IsNfsv40ReqOpenConfirmEnabled :
IsNfsv40WriteDelegationEnabled :
IsNfsv41AclEnabled :
IsNfsv41AclPreserveEnabled :
IsNfsv41Enabled :
IsNfsv41MigrationEnabled :
IsNfsv41PnfsEnabled :
IsNfsv41PnfsStripedVolumesEnabled :
IsNfsv41ReadDelegationEnabled :
IsNfsv41ReferralsEnabled :
IsNfsv41StateProtectionEnabled :
IsNfsv41WriteDelegationEnabled :
IsNfsv4FsidChangeEnabled :
IsNfsv4NumericIdsEnabled :
IsQtreeExportEnabled :
IsRquotaEnabled :
IsTcpEnabled :
IsUdpEnabled :
IsV3MsDosClientEnabled :
IsValidateQtreeExportEnabled :
IsVstorageEnabled : True
MapUnknownUidToDefaultWindowsUser :
MountdPort :
NameServiceLookupProtocol :
NcController :
NetgroupTrustAnyNsSwitchNoMatch :
Nfsv41ImplementationIdDomain :
Nfsv41ImplementationIdName :
Nfsv41ImplementationIdTime :
Nfsv41ImplementationIdTimeDT :
Nfsv4AclMaxAces :
Nfsv4GraceSeconds :
Nfsv4IdDomain :
Nfsv4LeaseSeconds :
Nfsv4xSessionNumSlots :
Nfsv4xSessionSlotReplyCacheSize :
NlmPort :
NsmPort :
NtaclDisplayPermissivePerms :
NtfsUnixSecurityOps :
PermittedEncTypes :
RpcsecCtxHigh :
RpcsecCtxIdle :
RquotadPort :
Showmount :
ShowmountTimestamp :
SkipRootOwnerWritePermCheck :
TcpMaxXferSize :
UdpMaxXferSize :
V3SearchUnconvertedFilename :
V4InheritedAclPreserve :
Vserver :
AuthSysExtendedGroupsSpecified : False
CachedCredHarvestTimeoutSpecified : False
CachedCredNegativeTtlSpecified : False
CachedCredPositiveTtlSpecified : False
CachedTransientErrTtlSpecified : False
EnableEjukeboxSpecified : False
ExtendedGroupsLimitSpecified : False
FileSessionIoGroupingCountSpecified : False
FileSessionIoGroupingDurationSpecified : False
IgnoreNtAclForRootSpecified : False
IsChecksumEnabledForReplayCacheSpecified : False
IsMountRootonlyEnabledSpecified : False
IsNetgroupDnsDomainSearchSpecified : False
IsNfsAccessEnabledSpecified : False
IsNfsRootonlyEnabledSpecified : False
IsNfsv2EnabledSpecified : False
IsNfsv364bitIdentifiersEnabledSpecified : False
IsNfsv3ConnectionDropEnabledSpecified : False
IsNfsv3EnabledSpecified : False
IsNfsv3FsidChangeEnabledSpecified : False
IsNfsv40AclEnabledSpecified : False
IsNfsv40EnabledSpecified : False
IsNfsv40MigrationEnabledSpecified : False
IsNfsv40ReadDelegationEnabledSpecified : False
IsNfsv40ReferralsEnabledSpecified : False
IsNfsv40ReqOpenConfirmEnabledSpecified : False
IsNfsv40WriteDelegationEnabledSpecified : False
IsNfsv41AclEnabledSpecified : False
IsNfsv41AclPreserveEnabledSpecified : False
IsNfsv41EnabledSpecified : False
IsNfsv41MigrationEnabledSpecified : False
IsNfsv41PnfsEnabledSpecified : False
IsNfsv41PnfsStripedVolumesEnabledSpecified : False
IsNfsv41ReadDelegationEnabledSpecified : False
IsNfsv41ReferralsEnabledSpecified : False
IsNfsv41StateProtectionEnabledSpecified : False
IsNfsv41WriteDelegationEnabledSpecified : False
IsNfsv4FsidChangeEnabledSpecified : False
IsNfsv4NumericIdsEnabledSpecified : False
IsQtreeExportEnabledSpecified : False
IsRquotaEnabledSpecified : False
IsTcpEnabledSpecified : False
IsUdpEnabledSpecified : False
IsV3MsDosClientEnabledSpecified : False
IsValidateQtreeExportEnabledSpecified : False
IsVstorageEnabledSpecified : True
MapUnknownUidToDefaultWindowsUserSpecified : False
MountdPortSpecified : False
NetgroupTrustAnyNsSwitchNoMatchSpecified : False
Nfsv4AclMaxAcesSpecified : False
Nfsv4GraceSecondsSpecified : False
Nfsv4LeaseSecondsSpecified : False
Nfsv4xSessionNumSlotsSpecified : False
Nfsv4xSessionSlotReplyCacheSizeSpecified : False
NlmPortSpecified : False
NsmPortSpecified : False
NtaclDisplayPermissivePermsSpecified : False
RpcsecCtxHighSpecified : False
RpcsecCtxIdleSpecified : False
RquotadPortSpecified : False
ShowmountSpecified : False
ShowmountTimestampSpecified : False
SkipRootOwnerWritePermCheckSpecified : False
TcpMaxXferSizeSpecified : False
UdpMaxXferSizeSpecified : False
V3SearchUnconvertedFilenameSpecified : False
V4InheritedAclPreserveSpecified : False
I'm assuming that the template pulls all those parameters with no insight as to the connected/target cluster/SVM. Any suggestions.