Mac OS X 10.9 Mavericks SMB2 and Windows 2012 Essentials Server

Apple LogoApple has a long history with computer networking, from AppleTalk to today’s Internet connected world. However, it is Windows networking that still causes all kinds of headaches for Mac OS X users. It seems that with every release of Mac OS X, Apple seems to have recurring issues with Windows shares. Some of Apple’s defenders will state that Apple adopts industry standards as is, and it is Microsoft and others who publish specs, but don’t actually follow them, so when Apple does follow the specs, it seems to just end up breaking things. SMB is the networking protocol that Microsoft uses for Windows networking. It is what allows Windows network file shares to work across the network. With the latest versions of Mac OS X, Apple abandoned the open source SAMBA package that most Linux distros use to connect to Windows, and wrote their own SMB2 software. This makes Mac OS X 10.9 Mavericks connect faster and better to Windows servers. Well that is when it works!

SMB Connections Fail

There is one Windows 2012 Essentials server with multiple shares. There are two Macs on the local network. One iMac is connected over Wireless N and one MacBook Pro is using a wired ethernet 1Gb connection. When using the Connect to Server… option the iMac connects fine and has no issues. The MacBook Pro opens the share and then never displays any files, it just spins in the lower left hand corner of the window that opens. Both computers are running Mac OS X 10.9.3 Mavericks.

Mac OS X SMB Connect to Server

Connecting via CIFS instead of SMB seems to work for the MacBook, but it is slower.

The Solution

The solution ended up modifying the Windows 2012 Essentials server. There are two registry keys that need to be added in order to fix the problem for the MacBook.

Under this Registry Key:

  • HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters

Add these DWORD values:

  • Smb2CreditsMin – make this 768
  • Smb2CreditsMax – make this 16384

Once you made the changes restart the Windows Server and then the Macintosh clients. It should now fix the problem.

Microsoft provides the following information on these registry keys:

The defaults are 512 and 8192, respectively. These parameters allow the server to throttle client operation concurrency dynamically within the specified boundaries. Some clients might achieve increased throughput with higher concurrency limits, for example, copying files over high-bandwidth, high-latency links.

Unsupported Browser

I must admit that the hardest thing for developers to do is to write good error messages. When it comes down to it, it is really hard to please all of the people, all of the time, and developers are only human and so you end up with epic fail error messages. However, I ran into this error message today on a certain telecom company’s website and it just made me laugh. So when is a browser unsupported? When it is a latest version of Internet Explorer!

Unsupported Browser Error

I upgraded my laptop to Internet Explorer 11, since it recently became available for Windows 7 users. Thank you Microsoft for still trying to do it your way, but your street cred is not what it use to be, cause not everyone is supporting your latest browser.

The Fix My PC Dilemma

ToolsAfter working in Information Technology for several years, you come to a certain understanding about the balance between work and personal time. For many people starting out in IT, the temptation to dedicate yourself 24/7 to work is hard to resist. There always seems to be a pending disaster or a deadline that must be met. With some experience you eventually learn that the world is always coming to an end. It has been that way since the beginning of time itself. Dedicating yourself fully to work is not going to change that! Once you figure out for yourself, where and when to draw the line and give yourself some time back, you end up tackling another dilemma, which I call the “Fix My PC” dilemma. When you are computer proficient, it is not just work that wants your skills, it is also friends and family. You end up being asked many times to fix people’s laptops or desktops. Since you are a nice guy, you have a hard time turning these people down, especially when they are your friends and family. However, just like work, you need to set some limits, since this is still taking away from your personal time.

Rule 1: It’s Not Always Free

It is a bad idea to let people think your skills have no value. In my case, I charge a modest fee to look at people’s computer problems outside of work. My time is valuable to me, and so charging a fee makes me feel better and I can invest the money back into my technology interests. It always amazes me when people balk at me charging them. It must be that they do not recognize the value of my work or they simply want something for free.

Rule 2: I’m Doing You A Favor

If you agree to look at someone’s computer, make sure that they understand you are doing them a favor. They have to make it convenient for you. The last thing you want to do is agree to something and then find out you have to drive to someone’s house at an inconvenient time for you.

Rule 3: Identify and Diagnose Their Problem

There are very few times that I have been asked to look at Macintosh. Almost always the computer is a Windows machine. After spending years working with Windows, there are multiple tweaks, fixes, and customizations that can be done to make Windows machines work better. You could dedicate multiple days to just tweaking Windows. Remember, you do not have the time and energy to fix every problem, just concentrate on the problem that they asked you to look at. Most often people tend to not communicate well, and so I have had many people tell me that they wanted their computer to run faster and then find out that they really wanted something else entirely. Once you find out what it is they want you to fix, tell them how it can be fixed and let them decide what they want to do. Many times you find that there is a component failure and there really is nothing for you to fix; they will have to spend money on replacing the component or buying a new computer.

