I am running ONTAP 9.11P8 .I have tried various commands, but I have had no luck with:
Update-Ncvol
Set-Ncvol
Set-Ncvoloption
I also consulted Google Bard (claiming it is updated to 9.11P8), which suggests:
# Import the NetApp ONTAP PowerShell module
Import-Module NetApp.Ontap.PowerShell
# Rename the volume
Set-NcVol -Name myvolume1 -NewName myvolume
# Get the current tiering policy
$tieringPolicy = Get-NcVol -Name myvolume | Select-Object -ExpandProperty TieringPolicy
# Set the new tiering policy
$tieringPolicy = "all"
# Update the volume with the new tiering policy
Set-NcVol -Name myvolume -TieringPolicy $tieringPolicy
But I keep getting the error: "Select-Object: Property "TieringPolicy" cannot be found"
Omitting the pipe to "Select-Object -ExpandProperty TieringPolicy" works:
i.e
$tieringPolicy = Get-NcVol -Name myvolume
Is this simply not supported in powershell for 9.11P8? Do I have to look into REST API calls?