<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FireHaus Network &#187; server</title>
	<atom:link href="http://www.firehaus.net/category/mac/server-mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.firehaus.net</link>
	<description>Work. Live. Enjoy. Be. Mobile. FireHaus. Network.</description>
	<lastBuildDate>Sun, 25 Dec 2011 04:58:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Using Splunk to Find Problem Mail Folders</title>
		<link>http://www.firehaus.net/2011/04/28/using-splunk-to-find-problem-mail-folders/</link>
		<comments>http://www.firehaus.net/2011/04/28/using-splunk-to-find-problem-mail-folders/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 22:37:37 +0000</pubDate>
		<dc:creator>Don Kruse</dc:creator>
				<category><![CDATA[server]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[connect]]></category>
		<category><![CDATA[folders]]></category>
		<category><![CDATA[kerio]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[splunk]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://www.firehaus.net/?p=241</guid>
		<description><![CDATA[The firm I support has a problem with email; Like some people have a problem with alcohol or shoes. The users I support either think they need multiple copies of every email messages that is related to every client or they are required to receive and save copy after copy until their mail folders are [...]]]></description>
			<content:encoded><![CDATA[<p>The firm I support has a problem with email; Like some people have a problem with alcohol or shoes. The users I support either think they need multiple copies of every email messages that is related to every client or they are required to receive and save copy after copy until their mail folders are over-flowing with redundant messages. To add insult to injury the process works like this: The legal assistants get copied on EVERY message that comes into the attorneys they support. So long story short this causes a problem for the mail server because it has trouble keeping up with indexing so many folders that are near or over 10,000 messages (items). And yes I have argued with the shareholders and legal assistants that there are better ways to do this but they just aren&#8217;t ready to make any big changes.</p>
<p><img class="alignnone size-full wp-image-252" title="Splunk_006" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_006.png" alt="" width="550" height="48" /></p>
<p>Based on my experience with various servers, file systems, 32-bit vs. 64-bit, and available RAM every server is going to have some upward limit on how many individual items it can reasonably index in a given amount of time. The result of having numerous mail user&#8217;s folders that have crept up to 10,000 or beyond means that the Kerio Connect system can fall behind simply because it hasn&#8217;t finished indexing. If it can&#8217;t index it can&#8217;t add new messages to that user&#8217;s folder and so on (somewhat similar to a cascade failure).</p>
<p>We are running Kerio Connect on a fast Intel Xserve with a RAID 5 with 7,200 RPM SATA drives. Now we could change the drives to a RAID 0 to speed things up a bit but that&#8217;s not an option right now (actually I am giving serious thought to putting in a flash-based boot drive for the OS and Kerio Connect and have the data on the RAID) or we could find some other method of speeding up disk access but I feel these mostly are workarounds. The server just isn&#8217;t that slow.</p>
<p>The one thing that must happen is that each user&#8217;s mail folders must be kept under 10,000 messages and so I established a policy with a 5,000 message limit (this gives us some cushion). After the break are the details of how I am using a shell script, Lingon, and Splunk to help us efficiently keep track of each user&#8217;s mail folder contents.</p>
<p><span id="more-241"></span><img class="size-full wp-image-255 alignleft" style="margin-top: 4px; margin-bottom: 4px; margin-left: 8px; margin-right: 8px;" title="Splunk_003" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_003.png" alt="" width="580" height="34" />When I contacted Kerio about our issue they provided me with a find command that searches through the index file for each folder and outputs the totals to a text file. I modified this command so that it outputs the text file to someplace that Splunk can index. If you are not familiar with Splunk it is a self-contained log file index and search tool. I have found it to be a very powerful and useful tool. It is also very expensive, probably worth it, but I have been unable to sell the firm&#8217;s shareholders on the idea of paying for it. What I do is run the free version on each individual server, instead of centrally on a single server, and this gets me what I need. The downside that is instead of managing one Splunk installation I am managing 10.</p>
<p>What happens is that once a week my script runs and outputs the data to the text file. Then once a week I search through the data to find who needs help with their folders. To get this to work I had to first figure out how to get Splunk to identify which folders in the text file are over 5,000 messages.</p>
<p><img class="size-full wp-image-258 alignright" style="margin-top: 0px; margin-bottom: 0px; margin-left: 4px; margin-right: 4px;" title="Splunk_009" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_009.png" alt="" width="259" height="103" />Because the file with the data is just a text file and not actual log data Splunk doesn&#8217;t know what to do other than treat each line as a separate log entry. It turns out it isn&#8217;t that difficult to get Splunk to recognize how understand the data. Splunk has a built-in regex tool to make this step easy. Below is an example of the basic search to identify all folders that have more than 5,000 items in them.</p>
<p><img class="alignnone size-full wp-image-249" title="Splunk_001" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_001.png" alt="" width="543" height="48" /></p>
<p>Then way Splunk works you can simply click on a user&#8217;s name in the search results and then it will automatically refine the search to include just that user. Below is the final search string for the user “donk” (that&#8217;s me) and below that is the result of the refined search.</p>
<p><img class="alignnone size-full wp-image-256" title="Splunk_005" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_005.png" alt="" width="634" height="42" /></p>
<p><img class="alignnone size-full wp-image-252" title="Splunk_006" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_006.png" alt="" width="550" height="48" /></p>
<p><img class="alignnone size-full wp-image-254" title="Splunk_007" src="http://www.firehaus.net/wp-content/uploads/2011/04/Splunk_007.png" alt="" width="644" height="432" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.firehaus.net/2011/04/28/using-splunk-to-find-problem-mail-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac mini as a Server Finally Official</title>
		<link>http://www.firehaus.net/2009/11/11/mac-mini-as-a-server-finally-official/</link>
		<comments>http://www.firehaus.net/2009/11/11/mac-mini-as-a-server-finally-official/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 23:14:33 +0000</pubDate>
		<dc:creator>Don Kruse</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[MacGeek]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[mini]]></category>

		<guid isPermaLink="false">http://www.firehaus.net/?p=167</guid>
		<description><![CDATA[There are many situations where a rack mounted 1U or 3U server just doesn&#8217;t fit into the budget or specific needs of a business. Many of us Apple IT guys have been using and/or recommending the Mac mini with Mac OS X Server installed as a great way to keep within budget while still retaining [...]]]></description>
			<content:encoded><![CDATA[<p>There are many situations where a rack mounted 1U or 3U server just doesn&#8217;t fit into the budget or specific needs of a business. Many of us Apple IT guys have been using and/or recommending the <a href="http://www.apple.com/macmini/">Mac mini</a> with <a href="http://www.apple.com/server/macosx/">Mac OS X Server</a> installed as a great way to keep within budget while still retaining full network services.In fact I have an <a href="http://www.firehaus.net/2007/11/22/little-productive-machines/">earlier post</a> about using Mac minis in a 24/7 environment.</p>
<p>So <a href="http://www.apple.com">Apple</a> finally made it official a few weeks ago an now has a <a href="http://www.apple.com/macmini/server/">Mac mini server</a>. It fits the bill for many business uses, creative uses, as well as even for a simple home network server.</p>
<p>In fact one <a href="http://www.macminicolo.net/">business</a> makes it their business to use Mac minis almost exclusively as their servers, providing web hosting and other services to their customers.</p>
<p><a href="http://www.macminicolo.net/state2009.html"><img class="alignnone" title="MacmimiCoLo Service" src="http://www.macminicolo.net/i_mini/cage1.png" alt="" width="480" height="326" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.firehaus.net/2009/11/11/mac-mini-as-a-server-finally-official/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>13.34 Hours on a Brand New Server?</title>
		<link>http://www.firehaus.net/2009/07/23/1334-hours-on-a-brand-new-server/</link>
		<comments>http://www.firehaus.net/2009/07/23/1334-hours-on-a-brand-new-server/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 23:27:48 +0000</pubDate>
		<dc:creator>Don Kruse</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[MacGeek]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.firehaus.net/?p=155</guid>
		<description><![CDATA[I received a brand new Apple Xserve a couple of days ago and I took it out of the box and got it ready for testing. I expect a new server to have some usage on it as part of quality control testing but I guess I just never noticed how much usage is on a new server (at least one from Apple).]]></description>
			<content:encoded><![CDATA[<p>I received a brand new <a title="Apple - Xserve" href="http://www.apple.com/xserve/">Apple Xserve</a> a couple of days ago and I took it out of the box and got it ready for testing. I expect a new server to have some usage on it as part of quality control testing but I guess I just never noticed how much usage is on a new server (at least one from Apple).</p>
<p><a href="http://www.firehaus.net/wp-content/uploads/2009/07/pandora-uptime1.png"><img class="alignnone size-full wp-image-159" title="Server Admin - Pandora" src="http://www.firehaus.net/wp-content/uploads/2009/07/pandora-uptime1.png" alt="Server Admin - Pandora" width="504" height="407" /></a></p>
<p>13.34 hours of which I can account for only 25 to 30 minutes.</p>
<p>Mostly I find it interesting, assuming this usage is typical, that Apple has the time, both in the factory and in the facility in the US where Xserve orders are put together, to run a machine for 12 hours before shipping it. Even a self-proclaimed <em>IT Guru</em> still learns something new everyday.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firehaus.net/2009/07/23/1334-hours-on-a-brand-new-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple&#8217;s 10.5 Mailman Implementation Includes a Logging Glitch</title>
		<link>http://www.firehaus.net/2009/07/17/apples-105-mailman-implementation-includes-a-logging-glitch/</link>
		<comments>http://www.firehaus.net/2009/07/17/apples-105-mailman-implementation-includes-a-logging-glitch/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 23:45:22 +0000</pubDate>
		<dc:creator>Don Kruse</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.firehaus.net/?p=143</guid>
		<description><![CDATA[I have been running a default setup of Apple&#8217;s Mac OS X Server as a mail and mailing list server since early March and it has been working well except for some non-critical glitches. The firm I support runs only Mac OS X Server on both Apple Xserve&#8217;s as well as on other non-server hardware [...]]]></description>
			<content:encoded><![CDATA[<p>I have been running a default setup of <a href="http://www.apple.com/server/macosx/">Apple&#8217;s Mac OS X Server</a> as a mail and mailing list server since early March and it has been working well except for some non-critical glitches. The firm I support runs only Mac OS X Server on both Apple Xserve&#8217;s as well as on other non-server hardware (Mac Pros and minis).</p>
<p>I found that the <a href="http://www.list.org/">Mailman</a> system which is modified by Apple seemed to not be generating any log files. Upon closer inspection I found that the Mailman system was creating logs they were just not where Apple&#8217;s server OS was expecting them.</p>
<p>At this point in time I don&#8217;t know if this is due to a glitch during the original installation of if this is just the way Apple set it up. Since I have found a few other people with this or a very similar issue I suspect it&#8217;s a glitch in Apple&#8217;s set up.</p>
<p>I found that the Apple default configs are expecting the logs to be written to</p>
<blockquote><p>
/var/logs/mailman/</p></blockquote>
<p>but the Mailman* system is configured to write them to</p>
<blockquote><p>
/var/mailman/logs/</p></blockquote>
<p>I was concerned that a future update/upgrade from Apple might break the logging if I went and changed the Mailman config so instead I set up a symlink for <em>/var/logs/mailman</em> pointing to <em>/var/mailman/logs</em> and this seems to work both from the GUI or the CL. This almost seems like a typo on Apple&#8217;s part.</p>
<p>Just thought this might be useful to anyone supporting Apple servers.</p>
<p><em>* This is not the default Mailman location but Apple&#8217;s modified Mailman location</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.firehaus.net/2009/07/17/apples-105-mailman-implementation-includes-a-logging-glitch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iCal + iCal Server on Mac Xserve &#8211; It&#8217;s Alive!</title>
		<link>http://www.firehaus.net/2009/02/10/ical-ical-server-on-mac-xserve-its-alive/</link>
		<comments>http://www.firehaus.net/2009/02/10/ical-ical-server-on-mac-xserve-its-alive/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 16:56:56 +0000</pubDate>
		<dc:creator>Don Kruse</dc:creator>
				<category><![CDATA[server]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[xserve]]></category>

		<guid isPermaLink="false">http://www.firehaus.net/?p=114</guid>
		<description><![CDATA[Back in late November I tried to get iCal Server running on some older hardware and this is what happened&#8230; I ran iCal Server + iCal in a test environment on a older Xserve&#8211;Dual G4 1GHz 2GB RAM Mac OS X Server 10.5.5&#8211;in this test environment with only a couple of test users and I [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Back in late November I tried to get iCal Server running on some older hardware and this is what happened&#8230;</p></blockquote>
<p>I ran iCal Server + iCal in a test environment on a older Xserve&#8211;Dual G4 1GHz 2GB RAM Mac OS X Server 10.5.5&#8211;in this test environment with only a couple of test users and I noticed a significant increase in CPU activity due to iCal but it seemed that it wasn&#8217;t something the server couldn&#8217;t handle. A month later when I rolled out the service to 60+ users the server was brought to its knees. It ramped up to 100% CPU usage as more users logged in and by about 11AM that business day it ceased to be functional. Anyone trying to connect timed out before they received updates.</p>
<p>I have not been able to track down any specifics as far as something I can &#8220;fix&#8221; to prevent this problem as my iCal Server install is Apple default and other than running the CPU load at 100% there was not a single error reported/logged. I&#8217;m going to use brute force to work around the issue but I would like to find a better approach.</p>
<p>I am going to try to roll out this service again but hosted on a brand new Xserve 3.0GHz Quad-Core Intel Xeon 16GB RAM (I&#8217;m lucky in that I work for a bunch of lawyers).</p>
<blockquote><p>Now two months later I think I have finally got it working&#8230;</p>
<p><span id="more-114"></span></p></blockquote>
<p>Here are the details of what we have running in our offices:</p>
<p><strong>Server Hardware:</strong><br />
Xserve 3.0GHz Quad-Core Intel Xeon 16GB RAM, 1.6TB RAID 5. (complete overkill?)</p>
<p><strong>Software/OS:</strong><br />
Mac OS X Server 10.5.6 (completely stock, no open-source mods) which runs iCal, iChat, and VPN. On our network we run Open Directory, Kerberos, and we manage our own internal DNS (all Mac OS X server based). Everything more or less works (although I can&#8217;t even keep track of how many things I&#8217;ve kludged to &#8220;force&#8221; Apple server stuff to work the way it is supposed to. For example my DNS is a clean BIND install as I completely removed the Apple BIND setup yet it still plays nicely with the Server Admin GUI tool.</p>
<p><strong>Users:</strong><br />
65 users with about 20 having pre-existing calendars from NUTD each with about 1400 events that were imported into iCal. All my users are using various Mac systems running 10.5 (with a few throwbacks on 10.4). I expect that nearly all my users will give about 30-40 users read permissions to their calendars and 5-8 users read/write permission.</p>
<p><strong>So what happened when I rolled it out this time?</strong><br />
As before it was very slow for all users on the first day which I expected. There are 52,079 events listed on the server, 56 user calendars so far and 16 groups. There have been some brief CPU spikes around 91% but the average CPU load works out to 26%. I am hoping that after a week or so it will start to average 18% &#8211; 20% during business hours. Before I loaded all the imported calendars and users started connecting the server load averaged just 2% with the same three main services running (iCal, iChat, VPN).</p>
<p>Once each user has their own calendar fully loaded as well as any delegated calendars the iCal client remains very responsive since events are first being cached locally. The background sync with 56 users actively using the system has&#8211;so far&#8211;had little impact on our network. We have three satellite offices that connect over dedicated VPNs (sonicWALLs) so their connection speeds are not always very good but each local network is Gigabit ethernet and 802.11g wi-fi. After the initial day&#8217;s surge the average bandwidth usage on the server is under 40 KB/s in/out with some spikes of course (at this point most of the data is outbound which makes sense).</p>
<p>It is sad that such a powerful server was required to host this system but I expect this is largely due to the fact that I was importing many pre-existing calendars from an earlier system. If the iCal system had been rolled out with initially empty calendars I might have been able to get by with a slightly lesser server (but in any case the dual G4 Xserve would never had supported so many users).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.firehaus.net/2009/02/10/ical-ical-server-on-mac-xserve-its-alive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

