Woody Windischman

Jun-292010

SharePoint 2010 and the C Drive

wpe9Minimizing Your Footprint

I recently participated in an MVP chat, and we got an interesting question about SharePoint storage requirements. I answered the question as well as possible given the chat format, but the issue really deserves a more thorough treatment.

Reading through the SharePoint 2010 system requirements you quickly come across one that seems a bit strange. SharePoint is asking for 80 Gigabytes of hard disk space! We all know that SharePoint itself isn't that big, so where is that requirement coming from? Not only that, but where is that space actually required? And, can it be moved around?

Here's the kicker - SharePoint itself doesn't actually "require" that space, Windows does (in a way). But, SharePoint knows this, and will give you warnings in Central Administration if your C: partition doesn't have double your "physical" RAM free. This is because when Windows crashes, it creates a memory dump on the system volume, and needs free space to do it. In addition, Windows sets up a hard drive cache for swapping chunks of memory around - that's also usually around double your RAM. Further, if you have a hibernation file on your hard drive, that's also going to be the size of your RAM. Finally, you need the space that Windows, SharePoint, and any other applications actually do take up. And a little bit of buffer, so you can actually do some work.

If you've got 8 GB of RAM (the minimum recommended for a SharePoint production environment), that adds up pretty quickly. Hence, the storage requirements. Now, some of these pieces can be easily shifted around in Windows. Most servers don't need a hibernation file, for example, and you can easily move the swap file and dump locations onto other volumes. Then you can go into Central Administration's Health Monitoring to tell SharePoint to not monitor the drive space, so you don't get the warning (I haven't found a way to tell SharePoint to monitor a different drive, unfortunately). But there is still more going onto drive C: than many corporate Windows Server administrators like.

SharePoint Stuff you Can and Can't Move

Let's get this out of the way right up front. You can't tell SharePoint where to install certain things. The core of SharePoint - the "SharePoint root" or "14 hive" - is always going to be installed on your system drive (usually C:), in "\program files\common files\Microsoft shared\Web Server Extensions". That's where it goes. You can't configure this during Setup. You can't move it after the fact. Learn it. Live with it. Embrace it. Love it.

Other stuff, however, can be controlled. Just not always easily. Let's get the easy stuff taken care of.

  • Your SharePoint content (the stuff you actually store in your sites) is going into SQL Server. You usually have full control over this, but there are lots of articles discussing SQL Server configuration so I'm not going to go into the gory details here.
  • On versions of SharePoint other than Foundation, you can configure where certain non-core SharePoint components are stored during Setup. That's where things like search indexes go. But that doesn't change the location of the SharePoint root as described above.
  • You can control where SharePoint stores certain log files. By default, those go into the SharePoint root, but they can be configured in Central Administration to be stored just about anyplace you please. Given how large these can grow, you almost certainly want to move them, and enable compression on the target folder.

SharePoint is also dependent upon Windows' Internet Information Services (IIS). When you activate the Web Server and/or Application Server roles on Windows Server 2008 and 2008 R2, several IIS components are pre-configured to be hosted on the system drive - most notably the INETPUB folder (which hosts your SharePoint Web Applications) and the IIS log files that get stored in the Windows\System32 folder (which can also become huge). In versions of Windows prior to 2008, it was an easy enough task to tell IIS to move these to another location. Not so with IIS 7.x and Windows Server 2008. Try as hard as you might, you won't find that configuration information in the management console.

Fortunately, these things can be moved. Unfortunately, moving them can only be done through the command line, and the commands to do it aren't trivial. The best instructions I've found for this are on IIS Program Manager, Thomas Deml's, Blog. In this, he not only describes the commands needed, but gives you a batch file to move the IIS root. Unfortunately, even Program Managers aren't immune from typos, and his batch file actually contains a couple of extra "\" characters. I've corrected the file, and made it available for download here. This batch file should be run after you install the SharePoint prerequisites, but before the actual SharePoint setup. Just as with the SharePoint logs, you should compress the folder you're storing the IIS logs in.

Summary

That's about it. SharePoint's requirements do state that you need 80GB of hard drive, but as you have seen, that statement is a little fuzzy about the why and where you need it. Although the default is drive C, many corporations have policies limiting what you do on the C drive. In this article, I've described how you can move many of these items around. I hope this has given you the information you need, or at least food for thought.


Published: Jun-29-10 | 14 Comments | 0 Links to this post
Tagged as:

Jun-92010

Message From Tech-Ed to the Future

TechEd Backpacker"Bring It On! (But Please, Give us Real Food...)"

Dateline, New Orleans LA

We're halfway through Tech-Ed 2010 (North America). Tech-Ed is Microsoft's broadest-based, and (historically) one of its best attended shows. A number of clear trends are emerging.

The biggest, and most obvious, is - Tech-Ed is Back! Last year was one of the smallest Tech-Ed conferences I'd ever been to. And while everyone had a good time, there was an undercurrent of concern. Granted, the economy was in the dumpster, but some folks were questioning whether it was a blip or a long-term trend. But this year's conference is almost as well attended as the massive "Boston 'T' (as in Technology) Party" I wrote about several years ago. Maybe more.

People are ready to move forward. After a couple years of hunkering down, and making do with older systems, it is clear that many folks are ready to embrace the future. In the SharePoint booth, even though it has only been officially available for a few weeks, I'm seeing plenty of interest in migration to SharePoint Server 2010 from long-time SharePoint users. Add in side notes of folks saying they're upgrading (or have just upgraded) many other elements of their technology stacks, and it looks like the slump is coming to an end. IT is usually on the leading edge of a recovery, and from what I'm seeing we could be heading into some pretty good times.

The watchword is "value". Just because they want to move forward, they aren't charging ahead "willy-nilly". People want value for their money, and there is more of a "we want to do it right this time" attitude than I have seen in some previous conferences. They're willing to invest in the future, as long as there is a clear destination. No more just throwing some technology at the users to see what sticks.

The "value" is there. Not only in the Microsoft technologies, but in the offerings from the wide array of vendors set up at the expo, I'm seeing a lot more polish than flash. Even in the more cutting edge tools, like services in the cloud, and the forthcoming Windows Phone 7, the emphasis is on doing the real jobs that real users need to do.

An army, even an army of geeks, moves on its stomach! The conference dining offerings have been a mixed bag this year. The lunches have been (at least in my opinion) pretty decent so far. However, the consensus is that the so-called "continental" breakfast served each day has been a non-starter. Even folks from "the" Continent were complaining. In addition, there has been a distinct lack of fresh fruit - both during the meals, and the session breaks. Break fare in general has been as sparse as the breakfasts. As hot and muggy as the weather is, I have yet to see a single frozen treat from this conference.

And that, in essence is the message of this show. Like New Orleans itself, the economy seems to be on the mend after a major jolt. The road ahead is laid out. We (at least most of us) have our packs loaded up. We need to move forward, but we want to do it right, and we need the resources (food) to do it.

We're ready for what ever the future has in store, so bring it on!


Published: Jun-09-10 | 1 Comment | 0 Links to this post
Tagged as: Conferences, General