{"id":10454,"date":"2016-11-26T17:38:22","date_gmt":"2016-11-27T01:38:22","guid":{"rendered":"http:\/\/www.podfeet.com\/blog\/?p=10454"},"modified":"2016-11-26T17:38:22","modified_gmt":"2016-11-27T01:38:22","slug":"how-not-to-do-migration-assistant","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2016\/11\/how-not-to-do-migration-assistant\/","title":{"rendered":"How Not to do Migration Assistant"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"float: right;\" title=\"migration_assistant_starting_screen.png\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2016\/11\/migration_assistant_starting_screen.png\" alt=\"Migration assistant starting screen\" width=\"432\" height=\"316\" border=\"0\" \/>When I got the 2016 Touch Bar 15&#8243; MacBook Pro, it was only about a month after I&#8217;d done an involuntary nuke and pave on my 2013 MacBook Pro. For those unfamiliar with the term nuke and pave, that&#8217;s when you erase everything, including the operating system, and then install everything from scratch. You can drag your documents over from a backup or another Mac, but you don&#8217;t bring over network settings or license files or any customizations you&#8217;ve made.<\/p>\n<p>I have lauded the benefits of a nuke and pave over the years on the podcast and I&#8217;m a huge believer in doing it around once a year. It&#8217;s painful and time consuming (think days before everything is back to &#8220;just so&#8221;) but the advantages of speed and freed up disk space are enormous. Your Mac will feel like it did when it was new.<\/p>\n<p><!--more-->Anyway, since I&#8217;d just had the joy of doing that a month ago, I was uninterested in doing that all again on the new Mac. Two weeks ago I told you the story of how I&#8217;d tried to use Migration Assistant for the first time to accomplish the task. I explained that I hooked the 2013 and 2016 Macs up to a gigabit switch hooked to my router and yet the migration was taking forever. Forever is defined as 125GB of data transferred in 4.5 hours.<\/p>\n<p>I want to dig a bit further into exactly what I originally did, give you a problem to be solved, and then walk you through what actually worked in the end to give me a successful migration from the 2013 to 2016 MacBook Pro. I&#8217;m hopeful this will help some of you in the future.<\/p>\n<p>So back to our 125GB transferred in 4.5 hours. How long it <em>should<\/em> it have taken? We&#8217;ll have to do the math, starting with converting bytes to bits. There are 8 bits in a byte, so we have to multiply by the 125GB by 8 to get the number of gigabits that were transferred. 125GB x 8 = 1000gigabits to transfer. If I&#8217;m transferring over gigabit Ethernet, that means I&#8217;m transferring at 1 gigabit per second, so I should be able to move 1000 gigabits in 1000 seconds. Dividing by 60, we get that the 125GB should have transferred in 17 minutes, not 4.5 hours. Sure your mileage may vary on this kind of thing, but with pretty recent SSDs on both machines which I personally have measured at 850MB\/sec read\/write on the slower machine, those numbers just don&#8217;t make sense.<\/p>\n<p>As my data was simply crawling from one machine to the next, Steve and I studied things to make sure I wasn&#8217;t misleading myself on what I had actually set up. We looked at the Ethernet cables I&#8217;d chosen and verified that they said CAT 6 on them (Cat 5 is only 100 megabits\/sec). Steve studied the switch itself which <em>said<\/em> it was gigabit. He looked on the back for the blinky lights. My particular switch is from Netgear, and it has a light on ether side of each port. One says 10, the other says 100. A graphic on the switch says that if both are blinking you&#8217;re getting 1000Mbits\/sec. Both were blinking on all three involved ports.<\/p>\n<p>So why was my transfer going at about 1\/16th the speed it should be going? The only thing I could figure was that maybe it was ignoring the cables and using WiFi. I went back to the <a href=\"https:\/\/www.podfeet.com\/blog\/2016\/08\/bandwidth-netgear-x8-vs-airport-extreme\/\">iperf tests that Steve and I conducted on the Netgear Nighthawk X8<\/a> and the WiFi speeds were 524megabits\/sec when we tested right next to the Netgear. 524megabits\/sec \u00f7 8 = 65megabytes\/sec but I&#8217;m only getting 6.<\/p>\n<p>While WiFi should have been 10X as fast, I decided to try and kill it off anyway. I quit the process of Migration Assistant and on both machines, turned off WiFi and started over, but still it was transferring at 6MB\/sec. I looked at the connection window and for some unknown reason it showed that I was still using WiFi.<\/p>\n<p>I was baffled, but I had fooled around with this long enough. I abandoned that whole path and selected only Apps for Migration Assistant, which toodled over quite quickly. Then simply dragged my data over by hand, which only took about 20 minutes just like it should have. I have no clue why Migration Assistant failed me but I was glad to be rid of it.<\/p>\n<p>At this point you&#8217;re thinking, &#8220;Hey Al, this is nice to get more geeky detail but why are you repeating the substance of the story from two weeks ago?&#8221; I haven&#8217;t yet told you the problem to be solved. While my new Mac was basically working (after reauthenticating EVERY app from the Mac App Store and entering license codes for EVERY app outside of the Mac App Store), there was one big problem. I was unable to start up iCloud Photo Library.<\/p>\n<p>In the past I&#8217;ve complained bitterly about how iCloud Photo Library tries to reupload all of my photos every time I touch iCloud, but this problem was even worse. I would click the little check box to turn on iCloud Photo Library and after about 5-10 minutes it would turn itself off.<\/p>\n<p>After several days of fighting with this I called AppleCare. My little friend Mary and I worked through several ideas, none of which worked. She asked me to run a diagnostic tool that would generate some log files that I could then ship back to Apple, and she would in turn send the files to engineering. I have learned through past experience that &#8220;send to engineering&#8221; means wait several weeks or more and get back the answer, &#8220;we can&#8217;t figure it out&#8221; if you get any answer at all. Maybe my problems are just harder than other peoples&#8217; but so far they&#8217;re batting 0 for 3.<\/p>\n<p>I spent some time noodling the log files myself, and discovered something very odd. System Integrity Protection, aka SIP was turned off. To quote Apple:<\/p>\n<blockquote><p>System Integrity Protection is a security technology in OS X El Capitan and later that&#8217;s designed to help prevent potentially malicious software from modifying protected files and folders on your Mac. System Integrity protection restricts the root user account and limits the actions that the root user can perform on protected parts of the Mac operating system.<\/p><\/blockquote>\n<p>This is a feature you definitely want on by default. I tweeted out asking if anyone else had noticed that it was off on their new MacBook Pros, and discovered that this was a wide-spread issue.<\/p>\n<p>@mlaundrie, @mike_wuerthele, @donmcallister, and @dvidsouthard all pointed me to articles like this one at <a href=\"http:\/\/www.imore.com\/how-to-turn-on-system-integrity-protection-for-macs\">iMore<\/a> reporting the issue. The good news is that it&#8217;s pretty easy to turn on. The bad news is that it&#8217;s super geeky. You have to boot into Recovery Mode (using \u2318R), launch Terminal and type in <code>csrutil enable<\/code>, then reboot. Easy enough for us since we&#8217;ve tamed the Terminal and all, but can you imagine trying to get your uncle to do that?<\/p>\n<p>Ok, let&#8217;s keep going with the story because that was a complete side lobe that has nothing to do with my iCloud Photo Library problem. I was proud of my little self for finding it all by myself though!<\/p>\n<p>I should mention that I tried Googling &#8220;turn on iCloud Photo Library&#8221; and other combinations like &#8221; iCloud Photo Library keeps turning itself off&#8221; but every hit would be either how to turn it off (or on). I found a couple of people in the Apple discussion forums with the problem and I tried all of the solutions suggested there, including fixing permissions but nothing fixed the problem for me.<\/p>\n<p>While I was waiting what would surely be an interminable length of time for the engineers at Apple to get back to me, I posted my iCloud Photo Library turning itself off problem in our Google Plus group, our Facebook group, and the Mac Geek Gab Facebook group. Gary Hays and Greg InLa from the Mac Geek Gab both jumped in with ideas.<\/p>\n<p>They had me turn off iCloud (which Pat Dengler had suggested too) and turn it back on, we disabled Keychain (because we found some errors about Keychain in the logs I sent to Apple) and turn it back on, we dragged my Keychain files out of the Library and back, we deleted plists, but nothing fixed the problem.<\/p>\n<p>By then I was whining to Steve Goetz on Telegram (as I am wont to do when things go awry), and he reminded me that I had aborted Migration Assistant and maybe that&#8217;s why I was having a problem. I realized that after aborting it, I didn&#8217;t wipe the system clean in any way, I just kept going forward. We started noodling whether maybe I&#8217;ve got a completely borked system at that point. It was time for drastic measures. It was time for yet another nuke and pave.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"float: right; margin: 5px;\" title=\"black_screen_white_circle_line_through_it_no_boot.png\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2016\/11\/black_screen_white_circle_line_through_it_no_boot.png\" alt=\"Black screen white circle line through it no boot\" width=\"332\" height=\"244\" border=\"0\" \/>Before I started down the path that finally worked, I first tried to use my SuperDuper! Backup from my old Mac to the new. I verified that I could boot from it from the old Mac, and then tried to boot from it on the new Mac. Instead of booting up, I got a black screen with a white circle on it.<\/p>\n<p>I searched throughout the SuperDuper! Site and found not clues to how to fix this and wrote to the very responsive developer, Dave Nanian over at <a href=\"http:\/\/shirt-pocket.com\" target=\"_blank\" rel=\"no opener\">shirt-pocket.com<\/a>. I also tweeted out the question. Stephen Hackett of relay.fm answered, as did Dave Nanian, that new Macs come with a <em>slightly<\/em> different build of the operating system which means that usually you can&#8217;t boot from the backup drive when you&#8217;ve got a brand new machine. Aggravating answer, but at least I understood why it was failing. Dave went on to explain that I COULD use Migration Assistant with my backup and choose &#8220;another Mac&#8221; and it would be able to see the drive, even though it couldn&#8217;t boot from it.<\/p>\n<p>As I thought about that, I realized that while my backup drive is a snazzy new USB 3 drive, it&#8217;s only 7200RPM and so I&#8217;d really suffer on transfer speed. I really wanted to take advantage of the SSDs in the two Macs. Here&#8217;s the path I chose that finally actually worked, and worked well:<\/p>\n<ul>\n<li>I booted the new Mac into Safe mode by holding down the shift key<\/li>\n<li>This boots you into a partition so that you can do anything you want to the real boot drive<\/li>\n<li>I opened Disk Utility from within Safe Mode and erased my entire drive<\/li>\n<li>Then I chose Reinstall macOS and put a fresh and untainted version of Sierra<\/li>\n<li>Now here&#8217;s the hot tip: When I booted the machine up, I did NOT tell it my WiFi password. I figured if it didn&#8217;t know the password, it couldn&#8217;t possibly default back to it.<\/li>\n<li>I put a gigabit cable between the two machines (skipping the switch just in case it and the router were somehow a bottleneck) and launched Migration Assistant on both of Macs and hit go.<\/li>\n<li>The transfers immediately jumped up to 91MB\/sec! Now we&#8217;re talking. That&#8217;s 728mbps, or three quarters of full gigabit. I&#8217;ll take that!<\/li>\n<li>The entire transfer (which turned out to be 725GB, not 600, only took two and a half hours!<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" style=\"float: right; margin: 5px;\" title=\"migration_assistant_91MBps.png\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2016\/11\/migration_assistant_91MBps.png\" alt=\"Migration assistant 91MBps\" width=\"432\" height=\"404\" border=\"0\" \/>I want to mention that while I was rallying the courage to nuke my Mac yet again, I walked through my plan with Steven Goetz. He suggested I use Thunderbolt to connect the two computers instead of Ethernet. We argued about specs (he won, like he usually does). It&#8217;s harder than it should be to talk about the speed of Thunderbolt because the sites that try to explain it talk about lanes and such but I think Thunderbolt 3 on the new Mac is 40Gbps, and Thunderbolt 2 on the old Mac might be 10Gbps. In any case, I&#8217;m pretty sure he&#8217;s right, that it would have been faster than 1Gbps Ethernet.<\/p>\n<p>Even though I believed him, I told him that I wasn&#8217;t going to risk it because the <a href=\"https:\/\/support.apple.com\/en-us\/HT204350\" target=\"_blank\" rel=\"no opener\">Migration Assistant instructions from Apple clearly said to use Ethernet<\/a>. When I sent him the screenshot showing the data flying over at 91MB\/sec, he pointed out that right below the speed it said, &#8220;You know, you could go even faster if you&#8217;d plug in a Thunderbolt cable, you dummy.&#8221; Sheesh. Now that I look back at the instructions from Apple they DO mention Thunderbolt.<\/p>\n<p>I hate it when Steven is right, which is pretty darn close to all the time. But I&#8217;m glad he was right that it was time to nuke and pave yet again.<\/p>\n<p>The best part of the story is that not only does iCloud Photo Library work perfectly now, but for the first time in ANY migration it didn&#8217;t start uploading all of my photos again. I think iCloud Photo Library has been tricked into thinking this is the same machine.<\/p>\n<p>Lots of other stuff is working better now too, like my CrashPlan backup doesn&#8217;t have to be adopted because it thinks this is the old machine, my SuperDuper! Backup is working already, and overall it&#8217;s just a whole lot more stable.<\/p>\n<p>My advice on doing Migration Assistant is to immediately do Migration Assistant, don&#8217;t play with the Mac at all, don&#8217;t set up other accounts that would find out about your WiFi password. Just start it, use the fastest protocol you can find and cross your fingers and toes. I&#8217;m sure it will work just fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I got the 2016 Touch Bar 15&#8243; MacBook Pro, it was only about a month after I&#8217;d done an involuntary nuke and pave on my 2013 MacBook Pro. For those unfamiliar with the term nuke and pave, that&#8217;s when you erase everything, including the operating system, and then install everything from scratch. You can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147],"tags":[46,459,51,733,1102],"class_list":["post-10454","post","type-post","status-publish","format-standard","hentry","category-blog-posts","tag-apple","tag-applecare","tag-mac","tag-macbook-pro","tag-migration-assistant"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/10454","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=10454"}],"version-history":[{"count":5,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/10454\/revisions"}],"predecessor-version":[{"id":10460,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/10454\/revisions\/10460"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=10454"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=10454"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=10454"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}