<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">

<channel>
	<title>Colocation to Virtualization</title>
	
	<link>http://blog.colovirt.com</link>
	<description>and linux between</description>
	<lastBuildDate>Tue, 03 Nov 2009 19:28:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain="blog.colovirt.com" port="80" path="/?rsscloud=notify" registerProcedure="" protocol="http-post" />
<image>
		<url>http://www.gravatar.com/blavatar/afd0d00d02b5abc67acf29066e3d1e3b?s=96&amp;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Colocation to Virtualization</title>
		<link>http://blog.colovirt.com</link>
	</image>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/colovirt" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Linux, IBM: WebSphere WAS and Partner Gateway Version 6.2 FixPack 1</title>
		<link>http://blog.colovirt.com/2009/11/03/linux-ibm-websphere-was-and-partner-gateway-version-6-2-fixpack-1/</link>
		<comments>http://blog.colovirt.com/2009/11/03/linux-ibm-websphere-was-and-partner-gateway-version-6-2-fixpack-1/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:28:42 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Middle Ware]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[websphere]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[partner gateway]]></category>
		<category><![CDATA[wpg]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[websphere application server]]></category>
		<category><![CDATA[websphere partner gateway]]></category>
		<category><![CDATA[fix pack]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[bcgStopServer.sh]]></category>
		<category><![CDATA[bcgStopServer]]></category>
		<category><![CDATA[bcgStartServer.sh]]></category>
		<category><![CDATA[cgStartServer]]></category>
		<category><![CDATA[Update Installer]]></category>
		<category><![CDATA[update.sh]]></category>
		<category><![CDATA[updateinstaller]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=646</guid>
		<description><![CDATA[Linux, IBM: WebSphere WAS and Partner Gateway Version 6.2 FixPack 1 Upgrade Notes<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=646&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is just a brief overview.  The installation process is pretty easy on these.  Same as with most patches, IBM UpdateInstaller &#8220;update.sh&#8221; was used to install the service &#8220;pak&#8221; files.  These patches must be done in order.  Patch the WAS installation before patching WPG.</p>
<p><strong>All WebSphere services must be stopped to install the WAS updates.  On a standard installation, bcguser must be used to stop the service</strong></p>
<pre>[bcguser@WPGhost ~]$/opt/IBM/bcghub-simple/bin/./bcgStopServer.sh</pre>
<p>We do not use &#8216;/opt&#8217; for our WebSphere location, so change this if yours is different.</p>
<p><strong>Next, use Update Installer to patch the WebSphere Application Server</strong><br />
<span id="more-646"></span>[user@WPGhost ~]$ sudo /opt/IBM/WebSphere/UpdateInstaller/./update.sh</p>
<p>There is a <strong>gotcha</strong> here that had me<strong> &#8220;chasing my tail&#8221;</strong> for about 10 minutes.  When going to install the WebSphere Partner Gateway fix pack, the Partner Gateway and WAS server must be started.  Installation of the update will fail with error &#8220;user input validation&#8221;.</p>
<p><strong>So before installing the WPG update, re-launch the Application Server and Partner Gateway</strong></p>
<pre>[bcguser@WPGhost ~]$ /opt/IBM/bcghub-simple/bin/./bcgStartServer.sh</pre>
<p><strong>Once done, launch IBM Update Installer again, passing the customized responce file for your environment.  This needs to be executed as the root user, so sudo was used to allow xforwarding from a non-root account</strong></p>
<pre>[user@WPGhost ~]$ sudo /opt/IBM/WebSphere/UpdateInstaller/./update.sh -options /opt/IBM/bcghub-simple/responsefiles/bcgupdate_en_US.txt</pre>
<p>Those are my miscellaneous notes about the update installation.  Everything went fine here and I hope this fixes some of the SFTP issues we have been having.<br />
<strong>This brings the WebSphere Partner Gateway Console form version 6.2.0.0.273 to 6.2.0.1.333</strong></p>
<p><strong>Notes: Here is the <a href="http://www-01.ibm.com/support/docview.wss?uid=swg27016776" target="_blank">link to IBM&#8217;s website</a> that lists the fixes that are provided in the update.</strong></p>
Posted in Linux, Middle Ware  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/646/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/646/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/646/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=646&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/AUrChTsvHEFOGwm4KGBfAHLzb-0/0/da"><img src="http://feedads.g.doubleclick.net/~a/AUrChTsvHEFOGwm4KGBfAHLzb-0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AUrChTsvHEFOGwm4KGBfAHLzb-0/1/da"><img src="http://feedads.g.doubleclick.net/~a/AUrChTsvHEFOGwm4KGBfAHLzb-0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/4HihuWhfAeo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/11/03/linux-ibm-websphere-was-and-partner-gateway-version-6-2-fixpack-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Oracle: IBM WebSphere Partner Gateway Oracle Gotcha</title>
		<link>http://blog.colovirt.com/2009/10/21/linux-oracle-ibm-websphere-partner-gateway-oracle-gotcha/</link>
		<comments>http://blog.colovirt.com/2009/10/21/linux-oracle-ibm-websphere-partner-gateway-oracle-gotcha/#comments</comments>
		<pubDate>Wed, 21 Oct 2009 08:49:33 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Middle Ware]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database user]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[partner gateway]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[patching]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[schema owner]]></category>
		<category><![CDATA[SID]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[websphere]]></category>
		<category><![CDATA[websphere application server]]></category>
		<category><![CDATA[websphere partner gateay]]></category>
		<category><![CDATA[wpg]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=629</guid>
		<description><![CDATA[Linux / Oracle: IBM WebSphere Partner Gateway Oracle Gotcha<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=629&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been wrestling around with IBM WebSphere Partner Gateway for a few weeks now.  There are so many tiny gotcahs out there that can affect the whole installation process.</p>
<p><strong>The main one that got me was integration with Oracle.    An overview of the installation steps are shown below:<br />
<span id="more-629"></span></strong></p>
<li>Install Oracle Client</li>
<li>Configure Oracle environment (SID, server)</li>
<li>Install WebSphere Application Server</li>
<li>Patch WebSphere Application Server</li>
<li>Install WebSphere Partner Gateway Application (apps) Database</li>
<li>Install WebSphere Partner Gateway</li>
<li>Patch WebSphere Partner Gateway</li>
<p>So the problem came down to the ‘Database owner name’ and ‘Schema owner login’ being the same.  This typically is not an issue.  The worst part is that the WAS (WebSphere Application Server) and WPG (WebSphere Partner Gateway) installation would both complete successfully.  Not only that, they system would run with no errors.</p>
<p>That being said, once I started the patching process, it would always fail.    So as a last resort, I tried changing the ‘Database user name’ and ‘Schema owner login’ to be different.    Thanks to DBA Eric&#8217;s recommendation.  This worked!<br />
<strong><br />
I decided to put this blog up because I could not find any useful information for this when searching.  The patching process is a pain and I might go into more details on it in more blogs later.  Anyone else ran into this issue?</strong></p>
Posted in Linux, Middle Ware  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/629/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/629/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/629/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=629&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/J8y78IGcTx7q7XEtb-Pz8GUjK9Y/0/da"><img src="http://feedads.g.doubleclick.net/~a/J8y78IGcTx7q7XEtb-Pz8GUjK9Y/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/J8y78IGcTx7q7XEtb-Pz8GUjK9Y/1/da"><img src="http://feedads.g.doubleclick.net/~a/J8y78IGcTx7q7XEtb-Pz8GUjK9Y/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/vtxQxzdGxO0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/21/linux-oracle-ibm-websphere-partner-gateway-oracle-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: User Account Expiration Management</title>
		<link>http://blog.colovirt.com/2009/10/20/linux-security-user-account-expiration-management/</link>
		<comments>http://blog.colovirt.com/2009/10/20/linux-security-user-account-expiration-management/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:00:33 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[account expiration]]></category>
		<category><![CDATA[accounts]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[chage]]></category>
		<category><![CDATA[expiration]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[password expires]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=625</guid>
		<description><![CDATA[Linux / Security: User Account Expiration Management<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=625&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am a firm believer in regular password rotation/change and Linux has a built in mechanism that makes it easy.  The following is a brief overview of password and account ageing for Linux based systems.</p>
<p><strong>The program that enables listing and modification on the expiration parameters is &#8216;chage&#8217;.  Each individual user can view their account settings as shown below.<br />
<span id="more-625"></span></strong>testuser@testServer:~$ chage -l testuser</p>
<pre>Last password change					: Aug 07, 2009
Password expires					: Nov 05, 2009
Password inactive					: never
Account expires						: Aug 05, 1992
Minimum number of days between password change		: 90
Maximum number of days between password change		: 90
Number of days of warning before password expires	: 7</pre>
<p><strong>As you can see above, the last password change date is listed, as well as the expiration date for the current password.  When executed from a non-privileged account, the user can only view their own account.</strong></p>
<pre>testuser@testServer:~$ chage -l root
chage: <strong>Permission denied</strong>.</pre>
<p><strong>Also, the non-privileged account can not change their settings either.</strong></p>
<pre>testuser@testServer:~$ chage -M 99 testuser
chage: Permission denied.</pre>
<p><strong>From the root account, you have to ability to modify all the settings for individual users.</strong></p>
<pre>root@testServer:~# chage
Usage: chage [options] [LOGIN]

Options:
  -d, --lastday LAST_DAY        set last password change to LAST_DAY
  -E, --expiredate EXPIRE_DATE  set account expiration date to EXPIRE_DATE
  -h, --help                    display this help message and exit
  -I, --inactive INACTIVE       set password inactive after expiration
                                to INACTIVE
  -l, --list                    show account aging information
  -m, --mindays MIN_DAYS        set minimum number of days before password
                                change to MIN_DAYS
  -M, --maxdays MAX_DAYS        set maximim number of days before password
                                change to MAX_DAYS
  -W, --warndays WARN_DAYS      set expiration warning days to WARN_DAYS</pre>
<p><strong>Before modification, I am going to turn off all expiration settings on the &#8216;testuser&#8217; account.  This is disabling password expiration on that individual account.</strong></p>
<pre>root@testServer:~# chage -E -1 -I -1 -m 0 -M 99999 testuser</pre>
<p><strong>No lets configure password aging for the test user.  The first example below runs change in interactive mode.</strong></p>
<pre>root@testServer:~# chage testuser
Changing the aging information for testuser
Enter the new value, or press ENTER for the default

	Minimum Password Age [0]:
	Maximum Password Age [99999]: 90
	Last Password Change (YYYY-MM-DD) [2009-10-16]:
	Password Expiration Warning [7]:
	Password Inactive [-1]:
	Account Expiration Date (YYYY-MM-DD) [1969-12-31]: 2012-12-31</pre>
<p><strong>Verify that the settings took.</strong></p>
<pre>root@testServer:~# chage -l testuser
Last password change					: Oct 16, 2009
Password expires					: Jan 14, 2010
Password inactive					: never
Account expires						: Dec 31, 2012
Minimum number of days between password change		: 0
Maximum number of days between password change		: 90
Number of days of warning before password expires	: 7</pre>
<p><strong>The same can be accomplished using the command line, non-interactively.</strong></p>
<pre>root@testServer:~# chage -E 2012-12-31 -I -1 -m 0 -M 90 -W 7 testuser</pre>
<p>With the above settings in place, the user should be warned 7 days before the password expires on their account.  If the password is not changed before expiration day, on the next login the user will be forced to change their password.</p>
Posted in Linux, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/625/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/625/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/625/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=625&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/UrY3_iO2MfMZryvBYae_W7Ifl58/0/da"><img src="http://feedads.g.doubleclick.net/~a/UrY3_iO2MfMZryvBYae_W7Ifl58/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/UrY3_iO2MfMZryvBYae_W7Ifl58/1/da"><img src="http://feedads.g.doubleclick.net/~a/UrY3_iO2MfMZryvBYae_W7Ifl58/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/5qS9NCAdqWI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/20/linux-security-user-account-expiration-management/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Storage:  Memory – Huge Pages Overview</title>
		<link>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/</link>
		<comments>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 14:39:16 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[Huge Pages]]></category>
		<category><![CDATA[hugepage]]></category>
		<category><![CDATA[hugepages]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[TLB]]></category>
		<category><![CDATA[Translation Lookaside Buffers]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtual memory]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=621</guid>
		<description><![CDATA[Linux / Storage:  Memory - Huge Pages Overview<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=621&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A page is really <strong>virtual memory</strong> which is managed by the<strong> Translation Lookaside Buffers(TLB)</strong> in the CPU.  The TLB controls the mapping of the virtual memory pages to physical memory addresses.  In doing so, it bypasses the kernel virtual memory manager.</p>
<p><strong>Per RedHat,</strong></p>
<blockquote><p><strong> The TLB is a limited hardware resource, so utilising a huge amount of physical memory with the default page size consumes the TLB and adds processing overhead &#8211; many pages of size 4096 Bytes equates to many TLB resources consumed.</strong></p></blockquote>
<p><span id="more-621"></span>This is where Huge Pages come in.  Pages are created at a larger size than the default 4096 bytes, and each page will consume only one TLB resource.  So you can see this is a huge benefit.  Using Huge Pages decrease the number of TLB resources required.</p>
<p><strong>Side Affect</strong><br />
This is great, depending on what you are trying to accomplish.  Once the physical memory is mapped to a Huge Page, it can no longer be used for &#8220;normal&#8221; memory allocation.  This is because the memory is no longer mapped by the kernel virtual memory manager.  The applications that you want to dedicate the Huge Pages to have to have support for them.</p>
<p><strong>Benefit</strong><br />
So here is the best part of Huge Pages.  It is dedicated memory to be used by only applications that request them.<strong> This dedicated memory is stored in physical RAM and will NEVER be swapped out! </strong>Thus, guaranteeing a level of performance.  When memory is swapped to disk, it&#8217;s a lot slower than RAM and decreases the performance of the process(s)/program(s) gets pushed there.</p>
<p>Now knowing that Huge Pages are stored in RAM, this also means that the allocated RAM is dedicated.  This is a little bit redundant to the above, but I want to make sure this point is clear.</p>
<p>Example: If a server has 8gigs of RAM and 5gigs are allocated to Huge Pages, that only leaves 3gigs for all other processes, programs, and underlining operating system to use.</p>
<p><strong>Below shows my Linux desktop that has the default page size of 4096 set</strong></p>
<pre>user@workstation:~$ cat /proc/meminfo | grep Huge
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       4096 kB</pre>
<p><strong>So as you can see, I have no Huge Pages reserved or in use.  The next example is from a production Oracle database server</strong></p>
<pre>[root@OracleServer1 ~]# cat /proc/meminfo | grep Huge
HugePages_Total: 12200
HugePages_Free:     85
Hugepagesize:     2048 kB</pre>
<p><strong>So to calculate the space dedicated to Huge Pages from above, it is 12,200 x 2048 kB which gives us</strong></p>
<pre><strong>24 985 600 kilobytes = 23.828125 gigabytes</strong></pre>
<p>In the 2.6x Linux kenel, Huge Pages are enabled using the CONFIG_HUGETLB_PAGE feature when compiling the kernel.  Most &#8220;Enterprise&#8221; Linux OSs by default have this enabled.  The ones that I know of are RedHat, CentOS, and possibly Fedora from version 4+.</p>
<p><strong>Notes:  Again, applications that you want to dedicate Huge Pages to must have support for them.  Most memory intensive ones do, but check for this first.</strong></p>
Posted in Filesystems, Linux  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/621/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/621/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/621/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=621&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/quqvnETDiGhPtBsCVPrjz2oUY7o/0/da"><img src="http://feedads.g.doubleclick.net/~a/quqvnETDiGhPtBsCVPrjz2oUY7o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/quqvnETDiGhPtBsCVPrjz2oUY7o/1/da"><img src="http://feedads.g.doubleclick.net/~a/quqvnETDiGhPtBsCVPrjz2oUY7o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/b5nS1ZNWmp8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/10/13/linux-storage-memory-huge-pages-overview/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: Encrypted External Drive Part 1 – Urandom</title>
		<link>http://blog.colovirt.com/2009/09/04/linux-security-encrypted-external-drive-part-1-urandom/</link>
		<comments>http://blog.colovirt.com/2009/09/04/linux-security-encrypted-external-drive-part-1-urandom/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:34:40 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[data protection]]></category>
		<category><![CDATA[encrypt]]></category>
		<category><![CDATA[encrypted filesystem]]></category>
		<category><![CDATA[external drive]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[raid 1]]></category>
		<category><![CDATA[raid1]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[urandom]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=613</guid>
		<description><![CDATA[Linux / Security: Encrypted External Drive Part 1 - Urandom<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=613&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So I am re-doing my external RAID 1 drive enclosure.  I love this little thing.  It has two 2.5 inch 160gig SATA drives in it.  The enclosure is connected via USB 2.0 but it does have an eSATA interface as well.  I will be configuring this to have a 10 gig non-encrypted partition. The remaining ~150 gigs will be an encrypted (LUKS) filesystem to be used on my linux machine.</p>
<p>All of this will not be detailed here but will be split up in 3 blogs.  Below just shows the time it takes to use Linux to overwrite the disk device using /dev/urandom.  This is done to make it just that much harder for a would be hacker to try and brute force the key on the encrypted partition.  If this is not done, the un-used space would just show up as empty, allowing for a more targeted attack against the pseudo random filesystem.  Being pseudo-random means that it is not truly random.  This being the case, with a lot of time and computing power, an attacker might be able to either brute force or find a pattern in the encryption.</p>
<p>So why not use /dev/random?  For me, this would take forever!  I do not have any special hardware or scripts pulling information from the environment and adding to the entropy pool.  The data on this drive not being national security grade, /dev/random will do the job.</p>
<p><strong>I know that the drive is under /dev/sdb.  With that information, it is as simple as using &#8220;dd&#8221; (built in Linux utility) to overwrite all blocks on the drive with pseudo-random data.</strong></p>
<pre>root@tstbox:~# dd if=/dev/urandom of=/dev/sdb
dd: writing to `/dev/sdb': No space left on device
312581810+0 records in
312581809+0 records out
160041886208 bytes (160 GB) copied, 40284.5 s, 4.0 MB/s</pre>
<p>From above, it tool 40,284.5 seconds to overwrite the drive with urandom data.  This equals ~11 hours and 19 minutes.  Definitely still a long time, but a lot faster than if /dev/random was used.</p>
<p><strong>This workstation is not an impressive computer.  It is a single CPU dual core machine with 2 gigs of ram.  Below is the info on one of the cores.</strong></p>
<pre>root@tstbox:~# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
stepping	: 2
cpu MHz		: 1867.000
cache size	: 2048 KB
physical id	: 0
siblings	: 2</pre>
<p><strong>Notes: I wish I could use /dev/random and probably will eventually when I can sit a drive out for a week.  Setting up external drives in this fashion is really geared towards data protection.  Not only are the drives in a mirrored RAID (one can fail and everything would still run fine), important data is encrypted using a strong key.  So who cares is the external enclosure walks away at a conference?  I would be out ~190$ but the data will be safe.</strong></p>
Posted in Linux, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/613/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/613/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/613/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=613&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/_iDjR8yL5V-Fr1TLT7pNJnIzi0A/0/da"><img src="http://feedads.g.doubleclick.net/~a/_iDjR8yL5V-Fr1TLT7pNJnIzi0A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_iDjR8yL5V-Fr1TLT7pNJnIzi0A/1/da"><img src="http://feedads.g.doubleclick.net/~a/_iDjR8yL5V-Fr1TLT7pNJnIzi0A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/61RgVizukH8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/09/04/linux-security-encrypted-external-drive-part-1-urandom/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Networking / SAN: Cisco MDS 9000 License Installation</title>
		<link>http://blog.colovirt.com/2009/09/03/networking-san-cisco-mds-9000-license-installation/</link>
		<comments>http://blog.colovirt.com/2009/09/03/networking-san-cisco-mds-9000-license-installation/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 19:06:45 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[cisco mds]]></category>
		<category><![CDATA[fiber switch]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[mds900]]></category>
		<category><![CDATA[mds9100]]></category>
		<category><![CDATA[mds9124]]></category>
		<category><![CDATA[port license]]></category>
		<category><![CDATA[san]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=611</guid>
		<description><![CDATA[Networking / SAN: Cisco MDS 9000 License Installation<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=611&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This one will be quick and easy!  Below is how to install a new port license on a Cisco MDS 9000 switch from the Cisco CLI (Command Line Interface).  Doing this does not remove the current license, just adds it to the configuration.  As always though, back up your configuration and make sure if there is a current license that you also have a backup copy of it.</p>
<p>First, make sure you put a copy of the license onto a tftp, ftp, or sftp server.  The MDS switch supports all of those protocols.  Here we will be using tftp.</p>
<p><span id="more-611"></span><strong>Copy the license from TFTP server to bootflash (persistent storage)</strong></p>
<pre>mds9124# copy tftp://172.0.0.1/MDS20090209112333135513.lic bootflash:
Trying to connect to tftp server......
|
 TFTP get operation was successful</pre>
<p><strong>Install the license</strong></p>
<pre>mds9124# install license bootflash:MDS20090209112333135513.lic
Installing license .......done</pre>
<p><strong><br />
Now that the new port license is installed we need to verify that it is working.  Below shows the default licensing that came with the unit.</strong></p>
<pre>mds9124# show license default
Feature                               Default License Count
-----------------------------------------------------------------------------
FM_SERVER_PKG                         -
ENTERPRISE_PKG                        -
PORT_ACTIVATION_PKG                   <strong>8</strong>
10G_PORT_ACTIVATION_PKG               0
-----------------------------------------------------------------------------</pre>
<p><strong>The new one contained licensing for an additional 8 ports.  Below you can see that now there are 16 ports licensed.</strong></p>
<pre>mds9124# show license usage
Feature                      Ins  Lic   Status Expiry Date Comments
                                 Count
--------------------------------------------------------------------------------
FM_SERVER_PKG                 No    -   Unused             -
ENTERPRISE_PKG                No    -   Unused             -
PORT_ACTIVATION_PKG           Yes  <strong>16</strong>   In use never       -
10G_PORT_ACTIVATION_PKG       No    0   Unused             -
-------------------------------------------------------------------------------</pre>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:0;width:1px;height:1px;">This one will be quick and easy!  Below is how to install a new port license on a Cisco MDS 9000 switch from the Cisco CLI (Command Line Interface).  Doing this does not remove the current license, just adds it to the configuration.  As always though, back up your configuration and make sure if there is a current license that you also have a backup copy of it.First, make sure you put a copy of the license onto a tftp, ftp, or sftp server.  The MDS switch supports all of those protocols.  Here we will be using tftp.Copy the license from TFTP server to bootflash (persistent storage)</p>
<pre>&lt;pre&gt;mds9124# copy tftp://172.0.0.1/MDS20090209112333135513.lic bootflash:
Trying to connect to tftp server......
|
TFTP get operation was successful&lt;/pre&gt;
Install the license
&lt;pre&gt;mds9124# install license bootflash:MDS20090209112333135513.lic
Installing license .......done&lt;pre&gt;</pre>
<p>Now that the new port license is installed we need to verify that it is working.  Below shows the default licensing that came with the unit.</p>
<pre>&lt;pre&gt;mds9124# show license default
Feature                               Default License Count
-----------------------------------------------------------------------------
FM_SERVER_PKG                         -
ENTERPRISE_PKG                        -
PORT_ACTIVATION_PKG                   8
10G_PORT_ACTIVATION_PKG               0
-----------------------------------------------------------------------------&lt;pre&gt;</pre>
<p>The new one contained licensing for an additional 8 ports.  Below you can see that now there are 16 ports licensed.</p>
<pre>&lt;pre&gt;mds9124# show license usage
Feature                      Ins  Lic   Status Expiry Date Comments
Count
--------------------------------------------------------------------------------
FM_SERVER_PKG                 No    -   Unused             -
ENTERPRISE_PKG                No    -   Unused             -
PORT_ACTIVATION_PKG           Yes  16   In use never       -
10G_PORT_ACTIVATION_PKG       No    0   Unused             -
-------------------------------------------------------------------------------&lt;/pre&gt;</pre>
</div>
Posted in Networking, SAN (Storage Area Network)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/611/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/611/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/611/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=611&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/-G2qg-C6sBaoS5iqbOJfNYMtm5o/0/da"><img src="http://feedads.g.doubleclick.net/~a/-G2qg-C6sBaoS5iqbOJfNYMtm5o/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-G2qg-C6sBaoS5iqbOJfNYMtm5o/1/da"><img src="http://feedads.g.doubleclick.net/~a/-G2qg-C6sBaoS5iqbOJfNYMtm5o/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/qBSujwgUkfk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/09/03/networking-san-cisco-mds-9000-license-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: Sudo ’sudo su -’ vs ’sudo -s’</title>
		<link>http://blog.colovirt.com/2009/08/18/linux-security-sudo-sudo-su-vs-sudo-s/</link>
		<comments>http://blog.colovirt.com/2009/08/18/linux-security-sudo-sudo-su-vs-sudo-s/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 19:34:18 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[root access]]></category>
		<category><![CDATA[su]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sudo -s]]></category>
		<category><![CDATA[sudo su -]]></category>
		<category><![CDATA[sudoers]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=607</guid>
		<description><![CDATA[Linux / Security: Sudo 'sudo su -' vs 'sudo -s'<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=607&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I always use &#8217;sudo su -&#8217; when I need to get to a root shell.  I have seen a few people before, and a new co-worker recently use &#8217;sudo -s&#8217;.  Since I could not remember off hand the actual differences between the two, I had to check.  The following will run through the actual limitations.</p>
<p><strong>The big difference when using &#8216;-s&#8217; are listed below<br />
<span id="more-607"></span><br />
</strong></p>
<li>This option reads the environment or password file for the shell to be executed.  Does not execute root shell!</li>
<li>All environment variables are passed over from the current account to the root account<strong>Per the Linux man page for sudo</strong><br />
-s  The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified inpasswd(5).</p>
<p><strong>Below is the typical sudo command when going to root</strong><br />
$ sudo su -</p>
<p><strong>Now that we are root, check the current environment variables.  Here we see that we are in the bash shell, which is different from the Korn (ksh) shell that the user was in.  Also note, the home directory is &#8216;/root&#8217;, and the &#8216;PATH&#8217; locations.</strong></p>
<pre>[root@testServ01 ~]# printenv
HOSTNAME=testServ01.testDomain.com
SHELL=/bin/bash
TERM=xterm
HISTSIZE=1000
USER=root
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/root
LANG=en_US.UTF-8
SHLVL=1
HOME=/root
LOGNAME=root
CVS_RSH=ssh
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=localhost:10.0
G_BROKEN_FILENAMES=1
_=/usr/bin/printenv</pre>
<p><strong>When &#8217;sudo su -&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, we are now in the root user home directory (/root)<br />
</strong>[root@testServ01 ~]# pwd<br />
/root</p>
<p><strong>Now that we have seen what &#8217;sudo su -&#8217; does, lets check out &#8217;sudo -s&#8217;.</strong><br />
$ sudo -s</p>
<p><strong>Time to check the current environment variables again.  Main things to note here are the home directory, PATH definition, and the SUDO_* variables.  This is definitely different then what was listed before.<br />
</strong># printenv<br />
_=/usr/bin/printenv</p>
<pre>DISPLAY=localhost:10.0
HISTSIZE=1000
HOME=/home/testuser01
HOSTNAME=testServ01.testDomain.com
INPUTRC=/etc/inputrc
LANG=en_US.UTF-8
LOGNAME=root
MAIL=/var/spool/mail/testuser01
PATH=/usr/bin:/bin
PWD=/home/testuser01
SHELL=/bin/ksh
SUDO_COMMAND=/bin/ksh
SUDO_GID=500
SUDO_UID=500
SUDO_USER=testuser01
TERM=xterm
USER=root
USERNAME=root</pre>
<p><strong>When &#8217;sudo -s&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, you can see that we are still in the same directory.<br />
</strong># pwd<br />
/home/testact</p>
<p><strong>Since the &#8216;PATH&#8217; variable was passed from the testuers01 shell to the sudo environment, the administrative tools directories (/sbin, /usr/sbin) are not listed.  This is not a huge issue, just more of a hassle if there were not passed from the user account.</strong></p>
<p><strong>Since this was the case for the test, I tried to issue &#8216;iptables&#8217; without the absolute path.  Per below, it failed. </strong></p>
<pre># iptables -L
/bin/ksh: iptables: not found [No such file or directory]</pre>
<p><strong>Since I do actually have root level access, when I issue the command with the absolute path it works fine</strong></p>
<pre># /sbin/iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere            

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
RH-Firewall-1-INPUT  all  --  anywhere             anywhere            

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination</pre>
<p><strong>To conclude &#8217;sudo -s&#8217;:</strong></li>
<li>does NOT change the shell</li>
<li>&#8216;PATH&#8217; does not change since root shell is not executed</li>
<li>carries over all environment variables from the non-privileged user<strong>
<p>Notes: So to be safe, I will still use &#8217;sudo su -&#8217; when needing root level access.  Seems that the &#8217;sudo -s&#8217; option would be a little more safe for some users.  Mainly due to the sbin locations not being in the &#8216;PATH&#8217;.  This would make the user execute most administrative commands using the full path to the executable, unless sbin(s) were exported.</strong></li>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:171px;width:1px;height:1px;">I always use &#8217;sudo su -&#8217; when I need to get to a root shell.  I have seen a few people before, and a new co-worker recently use &#8217;sudo -s&#8217;.  Since I could not remember off hand the actual differences between the two, I had to check.  The following will run through the actual limitations.</p>
<p>The big difference when using &#8216;-s&#8217; are listed below<br />
&lt;li&gt;This option reads the environment or password file for the shell to be executed.  Does not execute root shell!<br />
&lt;li&gt;All environment variables are passed over from the current account to the root account</p>
<p>Per the Linux man page for sudo<br />
&lt;pre&gt;-s  The -s (shell) option runs the shell specified by the SHELL environment variable if it is set or the shell as specified in<br />
passwd(5).&lt;/pre&gt;</p>
<p>Below is the typical sudo command when going to root<br />
&lt;pre&gt;$ sudo su -&lt;/pre&gt;</p>
<p>Now that we are root, check the current environment variables.  Here we see that we are in the bash shell, which is different from the Korn (ksh) shell that the user was in.  Also note, the home directory is &#8216;/root&#8217;, and the &#8216;PATH&#8217; locations.<br />
&lt;pre&gt;[root@testServ01 ~]# printenv<br />
HOSTNAME=testServ01.testDomain.com<br />
SHELL=/bin/bash<br />
TERM=xterm<br />
HISTSIZE=1000<br />
USER=root<br />
PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin<br />
INPUTRC=/etc/inputrc<br />
PWD=/root<br />
LANG=en_US.UTF-8<br />
SHLVL=1<br />
HOME=/root<br />
LOGNAME=root<br />
CVS_RSH=ssh<br />
LESSOPEN=|/usr/bin/lesspipe.sh %s<br />
DISPLAY=localhost:10.0<br />
G_BROKEN_FILENAMES=1<br />
_=/usr/bin/printenv&lt;/pre&gt;</p>
<p>When &#8217;sudo su -&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, we are now in the root user home directory (/root)<br />
&lt;pre&gt;[root@testServ01 ~]# pwd<br />
/root&lt;/pre&gt;</p>
<p>Now that we have seen what &#8217;sudo su -&#8217; does, lets check out &#8217;sudo -s&#8217;.<br />
&lt;pre&gt;$ sudo -s&lt;/pre&gt;</p>
<p>Time to check the current environment variables again.  Main things to note here are the home directory, PATH definition, and the SUDO_* variables.  This is definitely different then what was listed before.<br />
&lt;pre&gt;# printenv<br />
_=/usr/bin/printenv<br />
DISPLAY=localhost:10.0<br />
HISTSIZE=1000<br />
HOME=/home/testuser01<br />
HOSTNAME=testServ01.testDomain.com<br />
INPUTRC=/etc/inputrc<br />
LANG=en_US.UTF-8<br />
LOGNAME=root<br />
MAIL=/var/spool/mail/testuser01<br />
PATH=/usr/bin:/bin<br />
PWD=/home/testuser01<br />
SHELL=/bin/ksh<br />
SUDO_COMMAND=/bin/ksh<br />
SUDO_GID=500<br />
SUDO_UID=500<br />
SUDO_USER=testuser01<br />
TERM=xterm<br />
USER=root<br />
USERNAME=root&lt;/pre&gt;</p>
<p>When &#8217;sudo -s&#8217; was executed, we were in the testuser01 home directory (/home/testuser01).  After execution, you can see that we are still in the same directory.<br />
&lt;pre&gt;# pwd<br />
/home/testact&lt;/pre&gt;</p>
<p>Since the &#8216;PATH&#8217; variable was passed from the testuers01 shell to the sudo environment, the administrative tools directories (/sbin, /usr/sbin) are not listed.  This is not a huge issue, just more of a hassle if there were not passed from the user account.</p>
<p>Since this was the case for the test, I tried to issue &#8216;iptables&#8217; without the absolute path.  Per below, it failed.<br />
&lt;pre&gt;# iptables -L<br />
/bin/ksh: iptables: not found [No such file or directory]&lt;/pre&gt;</p>
<p>Since I do actually have root level access, when I issue the command with the absolute path it works fine<br />
&lt;pre&gt;# /sbin/iptables -L<br />
Chain INPUT (policy ACCEPT)<br />
target     prot opt source               destination<br />
RH-Firewall-1-INPUT  all  &#8211;  anywhere             anywhere</p>
<p>Chain FORWARD (policy ACCEPT)<br />
target     prot opt source               destination<br />
RH-Firewall-1-INPUT  all  &#8211;  anywhere             anywhere</p>
<p>Chain OUTPUT (policy ACCEPT)<br />
target     prot opt source               destination&lt;/pre&gt;</p>
<p>To conclude &#8217;sudo -s&#8217;:<br />
&lt;li&gt;does NOT change the shell<br />
&lt;li&gt;&#8217;PATH&#8217; does not change since root shell is not executed<br />
&lt;li&gt;carries over all environment variables from the non-privileged user</p>
<p>Notes: So to be safe, I will still use &#8217;sudo su -&#8217; when needing root level access.  Seems that the &#8217;sudo -s&#8217; option would be a little more safe for some users.  Mainly due to the sbin locations not being in the &#8216;PATH&#8217;.  This would make the user execute most administrative commands using the full path to the executable, unless sbin(s) were exported.</p></div>
Posted in Linux, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/607/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/607/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/607/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=607&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/-diel9ur97EGnzTUdxT03jzREYs/0/da"><img src="http://feedads.g.doubleclick.net/~a/-diel9ur97EGnzTUdxT03jzREYs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/-diel9ur97EGnzTUdxT03jzREYs/1/da"><img src="http://feedads.g.doubleclick.net/~a/-diel9ur97EGnzTUdxT03jzREYs/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/qkE_cS0peXM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/08/18/linux-security-sudo-sudo-su-vs-sudo-s/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Networking / SAN: Cisco MDS 9000 Serial Number (Licensing)</title>
		<link>http://blog.colovirt.com/2009/08/07/networking-san-cisco-mds-9000-serial-number-licensing/</link>
		<comments>http://blog.colovirt.com/2009/08/07/networking-san-cisco-mds-9000-serial-number-licensing/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 18:23:50 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[9100]]></category>
		<category><![CDATA[9124]]></category>
		<category><![CDATA[backplane]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[host-id]]></category>
		<category><![CDATA[hostid]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[licensing]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[mds]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[serial number]]></category>
		<category><![CDATA[sprom]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=603</guid>
		<description><![CDATA[Networking / SAN: Cisco MDS 9000 Serial Number (Licensing)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=603&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>So you need to find the serial number on your Cisco MDS 9000 series fiber switch?  This is easy enough, although &#8220;show serial number&#8221; would have been better.</p>
<p><strong>Quick way to find your serial number.</strong></p>
<pre>tstSwitch01# show license host-id
License hostid: VDH=SOZ115568P9</pre>
<p><strong><span id="more-603"></span>The following will also get the information that you need.  I truncated some of the output.  The serial number under the &#8220;Common block&#8221; is what we need.</strong></p>
<pre>tstSwitch01# show sprom backplane 1
DISPLAY backplane sprom contents:
Common block:
 EEPROM Size     : 1024
 Block Count     : 5
 FRU Major Type  : 0x6003
 FRU Minor Type  : 0x0
 OEM String      : Cisco Systems, Inc.
 Product Number  : DS-C9124-K9
 Serial Number   : <strong>SOZ115568P9</strong>
 Part Number     : 73-10565-03
 Part Revision   : A9
 Mfg Deviation   : 0
 H/W Version     : 1.0
 Mfg Bits        : 0
Chassis specific block:
 Block Signature : 0x5601
 MAC Addresses   : 00-0g-tr-46-n3-u6
 Number of MACs  : 64</pre>
<p><strong>This is a little easier to read.  Here, an include statement is passed to only return lines including &#8220;Serial&#8221;.  We need the first, not second serial number.</strong></p>
<pre>tstSwitch01# show sprom backplane 1 | include Serial
 Serial Number   : SOZ115568P9
Second Serial number specific block:
 Serial Number   : JFH2486G4DR</pre>
<p><strong>Notes:  All actual serial numbers were changed.  This process should be the same for all Cisco MDS 9000 series.  If using a chassis based MDS switch, make sure to verify if you need the serial of the unit or the actual blade module for licensing.</strong></p>
Posted in Networking, SAN (Storage Area Network)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/603/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=603&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/XO5aEuT__77z-9H_W0-7BulY3dE/0/da"><img src="http://feedads.g.doubleclick.net/~a/XO5aEuT__77z-9H_W0-7BulY3dE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XO5aEuT__77z-9H_W0-7BulY3dE/1/da"><img src="http://feedads.g.doubleclick.net/~a/XO5aEuT__77z-9H_W0-7BulY3dE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/vD79KeirXMU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/08/07/networking-san-cisco-mds-9000-serial-number-licensing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>VMWare: vSphere / ESX 4 Server Partitioning</title>
		<link>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/</link>
		<comments>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 19:07:07 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[/var/core]]></category>
		<category><![CDATA[best practices]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esx 4]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[partitioning]]></category>
		<category><![CDATA[vmkcore]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=596</guid>
		<description><![CDATA[VMWare: vSphere / ESX 4 Server Partitioning<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=596&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><strong>This will review the partitioning scheme that I am currently using for VMware vSphere (ESX 4).  For information concerning partitioning for VMware ESX 3.x, please refer to the following link:</strong></p>
<p><a href="http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/">http://blog.colovirt.com/2008/10/31/vmware-esx-server-partitioning/</a></p>
<p><strong>The majority of the partitioning structure is the same what was used for 3.x.  The only real changes is the fact that the installation process auto-creates two of the partitions that were to be manually created on 3.x.  Those two partitions are:</strong></p>
<li>/boot	(260mb)</li>
<li>vmkcore	(100mb)</li>
<p><strong><span id="more-596"></span>As in the 3.x structure, again I still maintain that creating a seperate mount point for /var/core should be used.  For the reasons stated below:From the 3.x post</strong></p>
<blockquote><p>&#8220;I have had a few servers core dump and drop over 5 gigs of data to /var/core.  Before, per &#8220;best practices&#8221; a vendor recommended around 4 gigs for /var.  I upped that to 6 gigs originally, but after 2 servers had /var 100% utilized I and revising that.  /var is still 6 gigs but /var/core has been broken out into its own mount point.  15 gigs is a little high, but these servers had raid 1 &#8211; 73 gig hard drives.  At least now if the servers core dump it will affect only its mount point.  I highly recommend doing this!&#8221;</p></blockquote>
<p><strong>Below is how I am partitioning vSphere 4 servers</strong></p>
<table border="0">
<tbody>
<tr>
<td>Mount Point</td>
<td>Size(m)</td>
<td>Partition type</td>
</tr>
<tr>
<td>/</td>
<td>10240</td>
<td>Primary</td>
</tr>
<tr>
<td>swap</td>
<td>1600</td>
<td>Primary *max</td>
</tr>
<tr>
<td>/var</td>
<td>6142</td>
<td>Extended</td>
</tr>
<tr>
<td>/var/core</td>
<td>15360</td>
<td>Extended</td>
</tr>
<tr>
<td>/opt</td>
<td>2048</td>
<td>Extended</td>
</tr>
<tr>
<td>/home</td>
<td>2048</td>
<td>Extended</td>
</tr>
<tr>
<td>/tmp</td>
<td>1024</td>
<td>Extended</td>
</tr>
</tbody>
</table>
<p><strong>Notes: <a href="http://www.yellow-bricks.com/2009/05/27/partitioning-your-esx-host-part-ii/">Yellow-Bricks</a> (Duncan Epping), as well as </strong><strong><a href="http://vmetc.com/2009/07/22/best-practices-for-vsphere-esx-4-service-console-partitions/">VMETC</a> have good articles as well.</strong></p>
<p><strong> </strong></p>
Posted in Filesystems, VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/596/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/596/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/596/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=596&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/f2KKBE6Xr_YMnfXMznPJ80vcKhE/0/da"><img src="http://feedads.g.doubleclick.net/~a/f2KKBE6Xr_YMnfXMznPJ80vcKhE/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/f2KKBE6Xr_YMnfXMznPJ80vcKhE/1/da"><img src="http://feedads.g.doubleclick.net/~a/f2KKBE6Xr_YMnfXMznPJ80vcKhE/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/seYy6IyqJ2E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Networking / Cisco: MDS 9000 Port Locating Using Beacon</title>
		<link>http://blog.colovirt.com/2009/06/09/networking-cisco-mds-9000-port-locating-using-beacon/</link>
		<comments>http://blog.colovirt.com/2009/06/09/networking-cisco-mds-9000-port-locating-using-beacon/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 08:31:45 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[beacon]]></category>
		<category><![CDATA[blinking LEDs]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[LED blink]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[locating]]></category>
		<category><![CDATA[mds]]></category>
		<category><![CDATA[mds 9000]]></category>
		<category><![CDATA[mds 9124]]></category>
		<category><![CDATA[port location]]></category>
		<category><![CDATA[switchport beacon]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=585</guid>
		<description><![CDATA[Networking / Cisco: MDS 9000 Port Locating Using Beacon.  Brief overview of how to locate specific ports by LEDs<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=585&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>We all like blink lights.  Well, maybe not all, but they are great for remote assistance at off-site datacenters.  All engineers are not equal and trying to talk some through locating an interface and changing a cable can sometimes be as efficient as banging your head against the wall.</p>
<p>If a cable change or SFP swap is all that is needed, than beaconing can help out!  Below is a quick run-though of enabling and disabling beaconing &#8220;blinky mode&#8221;.<br />
<span id="more-585"></span><strong>Before we enable beaconing, check the interface to verify the beacon status</strong></p>
<pre>mds9000# sh interface fc1/20 | inc Beacon
    Beacon is turned <strong>off</strong></pre>
<p><strong>Connect to the Cisco switch and move into configuration mode.</strong></p>
<pre>mds9000# config t
Enter configuration commands, one per line.  End with CNTL/Z.</pre>
<p><strong>Once in config mode, go into the specific port that needs to be located.</strong></p>
<pre>mds9000(config)# interface fc 1/20</pre>
<p><strong>General sub-parameters are listed below.</strong></p>
<pre>mds9000(config-if)# switchport ?
beacon        Disable/enable the beacon for an interface
description   Enter description of maximum 80 characters
encap         Configure encapsulation for the port
fcbbscn       Disable/enable buffer-to-buffer state change notification
fcrxbbcredit  Configure receive BB_credit for the port
fcrxbufsize   Configure receive data field size for the port
ignore        Enter parameter to be ignored
mode          Enter the port mode
rate-mode     Configure the rate mode for an interface
speed         Enter the port speed
trunk         Configure trunking parameters on an interface</pre>
<p><strong>Easy enough, tell the system to enable beacon.</strong></p>
<pre>mds9000(config-if)# switchport beacon</pre>
<p><strong>Exit config mode.</strong></p>
<pre>mds9000(config-if)# end</pre>
<p><strong>Re-check the interface to verify that beaconing is on</strong></p>
<pre>mds9000# sh interface fc1/20 | inc Beacon
    Beacon is turned <strong>on</strong></pre>
<p><strong>So now the LEDs below the port should be flashing pretty lights and easily be located by anyone.  Once the fiber/SFP swap is completed, go back into config mode and disable beaconing.</strong></p>
<pre>mds9000# config t
Enter configuration commands, one per line.  End with CNTL/Z.
mds9000(config)# interface fc 1/20
mds9000(config-if)# no switchport beacon
mds9000(config-if)# end

<strong>Or you can use the GUI.  The following image shows how to enable and disable beacon from Cisco Device Manager.  It's easy as right-clicking on the port and going to beacon.</strong>

<div id="attachment_592" class="wp-caption alignnone" style="width: 310px"><img class="size-medium wp-image-592" title="CiscoMDSBeacon" src="http://colovirt.files.wordpress.com/2009/06/ciscomdsbeacon.jpg?w=300&#038;h=168" alt="Beacon" width="300" height="168" /><p class="wp-caption-text">Beacon</p></div></pre>
<p><strong>Notes:  Pretty easy and basic command, but extremely useful!</strong></p>
<div id="_mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:98px;width:1px;height:1px;">Before we enable beaconing, check the interface to verify the beacon status&lt;pre&gt;mds9000# sh interface fc1/20 | inc Beacon</p>
<p>Beacon is turned off</p></div>
Posted in Networking, SAN (Storage Area Network)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/585/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/585/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/585/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=585&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/6nDTawWRWu7YD4vQTErtHVqix1I/0/da"><img src="http://feedads.g.doubleclick.net/~a/6nDTawWRWu7YD4vQTErtHVqix1I/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/6nDTawWRWu7YD4vQTErtHVqix1I/1/da"><img src="http://feedads.g.doubleclick.net/~a/6nDTawWRWu7YD4vQTErtHVqix1I/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/qakusJvDKKc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/06/09/networking-cisco-mds-9000-port-locating-using-beacon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>

		<media:content url="http://colovirt.files.wordpress.com/2009/06/ciscomdsbeacon.jpg?w=300" medium="image">
			<media:title type="html">CiscoMDSBeacon</media:title>
		</media:content>
	</item>
		<item>
		<title>SAN / Storage: Texas Memory RamSan 500</title>
		<link>http://blog.colovirt.com/2009/06/04/san-storage-texas-memory-ramsan-500/</link>
		<comments>http://blog.colovirt.com/2009/06/04/san-storage-texas-memory-ramsan-500/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 04:18:52 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[RamSan]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[dram]]></category>
		<category><![CDATA[dram cache]]></category>
		<category><![CDATA[io]]></category>
		<category><![CDATA[IOPS]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[ramsan]]></category>
		<category><![CDATA[ramsan 400]]></category>
		<category><![CDATA[ramsan 500]]></category>
		<category><![CDATA[solid state]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=575</guid>
		<description><![CDATA[SAN / Storage: Texas Memory RamSan 500<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=575&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>After spending a year using the a RamSan 400 which is a 128 gigabyte solid state DRAM system, I wondered how it could get better.  These things are pretty expensive and the only drawback I found to the 400 is the limited storage.  There&#8217;s not much that you can do with 128 gigs of storage!  Granted it served the initial function perfectly.  This was used to house our main production database.</p>
<p><span id="more-575"></span>About 4 months ago, we were looking to add another RamSan into our environment after deciding EMCs flash DAEs were not for us (at this time).  I was initially a little weary of flash based storage, but had faith in RamSan.  After reviewing the product literature more and getting some hands on with the unit, those worries are gone.  Our RamSan 500 was purchased with 2 terabytes of Flash storage and the DRAM write cache was expanded to 64 gigabytes.</p>
<p>With the write cache expansion, this new units cache was literally 1/2 the size of the current RamSan 400 DRAM capacity.  With this in place and the high IO that the flash disks can maintain, there has not been any noticeable speed differences between the two units.  The 500 also has an internal battery for power backup.  If power is lost, the battery will keep the unit going long enough to copy the cache&#8217;s un-written data to disk.</p>
<p>There are two main features that I love.  First is tha ability to lock a LUN on the 500 series into the cache, so even-though it is mainly a flash storage system, extreme IO can be accomplished.  By locking the lun in cache, the data will reside in RAM and never go to disk unless power is lost.  The second is the ability to centrally manage other RamSans on the network (auto discovered) with a specific license key.  Almost forgot to mention, the unit has quad 4 gigabit fiber connectivity.</p>
<p><strong>Notes:  If you have any questions, please ask!  Again, these units are amazing.</strong></p>
Posted in Hardware, RamSan, SAN (Storage Area Network)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/575/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/575/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/575/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=575&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/f0k2ie_mx48tRca8-YQl_61MH-A/0/da"><img src="http://feedads.g.doubleclick.net/~a/f0k2ie_mx48tRca8-YQl_61MH-A/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/f0k2ie_mx48tRca8-YQl_61MH-A/1/da"><img src="http://feedads.g.doubleclick.net/~a/f0k2ie_mx48tRca8-YQl_61MH-A/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/433wl2ScVFE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/06/04/san-storage-texas-memory-ramsan-500/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>SAN / EMC: Clariion CX4 Solid State DAEs (Shelves)</title>
		<link>http://blog.colovirt.com/2009/06/03/san-emc-clariion-cx4-solid-state-daes-shelves/</link>
		<comments>http://blog.colovirt.com/2009/06/03/san-emc-clariion-cx4-solid-state-daes-shelves/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 07:59:20 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cx4]]></category>
		<category><![CDATA[cx4-240]]></category>
		<category><![CDATA[dram]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[ramsan]]></category>
		<category><![CDATA[ramsan 500]]></category>
		<category><![CDATA[ransan 400]]></category>
		<category><![CDATA[solid state]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=570</guid>
		<description><![CDATA[SAN / EMC: Clariion CX4 Solid State DAEs (Shelves)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=570&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Going over the solid state offerings for the EMC Clariion lines, Texas Memory RamSans came into the conversation.  This was due to the fact that we currently run 2 RamSans in our Environment and consider them the highest tier storage in our datacenters.  One is 128 gigs of solid state DRAM storage and the other is 2 terabyte solid state Flash storage with a 64 gig DRAM cache.</p>
<p>Per the title, this is really about the EMC Clariion, not RamSans.  Since the RamSan 500 was fronted with the DRAM cache, and the EMC CX4 series contains cache as well, I was curious.  I already knew that each Service Processor (SP) in the EMC has 4 gig of cache, and that a LUN can only be active on one SP at a time.  Also, per a previous blog post, each DAE has a theoretical max throughput of 8 gigabit per second, 4 gigabit if a single LUN stripes across the whole shelf.</p>
<p><span id="more-570"></span>CX4 DAE (general) information<br />
<a title="CX4-DAE General Information" href="http://blog.colovirt.com/2009/05/29/san-emc-cx4-dae-drive-shelf-information/">http://blog.colovirt.com/2009/05/29/san-emc-cx4-dae-drive-shelf-information/</a></p>
<p>As the conversation continued, I was told that typically the Service Processors caching would be disabled on LUNS that reside on the solid state flash drives.  In all actuality, I think it should.  Being that the typical Clariion implementation will not be dedicated as a solid state SAN, they will have to co-mingle with spindle based hard drives(regular).  The throughput is a LOT faster and latency a lot lower on the flash drives.  Enabling SP caching on LUNs contained in flash could possibly have a really bad affect on the rest of the system.  Being that the cache really speeds up IO for spindle based disks.</p>
<p>Most vendors are toting a 20 physical disks(15kRPM) to 1 Flash disk consolidation</p>
<p>What I am getting at is there seems to be the possibility of flooding the Service Processors cache with flash based storage data, depending on change rate.  Since flash is a lot faster, their LUNs would typically be used for databases or high volume services.  Even with the ability to do QOS in the CX4 series, disabling Service Processor caching for the flash LUNS looks to be the best solution.</p>
Posted in EMC, Hardware, SAN (Storage Area Network)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/570/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/570/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/570/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=570&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/Xk_DKHj-nGyZpWhUqaFXwk8qP_Q/0/da"><img src="http://feedads.g.doubleclick.net/~a/Xk_DKHj-nGyZpWhUqaFXwk8qP_Q/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Xk_DKHj-nGyZpWhUqaFXwk8qP_Q/1/da"><img src="http://feedads.g.doubleclick.net/~a/Xk_DKHj-nGyZpWhUqaFXwk8qP_Q/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/w6fm0yYQBgY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/06/03/san-emc-clariion-cx4-solid-state-daes-shelves/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux / Security: Iptables CLI – List Rules Without DNS Resolution</title>
		<link>http://blog.colovirt.com/2009/06/02/linux-security-iptables-cli-list-rules-without-dns-resolution/</link>
		<comments>http://blog.colovirt.com/2009/06/02/linux-security-iptables-cli-list-rules-without-dns-resolution/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 13:13:12 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[chain]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[dns resolution]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[iptables -L -n]]></category>
		<category><![CDATA[iptales -L]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[reverse dns]]></category>
		<category><![CDATA[rule]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=565</guid>
		<description><![CDATA[Linux / Security: Iptables CLI - List Rules Without DNS Resolution<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=565&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This is quick and a little basic, but most people do not actually read the &#8220;man pages&#8221; or documentation.  The majority of the time, requests for access comes in specifying IP address instead of hostnames (FQDN).  I actually prefer this, but when doing a typical &#8220;iptables -L&#8221;, the reverse DNS is automatically checked for all IPs.<br />
<strong><br />
Most of the time I do not actually know the hostname that is associated and makes it hard to confirm the rule without doing a dns lookup on my own.  Below is the typical output of the command.<br />
<span id="more-565"></span></strong>[root@testserver ~]# iptables -L</p>
<pre>Chain Firewall-INPUT
(2 references)
target     prot opt source               destination
ACCEPT     tcp  --  mail.asdf.com        anywhere            tcp dpt:ssh
ACCEPT     tcp  --  static.123.net       anywhere            tcp dpt:ssh
ACCEPT     tcp  --  private.9z.com       anywhere            tcp dpts:ftp-data:ftp
ACCEPT     tcp  --  nto.ntpgr.com        anywhere            tcp dpts:ftp-data:ftp</pre>
<p>Iptables has a built in option to disable DNS resolution.  This is done by passing &#8220;-n&#8221; in conjunction with &#8220;-L&#8221; and shown below.</p>
<pre>[root@testserver ~]# iptables -L -n
Chain Firewall-INPUT
(2 references)
target     prot opt source               destination
ACCEPT     tcp  --  10.1.129.119         0.0.0.0/0           tcp dpt:22
ACCEPT     tcp  --  172.168.22.87        0.0.0.0/0           tcp dpt:22
ACCEPT     tcp  --  172.33.100.2         0.0.0.0/0           tcp dpts:ftp-data:ftp
ACCEPT     tcp  --  10.90.15.104         0.0.0.0/0           tcp dpts:ftp-data:ftp</pre>
<p>Above you can see how easy it would be to verify the rules now without knowing the hostname or performing a lookup on your own.</p>
<p><strong>Notes:  The iptables output was edited to remove non-relevant information and all IPs/hostnames were changed.</strong></p>
Posted in Linux, Networking, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=565&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/AmgYiROk_QiNJRJZJCVKuy6pM1E/0/da"><img src="http://feedads.g.doubleclick.net/~a/AmgYiROk_QiNJRJZJCVKuy6pM1E/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/AmgYiROk_QiNJRJZJCVKuy6pM1E/1/da"><img src="http://feedads.g.doubleclick.net/~a/AmgYiROk_QiNJRJZJCVKuy6pM1E/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/q_0xXHwIE00" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/06/02/linux-security-iptables-cli-list-rules-without-dns-resolution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>VMware/Linux/ESXi: Running ESX4i From Bootable USB</title>
		<link>http://blog.colovirt.com/2009/06/01/vmwarelinuxesxi-running-esx4i-from-bootable-usb/</link>
		<comments>http://blog.colovirt.com/2009/06/01/vmwarelinuxesxi-running-esx4i-from-bootable-usb/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 08:00:14 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[boot usb]]></category>
		<category><![CDATA[dd.memory stick]]></category>
		<category><![CDATA[esx4i]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[esxi v4]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[rackable systems]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[VMware-VMvisor-big]]></category>
		<category><![CDATA[VMware-VMvisor-big-164009-x86_64.dd.bz]]></category>
		<category><![CDATA[VMware-VMvisor-big-164009-x86_64.dd.bz2]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=559</guid>
		<description><![CDATA[VMware/Linux/ESXi: Running ESX4i From Bootable USB. <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=559&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I like running ESXi via booting from USB 2.0 memory sticks.  This makes it that much easier for my home lab.  Especially since I mainly use ISCSI VMFS datastores.  Not to mention that &#8220;in a pinch&#8221;, having ESXi on memory sticks can aide in disaster recovery (DR) scenarios for small businesses.  Of course the requirement here is that the server MUST be able to boot from USB!  Also, get a big memory stick.  Each time an upgrade is performed to ESXi, the version being upgraded from is still stored on the memory stick in case a &#8220;roll back&#8221; is needed.  At least this is my understanding.  Larger memory sticks are pretty cheap now.  Below outlines the steps to creating a bootable ESX4i memory stick.  The main reason for me writing this up is that the process turns out to be different from ESX3i.</p>
<p><span id="more-559"></span>Even though this is being done using Linux, the directory structure and location of data files will be helpful in doing this from Windows.</p>
<p>Below is a link to Yellow Bricks (Duncan Epping) VMware blog.  He goes through the process of creating the USB boot device for Windows.  If you are doing this from Linux, continue on from this section.<br />
<a title="Yellow Bricks - Windows ESXi USB" href="http://www.yellow-bricks.com/2009/06/09/vsphere-esxi-on-a-usb-memory-stick/">http://www.yellow-bricks.com/2009/06/09/vsphere-esxi-on-a-usb-memory-stick/</a></p>
<p><strong>Create a temporary mount point where the downloaded ESX4i ISO will be placed</strong></p>
<pre>root@laptop:~# mkdir /mnt/temp</pre>
<p><strong>Next, &#8220;mount -o loop&#8221; is used to mount the ISO to the /mnt/tmp location.  Using the loop option, it allows us to view and traverse the ISOs structure.</strong></p>
<pre>root@laptop:~# mount -o loop /home/user01/Desktop/VMware-VMvisor-Installer-4.0.0-164009.x86_64.iso /mnt/temp</pre>
<p><strong>Change into the temp directory and check the contents</strong></p>
<pre>root@laptop:~# cd /mnt/temp
root@laptop:/mnt/temp# ls
boot.cat    ienviron.tgz  isolinux.bin  menu.c32    vmkboot.gz
cimstg.tgz  image.tgz     isolinux.cfg  README.txt  vmkernel.gz
cim.vgz     install.tgz   mboot.c32     sys.vgz</pre>
<p><strong>For ESX4i, the file that actually contains what we need is image.tgz.  I created the &#8220;/root/build/vi4&#8243; subdirectory for building this configuration.  the tgz file is copied there shown below since /mnt/tmp is read only.</strong></p>
<pre>root@laptop:/mnt/temp# cp image.tgz /root/build/vi4</pre>
<p><strong>Move into the vi4 directory and verify the file was copied</strong></p>
<pre>root@laptop:/mnt/temp# cd /root/build/vi4
root@laptop:~/build/vi4# ls
image.tgz</pre>
<p><strong>Un-compress and extract the contents of image.tgz into the current directory</strong></p>
<pre>root@laptop:~/build/vi4# tar -xzvf image.tgz
usr/
usr/lib/
usr/lib/vmware/
usr/lib/vmware/installer/
usr/lib/vmware/installer/VMware-VMvisor-big-164009-x86_64.dd.bz2</pre>
<p><strong>Above lists the directories and files created when the contents were extracted.  So we see that the dd file was listed in the output.</strong></p>
<p><strong>Move into the directory containing the dd file and list the contents</strong></p>
<pre>root@laptop:~/build/vi4# cd usr/lib/vmware/installer/
root@laptop:~/build/vi4/usr/lib/vmware/installer# ls
VMware-VMvisor-big-164009-x86_64.dd.bz2</pre>
<p><strong>Here, bunzip2 is used to de-compress the VMware-VMvisor-big-164009-x86_64.dd.bz2 file.  This took about 10 minutes on a slow laptop.</strong></p>
<pre>root@laptop:~/build/vi4/usr/lib/vmware/installer# bunzip2 -d VMware-VMvisor-big-164009-x86_64.dd.bz2</pre>
<p><strong>Now we can see the fully decompressed dd file, which is almost 1 gig in size.</strong></p>
<pre>root@laptop:~/build/vi4/usr/lib/vmware/installer# ls -lah
total 901M
drwxr-xr-x 2 201 201 4.0K 2009-05-25 15:16 .
drwxr-xr-x 3 201 201 4.0K 2009-04-30 22:08 ..
-rw-r--r-- 1 201 201 900M 2009-04-30 22:11 VMware-VMvisor-big-164009-x86_64.dd</pre>
<p>I already removed all of the partitions from the memory stick being used here.  I used gparted to accomplish this, but fdisk can be used as well.  Once the memory stick to be used is connected, check /var/log/messages to see what device has been assigned to the memory stick.</p>
<p><strong>Here, I already knew that /dev/sdb was assigned to the USB memory stick.  The &#8220;dd&#8221; command thats standard on Linux is used to identically copy the VMware-VMvisor file to the memory stick.</strong></p>
<pre>root@laptop:~/build/vi4/usr/lib/vmware/installer# dd if=VMware-VMvisor-big-164009-x86_64.dd of=/dev/sdb
9-x86_64.dd of=/dev/sdb
1843200+0 records in
1843200+0 records out
943718400 bytes (944 MB) copied, 322.119 s, 2.9 MB/s</pre>
<p>Once this was complete, the USB memory stick was ready to go.  I went over to the server, attached it, and ESX4i was immediately booted with no issues.  Configure the management IP and user from the console and you are ready to go! The same process needs to be repeated for each memory stick that needs to be created.  You could just use &#8220;dd&#8221; to copy the ESXi memory stick to another memory stick, but that would take longer.</p>
<p><strong>Notes: When mounting an ISO in loop mode, you will not be able to write the the directory structure or modify files located there.  It is read only.</strong></p>
<p>Comment or email me if you have any questions. kevin@colovirt.com</p>
Posted in Linux, VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/559/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/559/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/559/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=559&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/w7PD6UWLDyS3gkyIEhFDzsUn5J4/0/da"><img src="http://feedads.g.doubleclick.net/~a/w7PD6UWLDyS3gkyIEhFDzsUn5J4/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/w7PD6UWLDyS3gkyIEhFDzsUn5J4/1/da"><img src="http://feedads.g.doubleclick.net/~a/w7PD6UWLDyS3gkyIEhFDzsUn5J4/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/jTWXaMzBJQQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/06/01/vmwarelinuxesxi-running-esx4i-from-bootable-usb/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
		<item>
		<title>SAN / EMC: CX4 DAE (Drive Shelf) Information</title>
		<link>http://blog.colovirt.com/2009/05/29/san-emc-cx4-dae-drive-shelf-information/</link>
		<comments>http://blog.colovirt.com/2009/05/29/san-emc-cx4-dae-drive-shelf-information/#comments</comments>
		<pubDate>Sat, 30 May 2009 02:34:19 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[4g]]></category>
		<category><![CDATA[bus]]></category>
		<category><![CDATA[cx4]]></category>
		<category><![CDATA[cx4-240]]></category>
		<category><![CDATA[dae]]></category>
		<category><![CDATA[disks]]></category>
		<category><![CDATA[lcc]]></category>
		<category><![CDATA[link control card]]></category>
		<category><![CDATA[loop.interconnect]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[serice processor]]></category>
		<category><![CDATA[shelf]]></category>
		<category><![CDATA[spa]]></category>
		<category><![CDATA[spb]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=554</guid>
		<description><![CDATA[AN / EMC: CX4 DAE (Drive Shelf) Information<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=554&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>This will not get very detailed, but I figured I would share the following information.  In light of not being happy with the typical &#8220;each shelf has a 4 Gig interconnect&#8221; statement, I kept checking until there was a better answer.  So, anyone working with EMC SANs typically knows that every shelf is connected to each SP (Service Processor &#8211; 2 per SAN), daisy chained in a specific loop, and assigned a shelf id.  Next is the LCC.</p>
<p><span id="more-554"></span>Each DAE contains 2 LCC interfaces.  LCC is the acronymn for &#8220;Link Control Card&#8221;.  Typically one LCC goes to each Service Processor.  So that means that each DAE has two 4 gig links for a total of 8gb theoretical throughput.</p>
<p>This is where I will be reading more information.  Just because you have 2 LCC cards, each LUN can only be assigned to 1 Service Processor!  If my theory is correct, that means if all drives in one shelf is dedicated to a single LUN, and that LUN can only be active on one SP, does that mean that the actual throughput will be limited to 4gb instead of 8?  This being due to the other LCC loop being connected to the SP that is not assigned control of that LUN.</p>
<p>Any thoughts?  Feel free to comment!</p>
Posted in EMC, Hardware, SAN (Storage Area Network)  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/554/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/554/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/554/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=554&subd=colovirt&ref=&feed=1" /></div>
<p><a href="http://feedads.g.doubleclick.net/~a/W-tVteIOnS-IryborpzOSxhmPZw/0/da"><img src="http://feedads.g.doubleclick.net/~a/W-tVteIOnS-IryborpzOSxhmPZw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/W-tVteIOnS-IryborpzOSxhmPZw/1/da"><img src="http://feedads.g.doubleclick.net/~a/W-tVteIOnS-IryborpzOSxhmPZw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/colovirt/~4/w6Tpb2aijbg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/05/29/san-emc-cx4-dae-drive-shelf-information/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
	</channel>
</rss>
