
{"id":1048,"date":"2013-04-23T00:13:53","date_gmt":"2013-04-23T00:13:53","guid":{"rendered":"http:\/\/tech-no.104.210.61.21.xip.io\/?p=1048"},"modified":"2013-04-23T00:13:53","modified_gmt":"2013-04-23T00:13:53","slug":"dealing-slow-performance-of-robocopy-in-windows-2008-r2","status":"publish","type":"post","link":"https:\/\/tech-no.org\/?p=1048","title":{"rendered":"Dealing slow performance of Robocopy in windows 2008 R2"},"content":{"rendered":"<p>Ran into this on my current engagement, here is the rundown:<\/p>\n<p>&nbsp;<\/p>\n<p>source server windows 2008 (non R2) Destination Windows 2008 R2<\/p>\n<p>Robocopy with the following commands:<\/p>\n<p>robocopy \\\\&#8221;source server&#8221;\\E$\\&#8221;source path&#8221; \\\\&#8221;destination server&#8221;\\d$\\&#8221;destination path&#8221; \/e \/mir \/XD &#8220;$RECYCLE.BIN&#8221; &#8220;System Volume Information&#8221; &#8220;pagefile.sys&#8221; \/sec \/MON:1 \/np \u00a0\/mt \/tee \/log:c:\\logs\\backup_log.txt<\/p>\n<p>&nbsp;<\/p>\n<p>I used the version of robocopy that was included with windows and ran this on the destination server. \u00a0I used the &#8220;;NET USE \\\\&#8221;source server&#8221;\\IPC$ \/USER:&#8221; \u00a0command to specify the credentials prior to beginning the robocopy command.<\/p>\n<p>&nbsp;<\/p>\n<p>I ended up having to do the following to get decent performance, install the following hot-fix (which allows you to specify which types of attributes and data streams to\u00a0ignore\u00a0with new command line arguments)<\/p>\n<h1 id=\"mt_title\">Significantly slower directory tree replication performance when you use the Robocopy command in Windows 7 or in Windows Server 2008 R2<\/h1>\n<p><a href=\"http:\/\/support.microsoft.com\/kb\/2646535\">http:\/\/support.microsoft.com\/kb\/2646535<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>I added the following command line switch to limit the number of retries in case a few files were locked (like system or app files which may have help up the replication due to the default setting being 1 million retries)<\/p>\n<p>\/r:10<\/p>\n<p>&nbsp;<\/p>\n<p>after the hotfix i added this switch to improve the performance:<\/p>\n<p>\/NODCOPY<\/p>\n<p>&nbsp;<\/p>\n<p>in addition i also broke up the job into multiple scripts which ran concurrently to improve efficiency.<\/p>\n<p>I will post a few screen captures at the end. i will use Beyond Compare to analyze and publish the results. \u00a0We are cutting over a large file share from a colo environment to a managed services environment and i chose robocopy since that is the tool i always use. 9TB of data is copying as i write this. At the current rate it looks like it will take a week. prior to the hotfix and retries switches it looked like it may have finished in 2014. I wish i was joking.<\/p>\n<p>&nbsp;<\/p>\n<p>I am still getting a few of these errors now and then:<\/p>\n<p>Error 64 The specified network name is no longer available&#8230; which is driving me batty, it may be a bad filter driver from an old backup software or AV software or something else. At this point i am inclined to let it complete and then investigate.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ran into this on my current engagement, here is the rundown: &nbsp; source server windows 2008 (non R2) Destination Windows 2008 R2 Robocopy with the following commands: robocopy \\\\&#8221;source server&#8221;\\E$\\&#8221;source path&#8221; \\\\&#8221;destination server&#8221;\\d$\\&#8221;destination path&#8221; \/e \/mir \/XD &#8220;$RECYCLE.BIN&#8221; &#8220;System Volume Information&#8221; &#8220;pagefile.sys&#8221; \/sec \/MON:1 \/np \u00a0\/mt \/tee \/log:c:\\logs\\backup_log.txt &nbsp; I used the version of robocopy &hellip;<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/1048"}],"collection":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1048"}],"version-history":[{"count":1,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/1048\/revisions"}],"predecessor-version":[{"id":1049,"href":"https:\/\/tech-no.org\/index.php?rest_route=\/wp\/v2\/posts\/1048\/revisions\/1049"}],"wp:attachment":[{"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1048"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1048"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech-no.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1048"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}