Microsoft Virtualization Discussions

ONTAP Powershell tookit error

parksangil
1,926 Views

I did the following with Powershell, but it doesn't seem to work properly on the Stripe volume. Is it correct to work with Stripe volume?

PS C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules> get-nahostdisk

HostDrivePath Disk Size ControllerPath
------------- ---- ---- --------------
D:\ 0 279.4 GB
E:\ 1 279.4 GB
F:\ 2 1.7 TB test:/vol/aaa/lun0
F:\ 3 1.7 TB test:/vol/aaa/lun1
F:\ 4 1.7 TB test:/vol/aaa/lun2
F:\ 5 1.7 TB test:/vol/aaa/lun3



PS C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules> invoke-nahostvolumespacereclaim F:

Reclaim volume free space
Are you sure you want to reclaim free space on volume F:\?
[Y] Yes(Y) [A] All Yes(A) [N] No(N) [L] All No(L) [S] Suspend(S) [?] Help (default is "Y"): a  <-- It is said that this part cannot be the same even if it is Y.
invoke-nahostvolumespacereclaim: Target volume is not limited to one physical disk.
Position Line: 1 Character: 1
+ invoke-nahostvolumespacereclaim F:
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: InvalidOperation: (:) [Invoke-NaHostVolumeSpaceReclaim], ArgumentException
+ FullyQualifiedErrorId: QuickReclaimVolume failed,DataONTAP.PowerShell.SDK.Cmdlets.Windows.InvokeNaHostVolumeSpa
ceReclaim

PS C:\Program Files (x86)\NetApp\NetApp PowerShell Toolkit\Modules>

2 REPLIES 2

ttran
1,803 Views

Hello Parksangil,

 

At this time "InvokeNaHostVolumeSpaceReclaim" does not support striped volumes. Starting with Windows 2012 and later, SCSI Unmap is in-band and automatic, thus running Space Reclamation is no longer necessary.

 

This KB provides more details:

KB: ONTAP and Windows SCSI unmap and space reclamation 

 

 

Regards,

 

Team NetApp

Team NetApp

parksangil
1,801 Views

Thank you for reply.

The OS I am using is windows 2008.
Is there any other way to reclaim on stripe volume?

Public