<?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>techslaves.org &#187; linux</title>
	<atom:link href="http://techslaves.org/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://techslaves.org</link>
	<description>Owned (and fascinated) by technology!</description>
	<lastBuildDate>Thu, 23 Feb 2012 04:55:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>FreeIPA and Samba 3 Integration</title>
		<link>http://techslaves.org/2011/08/24/freeipa-and-samba-3-integration/</link>
		<comments>http://techslaves.org/2011/08/24/freeipa-and-samba-3-integration/#comments</comments>
		<pubDate>Thu, 25 Aug 2011 05:06:28 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[freeipa]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=169</guid>
		<description><![CDATA[FreeIPA makes a pretty excellent backend for Samba 3. While all the information one needs to set this up is available online, I wasn&#8217;t able to find it all  in one location so I&#8217;ve decided to try my best at filling that gap here on techslaves.org. Hopefully this short guide will aid those trying to piece [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/10/05/ldap-user-management-tools-and-user-private-groups/' rel='bookmark' title='LDAP User Management Tools and User Private Groups'>LDAP User Management Tools and User Private Groups</a></li>
<li><a href='http://techslaves.org/2010/08/04/life-support/' rel='bookmark' title='Life Support!'>Life Support!</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>FreeIPA makes a pretty excellent backend for Samba 3. While all the information one needs to set this up is available online, I wasn&#8217;t able to find it all  in one location so I&#8217;ve decided to try my best at filling that gap here on techslaves.org. Hopefully this short guide will aid those trying to piece together the various parts necessary to integrate FreeIPA v2 and Samba 3, at least until FreeIPA v3 where there is talk of enabling Samba integration with a simple command line argument to the &#8220;ipa-server-install&#8221; script.</p>
<h1>Not for Domains</h1>
<p>It&#8217;s important to keep in mind that these instructions are not for a integrating FreeIPA with a Samba domain controller but merely a Samba file server. My understanding is that FreeIPA will never conveniently/properly support the necessary bits to make it a suitable backend for a Samba 3 PDC. I believe FreeIPA will eventually look towards Samba 4 integration (using Domain trusts) for this kind of integration but don&#8217;t quote me on that. Either way, these instructions are not for Samba domain controllers, just Samba file servers.</p>
<h1>The Assumptions</h1>
<p>There are some basic assumptions that these instructions make.</p>
<ul>
<li>FreeIPA is installed and functional</li>
<li>You have a general idea of how to use LDAP command line tools</li>
<li>If you have a nice GUI LDAP browser, you can use it to apply the example LDIFs and edit the tree instead of the ldap CLI tools</li>
<li>The LDAP commands are executed on the FreeIPA server</li>
<li>Samba and FreeIPA are installed on the same server (although it shouldn&#8217;t be difficult to use TLS encryption with separate servers)</li>
<li>Your LDAP suffix is <em>&#8220;dc=domain,dc=tld&#8221;</em></li>
<li>You know the difference between the &#8220;admin&#8221; account and the directory manager and their passwords</li>
</ul>
<h1>The Goods</h1>
<p>Let&#8217;s not beat around the bush any further.</p>
<p>1. Determine your Samba server SID by executing the following command while <em>smbd</em> is running and jot it down:</p>
<pre>root@ipaserver:~
# net getlocalsid
SID for IPASERVER domain  is: S-1-5-21-3180075094-3458813485-3821849995</pre>
<p>2. With the &#8220;admin&#8221; kerberos ticket, add two attributes to &#8220;<em>cn=ipaConfig,dc=etc,dc=domain,dc=tld&#8221;</em> that tell FreeIPA to setup each account as a Samba account and each group as a Samba group:</p>
<pre>ldapmodify -Y GSSAPI &lt;&lt;EOF
dn: cn=ipaconfig,cn=etc,dc=domain,dc=tld
changetype: modify
add: ipaUserObjectClasses
ipaUserObjectClasses: sambaSAMAccount
-
add: ipaGroupObjectClasses
ipaGroupObjectClasses: sambaGroupMapping
EOF</pre>
<p>3. With the directory manager password and the Samba SID you jotted down from above, create an instance of the 389 DS DNA plugin that will automatically generate SIDs for your users and groups which are necessary for use with Samba:</p>
<pre>ldapadd -x -D "cn=Directory Manager" -W &lt;&lt;EOF
dn: cn=SambaGroupSid,cn=Distributed Numeric Assignment Plugin,cn=plugins,cn=config
objectClass: top
objectClass: extensibleObject
dnatype: sambaSID
dnaprefix: S-1-5-21-3180075094-3458813485-3821849995-
dnainterval: 1
dnamagicregen: assign
dnafilter: (|(objectclass=sambasamaccount)(objectclass=sambagroupmapping))
dnascope: dc=domain,dc=tld
cn: SambaSid
dnanextvalue: 15277
EOF</pre>
<p>The thing to note here is that the <em>&#8220;dnaprefix&#8221;</em> is set to the SID your jotted down… <em>PLUS</em> a hyphen (&#8220;-&#8221;) appended to the end!</p>
<p>4. Now we have to start modifying the FreeIPA API, CLI and WebUI to allow us to specify the <em>&#8220;sambaGroupType&#8221;</em> attribute at group creation time. We have to set <em>&#8220;sambaGroupType&#8221;</em> because it is a required attribute for the objectClass <em>&#8220;sambaGroupMapping&#8221;</em> which we are automatically adding to every group with the <em>&#8220;ipaGroupObjectClasses&#8221;</em> setting from earlier.</p>
<p>Although the value is going to be &#8220;4&#8243; for every conceivable case in this non-domain configuration, I was not able to figure out how to make the DNA plugin insert static values like it can set incrementing values so I decided to allow setting it through the CLI and WebUS with defaults enabled instead. If anyone knows how to setup 389 to automatically add an attribute with a static value upon DN creation of DNs with specific objectClasses, please tell me.</p>
<p>There are a few steps required to make this CLI/UI stuff happen but the FreeIPA developers have actually made this quite simple.</p>
<p>The rule is: Extend the FreeIPA schema first, then the CLI, then the WebUI.</p>
<p>4.1. Extend the FreeIPA schema with a custom field by adding the attribute <em>&#8220;ipaCustomFields&#8221;</em> with a value of <em>&#8220;Samba Group Type,sambagrouptype,true&#8221;</em> to <em>&#8220;cn=ipaConfig,dc=etc,dc=domain,dc=tld&#8221;</em> with an &#8220;admin&#8221; kerberos ticket:</p>
<pre>ldapmodify -Y GSSAPI &lt;&lt;EOF
dn: cn=ipaconfig,cn=etc,dc=domain,dc=tld
changetype: add
add: ipaCustomFields
ipaCustomFields: "Samba Group Type,sambagrouptype,true"
EOF</pre>
<p>As there can only be one <em>&#8220;ipaCustomFields&#8221;</em> attribute, if you have multiple custom fields you need to separate each definition with a &#8220;$&#8221; like so: <em>&#8220;Samba Group Type,sambagrouptype,true$Description,attrname,isrequiredboolean&#8221;</em>.</p>
<p>4.2. Extend the CLI for groups by editing the python file &#8220;/&#8230;/site-packages/ipalib/plugins/group.py&#8221; to define the custom field and specify a default if not implicitly defined (diff):</p>
<pre>--- group.py.orig	2011-08-15 14:59:48.570715207 -0700
+++ group.py	2011-08-16 12:43:43.493236507 -0700
@@ -118,6 +118,13 @@
             label=_('GID'),
             doc=_('GID (use this option to set it manually)'),
         ),
+        Int('sambagrouptype',
+            cli_name='sgt',
+            label=_('Samba Group Type'),
+            doc=_('Samba Group Type (default is 4)'),
+            default=4,
+            autofill=True,
+        ),
     )

 api.register(group)</pre>
<p><strong>Important</strong>: Restart &#8220;httpd&#8221; at this point!</p>
<p>4.3. Test the CLI. With an &#8220;admin&#8221; (or equivalent priv) kerberos ticket, try creating a new group:</p>
<pre>account@ipaserver:~
$ ipa group-add testgrp --desc="Testing the group.py CLI mods"
---------------------
Added group "testgrp"
---------------------
  Group name: testgrp
  Description: Testing the group.py CLI mods
  GID: 1234500010
  Samba Group Type: 4</pre>
<p>4.4 With the CLI functioning properly, we can move on to extending the WebUI. To extend the WebUI for group attributes, edit &#8220;/usr/share/ipa/ui/group.js&#8221; like so (diff):</p>
<pre>--- group.js.orig	2011-08-15 10:01:28.515209121 -0700
+++ group.js	2011-08-16 13:52:59.587352034 -0700
@@ -34,6 +34,7 @@
                 column({name: 'cn'}).
                 column({name: 'gidnumber'}).
                 column({name: 'description'}).
+                column({name: 'sambagrouptype'}).
                 dialog(
                     IPA.add_dialog({
                         'name': 'add',
@@ -41,6 +42,7 @@
                     }).
                         field(IPA.text_widget({name: 'cn', undo: false})).
                         field(IPA.text_widget({name: 'description', undo: false})).
+                        field(IPA.select_widget({name: 'sambagrouptype', undo: false, options: [{label: 'Local', value: 4}, {label: 'Domain', value: 2}]})).
                         field(IPA.checkbox_widget({
                             name: 'posix',
                             label: IPA.messages.objects.group.posix,
@@ -56,6 +58,7 @@
                     }).
                         input({name: 'cn' }).
                         input({name: 'description'}).
+                        input({name: 'sambagrouptype'}).
                         input({name: 'gidnumber' }))).
         facet(
             IPA.group_member_user_facet({</pre>
<p>And then these the WebUI to ensure that you can both see the attribute in the group list, but also add it via the select widget added to the new/edit group dialog.</p>
<p>That should be it. Questions, comments, suggestions, correction and more… all are welcome!</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/10/05/ldap-user-management-tools-and-user-private-groups/' rel='bookmark' title='LDAP User Management Tools and User Private Groups'>LDAP User Management Tools and User Private Groups</a></li>
<li><a href='http://techslaves.org/2010/08/04/life-support/' rel='bookmark' title='Life Support!'>Life Support!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2011/08/24/freeipa-and-samba-3-integration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>LinuxCon 2011: Day 1</title>
		<link>http://techslaves.org/2011/08/17/linuxcon-2011-day-1/</link>
		<comments>http://techslaves.org/2011/08/17/linuxcon-2011-day-1/#comments</comments>
		<pubDate>Thu, 18 Aug 2011 03:05:28 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[vendor]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=171</guid>
		<description><![CDATA[Today was the first day of LinuxCon North America 2011. I managed to received a free pass to the event via a contact at my place of employment which was in turn actually from Hewlett Packard. Thanks, JK and HP. Much appreciated. I arrived shortly after 8AM, registered to receive my badge and t-shirt then [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/10/26/is-ubuntu-ready-for-the-enterprise/' rel='bookmark' title='Is Ubuntu Ready for the Enterprise?'>Is Ubuntu Ready for the Enterprise?</a></li>
<li><a href='http://techslaves.org/2010/09/01/lvm-filters-and-initrd/' rel='bookmark' title='LVM filters and initrd'>LVM filters and initrd</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today was the first day of LinuxCon North America 2011. I managed to received a free pass to the event via a contact at my place of employment which was in turn actually from Hewlett Packard. Thanks, JK and HP. Much appreciated.</p>
<p>I arrived shortly after 8AM, registered to receive my badge and t-shirt then milled around the vendor booths until the keynotes were ready to start. I watched the keynotes (Jim Zemlin, Linux Foundation and Jim  Whitehurts, Red Hat), went to every session I could and came back to the main ballroom for the panel discussion with Jon &#8220;Maddog&#8221; Hall, Eben Moglen and Dan Frye and the following interview of Linus Torvalds by Greg Kroah-Hartman to wrap things up for day 1. So far, so good.</p>
<h1>The Keynotes</h1>
<p>Jim Zemlin&#8217;s opening keynote &#8220;Imagining a World Without Linux&#8221; was decent. While he did take some inevitable potshots at Microsoft, the message was generally very positive and uplifting. I won&#8217;t go into details but basically Jim described a world without Linux as one that would be black &amp; white as opposed to the colour filled world we know today (due to Linux). Jim is a smiley and positive person on stage, his style helped kick off LinuxCon 2011 with a good vibe.</p>
<p>Jim Whitehurst, CEO of Red Hat had a similar approach of sending positive vibes but focused on how the progress of Linux and Open Source has enabled businesses and business models. He said that Google wouldn&#8217;t exist (at least not in it&#8217;s current form) without Linux and basically implying the same about other major well know Linux-powered companies such as Amazon and Facebook. Jim struck me as a fairly modest fellow but he wasn&#8217;t shy about mentioning Red Hat&#8217;s penetration into Fortune 500 companies. Nor was he reserved about how Linux has powered, enabled, strongly driven by or directly benefitted various global forces that may or may not be angels (U.S. Navy, NSA, Russian Military, NYSE/Wall Street). While his examples spoke to the breadth of applications for and the wide reach of Linux, I couldn&#8217;t help but think about how the pervasiveness of Linux is not only helping drive great positive change int he world but may also be powering negative forces as well.</p>
<p>Overall both Jim&#8217;s did a good job and left me excited for the rest of LinuxCon to come.</p>
<h1>First Day Sessions</h1>
<p>I attended four sessions on day 1:</p>
<ol>
<li><em>Centralized User Administration with FreeIPA and sssd</em> by Stephen Gallagher</li>
<li><em>Watching Mad Men and Thinking About Open Source</em> by Karen Copenhaver</li>
<li><em>20 Years &#8211; And More &#8211; of Kernel Development</em> by Jon Cobert</li>
<li><em>What to Expect from Linux Storage</em> by James Bottomley</li>
</ol>
<h2>Centralized User Administration with FreeIPA and sssd</h2>
<p>My first LinuxCon session was by Stephen Gallagher of Red Hat. As is clear by the title, it was about FreeIPA and sssd, two emerging Red Hat driven projects relating to centralized directory and authentication services. Stephen wasn&#8217;t the most natural speaker I&#8217;ve had the pleasure to watch and I suspect that presentations aren&#8217;t something he does on a regular basis but he clearly knew his material and he was able to field the post-presentation questions with ease. The presentation material was fairly spot on to what I expected. I should stop by the Red Hat booth and speak with Stephen tomorrow as there are a few FreeIPA/sssd related questions I have which I didn&#8217;t ask during the question period. Overall, I was satisfied.</p>
<h2>Watching Mad Men and Thinking About Open Source</h2>
<p>First of all, Karen is a more natural speaker than Stephen but I suppose that&#8217;s to be expected: She is legal counsel for the Linux Foundation. The material in this session while clear and understandable was maybe not quite as impactful as I had hoped. Karen had some very nice points and brought good historical reference to the table but it wasn&#8217;t really anything that I didn&#8217;t already think think about in my own internal dialog, for the most part.</p>
<p>Some key points that Karen made early which did resonate with me:</p>
<ul>
<li>&#8220;It&#8217;s a privilege to work on something so important&#8221;, I believe she was quoting Linus Torvalds. This hits home for me as my work is only to enable the much more important and relevant work of others.</li>
<li>The observation that the open source community generally doesn&#8217;t have time for anything but the truth which is a nice ideal but perhaps isn&#8217;t necessarily reflective of the entire open source world so much as a few of the important luminaries.</li>
<li>Identify the things that you value and… well I missed that part. But I do think identifying the things you value is, well, valuable.</li>
</ul>
<p>These are all straight forward things but to hear someone say them can be powerful. This session was good but it wasn&#8217;t quite as hard hitting as I thought it might be based on the title and description. It was no let down, though.</p>
<h2>20 Year &#8211; And More &#8211; Of Linux Kernel Development</h2>
<p>Ok, now we&#8217;re getting way out of my league. Jon Corbet is a high profile Linux kernel contributor and he knows what he is talking about. This man has confidence and ostensibly the knowledge to back it up. His overview of the last 20 years of Linux kernel development was excellent and spotted with just enough humour to keep the real developers cracking up and the rest of us only getting every second joke.</p>
<p>Jon&#8217;s timeline approach to describing the history of kernel development was excellent and enabled him to visually map releases, events and growth in a very simple and understandable way. He made an excellent observation regarding the pace (measure by lines of code) of Linux kernel development during the dot com bust not slowing down one bit despite industry turmoil and job loss and pointed out the correlation between important points in Linux kernel development time with other events that may not be obvious to every outsider (BitKeeper, Git, time between certain releases, Merge Window, etc.).</p>
<p>While this session was developer focused, it wasn&#8217;t so technical to be devoid of value for anyone else, in fact I think it really helped frame the history of Linux kernel development for me in a way that I had never experienced before. Way to go, Jon.</p>
<h2>What To Expect From Linux Storage</h2>
<p>I&#8217;m not sure why James&#8217; talk was titled what it was because for the best of what I could tell, the majority of the talk was about what already is, not what to expect. That&#8217;s not to say it was devoid of important information regarding &#8220;what to expect&#8221; and maybe it was because James ran out of time and had to skip some slides but I did find the title interesting in that capacity none-the-less.</p>
<p>James is charismatic. He makes jokes, he wears a bow tie, he speaks with an attractive accent. He&#8217;s also clearly very knowledgable about his part of the Linux kernel: the Block layer.</p>
<p>Being a sysadmin, knowing more about the block layer and James&#8217; perspective on storage was hugely beneficial. He has historical reference that I never will and deep knowledge of the kernel which I&#8217;ll never achieve. With that said, some of his opinions regarding specific technologies and methods, I personally already held myself! How is it that a Linux kernel rube such as myself could had gleaned the same opinions on specific technologies as one of the people  who understands these technologies the best of anyone? iSCSI was an example. I think it&#8217;s safe to say James thinks iSCSI is an abhorrent mess that simply tries to solve a problem in entirely the wrong way. I&#8217;m also not a big fan of iSCSI and his reasoning  resonated with me, despite my lack of in depth knowledge.</p>
<p>I could go on because I liked this session but I already feel like I&#8217;m burning myself out on this summary of day 1 and we haven&#8217;t even gotten to the panel discussion or Linus interview yet.</p>
<h1>Panel Discussion</h1>
<p>The panel discussion with Jon Hall, Eben Moglen and Dan Frye was fairly profound despite Eben using the platform for an interesting but strangely placed speech that appeared entirely scripted/written. That&#8217;s not to say I didn&#8217;t like his speech or that I don&#8217;t agree with him or his world views but the way he momentarily took over the panel with what was clearly a pre-planned speech during a panel discussion main-hall format was strange indeed.</p>
<p>Dan Frye struck me as level-headed and one of those business people whom can take the challenge of  balancing the need to run a profitable business with social awareness and decency and excel at it. I&#8217;ve never really doubted IBM&#8217;s commitment to Linux and I know their commitment is based on profitability but the way that Dan framed the reasons that he and his team knew Linux meant good business for IBM put a smile on my face.</p>
<p>Jon Hall&#8217;s experience in the computing industry is staggering and humbling, even for today&#8217;s big shots. What a dude. Level head, very articulated, sense of humour and a huge white beard. It&#8217;s hard not to love the guy after watching that panel discussion. Jon talked about his hopes for how Linux and the open source model will foster the next generation of great thinkers, movers and shakers and enable them to do great things. I liked that.</p>
<p>I&#8217;m not really sure what to say about Eben. I agreed with everything he said but he just wasn&#8217;t as loveable as Jon Hall. Must be because he&#8217;s a lawyer :D I suppose that slightly awkward speech about the troubled times that are looming (mounting patent threats and inevitable &#8220;10-20 billion&#8221; dollar war) could have been a factor as well. That said, he seemed positive despite the heavy and serious tone he used to describe the battles ahead.</p>
<p>On one hand, the panel discussion left me feeling good and uplifted but on the other hand I was left with a feeling of powerlessness. I&#8217;m not one of the next great thinkers, doers or talkers. What&#8217;s my place in the Linux and open source world, then? Everything that was discussed revolved around the greatest minds in open source and the huge impacts made by major players. I almost felt a little left out as a lowly sysadmin whom has to deploy at least some non-RMS blessed systems alongside the requisite Linux systems. What&#8217;s my role in all this?</p>
<h1>Interview with Linus</h1>
<p>I really don&#8217;t have much to say about this one. Linus is down to earth, but strong in his opinions. He admits when something is outside of his immediate expertise, as evidenced by his answers to many non-Linux kernel specific questions. He talks well and he would have preferred if the crowd did not give him a standing ovation at the end but I suppose you cannot make a room full of Linux geeks sit down when their proverbial leader is being applauded.</p>
<p>I liked a lot of what Linus talked about regarding the modern direction of Linux such as the version numbering changes, the idea that we should be looking backwards at how to improve existing subsystems and layers instead of always looking forward to new feature inclusions. I liked how he described the cross-pollination of various parts of Linux that exist when everyone from embedded systems to massively parallel SMP systems are made to use the exact same kernel instead of everyone having their own specialized forks.</p>
<p>Linus was clam and cool, just like Linux and I had a seriously good time at LinuxCon today. Rock on, LinuxCon!</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/10/26/is-ubuntu-ready-for-the-enterprise/' rel='bookmark' title='Is Ubuntu Ready for the Enterprise?'>Is Ubuntu Ready for the Enterprise?</a></li>
<li><a href='http://techslaves.org/2010/09/01/lvm-filters-and-initrd/' rel='bookmark' title='LVM filters and initrd'>LVM filters and initrd</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2011/08/17/linuxcon-2011-day-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Browsing Automounted NFS with Nautilus</title>
		<link>http://techslaves.org/2011/05/13/browsing-automounted-nfs-with-nautilus/</link>
		<comments>http://techslaves.org/2011/05/13/browsing-automounted-nfs-with-nautilus/#comments</comments>
		<pubDate>Fri, 13 May 2011 20:18:18 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[autofs]]></category>
		<category><![CDATA[automount]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nautilus]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[share]]></category>
		<category><![CDATA[slow]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=152</guid>
		<description><![CDATA[Has browsing automounted NFS shares with nautilus got you pulling out hair in frustration? Ever since we transitioned from the RHEL4 environment to Fedora 14, people have been reporting terrible slowness and delays in nautilus when browsing our NFS shares. Reports of waiting over a minute for an NFS automount root-level directory with &#60; 100 [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/05/07/rhelcentos-nfs-and-firewalls/' rel='bookmark' title='RHEL/CentOS, NFS and Firewalls'>RHEL/CentOS, NFS and Firewalls</a></li>
<li><a href='http://techslaves.org/2010/10/26/is-ubuntu-ready-for-the-enterprise/' rel='bookmark' title='Is Ubuntu Ready for the Enterprise?'>Is Ubuntu Ready for the Enterprise?</a></li>
<li><a href='http://techslaves.org/2010/04/23/posix-default-acls-umask-and-project-directories/' rel='bookmark' title='POSIX Default ACLs, umask and Project Directories'>POSIX Default ACLs, umask and Project Directories</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Has browsing automounted NFS shares with nautilus got you pulling out hair in frustration? </p>
<p>Ever since we transitioned from the RHEL4 environment to Fedora 14, people have been reporting terrible slowness and delays in nautilus when browsing our NFS shares. Reports of waiting over a minute for an NFS automount root-level directory with &lt; 100 sub directories to display the contents are not good.</p>
<p>This wasn&#8217;t a problem on our old RHEL4 terminal server and I couldn&#8217;t for the life of me understand how nautilus could have become so slow in the years since RHEL4 was released. It just didn&#8217;t make sense. I started to think something had to be wrong and that this wasn&#8217;t just the new normal expected behaviour but I had nothing to go on.</p>
<p>I tried the basic recommendations: Disable thumbnails, disable preview, disable directory item counts. That didn&#8217;t help the user experience in any dramatic way. At this point, I started recommended pcmanfm and thunar as a way to workaround nautilus&#8217; terrible performance. I even wrote a fairly concise script for modifying the default file manager and desktop-drawing application so that using a different file manager wouldn&#8217;t be so foreign in GNOME.</p>
<p>Then one day I started looking at the verbose level output from automount while browsing the NFS mounts with nautilus and found a substantial amount of this in the logs:</p>
<pre>Apr 28 11:19:10 hostname automount[18959]: attempting to mount entry /home/.svn
Apr 28 11:19:10 hostname automount[18959]: key ".svn" not found in map source(s).
Apr 28 11:19:10 hostname automount[18959]: failed to mount /home/.svn
</pre>
<p>Oh my! Why are there repeated access attempts for &#8220;.svn&#8221;? What is causing automount to perform map lookups for &#8220;.svn&#8221; in the automount-controlled directories? Could it be nautilus?</p>
<p>Why yes!</p>
<p>As it turns out the GNOME SVN integration package &#8220;gnubversion&#8221; includes a nautilus extension and this extension was causing Nautilus to look for &#8220;.svn&#8221; directories everywhere and it just so happens that looking for &#8220;.svn&#8221; in a root-level automount directory causes slow map lookup failures that (presumably) kill the perceptible performance of browsing automounted NFS shares.</p>
<p>I removed gnubversion (as no one was using it) and the user experience for nautilus has normalized. While nautilus still isn&#8217;t as speedy as pcmanfm or thunar, its no longer a cause of forceful hair removal incidents&#8230; and all is well in the world.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/05/07/rhelcentos-nfs-and-firewalls/' rel='bookmark' title='RHEL/CentOS, NFS and Firewalls'>RHEL/CentOS, NFS and Firewalls</a></li>
<li><a href='http://techslaves.org/2010/10/26/is-ubuntu-ready-for-the-enterprise/' rel='bookmark' title='Is Ubuntu Ready for the Enterprise?'>Is Ubuntu Ready for the Enterprise?</a></li>
<li><a href='http://techslaves.org/2010/04/23/posix-default-acls-umask-and-project-directories/' rel='bookmark' title='POSIX Default ACLs, umask and Project Directories'>POSIX Default ACLs, umask and Project Directories</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2011/05/13/browsing-automounted-nfs-with-nautilus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Which Distro for PPC64 Server?</title>
		<link>http://techslaves.org/2011/03/08/which-distro-for-ppc64-server/</link>
		<comments>http://techslaves.org/2011/03/08/which-distro-for-ppc64-server/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 08:02:43 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[crux ppc]]></category>
		<category><![CDATA[cruxppc]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[distribution]]></category>
		<category><![CDATA[distro]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[p505]]></category>
		<category><![CDATA[p505 express]]></category>
		<category><![CDATA[ppc]]></category>
		<category><![CDATA[ppc64]]></category>
		<category><![CDATA[pseries]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=131</guid>
		<description><![CDATA[We (work) have two IBM p505 Express Servers. Right now one machine is running an old way out of support RHEL4 installation and the other is on Fedora 12, which is no longer supported by the Fedora Project. Paid support/subscription is not a consideration yet for this project, but I do want to run a [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>We (work) have two IBM p505 Express Servers.</p>
<p>Right now one machine is running an old way out of support RHEL4 installation and the other is on Fedora 12, which is no longer supported by the Fedora Project. Paid support/subscription is not a consideration yet for this project, but I do want to run a modern Linux distribution for the associated modern application software and maintenance.</p>
<p>I basically need to move these servers to something free and supportable. I&#8217;m finding out that there aren&#8217;t a lot of options in PPC Linux as when I was last interested in this architecture. It&#8217;s pretty much just:</p>
<ul>
<li><a href="http://www.debian.org/ports/powerpc/">Debian</a></li>
<li><a href="http://cruxppc.org">CRUX PPC</a></li>
<li><a href="http://www.gentoo.org/proj/en/base/ppc64/">Gentoo</a></li>
</ul>
<p>I realize there is RHEL and SuSE Enterprise for PPC64 but those are subscription products without free binaries available. I&#8217;m not prepared to build an RPM-based distro from source at this point so I need something with binaries or something where building from source is highly automated and integrated, such as Gentoo. Digression&#8230;</p>
<p>The question is which of these distros do I go with? To answer the question I suppose I need to define the roles.</p>
<p>These two pSeries servers a redundant pair running LDAP/Auth Service, NTP, DNS and DHCP. The load is low but I want a solid modern software platform on both these servers from now until they are replaced with in the future (which is likely to be integration into a centralized architecture).</p>
<p>With that said, and with my familiarity level of these distros, I would first lean towards Debian and then to Gentoo and finally to CRUX PPC.</p>
<p>Debian is a binary distribution, which is nice for maintaining a server. Debian is more familiar to me. What are the arguments for Gentoo or CRUX PPC?</p>
<p>Agree or Disagree?</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2011/03/08/which-distro-for-ppc64-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remote Access Solution</title>
		<link>http://techslaves.org/2011/02/10/remote-access-solution/</link>
		<comments>http://techslaves.org/2011/02/10/remote-access-solution/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 06:06:04 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nx]]></category>
		<category><![CDATA[remote access]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=125</guid>
		<description><![CDATA[NEW: See the Follow Up. I&#8217;m in a bit of a pickle. Traditionally, we&#8217;ve always allowed wide-open SSH access from anywhere to our main terminal server for remote access. Since we use NX (neatx, FreeNX, NXclient, etc.), all we ever needed open was SSH to make it all work nicely. Sure, SSH is a big [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2011/02/21/remote-access-solution-follow-up/' rel='bookmark' title='Remote Access Solution: Follow Up'>Remote Access Solution: Follow Up</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>NEW: See the <a href="/2011/02/21/remote-access-solution-follow-up/">Follow Up</a>.</p>
<hr />
<p>I&#8217;m in a bit of a pickle.</p>
<p>Traditionally, we&#8217;ve always allowed wide-open SSH access from anywhere to our main terminal server for remote access. Since we use NX (neatx, FreeNX, NXclient, etc.), all we ever needed open was SSH to make it all work nicely. Sure, SSH is a big bruteforce target but with DenyHosts and low thresholds things are pretty well under control. I realize huge distributed bruteforce attacks are still possible against a DenyHosts protected SSH daemon but we have to factor in ease of use when thinking about security and the low risk of massively distributed bruteforce attacks.</p>
<p><span id="more-125"></span>With the deployment of a new terminal server we have the opportunity to use the Cisco-based campus VPN service delegated to us via a customized VPN group. This is all well and good except for one thing: There is no ability to set custom routes for the clients based on those VPN groups. When a remote user connects to the VPN, *all* their network traffic has to be routed via the VPN. This typically makes sense, it is a VPN after all. However, we have a strong use case for which this simply won&#8217;t work. We have remote collaborators from anywhere in the world and mandating that they route all their Internet traffic via us when they need to remote in to our systems is unacceptable. Not to mention we have local users working from home and the same applies. We cannot mandate that these users have to route all their non-work related private traffic via us whenever they also need to access our resources at the same time.</p>
<h2>Alternatives</h2>
<p>So what are we left with? What can we do to provide increased security while also maintaining the ease of use of direct SSH access? I&#8217;ve thought of a couple things, but they also have disadvantages:</p>
<p>1. Run our own VPN with OpenVPN on dd-wrt or a generic box.</p>
<p>This sounds great at first but this requires that we support another box and another service directly. The campus VPN service is managed by the central IT group, our own VPN would add support costs of our own and specifically with the client installation side of things. I&#8217;d have to come up with our own instructions for installing and configuring the clients on multiple operating systems and hope that our users don&#8217;t have serious problems getting it working.</p>
<p>2. Use SSH but mandate the use of SSH keys.</p>
<p>No doubt some of our users have bad passwords and using SSH keys would prevent password bruteforce attempts including massively distributed ones. But mandating the use of SSH keys seems like hell from a support perspective. Asking users to generate keys and have them available on any client they wish to use is really pushing the boundary of what they&#8217;ll be able to successfully do on their own. I just know I&#8217;d get the evil eye from everyone if I handed them the instructions for how to accomplish this.</p>
<h2>Push Back Times Two</h2>
<p>What makes this worse is no matter what I choose, I&#8217;ll get push back from one side or the other. Make things more secure but more complicated and my user base will be seriously unhappy. Continue allowing direct SSH access as the long term policy and the central IT group(s) will tar and feather me: &#8220;Bad practice! Bad practice!&#8221;. Damn this pickle!</p>
<p>So, again, what are we left with for secure remote access solutions that are both secure and simple enough for anyone to use? Any suggestions dear Internet?</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2011/02/21/remote-access-solution-follow-up/' rel='bookmark' title='Remote Access Solution: Follow Up'>Remote Access Solution: Follow Up</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2011/02/10/remote-access-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LTSP 5 and AIGLX</title>
		<link>http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/</link>
		<comments>http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/#comments</comments>
		<pubDate>Tue, 23 Nov 2010 19:53:48 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[aiglx]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[ldm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ltsp]]></category>
		<category><![CDATA[radeon]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[thin client]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=109</guid>
		<description><![CDATA[Woot! LTSP 5 + LDM over SSH (LDM_DIRECTX=False in lts.conf) + Open source radeon driver with AIGLX is working! Nothing like running compiz smoothly on a dual monitor thin client :D The problem I was having was that despite the X server on the thin client being fully configured and tested to use hardware acceleration locally, [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/11/10/interesting-new-developments/' rel='bookmark' title='Interesting New Developments&#8230;'>Interesting New Developments&#8230;</a></li>
<li><a href='http://techslaves.org/2010/11/15/a-correction/' rel='bookmark' title='A Correction'>A Correction</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Woot! LTSP 5 + LDM over SSH (LDM_DIRECTX=False in lts.conf) + Open source radeon driver with AIGLX is working!</p>
<p>Nothing like running compiz smoothly on a dual monitor thin client :D</p>
<p>The problem I was having was that despite the X server on the thin client being fully configured and tested to use hardware acceleration locally, when connected to the terminal server over the secure LDM tunnel I was getting direct rendering with the software renderer which results in a big fail for compiz.</p>
<p>The key to avoiding the software renderer from being used for DRI was setting <span style="color: #ff0000;">LIBGL_ALWAYS_INDIRECT=1</span> as an environment variable. I don&#8217;t know why with everything configured correctly that the system defaults to using the software renderer instead of indirect rendering + hardware renderer but at least forcing this environment variable in a global profile script allows for sexy hardware accelerated compiz goodness from securely connected thin clients.</p>
<p>Without the environment variable to force indirect rendering, <em>glxinfo</em> output with the LIBGL_DEBUG=verbose env variable set was complaining that the &#8220;drm device&#8221; didn&#8217;t exist. I suspect this is because glxinfo was expecting to somehow find the /dev/dri/card0 device on the terminal server itself instead of on the thin client and of course it doesn&#8217;t exist on the server&#8230; the OpenGL card is installed on the thin client!</p>
<p>There must be a way to get this working without the LIBGL_ALWAYS_INDIRECT environment variable but I couldn&#8217;t figure it out&#8230; this really smells of a hack but since it&#8217;s very easy to apply globally and it works just how I expect things to work, I&#8217;ll have to leave it in place until the time I can figure out another non-hacky way of getting the results I want with this configuration.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/11/10/interesting-new-developments/' rel='bookmark' title='Interesting New Developments&#8230;'>Interesting New Developments&#8230;</a></li>
<li><a href='http://techslaves.org/2010/11/15/a-correction/' rel='bookmark' title='A Correction'>A Correction</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amber Lamps!</title>
		<link>http://techslaves.org/2010/11/15/amber-lamps/</link>
		<comments>http://techslaves.org/2010/11/15/amber-lamps/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 23:32:59 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[amber]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[HMC]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[ipmi]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[pseries]]></category>
		<category><![CDATA[sel]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=107</guid>
		<description><![CDATA[Amber lights actually, to be a bit more accurate. We&#8217;ve got these two IBM p505 servers that actually work pretty well. They were purchased on some kind of clear out two-for-one deal that my predecessor jumped on and while I probably wouldn&#8217;t be the guy to buy these machines in the first place, I&#8217;ve come [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2011/03/08/which-distro-for-ppc64-server/' rel='bookmark' title='Which Distro for PPC64 Server?'>Which Distro for PPC64 Server?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Amber <em>lights</em> actually, to be a bit more accurate.</p>
<p>We&#8217;ve got these two IBM p505 servers that actually work pretty well. They were purchased on some kind of clear out two-for-one deal that my predecessor jumped on and while I probably wouldn&#8217;t be the guy to buy these machines in the first place, I&#8217;ve come to strangely like them. These server run our DNS, DHCP and soon-to-be LDAP stuff. It&#8217;s all distributed, replicated and zone-transfered goodness.</p>
<p>However, as of this writing they are both sportin&#8217; a solid amber light on the LightPath diagnostics and the procedure to clear the amber light is&#8230; well&#8230; rather unclear. I think it&#8217;s unclear because we don&#8217;t have an HMC (Hardware Management Console) so we don&#8217;t get a lot of the spiffy external management features that these systems offer. Add to the fact that we run Linux on these hosts as opposed to AIX, which apparently has OS-level tools for querying the event log and flipping the light switches. I can&#8217;t find anything equivalent on Linux for p-Series systems&#8230; yet.</p>
<p><span id="more-107"></span></p>
<p>Googling doesn&#8217;t offer much in the way of help for clearing amber lights without an HMC and neither does IBM&#8217;s website. Looks like I&#8217;ll have to reboot one of them and go into the management controller to see if there are any options in there.</p>
<p>Updates coming if I can find the dang off switch&#8230;</p>
<p><strong>Update 2:</strong> Yay! I finally discovered the utility necessary to turn the amber lights on an off via software on a live Linux p5o5 system! It&#8217;s <em>usysattn</em> from the <a href="http://sourceforge.net/projects/powerpc-utils/">Powerpc-utils</a> or &#8220;Linux on Power Service Tools&#8221; project. It seem backed by IBM in some way because they link to these tools quite heavily throughout their online documentation, but I haven&#8217;t investigated any further at this time.</p>
<p>Regardless, once you have the latest <em>usysattn</em> from Powerpc-utils installed just use this command to turn off the amber light:</p>
<pre># usysattn</pre>
<p>To list all indicators (lights). Then once you have the &#8220;location code&#8221; of the light you want to turn off:</p>
<pre># usysattn -l [location_code] -s normal</pre>
<p>The amber lamp is now off!</p>
<p><strong>Update:</strong> I Found the option in the service processor configuration menus available over the serial port. Unfortunately this means I have to reboot my servers to clear the lights but I suppose if something caused the lights to go on in the first place, it&#8217;s probably worth checking it out and scheduling some downtime to resolve it.</p>
<p>For posterity, the sequence necessary to turn off the amber lights after logging into the service processor is:</p>
<pre>System name: Server-9115-505-XXXXXX
Version: SF240_358
User: admin
Copyright ? 2002-2008 IBM Corporation. All rights reserved.
1. Power/Restart Control
2. System Service Aids
3. System Information
4. System Configuration
5. Network Services
6. Performance Setup
7. On Demand Utilities
8. Concurrent Maintenance
9. Login Profile
99. Log out

S1&gt; 4

System Configuration
1. System Name
2. Processing Unit Identifier
3. Configure I/O Enclosures
4. Time Of Day
5. Firmware Update Policy
6. PCI Error Injection Policy
7. Interposer Plug Count
8. I/O Adapter Enlarged Capacity
9. Hardware Management Consoles
10. Virtual Ethernet Switches
11. Hardware Deconfiguration
12. Program Vital Product Data
13. Service Indicators
98. Return to previous menu
99. Log out

S1&gt; 13

Service Indicators
1. System Attention Indicator
2. Enclosure Indicators
3. Indicators by Location code
4. Lamp Test
98. Return to previous menu
99. Log out

S1&gt; 1

System Attention Indicator
Currently: On
Turn off the system attention indicator
Enter 1 to confirm or 2 to cancel:
The system attention indicator is turned off.
PRESS ENTER TO CONTINUE:</pre>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2011/03/08/which-distro-for-ppc64-server/' rel='bookmark' title='Which Distro for PPC64 Server?'>Which Distro for PPC64 Server?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/11/15/amber-lamps/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A Correction</title>
		<link>http://techslaves.org/2010/11/15/a-correction/</link>
		<comments>http://techslaves.org/2010/11/15/a-correction/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 07:22:55 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[correction]]></category>
		<category><![CDATA[ldm]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=106</guid>
		<description><![CDATA[I need to make a small correction. In my last post, &#8220;Interesting New Developements&#8230;&#8220;, I mentioned how AIGLX and DRI weren&#8217;t working with LDM. Turns out, if I use LDM_DIRECTX=true in lts.conf, that was indeed the case. But if I was using LDM_DIRECTX=false I would receive proper software rendering support reported by glxinfo instead of [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/' rel='bookmark' title='LTSP 5 and AIGLX'>LTSP 5 and AIGLX</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I need to make a small correction.</p>
<p>In my last post, &#8220;<a href="/2010/11/10/interesting-new-developments/">Interesting New Developements&#8230;</a>&#8220;, I mentioned how AIGLX and DRI weren&#8217;t working with LDM. Turns out, if I use LDM_DIRECTX=true in lts.conf, that was indeed the case. But if I was using LDM_DIRECTX=false I would receive proper software rendering support reported by <em>glxinfo</em> instead of that BadRequest problem I had with the direct X option. I still haven&#8217;t figured out why but I&#8217;m sure it&#8217;s related to the SSH tunnelling involved in the non-direct X11 connection.</p>
<p>Also, I ragged on LDM quite a bit. Despite the perceived shortcomings, those interface issues can be resolved over time and I hope they will be because the real meat of LDM seems to work pretty well.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/' rel='bookmark' title='LTSP 5 and AIGLX'>LTSP 5 and AIGLX</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/11/15/a-correction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Interesting New Developments&#8230;</title>
		<link>http://techslaves.org/2010/11/10/interesting-new-developments/</link>
		<comments>http://techslaves.org/2010/11/10/interesting-new-developments/#comments</comments>
		<pubDate>Wed, 10 Nov 2010 06:43:24 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[aiglx]]></category>
		<category><![CDATA[amd]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[kvm]]></category>
		<category><![CDATA[ldm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[localdev]]></category>
		<category><![CDATA[ltsp]]></category>
		<category><![CDATA[magny cours]]></category>
		<category><![CDATA[radeon]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[virtualization]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[xdmcp]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=104</guid>
		<description><![CDATA[There have been some interesting new developments lately! Here&#8217;s a shrunken summary. At present I&#8217;m doing a technology review for implementing a new terminal server. Our existing terminal server is a 4-way AMD Opteron 848 system that&#8217;s about 5 years old right now. It runs CentOS 4 and has been so mega-customized over those 5 [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/' rel='bookmark' title='LTSP 5 and AIGLX'>LTSP 5 and AIGLX</a></li>
<li><a href='http://techslaves.org/2010/11/15/a-correction/' rel='bookmark' title='A Correction'>A Correction</a></li>
<li><a href='http://techslaves.org/2011/01/07/fresh-win2k-install-and-windows-update-error/' rel='bookmark' title='Fresh Win2k Install and Windows Update Error'>Fresh Win2k Install and Windows Update Error</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>There have been some interesting new developments lately! Here&#8217;s a shrunken summary.</p>
<p>At present I&#8217;m doing a technology review for implementing a new terminal server. Our existing terminal server is a 4-way AMD Opteron 848 system that&#8217;s about 5 years old right now. It runs CentOS 4 and has been so mega-customized over those 5 years, I&#8217;ve never wanted to go through the pain of in-place upgrading to CentOS 5. We also have a simple IBM 1U server running Windows 2003 Server for windows purposes. It&#8217;s ok but also about 5 years old.</p>
<p>The idea is to roll both these servers into a large single physical server with some kind of virtualization. The large system would also have the resources to run other VMs, as necessary. Development/test boxes or what not.</p>
<p><span id="more-104"></span></p>
<h2>Hardware and Virtualization</h2>
<p>The server is a 48 core AMD 6172 (2.1GHz) with 64GB of DDR3 ECC RAM with a bunch of 15K RPM SAS drives. I&#8217;m not sure whether the AMD solution is entirely the right solution. Intel does score amazingly well on virtualization workload benchmarks&#8230; but our workload is different than the benchmark workloads. What we need is one huge guest with a crap-ton of VCPUs and one guest with 2 VCPU and 4GB of RAM. The last NUMA node/cell is pinned to the Windows (smaller) VM and the Linux (large) VM is pinned across several NUMA cells. The Linux VM is a multi-user system where many users will want to run intensive computation but desktop as well. The existing server would sometimes be starved of resources when too many users would start intensive programs simultaneously.</p>
<p>What I can&#8217;t quite seem to figure out regarding this whole KVM this yet is if the guest is smart enough and if KVM allows for mapping the VCPUs and the guest memory according to physical NUMA topology thus reducing likelyhood of slow inter-cell memory access?</p>
<h2>Software</h2>
<p>Anyways&#8230; now that the server has arrived, I&#8217;ve started out with RHEL6 beta2 as the &#8220;hypervisor&#8221;, if you will. I&#8217;m obviously using KVM and libvirt as this is what RedHat is backing. So far, so good. I&#8217;ve only used virt-manager and virtsh thus far, I&#8217;ll explore other tools a little later. Fedora 14 is being used as the Linux VM and Windows 7 Enterprise for the guest&#8230; I&#8217;m going to try out using the Terminal Server multi-user hack and see how that goes. If it won&#8217;t go, I&#8217;ll recommend actually buying the correct Windows Server license, I suppose. Or buy into the VDI stuff that&#8217;s going on around me. I&#8217;ll check out the pricing I suppose&#8230; but I digress.</p>
<h2>Linux Terminal Server: LTSP5</h2>
<p>Fedora 14 with LTSP5 works pretty well. But there are some caveats.</p>
<h3>1. The chroot</h3>
<p>The current ltsp* packages in Fedora14 aren&#8217;t able to build Fedora 14 chroots. You can currently only build Fedora 13 or older because it takes some work to make a complete kickstart LTSP chroot from a new release. Instead of  invoking &#8220;ltsp-build-client&#8221; blindly, you&#8217;ll need to do something like:</p>
<pre># ltsp-build-client --release 13</pre>
<p>This isn&#8217;t a huuuuuuge deal, but in an ideal world I would prefer to use the same release for clients and servers. It&#8217;s just cleaner and makes maintaing everything a bit come congruent for me. It also has some troubleshooting benefits. Bah!</p>
<h3>2. The Display Manager Situation</h3>
<p>LDM, the LTSP5 display manager is both wonderful and woeful. There are some really nice things that LTSP5 can tout due to LDM, but it&#8217;s also a step backwards compared to GDM (yes, even the new all-gtk GDM with reduced XDMCP functionality) or KDM in many ways.</p>
<p>What LDM does so well is proper setup and teardown of LOCALDEV and sound via pulse. It&#8217;s actually pretty slick, especially in GNOME where it gives the users desktop drive icons for portable USB drives/keys. The automatic unmounting of the drive is actually pretty slick but initially it was highly counterintuitive to someone like me who expects to require ejection/unmounting of the drive before pulling it out.</p>
<p>What LDM does poorly is&#8230; well frankly a few things. First off, the feedback from password prompt is poor. It can&#8217;t tell WHY your password failed due to the way it interacts with SSH. It&#8217;s a hard problem to solve, apparently but it&#8217;s a terrible user experience. Second, when you type your password incorrectly, it pauses for some time, tells you it can&#8217;t connect to the server and X restarts to load LDM again. Again, bad user experience. It&#8217;s also not highly customizable. As an example, the login box will span multiple monitors by default so it&#8217;s split across the bezels of your sweet dual monitor thin client. While you can &#8220;hack&#8221; it by providing a wide logo to force the login box off to the right, it&#8217;s not exactly super slick that way.</p>
<p>The last thing LDM doesn&#8217;t seem to do at all is allow for AIGLX/DRI2. If I login using LDM, glxinfo/glxgears barfs on a BadRequest related to DRI2/DRI2Connect. With an XDMCP connection to GDM on the same server, with the same client chroot, lts.conf and xorg configuration and glxinfo displays software rendering but that&#8217;s a different story. Even using a X11 forwarding to another server provides yet more different results. Either way, it appears LDM basically breaks functionality where it would otherwise run, but run fairly slowly. Could be the open source &#8220;radeon&#8221; driver I&#8217;m using on the test box, I suppose. I hear the intel driver works well&#8230;</p>
<p>Since the LOCALDEV and sound routing stuff is tightly integrated to LDM, it appears to be some work to get it working through GDM or KDM&#8230; then there is the problem that I haven&#8217;t had any success making the new GDM (~ &gt;=2.30, I think) to act as an XDMCP chooser. I do have other XDMCP hosts that I want to connect to&#8230;</p>
<p>There is some hope to be had from <a href="https://help.ubuntu.com/community/Updated_Version_For_Feisty">this interesting post</a> on the Ubuntu help/documentation wiki. It details how to install GDM on the LTSP chroot and get LOCALDEV working with it. They claim sound just works on that older version of Ubuntu but I don&#8217;t recall my sound device showing up when using XDMCP and remote GDM. Either way, LOCALDEV is more important.</p>
<h2>Windows Terminal Server: Windows 7 Enterprise</h2>
<p>I can&#8217;t start without saying that Windows 7 via RDP feels &#8220;slower&#8221; than Windows 2003 over RDP. I detect more mouse and menu lag from the same client systems and versions. I disabled aero and it helped but only a very little bit. I&#8217;m not ready to give up yet, there may be more things I can do here.</p>
<p>As mentioned, I&#8217;m trying the termsrv.dll hack that allows for multiple RDP users to non-Windows Server Terminal Services hosts. I wonder if it&#8217;s part of the performance issue I&#8217;m seeing&#8230; I should quickly revert the hack to test that possibility.</p>
<p>On the terminal server and with dual 4:3 monitors, not much of the GUI pizzaz in Windows 7 is all that interesting or useful. Some UI changes compared to XP make things a tad unfamiliar for me but overall it&#8217;s the same experience with a few nice things and seemingly better stability and driver support.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/11/23/ltsp-5-and-aiglx/' rel='bookmark' title='LTSP 5 and AIGLX'>LTSP 5 and AIGLX</a></li>
<li><a href='http://techslaves.org/2010/11/15/a-correction/' rel='bookmark' title='A Correction'>A Correction</a></li>
<li><a href='http://techslaves.org/2011/01/07/fresh-win2k-install-and-windows-update-error/' rel='bookmark' title='Fresh Win2k Install and Windows Update Error'>Fresh Win2k Install and Windows Update Error</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/11/10/interesting-new-developments/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yet Another AoE vs. iSCSI Opinion (YAAVIO)</title>
		<link>http://techslaves.org/2010/10/28/yet-another-aoe-vs-iscsi-opinion-yaavio/</link>
		<comments>http://techslaves.org/2010/10/28/yet-another-aoe-vs-iscsi-opinion-yaavio/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 22:45:04 +0000</pubDate>
		<dc:creator>rthomson</dc:creator>
				<category><![CDATA[Sysadmin]]></category>
		<category><![CDATA[aoe]]></category>
		<category><![CDATA[coraid]]></category>
		<category><![CDATA[datacenter]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[iscsi]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://techslaves.org/?p=82</guid>
		<description><![CDATA[That&#8217;s right, folks! Yet another asshole blogger here, sharing his AoE (ATA over Ethernet) vs. iSCSI (Internet SCSI) opinion with the world! As if there wasn&#8217;t already enough discussion surrounding AoE vs. iSCSI in mailing lists, forums and blogs, I am going to add more baseless opinion to the existing overwhelming heap of information on [...]
Related posts:<ol>
<li><a href='http://techslaves.org/2010/09/08/migration-weekend-success/' rel='bookmark' title='Migration Weekend: Success'>Migration Weekend: Success</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s right, folks! Yet another asshole blogger here, sharing his AoE (ATA over Ethernet) vs. iSCSI (Internet SCSI) opinion with the world!</p>
<p>As if there wasn&#8217;t already enough discussion surrounding AoE vs. iSCSI in mailing lists, forums and blogs, I am going to add more baseless opinion to the existing overwhelming heap of information on the subject. I&#8217;m sure this will be lost in the noise but after having implemented AoE with CORAID devices and iSCSI with an IBM (well, LSI) device and iSCSI with software targets in the past I feel I finally have something share.</p>
<p>This isn&#8217;t a technical analysis. I&#8217;m not dissecting the protocols nor am I suggesting implementation of either protocol for your project. What I am doing is sharing some of my experiences and observations simply because I can. Read on, brave souls.</p>
<p><span id="more-82"></span></p>
<h2>Background</h2>
<p>My experiences with AoE and iSCSI are limited to fairly small implementations by most standards. Multi-terabyte and mostly file serving with a little bit of database thrown in there for good measure. The reasoning behind all the AoE and iSCSI implementations I&#8217;ve setup is basically to detach storage from physical servers to achieve:</p>
<ol>
<li>Independently managed storage that can grow without pain</li>
<li>High availability services front-end (multiple servers connecting to the same storage device(s))</li>
</ol>
<p>There are plenty of other uses for these technologies (and other technologies that may satisfy these requirement), but that&#8217;s where I draw my experiences from. I&#8217;ve not deployed iSCSI or AoE for virtual infrastructure which does seem to be a pretty hot topic these days, so if that&#8217;s what you&#8217;re doing, your mileage will vary.</p>
<h2>Performance</h2>
<p>Yeah, yeah, yeah, everyone wants the performance numbers. Well, I don&#8217;t have them. You can find people comparing AoE and iSCSI performance elsewhere (even if many of the tests are flawed). Any performance numbers I may accidentally provide while typing this up in a mad frenzy are entirely subjective and circumstantial&#8230; I may not even end up providing any! Do you own testing, it&#8217;s the only way you&#8217;ll ever be sure.</p>
<h2>The Argument For or Against</h2>
<p>I don&#8217;t really want to be trying to convince anyone to use a certain technology here. However, I will say it: I lean towards AoE for the types of implementations I mentioned above. Why? One reason: SIMPLICITY. Remember the old KISS adage? Well, kiss me AoE because you&#8217;ve got the goods!</p>
<p>iSCSI has the balls to do a lot, for a lot of different situations. iSCSI is routable in layer 3 by nature. AoE is not. iSCSI has a behemoth sized load of options and settings that can be tweaked for any particular implementation needs. iSCSI has big vendor backing in both the target and the initiator markets. Need to export an iSCSI device across a WAN link? Sure, you can do it, never mind that the performance might be less than optimal but the point is it&#8217;s not terribly involved or &#8220;special&#8221; to route iSCSI over a WAN because iSCSI is designed from the get-go to run over the Internet. While AoE over a WAN has been demonstrated with GRE, it&#8217;s not inherent to the design of AoE and never will be.</p>
<p>So what does AoE have that iSCSI doesn&#8217;t? Simplicity and less overhead. AoE doesn&#8217;t have myriad of configuration options to get wrong, it&#8217;s really so straight forward that it&#8217;s hard to get it wrong. iSCSi is easy to get wrong. Tune your HBA firmware settings or software initiator incorrectly (and the factory defaults can easily be &#8220;wrong&#8221; for any particular implementation) and watch all hell be unleashed before your eyes. If you&#8217;ve ever looked at the firmware options provided to by QLogic in their HBAs and you&#8217;re not an iSCSI expert, you&#8217;ll know what I&#8217;m talking about.</p>
<h2>Simplicity Example: Multipath I/O</h2>
<p>A great example of AoE&#8217;s simplicity vs. iSCSI is when it comes to multipath I/O. Multipath I/O is defined as utilizing multiple paths to the same device/LUN/whatever to gain performance and/or redundancy. This is generally implemented with multiple HBAs or NICs on the initiator side and multiple target interfaces on the target side.</p>
<p>With iSCSI, every path to the same device provides the operating system with a separate device. In Linux, that&#8217;ll be /dev/sdd, /dev/sde, /dev/sdf, etc. A software layer (MPIO) is required to manage I/O across all the devices in an organized and sensible fashion.</p>
<p>While I&#8217;m a fairly big fan of the latest device-mapper-multipath MPIO layer in modern Linux variants, I find AoE&#8217;s multipath I/O method much, much better for the task of providing multiple paths to a storage device because it has incredibly low overhead to setup and manage. AoE&#8217;s implementation has the advantage that it doesn&#8217;t need to be everything to every storage subsystem, which fortunately or unfortunately device-mapper-multipath has to be.</p>
<p>The AoE Linux driver totally abstracts multiple paths in a way that iSCSI does not by handling all the multipath stuff internally. The host is only provided with a single device in /dev that is managed identically to any other non-multipath device. You don&#8217;t even need to configure the driver in any special way, just plug in the interfaces and go! That&#8217;s a long shot from what is necessary with MPIO layers and iSCSI.</p>
<p>There&#8217;s nothing wrong about device-mapper-multipath and it is quite flexible, but it certainly doesn&#8217;t have the simplicity of AoE&#8217;s multipath design.</p>
<h2>Enterprise Support</h2>
<p>Enterprise support is where iSCSI shines in this comparison. Show me a major storage vendor that doesn&#8217;t have at least one iSCSI device, even if they are just rebranded. Ok, maybe there are a few vendors out there without an iSCSI solution but for the most part all the big boys are flaunting some kind of iSCSI solution. NetApp, EMC, Dell, IBM, HDS and HP all have iSCSI solutions. On the other hand, AoE only has only a single visible company backing it at the commercial level: CORAID, a spin-off company started by Brantley Coile (yeah, the guy who invented the now-Cisco PIX and AoE). I&#8217;m starting to see some Asian manufacturers backing AoE on the hardware level but when it comes to your organization buying rack mount AoE compatible disk trays, CORAID is the only vendor I would suggest at this time.</p>
<p>This isn&#8217;t so fantastic for getting AoE into businesses but it&#8217;s a start. With AoE in the Linux kernel and Asian vendors packing AoE into chips things will likely pickup for AoE from an enterprise support point of view: It&#8217;s cheap, it&#8217;s simple and performance is good.</p>
<h2>Conclusion</h2>
<p>AoE rocks! iSCSI is pretty cool too, but I&#8217;ve certainly undergone much worse pain working with much more expensive iSCSI SAN devices vs the CORAID devices. And no performance benefit that I could realize with moderate to heavy file serving and light database workloads. I like AoE over iSCSI but there are plenty of reasons not to like it as well.</p>
<p>To each their own, I say.</p>
<p>Related posts:<ol>
<li><a href='http://techslaves.org/2010/09/08/migration-weekend-success/' rel='bookmark' title='Migration Weekend: Success'>Migration Weekend: Success</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://techslaves.org/2010/10/28/yet-another-aoe-vs-iscsi-opinion-yaavio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

