<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reclaim space quickly (sdelete alternative) in Array Setup and Networking</title>
    <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981689#M114</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your script.&amp;nbsp; I'm finding great use in it, but I'd like to share some of my findings.&amp;nbsp; When running a single thread of this script, it seemed that your copy mechanism is faster than the writing of the entire file, as was the basis of the source script.&amp;nbsp; But with my environment, after doing a litany of tests, I found this was not optimal in my environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a CS460G on a 10Gbe network.&amp;nbsp; When running this script alone I found that my overall network utilization was rather low (hovering between 600-1000Mbps) and the write performance of the Nimble was about 100-200MBps.&amp;nbsp; Recent IOMETER runs on my LUNs allowed me to get much better performance than that.&amp;nbsp; I wondered if I could tweak the script to do the same and was successful, albeit it took a while to find the right combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, I decided to simply try writing larger files.&amp;nbsp; I pushed the base file to 10GB while keeping the copy logic.&amp;nbsp; This in a single thread still underperformed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, I then decided to run 4 copies of the script in parallel (creating separate files...&amp;nbsp; 1_NimbleFastReclaim#, 2_NimbleFastReclaim#, etc, to avoid writing to the same file).&amp;nbsp; This seemed to be perfect.&amp;nbsp; I was pushing my network to 2500-3000 Mbps on average.&amp;nbsp; Nimble performance showed writes hovering between 300-400MBps.&amp;nbsp; As I watched the script run for 30 minutes or so, while monitoring the Nimble performance charts, I noticed the writes started slowing down over time.&amp;nbsp; I also noticed READS on the LUN that were just as high as the WRITES.&amp;nbsp; In fact I was saturating my 10Gbe interface on the server!&amp;nbsp; Apparently dealing with such large base files and the built in copy mechanism of the script becomes less beneficial as you run multiple threads as much of your network performance is wasted on reading from the LUN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So opted to remove the copy functions entirely and just write the raw data directly to the LUN as the source file did (but multithreaded).&amp;nbsp; I also pushed the file to 100GB in size for sake of getting a good sample period.&amp;nbsp; This was with a 1024kb base and 102400 writeloop (I commented out the entire copy file section of the script, so just 1 file per script was created).&amp;nbsp; This got me all writes and no reads, as desired but even with 4 threads I was having a hard time pushing the same write performance as I was above.&amp;nbsp; I attributed this to the small base file size that is repeatedly being appended to the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then tweaked the base file size to 102400kb, with a writeloop of 1024 to accomplish the same 100GB file [Write more data for longer was the thought] and I'm pleased to say doing this with 4 threads has me writing about 400MBps with 0 reads on the LUN.&amp;nbsp; I could probably push this higher with even more threads but I think I may already be tipping the Nimble near its max write performance (I don't recall).&amp;nbsp; All in all this seems much faster than the base script.&amp;nbsp; At the very least, I intend to now tweak the script to refactor in the ability to write multiple files per script (since I removed the copy mechanism).&amp;nbsp; Once I have something useful I'll post it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully this helps others.&amp;nbsp; YMMV with your environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&amp;nbsp; Attached is a version of the script I made today (since I lost my original copy) which accomplishes essentially everything I mentioned in my post above.&amp;nbsp; Please note, that it is written with the idea of manually running multiple copies of the script to increase write performance as I'm not sure how to max out my IO with a single file stream.&amp;nbsp; In order to run multiple streams, create copies of the script and modify the $ScriptStreamId variable to denote which stream it is.&amp;nbsp; Resulting files will have this stream number added to their name.&amp;nbsp; I'm sure there's a better way to do it (e.g. actually letting the script do multithreaded operations vs. the dirty manual threading) but I do not have the time to figure out a more optimal solution unfortunately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also note, I re-used much of DavidTan's script and variables though they may not make the most sense given what I'm doing.&amp;nbsp; Whereas David wrote one file and copied it X number of times, I replaced the copy routine with actual writes while reusing the WriteLoops and CopyIdx variables.&amp;nbsp; I've also edited the message displayed after the script is run as the existing math is incorrect due to copyidx being incremented one last time even if the while loop check fails and that iteration does not run as well as the modification of $ArraySize and $WriteLoops earlier in the script changes the actual amount of data that got written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly I modified the Try/Catch block to include a Finally section to properly close out the file stream and do cleanup even if the script errors out or is terminated with Ctrl+C, as I found myself doing often during the various edits I was making.&amp;nbsp; I had to keep closing Powershell to purge the files that were created so I could delete them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***Additional edit.&amp;nbsp; It should be noted that I am running this command locally on the server that actually has the iSCSI mapped volume.&amp;nbsp; I see in earlier posts that there is a memory issue when using WinRM to run the script remotely and as a result the $ArraySize chunks were intentionally made smaller to overcome that issue.&amp;nbsp; My edits to the script will probably break that as I'm writing 102400kb chunks in order to maximize my IO.&amp;nbsp; Based on my own testing writing many smaller chunks did not push my IO as high as my system could handle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Jul 2014 00:07:11 GMT</pubDate>
    <dc:creator>mcdonamwION</dc:creator>
    <dc:date>2014-07-19T00:07:11Z</dc:date>
    <item>
      <title>Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981663#M88</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is related to the previous post outlining why pre-Windows2012 does not return space back to the array. I just can't seem to add a tag for "scriptingblitz" &lt;IMG src="https://community.hpe.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.hpe.com/message/1862#1862"&gt;https://connect.nimblestorage.com/message/1862#1862&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two main problems with sdelete that I have observed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. It does not recognise mountpoints, so you need to add a letter to the mountpoint to run.&lt;/P&gt;&lt;P&gt;2. It is very, very slow.... taking sometimes days to reclaim a couple of TB. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Duck came up with a great idea of using powershell to perform the same kind of task as sdelete, but has the advantage of working with mountpoints - &lt;A href="http://blog.whatsupduck.net/2012/03/powershell-alternative-to-sdelete.html"&gt;http://blog.whatsupduck.net/2012/03/powershell-alternative-to-sdelete.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have pinch this idea and some of his code to create my own version that runs roughly 10x faster. It uses the same method to create a 1GB initial file (of zeros) which takes about 60 sec. From there I just use good old DOS copy to clone the file until there is no more space left of the drive (ie &amp;lt;1GB). The copy commands are surprisingly fast! and on the 10GB connected array it will reclaim at a rate of 200-300MB/sec, which is roughly 1TB/hr. There could be ways to squeeze more performance out of it using other copy utilities that allow multithreads like robocopy but this works well enough for my liking &lt;IMG src="https://community.hpe.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic Usage is for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;powershell .\NimbleFastReclaim.ps1 E:\&lt;/P&gt;&lt;P&gt;powershell .\NimbleFastReclaim.ps1 E:\dir1\mountpointishere\&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will try to log to C:\temp dir but can specify different file. A third parameter can be passed to sleep between copies to throttle the process if desired. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2014 03:40:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981663#M88</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-01-29T03:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981664#M89</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looks interesting but getting errors that it's not signed and i'm not up on powershell.&amp;nbsp; says execution of scripts disabled.&amp;nbsp; any idea how to make it run to test it without screwing around with signatures?&amp;nbsp; it does not say it's blocked so can't seem to even run it unsigned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 00:40:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981664#M89</guid>
      <dc:creator>Daniel-san</dc:creator>
      <dc:date>2014-01-31T00:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981665#M90</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;The default policy for windows is to disable scrips from running. You can set the execution policy to allow it. Run PowerShell as an administrator and type the following command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set-ExecutionPolicy bypass&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 00:46:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981665#M90</guid>
      <dc:creator>aherbert23</dc:creator>
      <dc:date>2014-01-31T00:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981666#M91</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Launch powershell prompt and check your settings&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get-ExecutionPolicy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the default is RemoteSigned. Change it to Unrestricted first&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set-ExecutionPolicy Unrestricted&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failing that use Bypass instead of Unrestricted. This is the technet reference for Powershell 3.0 but also applies for 2.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://technet.microsoft.com/en-us/library/hh849812%28v=wps.620%29.aspx"&gt;http://technet.microsoft.com/en-us/library/hh849812%28v=wps.620%29.aspx&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 00:52:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981666#M91</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-01-31T00:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981667#M92</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nice - thank you.&amp;nbsp; glad one of us knows P/S!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 00:54:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981667#M92</guid>
      <dc:creator>Daniel-san</dc:creator>
      <dc:date>2014-01-31T00:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981668#M93</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks David.&amp;nbsp; So it worked well.&amp;nbsp; Looks like it took several hours on a 2TB volume so haven't been able to confirm a 10x speed increase but it does appear to work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 15:23:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981668#M93</guid>
      <dc:creator>Daniel-san</dc:creator>
      <dc:date>2014-01-31T15:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981669#M94</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to hijack this sled, but how are you reclaiming this space once you run the script? My understanding is that running sdelete (or similar) on a volume will fill the available space with zero's, in essence turning a thin provisioned volume into a thick provisioned volume. So if this is one vmdk of many on a vmfs volume, obviously the vmkfstools/unmap command will not apply to the vmdk (only vmfs), that has now expanded in size as a result of the script. So you need to vmotion this vmdk file to a different data store with a different block size, as thin provisioned then in order to reclaim that space and reduce the size of the actual vmdk file, correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 17:31:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981669#M94</guid>
      <dc:creator>a_user57</dc:creator>
      <dc:date>2014-02-01T17:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981670#M95</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi C W,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should have mentioned that I am performing this task on an iSCSI presented volume rather than a VMDK. I have not tried it on a VMDK and I cannot actually test this myself, but the concept might be the same?? When data is written to the disk and then deleted nothing actually changes on disk except the reference to the file. The array therefore stills sees it as used data. Overwriting this with zeros (and of course deleting the file) allows the array to see this as free space again. Be interested to know if the vmfs in between storage and OS makes any difference here...maybe someone has tried it and can comment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2014 11:15:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981670#M95</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-02-02T11:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981671#M96</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have to admit my 10x was a finger in the air estimate based on approx IO rate &lt;IMG src="https://community.hpe.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this on CS460x2 with 10GB network.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you on 10GB network? It should take roughly 2.5hrs for 2TB at a guess. Probably wouldn't matter too much on the Nimble Controller as all the 0's should be compressed very efficiently.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 02:51:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981671#M96</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-02-03T02:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981672#M97</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Testing this on a guest connected iSCSI Nimble thin provisioned volume optimised for SQL Logs. Copied 10GB of ISO files. Guest reports 10GB used and Nimble says the same ish.. Deleted the ISO files and ran your script. BINGO!&amp;nbsp; Within 10 minutes the array reported the space was down by 10GB. Genuinely impressed. Nimble could do worse than engage with you. &lt;/P&gt;&lt;P&gt;Kind Regards, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; An extremely impressed Nimbler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 11:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981672#M97</guid>
      <dc:creator>marktheblue45</dc:creator>
      <dc:date>2014-02-03T11:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981673#M98</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My test was performed on an iSCSI guest-connected volume - not a VMDK.&amp;nbsp; We're using a CS220GX2 with 10G connections - seemed like it took &amp;gt;2.5 hours.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 14:22:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981673#M98</guid>
      <dc:creator>Daniel-san</dc:creator>
      <dc:date>2014-02-03T14:22:07Z</dc:date>
    </item>
    <item>
      <title>Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981674#M99</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi David, I created a new vmfs volume on nimble and added a Datastore through vcenter. Added Vm disk to a windows 2008R2 VM and put 2GB of files into it. Deleted them and ran your script. BINGO once again. Works with vSphere 5.5. &lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 16:10:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981674#M99</guid>
      <dc:creator>marktheblue45</dc:creator>
      <dc:date>2014-02-03T16:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981675#M100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What command can one use to run the script against remote servers? I would like to run this task against more than one server, once per month for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 01:18:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981675#M100</guid>
      <dc:creator>a_user57</dc:creator>
      <dc:date>2014-02-05T01:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981676#M101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably a few ways to do it but I would use invoke-command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier; font-size: 11px;"&gt;invoke-command -filepath &amp;lt;path&amp;gt;\NimbleFastReclaim.ps1 -computername $ComputerName -ArgumentList "&amp;lt;pathtorun&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also specify a list of computers in the parameter if they all have consistent paths you want to run on. Can also pass variables to the argumentlist if you want to run programatically - this might help &lt;A href="http://stackoverflow.com/questions/4225748/how-do-i-pass-named-parameters-with-invoke-command"&gt;http://stackoverflow.com/questions/4225748/how-do-i-pass-named-parameters-with-invoke-command&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 01:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981676#M101</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-02-05T01:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981677#M102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your assistance thus far.&amp;nbsp; When I try to perform the script, I get a failure as indicated below, any ideas?:&lt;/P&gt;&lt;P&gt;PS C:\Users\labadmin&amp;gt; Invoke-command -filepath C:\NimbleFastReclaim.ps1 -ComputerName test-fs1 -ArgumentList "e:" -Credential domain1.lab\Administrator&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] --&amp;gt; Starting Reclaim on e:\ ...&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] --&amp;gt; Cycle Sleep = 0 sec&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] --&amp;gt; File Size = 1024 MB&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20]&amp;nbsp;&amp;nbsp; --&amp;gt;Writing e:\NimbleFastReclaim0.tmp&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] ##&amp;gt; Reclaim Failed. Cleaning up...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user account being used is a domain admin account, and is able to run the script locally on the server being specified in this example. Any help you or anyone else can provide would be great. I realize we are starting to deviate off-topic a bit, but I thought this might come in handy for others who might face a similar problem. My powershell experience is very limited.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 15:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981677#M102</guid>
      <dc:creator>a_user57</dc:creator>
      <dc:date>2014-02-05T15:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981678#M103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I'm getting the same error on all my servers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] --&amp;gt; Starting Reclaim on F:\ ...&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] --&amp;gt; Cycle Sleep = 0 sec&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] --&amp;gt; File Size = 1024 MB&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20]&amp;nbsp;&amp;nbsp; --&amp;gt;Writing F:\NimbleFastReclaim0.tmp&lt;/P&gt;&lt;P&gt;[2014-02-04 21:14.20] ##&amp;gt; Reclaim Failed. Cleaning up...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 19:01:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981678#M103</guid>
      <dc:creator>epedersen22</dc:creator>
      <dc:date>2014-02-06T19:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981679#M104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to see this is not just me. I am sure we will be able to collectively come up with a solution. Unfortunately my knowledge of powershell is extremely limited, so I am of limited help, but it would be great to have an automated solution to handle all servers in a scripted and scheduled manner. I cant believe there are not others who would benefit from the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 19:05:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981679#M104</guid>
      <dc:creator>a_user57</dc:creator>
      <dc:date>2014-02-06T19:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981680#M105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;I'll try this out today and let you know. Will probably need some error handling so it spits out a useful error message. Btw - have you tried to run the invoke-command to a remote server with a simple command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg invoke-command -computername &amp;lt;remotecomp&amp;gt; -scriptblock {get-wmiobject win32_computersystem}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981680#M105</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-02-06T20:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981681#M106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Howdy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, I was able to run your example invoke-command, once I ran ‘WinRM quickconfig –q’ on the target server.  However, still no joy with either local drives or mapped remote drives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 22:13:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981681#M106</guid>
      <dc:creator>epedersen22</dc:creator>
      <dc:date>2014-02-06T22:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Reclaim space quickly (sdelete alternative)</title>
      <link>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981682#M107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Turned out to be a memory error. Running powershell script remotely has finite memory limits depending on WinRM settings. This version should fix it by writing smaller chunks to the starting file in a loop. Now I know why Chris Duck did this in his script. &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Also spits out the error in the catch statement so it will at least tell you why it failed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Feb 2014 06:02:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/array-setup-and-networking/reclaim-space-quickly-sdelete-alternative/m-p/6981682#M107</guid>
      <dc:creator>david_tan2</dc:creator>
      <dc:date>2014-02-07T06:02:34Z</dc:date>
    </item>
  </channel>
</rss>