Rule 4: Know When To Walk Away

Do not spend you time installing Windows Updates, running malware or anti-virus checks! These chores are something the user needs to do. If you can avoid these time consuming tasks do so. Where ever possible configure these things to run on their own; Microsoft and other software vendors provide schedule features in most of their software. If you cannot schedule these tasks, educate the user to do them on their own.

Final Thoughts

These days I devote most of my time to building my own computers, instead of fixing other people’s stuff. Every now and then I will do someone a favor and fix their Windows problem, but I resign myself to not having to fix every problem. Life is too short to spend countless hours in front of a keyboard.

WHS 2011 Upgrade

HP MediaSmart ServerAdopting new technology is often a difficult journey. In the beginning the idea is simple, you want a home server. But then you begin to expand on the idea, add some requirements such as power efficiency, low noise, small form factor, good storage options. You take a look at the Mac-Mini and think it is interesting, but not for you, you still want something bigger. Eventually you come upon this little black box from HP. The HP MediaSmart Server is a good idea, right? It even comes with Windows Home Server, a customized version of Windows 2003 that is suppose to give you all these features. You even find a good price for an EX490 model on the Internet. Eventually it comes out of the box and you decide, the hardware needs upgrading, you install a faster CPU and max out the memory to 4GB and then add some 2TB SATA drives and you have yourself a pretty good looking box.

In the back of your mind though, you cannot help thinking that the HP customized version of Windows Home Server really is not performing. After all, it is 2010 and it is all about 64-bit software now. Windows 2003 looks as ancient as well, Windows XP. Microsoft keeps talking about Windows Home Server 2011 and how it will be based on Windows 2008 Server instead. You wait and you wait and you wait and well, you wait. Then finally you find an Internet retailer that has WHS 2011 OEM for sale! You order your copy and get it a few days later. You get to play with a new Windows version again and this is where the real story begins…

The Installation:

WHS 2011 is not an upgrade, so the first thing to do is to copy all your data off of the MediaSmart box. This was quite easy for me, since all I had was music and video files. Ironically the original reasoning for buying the MediaSmart Server was to use it to backup my main Windows 2003 Server. Something which for some reason I never was able to get it to do. I have had the pleasure of restoring the MediaSmart EX490 from the HP discs and that process was pretty complicated and involved using another WindowsXP machine. For WHS 2011, the installation process was so much easier, that I cannot understand why the recovery process was so much more difficult. I followed Sean Daniel’s excellent How To Install WHS 2011 Guide and was up and running in no time. I even used my Windows 7 (VMWare Fusion) on my MacBook to make the USB boot drive install. For my install I setup WHS 2011 to use the entire 1TB drive. This was perhaps the easiest Windows installation I have ever done.

Missing Drivers:

Once I was up and running, I used RemoteDesktop to connect and administer the box. The “Mass Storage Controller” driver is not installed by WHS 2011, so you will need to download the driver for it from Silicon Image Support. The driver to download is labeled: SiI 3531 64-bit Windows SATARAID5 Driver for Windows 7. You will want to download the latest version of course. To install the driver, unzip the file download and then go to Device Manager and click on the Mass Storage Controller and Update Driver, point it to the unzipped files and Windows will do the rest for you. Restart the machine.

Network Settings:

Next up, was to modify the network settings. Setup the box with a static IP address, and gave it the right DNS Server and Gateway addresses. Set the Network Card to 1GB Full Duplex if your network devices support this. The Windows Firewall is a lot more complicated in WHS 2011 and more useful than the old Windows 2003 one. If you decide to leave it on, be prepared to modify it frequently because it will shutdown a lot of applications and services.

Setup Applications & Services:

For Anti-Virus, I use ESET Nod32, so that was my first application to install and setup. Even though WHS 2011 is a server operating system, I had no problems installing the Home edition of Nod32 64-bit. After this came Mozilla Firefox, iTunes, Adobe Flash Player, VLC Media Player, and PlayOn.

Initial Pros and Cons:

WHS 2011 is faster. It is more responsive on the same hardware than WHS v1 ever was. Disk access is better without Drive Extender. Speed wise, WHS 2011 is a no-brainer, if you want a faster machine and you have a 64-bit CPU and 4GB of RAM, do it.

HP included Twonky Media Server, FireFly for Music streaming, and even an iPhone streamer with their WHS v1 setup, but I always found these solutions to be slow and buggy. With WHS 2011, there is only Windows Media Player which seems to work for me much better than HP’s solutions. Even before the WHS 2011 upgrade, I was already using PlayOn to serve my media, so I just ended up reinstalling PlayOn after the upgrade.

