I've seen a few posts regarding the 'Update-NcVol' cmdlet and how it can be problematic. I've also attempted the multiple syntaxes that I've come across, however each attempt has resulted in failing to update the object. I'm hoping someone might be able review the following snippet and let me know if there are any potential issues with it or another way to update the tiering policy (short of using Invoke-SSH). This syntax was taken directly from the Get-Help page for the cmdlet. Thanks!
Environment:
PSVersion: 5.1.14393.5127
CLRVersion: 4.0.30319.42000
DataonTap Version : 9.10.1.2111
$q = Get-NcVol -Template
Initialize-NcObjectProperty $q VolumeIdAttributes
$q.VolumeIdAttributes.Name = "vol1"
$q.VolumeIdAttributes.OwningVserverName = "svm_0"
$a = Get-NcVol -Template
Initialize-NcObjectProperty $a VolumeCompAggrAttributes
$a.VolumeCompAggrAttributes.TieringPolicy = "all"
Update-NcVol -Query $q -Attributes $a
Output :
SuccessCount : 0
FailureCount : 1
SuccessList : {}
FailureList : {vol1}