Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Space reclaimation LUN Provisioned on windows server 2012 Core
2016-03-02
02:41 AM
5,743 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Guys,
I have a windows server 2012 core on which thick LUNs are provisioned from netApp cluster. now when i check the spaceUsed column using the powershell command Get-NCLUN . it shows Size and SizeUsed value as same, and when i check the LUN space from windows, there is enough free space available.
is there any way if we can reclaim the space on netapp side.
regards
VK
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi VK
If yo install snapdrive on the windows 2012 server you can use space reclaimation feature. Right click on the LUN in question and select space relaimation, depending on the amount of space to be reclaimed it can take a while to complete
Nigel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
see below space_alloc options
https://library.netapp.com/ecmdocs/ECMP1196995/html/GUID-93D78975-6911-4EF5-BA4E-80E64B922D09.html
regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
from command line, with powershell (you have to install DataOntap PS module), we do this:
(host side, from powershell)
PS C:\Users\u0xxx> get-module -listavailable (so You can verify you have the relative PS module)
ModuleType Name ExportedCommands
---------- ---- ----------------
Manifest ActiveDirectory {}
......
Manifest BestPractices {}
Manifest BitsTransfer {}
Manifest DataONTAP {} !!!!!!!!!
Manifest FailoverClusters {}
........
.......
......
PS C:\Users\u00xxx> Import-Module DataONTAP
Security Warning
Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your
computer. Do you want to run C:\Windows\system32\WindowsPowerShell\v1.0\Modules\DataONTAP\DataONTAP.Alias.psm1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): r
PS C:\Users\u0xxxx>$hostdisks =Get-NaHostDisk - dataOntap
echo $hostdisks
so You can obtain disk list
PS C:\Users\u0xxxx> $hostdisks =Get-NaHostDisk -dataOntap
PS C:\Users\u0xxxx> echo $hostdisks
HostDrivePath Disk Size ControllerPath
------------- ---- ---- --------------
.....
.........
\\?\Volume{0626c0ff-cf62-46... 28 1,7 TB filer:/vol/vol_prodmysit_contdb1/lun11.lun
\\?\Volume{fccb2952-b21d-44... 29 1,2 TB filer:/vol/vol_prodmysit_contdb2/lun12.lun
.......
\\?\Volume{b9c60a94-97c4-4d... 33 1,2 TB filer:/vol/vol_prodmysit_contdb6/lun16.lun
now You have to identify the volume You want to reclaim (es : lun12.lun) and take note of whick disk (es disk 29)
so, You can launch space reclaim
es.
Invoke-NaHostVolumeSpaceReclaim -Path $hostdisks[29].hostdrivepath -confirm:$false -UnmapSize 1MB
before of space reclaim:
filer*> lun show -v /vol/vol_prodmysit_contdb2/lun12.lun
/vol/vol_prodmysit_contdb2/lun12.lun 1.2t (1342291668480) (r/w, online, mapped)
Comment: " "
Serial#: HndthJbb6qy9
Share: none
Space Reservation: disabled
Multiprotocol Type: windows_2008
Maps: viaRPC.20:00:00:25:b5:0b:c2:1f.server=51 viaRPC.20:00:00:25:b5:0a:c1:af.server=51 viaRPC.20:00:00:25:b5:0b:a0:af.....
......
Occupied Size: 1.1t (1217104642048)
Creation Time: Mon Mar 14 14:59:05 MET 2011
Alignment: aligned
Cluster Shared Volume Information: 0x1
Space_alloc: disabled
after space reclaim:
filer*> lun show -v /vol/vol_prodmysit_contdb2/lun12.lun
/vol/vol_prodmysit_contdb2/lun12.lun 1.2t (1342291668480) (r/w, online, mapped)
Comment: " "
Serial#: HndthJbb6qy9
Share: none
Space Reservation: disabled
Multiprotocol Type: windows_2008
Maps: viaRPC.20:.....
Occupied Size: 476.2g (511325540352)
Creation Time: Mon Mar 14 14:59:05 MET 2011
Alignment: aligned
Cluster Shared Volume Information: 0x1
Space_alloc: disabled
bye
Monardo G.A.
