Microsoft Virtualization Discussions

ONTAP Powershell tookit error

parksangil

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

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

Thank you for reply.

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public