Backing up machines was suppose to be the main reason behind a home server, but in this respect, I really can’t take advantage of WHS. My main problem is that the only real Windows box besides WHS is my main domain controller, which is Windows 2003. WHS v1 always had problems creating the backup and so I ended up giving up on this. WHS 2011 is worse, because it does not even come with a connector for Windows 2003. It is not a supported client OS. This was a big let down, but oh well, I already had another backup strategy for the Windows 2003 Server. Most of the machines in the home are Macintosh. There are about three laptops and one iMac machine. Here is where the HP software actually worked better than Microsoft, at least for wireless Mac clients, because if you are on a wired connection, the HP solution did not work due to Apple limitations. With WHS 2011, Microsoft has no backup solution for Mac clients. There are ways to make wireless Macs work but you have to do the setup yourself and I still have not been able to make wired Mac clients work. Here is a situation where Microsoft really could have done better and chose not to.

This leads me to another point about Microsoft, mainly that Microsoft does not get consumers. Here is a product that they are selling as a Home Server and which they expect other companies like HP and Acer to improve upon to make it better for consumers. Out of the box, WHS 2011 does not support Macs very well, and it is pretty much as complicated as the original Windows 2008 Server. Other than a computer geek like myself, I am not sure who else would buy this, when there are simpler solutions like Apple’s Time Capsule and WD NAS drives.

No Support From HP:

It is kind of disappointing that HP stopped making the MediaSmart Servers and announced they would not support WHS 2011 on these machines. I think HP embraced the idea of a home server and they did not get it totally right, but I think Microsoft did not help either. With the EX490 running WHS 2011, I now have dead drive lights, never to be lit again due to lack of driver support from HP for WHS 2011, and a blinking activity light.

Additional Links & Resources:

At this time there really is not much out there in regards to WHS 2011. There are not really any new Add-Ins that are available. Hopefully there will be some soon. If you are looking for a manual, I do recommend purchasing Microsoft Windows Home Server 2011 Unleashed (3rd Edition). This book was an overall good reference to WHS 2011 and provided some interesting insights, like installing SharePoint 2010.

Faster Internet Browsing in Windows

Browser Speedometer GraphicsOn the Windows platform there is a memory wall that many people are experiencing. Namely, that Windows does not utilize all of your physical memory once you have 4GB or more of RAM, unless you are using Windows XP 64-bit or Vista 64. Instead of letting that extra memory go to waste, I thought why not utilize it in some other way. A long time ago we had the opposite problem with computers, where processors were slow and we tried to speed things up in any way possible. Today, we have a lot of processing power and abundant memory and now it is the software that needs to catch up to the hardware. Given this, I thought why not use a some of that extra memory and load it as a RAM disk. Then if you think about it, the most often used application in today’s computing is the web browser, which uses your hard drive to cache content. This sounds like a perfect opportunity to use a RAM disk and speed up your browser’s disk caching. IE and Firefox both make it easy to modify your disk cache directory too, so the biggest problem seems to be trying to setup the RAM disk in Windows. There are multiple commercial solutions, but only one free solution that I could find that works well.

First thing to do is setup the RAM disk. If you do not want to purchase a commercial RAM disk driver, you can implement this free RAM disk driver for Windows Vista, XP, 2000 and 2003 Server. You will want to have a RAM disk that is slightly larger than both IE and Firefox disk cache sizes put together.

Firefox:

  1. Type about:config in Firefox’s address bar and enter
  2. Right-click and choose New – Integer
  3. Input the following in the dialog box: browser.cache.memory.capacity
  4. Input a value in the next dialog box, such as 24000, which means 24MB
  5. Then in the Filter: bar enter browser.cache.disk.parent_directory
  6. If this setting does not appear, then you will have to create a New – String with the above name
  7. The value should be a drive path to your RAM disk, such as M:\Firefox
  8. Once you have both settings, close out of Firefox and start it back up again.

IE:

  1. In Internet Explorer, click Tools – Internet Options
  2. Locate Temporary Internet Files and click the Settings… button
  3. Change the Amount of disk space to use: to the appropriate size you want
  4. Click the Move Folder… button to select a folder on your RAM Disk. If you used the free RAM Disk, your RAM disk should have a TEMP folder at the root, just choose this folder.
  5. Click OK and close out of IE

Note:

Depending on your computer, your experience may vary. On my Windows laptop and desktop, the speed with which Firefox 3.5 launches is vastly improved. I do not use IE much, so it is hard for me to evaluate the differences there.

Apache 2.2 on Windows Session Cache Error

Apache IconThere appears to be a bug with Apache 2.2.13 which I ran into on Windows Server. See the following bug entry: Bug 23403. Opening the error.log for Apache showed the following warning:

warn Init: Session Cache is not configured (hint: SSLSessionCache)

Adding the following lines to the httpd.conf fixed the problem:

SSLSessionCache        "shmcb:c:/Apache/logs/ssl_scache(512000)"
SSLSessionCacheTimeout  300

Note: your Apache installation directory is probably different, so you will want to modify the above file path.