<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Colocation to Virtualization</title>
	<atom:link href="http://blog.colovirt.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.colovirt.com</link>
	<description>and linux between</description>
	<lastBuildDate>Wed, 03 Mar 2010 20:31:00 +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&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>Colocation to Virtualization</title>
		<link>http://blog.colovirt.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.colovirt.com/osd.xml" title="Colocation to Virtualization" />
	<atom:link rel='hub' href='http://blog.colovirt.com/?pushpress=hub'/>
		<item>
		<title>Linux, Networking, Security: Get Remote SSL Certificate From Command Line</title>
		<link>http://blog.colovirt.com/2010/03/03/linux-networking-security-get-remote-ssl-certificate-from-command-line/</link>
		<comments>http://blog.colovirt.com/2010/03/03/linux-networking-security-get-remote-ssl-certificate-from-command-line/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 20:31:00 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Middle Ware]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[443]]></category>
		<category><![CDATA[ca]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[certificate authority]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[s_client]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=676</guid>
		<description><![CDATA[Linux, Networking, Security: Get Remote SSL Certificate From Command Line<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=676&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Easy way to get the SSL certificate of a server from the command line in Linux.  The nice thing about it is that you get the full certificate chain.  Nice for troubleshooting issues.  After the &#8220;-connect&#8221;, specify the host and port you want to connect to.  TCP port 443 is the default https port. </strong></p>
<pre>[user1@testserver ~]$ openssl s_client -connect mail.google.com:443
<span id="more-676"></span>
CONNECTED(00000003)
---
Certificate chain
 0 s:/C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com
   i:/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
 1 s:/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
   i:/C=US/O=VeriSign, Inc./OU=Class 3 Public Primary Certification Authority
---
Server certificate
-----BEGIN CERTIFICATE-----
MIIDIjCCAougAwIBAgIQHxn23jXdY6FCkYrVLMCrEjANBgkqhkiG9w0BAQUFADBM
MQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg
THRkLjEWMBQGA1UEAxMNVGhhd3RlIFNHQyBDQTAeFw0wOTEyMTgwMDAwMDBaFw0x
MTEyMTgyMzU5NTlaMGkxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlh
MRYwFAYDVQQHFA1Nb3VudGFpbiBWaWV3MRMwEQYDVQQKFApHb29nbGUgSW5jMRgw
FgYDVQQDFA9tYWlsLmdvb2dsZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJ
AoGBANknyBHye+RFyUa2Y3WDsXd+F0GJgDjxRSegPNnoqABL2QfQut7t9CymrNwn
E+wMwaaZF0LmjSfSgRSwS4L6ssXQuyBZYiijlrVh9nbBbUbS/brGDz3RyXeaWDP2
BnYyrVFfKV9u+BKLrebFCDmzQ0OpW5Ed1+PPUd91WY6NgKtTAgMBAAGjgecwgeQw
DAYDVR0TAQH/BAIwADA2BgNVHR8ELzAtMCugKaAnhiVodHRwOi8vY3JsLnRoYXd0
ZS5jb20vVGhhd3RlU0dDQ0EuY3JsMCgGA1UdJQQhMB8GCCsGAQUFBwMBBggrBgEF
BQcDAgYJYIZIAYb4QgQBMHIGCCsGAQUFBwEBBGYwZDAiBggrBgEFBQcwAYYWaHR0
cDovL29jc3AudGhhd3RlLmNvbTA+BggrBgEFBQcwAoYyaHR0cDovL3d3dy50aGF3
dGUuY29tL3JlcG9zaXRvcnkvVGhhd3RlX1NHQ19DQS5jcnQwDQYJKoZIhvcNAQEF
BQADgYEAicju7fexy+yRP2drx57Tcqo+BElR1CiHNZ1nhPmS9QSZaudDA8jy25IP
VWvjEgaq13Hro0Hg32ZNVK53qcXwjWtnCAReojvNwj6/x1Ciq5B6D7E6eiYDSfXJ
8/a2vR5IbgY89nq+wuHaA6vspH6vNR848xO3z1PQ7BrIjnYQ1A0=
-----END CERTIFICATE-----
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com issuer=/C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA
---
No client certificate CA names sent
---
SSL handshake has read 1778 bytes and written 316 bytes
---
New, TLSv1/SSLv3, Cipher is AES256-SHA
Server public key is 1024 bit
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : AES256-SHA
    Session-ID: DEB23CF699255054E08F69181B2342E9F6D6DF0D02B399C36034E0D8BE18AC0C
    Session-ID-ctx:
    Master-Key: D696A99CEC2FDD9535FE2EC936531AD129FD97E56441E37AE7A143C40304E395EA7DA039797B948B009B42DA5377E668
    Key-Arg   : None
    Krb5 Principal: None
    Start Time: 1267560715
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)
---
HTTP/1.0 400 Bad Request
Content-Type: text/html; charset=UTF-8
Content-Length: 1350
Date: Tue, 02 Mar 2010 20:11:57 GMT
Server: GFE/2.0
X-XSS-Protection: 0
</pre>
<br />Filed under: <a href='http://blog.colovirt.com/category/linux/'>Linux</a>, <a href='http://blog.colovirt.com/category/middle-ware/'>Middle Ware</a>, <a href='http://blog.colovirt.com/category/networking/'>Networking</a>, <a href='http://blog.colovirt.com/category/security/'>Security</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/676/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/676/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/676/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=676&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/03/03/linux-networking-security-get-remote-ssl-certificate-from-command-line/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>Storage, Network: What I have Been Doing (EMC,Cisco UCS)</title>
		<link>http://blog.colovirt.com/2010/03/02/storage-network-what-i-have-been-doing-emccisco-ucs/</link>
		<comments>http://blog.colovirt.com/2010/03/02/storage-network-what-i-have-been-doing-emccisco-ucs/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 19:41:19 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[EMC]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[RamSan]]></category>
		<category><![CDATA[SAN (Storage Area Network)]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[5010]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[cx3]]></category>
		<category><![CDATA[cx4]]></category>
		<category><![CDATA[cx500]]></category>
		<category><![CDATA[dae]]></category>
		<category><![CDATA[fabric exteder]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[nexus]]></category>
		<category><![CDATA[ramsan]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[ucs]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=671</guid>
		<description><![CDATA[Storage, Network: What I have Been Doing (EMC,Cisco UCS)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=671&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">This is more of an informational update of things that I have going on right now.  I normally do not publish day-to-day type of things, but here we go.</div>
<div id="_mcePaste"><strong><br />
Storage</strong></div>
<div id="_mcePaste">We have received both replacement drives for our EMC Clariion CX340 and four new DAEs (disk shelves) for our CX4-240</div>
<div id="_mcePaste"><strong><br />
Clariion CX3</strong></div>
<div id="_mcePaste">The CX3 was originally bought to speed up our Oracle implementation.  This was accomplished by ordering lots of fast disks (spindles) that were small.  We wound up with 6 DAEs filled with 73gig 15kRPM disks, totalling 90 dedicated drives for Oracle.</div>
<div></div>
<div>This was great for the original purpose but the unit was replaced a year after initial deployment with a RamSan and EMC CX4.  Having been decommissioned from production and moved to the tier 2 site, the need for space over IOPS (speed) drastically increased.  Trying to keep performance and space requirements in balance, the decision has been made to go with a smaller RamSan for Oracle at the tier 2 site.  This gives us the ability to replace the small 73 gigabyte drives with bigger 600 gigabyte 10kRPM disks.  Replacing those disk with the same quantity of 600 gig ones will give us ~8 times as much space.</div>
<div id="_mcePaste"><span id="more-671"></span></div>
<div></div>
<div>The RamSan will almost double the IOPS capacity that the CX3 is able to achieve and speed up our data warehouse even more.</div>
<div id="_mcePaste"><strong><br />
Clariion CX4</strong></div>
<div id="_mcePaste">So last year we went with implementing EMC Recoverpoint SAN based replication.  This has been great and served us well!  The only downfall was that we were doing &#8220;CRR&#8221; remote replication only.  In a case of a failure and data needed to be recovered, there were no local copies.  The snapshot or &#8220;point in time&#8221; would have to be loaded from the tier 2 site and transferred across the datacenter interconnect.  The interconnect being 150 megs slowed this process down.</div>
<div></div>
<div>As planned from the beginning, we are implementing &#8220;CLR&#8221; local replication as well.  This means that there will be a local copy of snapshots saved locally to the CX4.  This will give us almost immediate access to the snapshots without being slowed down by the interconnect.  The problem with RecoverPoint is that if you have a terrabyte LUN that you want to connect, you must have an extra terrabyte worth of space to save it.  This is not really a problem, but a major consideration on the number of drives to buy and the overall expense of the implementation.</div>
<div></div>
<div>In our case, a terrabyte oracle LUN will wind up costing 3 terrabytes in the end.  1 terrabyte for the original data, 1 terrabyte for the local copy (CLR), and 1 terrabyte at the remote tier 2 site (CX3).</div>
<div></div>
<div>Our virtualization effort is continuing and this is another huge factor on the storage expansion.  Currently we have 16 LUNs dedicated to the VMware environment.  Each is 320 gigs in size.  Moving forward, we will be doing a virtual desktop deployment as well.  The leftover ~400 gigs will not cut it.  So in the new 60 disks, 15 or more will have to be dedicated to VMware.</div>
<div id="_mcePaste"><strong><br />
Cisco UCS</strong></div>
<div id="_mcePaste">We have begun our UCS voyage.  As of last weekend, we did a &#8220;rip and replace of our network&#8221;.  This included rewiring the main network rack and configuring a new network core.  Also, the Cisco Nexus 5010, 10 gigabit Ethernet switches are in.  Uplinked to them are two 48 port gigabit fabric extenders.</div>
<div></div>
<div>The VMware environment is now connected via dual 10gigE links per server through this infrastructure.  Reducing the cable count from 6 to 2 per server.  So far verything is stable!  A purchase order has been sent out and we should hopefully have two Cisco UCS Blade chassis and switching infrastructure show up within about 30 days.</div>
<br />Filed under: <a href='http://blog.colovirt.com/category/san-storage-area-network/emc-san-storage-area-network/'>EMC</a>, <a href='http://blog.colovirt.com/category/networking/'>Networking</a>, <a href='http://blog.colovirt.com/category/san-storage-area-network/ramsan-san-storage-area-network/'>RamSan</a>, <a href='http://blog.colovirt.com/category/san-storage-area-network/'>SAN (Storage Area Network)</a>, <a href='http://blog.colovirt.com/category/vmware/'>VMWare</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/671/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/671/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/671/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=671&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/03/02/storage-network-what-i-have-been-doing-emccisco-ucs/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>VMware, Linux: Install VMware Tools On RedHat Based Systems</title>
		<link>http://blog.colovirt.com/2010/01/12/vmware-linux-install-vmware-tools-on-redhat-based-systems/</link>
		<comments>http://blog.colovirt.com/2010/01/12/vmware-linux-install-vmware-tools-on-redhat-based-systems/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 18:58:20 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[VMWare]]></category>
		<category><![CDATA[cdrom]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rh]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[rpm -i]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[vmware-config-tools]]></category>
		<category><![CDATA[vmware-config-tools.pl]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=662</guid>
		<description><![CDATA[VMware, Linux: Install VMware Tools On RedHat Based Systems<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=662&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p><strong>The following is a quick overview of installing VMware Tools on RedHat, CentOS, and Fedora systems.  Specifically for VMware ESX, ESXi, and vSphere systems.</strong></p>
<p><strong>First, go into the VMware console and right-click on the VM (Virtual Machine) that you are going to install VMware tools on.  Select &#8220;Install/Upgrade VMware Tools&#8221; option from the list.  Below is a screen shot of the menu.</strong><strong></p>
<div id="attachment_664" class="wp-caption alignnone" style="width: 252px"><strong><a href="http://colovirt.files.wordpress.com/2010/01/vmwtools.jpg"><img class="size-full wp-image-664" title="VMware Tools Menu" src="http://colovirt.files.wordpress.com/2010/01/vmwtools.jpg?w=242&#038;h=451" alt="" width="242" height="451" /></a></strong><p class="wp-caption-text">VMware Tools Menu</p></div>
<p><span id="more-662"></span>By default, most CDROM devices are symbolically linked to /dev/cdrom by the operating system.</strong></p>
<p>Just in case, you can search the messages file to see the actual device.  This is needed only if /dev/cdrom is not automatically linked or you have setup multiple cdrom devices on the VM (Virtual Machine).</p>
<pre>[root@RHserver01 media]# cat /var/log/messages | grep CDROM
Jan 10 10:59:03 RHserver01 kernel: hda: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive</pre>
<p><!--more--><strong>From above, you can see that the actual device is hda, specifically /dev/hda.  If you are just curious you can do an &#8220;ll&#8221; on the /dev/cdrom device to see where is it linked to.  In this case again, it&#8217;s going to hda.</strong></p>
<pre>[root@RHserver01 ~]# ll /dev/cdrom
lrwxrwxrwx 1 root root 3 Jan 12 13:18 /dev/cdrom -&gt; hda</pre>
<p><strong>Mount the cdrom device to an empty or non-mounted point on the filesystem.  Here I use the defaultly present /media location.</strong></p>
<pre>[root@RHserver01 /]# mount /dev/cdrom /media/
mount: block device /dev/cdrom is write-protected, mounting read-only</pre>
<p><strong>Below we move into the /media location using &#8220;cd&#8221;.</strong></p>
<pre>[root@RHserver01 /]# cd /media/</pre>
<p><strong>&#8220;ls&#8221; is used to display what files are present.  Here we see both an RPM (native RedHat based OS package) and a gzip archive.  If you were installing VMware Tools on a non-RedHat derived distribution, you would use the .gz package.</strong></p>
<pre>[root@RHserver01 media]# ls
VMwareTools-3.5.0-143128.i386.rpm  VMwareTools-3.5.0-143128.tar.gz</pre>
<p><strong>Since we are on RedHat, this is simple.  Pass &#8220;-i&#8221; to the rpm command then the package name to be installed.</strong></p>
<pre>[root@RHserver01 media]# rpm -i VMwareTools-3.5.0-143128.i386.rpm</pre>
<p><strong>Immediately after installing the RPM, you might see the following errors to your console, or in /var/log/messages.</strong></p>
<pre>Jan 12 13:15:07 RHserver01 kernel: VFS: busy inodes on changed media or resized disk hda
Jan 12 13:15:07 RHserver01 kernel: VFS: busy inodes on changed media or resized disk hda</pre>
<p><strong>If you are getting these to the console, it makes it hard to continue working form the command line.  This is easy to stop.  First, cd out of the /media/ mount point</strong></p>
<pre>[root@RHserver01 ~]# cd ..</pre>
<p><strong>Next, unmount the cdrom device.  After doing so, the messages will stop</strong></p>
<pre>[root@RHserver01 ~]# umount /dev/cdrom</pre>
<p><strong>The &#8220;vmware-config-tools.pl&#8221; command must be ran from the VMware console.  Below is the output you would get if it was tried through a remote session (SSH).</strong></p>
<pre>[root@RHserver01 ~]# vmware-config-tools.pl

It looks like you are trying to run this program in a remote session. This
program will temporarily shut down your network connection, so you should only
run it from a local console session. Are you SURE you want to continue?
[no]
Please re-run this program from a local console shell.
Execution aborted.</pre>
<p><strong>There is a good reason for this.  vmware-config-tools.pl drops networking on the server to install the VMware network drives.  In doing so, you loose remote connectivity. </strong></p>
<p><strong>Below shows the actual output from vmware-config-tools.pl on the console</strong></p>
<pre>[root@RHserver01 ~]# vmware-config-tools.pl
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
Stopping VMware Tools services in the virtual machine:
   Guest operating system daemon:                          [  OK  ]
   Unmounting HGFS shares:                                 [  OK  ]
   Guest filesystem driver:                                [  OK  ]
   Guest memory manager:                                   [  OK  ]
Trying to find a suitable vmmemctl module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

Trying to find a suitable vmhgfs module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

Trying to find a suitable vmxnet module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

Trying to find a suitable vmblock module for your running kernel.

The module bld-2.6.18-8.el5-i686smp-RHEL5 loads perfectly in the running
kernel.

No X install found.

Starting VMware Tools services in the virtual machine:
   Switching to guest configuration:                       [  OK  ]
   Guest memory manager:                                   [  OK  ]
   Guest vmxnet fast network device:                       [  OK  ]
   DMA setup:                                              [  OK  ]
   Guest operating system daemon:                          [  OK  ]

The configuration of VMware Tools 3.5.0 build-143128 for Linux for this running
kernel completed successfully.

You must restart your X session before any mouse or graphics changes take
effect.

You can now run VMware Tools by invoking the following command:
"/usr/bin/vmware-toolbox" during an X server session.

To use the vmxnet driver, restart networking using the following commands:
/etc/rc.d/init.d/network stop
rmmod pcnet32
rmmod vmxnet
depmod -a
modprobe vmxnet
/etc/rc.d/init.d/network start

If you wish to configure any experimental features, please run the following
command: "vmware-config-tools.pl --experimental".

Enjoy,

--the VMware team</pre>
<p><strong>Notes: From my experience, restart of networking via init.d scripts or rebooting the server is always needed.  I personally always reboot the server to be safe. </strong></p>
<br />Posted in Linux, Networking, VMWare  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/662/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/662/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/662/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=662&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2010/01/12/vmware-linux-install-vmware-tools-on-redhat-based-systems/feed/</wfw:commentRss>
		<slash:comments>1</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/2010/01/vmwtools.jpg" medium="image">
			<media:title type="html">VMware Tools Menu</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux, Security, LDAP: Local Authentication Fallback</title>
		<link>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/</link>
		<comments>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/#comments</comments>
		<pubDate>Wed, 16 Dec 2009 17:49:33 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[failed to bind to LDA]]></category>
		<category><![CDATA[fallback]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[ldap.conf]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[local authentication]]></category>
		<category><![CDATA[nss_ldap]]></category>
		<category><![CDATA[openldap]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[rh]]></category>

		<guid isPermaLink="false">http://colovirt.wordpress.com/?p=658</guid>
		<description><![CDATA[Linux, Security, LDAP: Local Authentication Fallback When LDAP Is Unavailable<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=658&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>I have been setting up and integrating an LDAP authentication system into our infrastructure over the past few days.  This is just one small &#8220;got-cha&#8221; that I ran into.  The default setting in the OpenLDAP configuration (/etc/ldap.conf) is to continuously try reconnecting to the LDAP server on failure.  This is definitely not what I want to happen if we loose LDAP.  In this scenario, when connecting to the server via SSH, the session will hang and eventually timeout.  This even removes the ability to login with a local system account.<br />
<span id="more-658"></span><strong>Example of the timeout when LDAP server is down:</strong></p>
<pre>testuser@workstation4-l:~$ ssh test123@ldapclientsrv
Connection closed by 172.16.0.192</pre>
<p><strong>To begin, lets look at a typical error that you would get on the system if LDAP communication was down.</strong></p>
<pre>Dec 13 12:52:58 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:52:58 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 4 seconds)...
Dec 13 12:53:02 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:53:02 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 8 seconds)...
Dec 13 12:53:10 ldapServer sshd[15965]: nss_ldap: failed to bind to LDAP server ldap://127.0.0.16: Can't contact LDAP server
Dec 13 12:53:10 ldapServer sshd[15965]: nss_ldap: reconnecting to LDAP server (sleeping 16 seconds)...</pre>
<p><strong>As noted before, I was unable to login with a local account.  Turns out that the problem was with the default &#8220;bind_policy&#8221; in /etc/ldap.conf.  Per the document:</strong></p>
<pre># Reconnect policy: hard (default) will retry connecting to
# the software with exponential backoff, soft will fail
# immediately.
#bind_policy hard</pre>
<p><strong>This was changed to:</strong></p>
<pre>bind_policy soft</pre>
<p><strong>Once this was changed, I brought up the firewall on the LDAP server and refused connections.  Ability to login via LDAP was gone, but the server did fail back to local system authentication</strong></p>
<p><strong>Note(s)</strong>: When failing back to local authentication, there is no error sent back to the client trying to login, only errors go to /var/log/secure file.  The server will just keep rejecting the users login until LDAP is back up.  At least this gives you the ability to get in with a local system account in an emergency.</p>
<p><strong>Example error to /var/log/secure when LDAP server is down and local authentication is rejecting the LDAP user received from the client:</strong></p>
<pre>Dec 13 12:59:59 ldapServer sshd[2588]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=172.16.0.22</pre>
<br />Posted in Linux, Networking, Security  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/658/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/658/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/658/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=658&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/12/16/linux-security-ldap-local-authentication-fallback/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, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI</title>
		<link>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/</link>
		<comments>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 17:47:46 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Filesystems]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[GNOME Virtual File System]]></category>
		<category><![CDATA[gvfs]]></category>
		<category><![CDATA[gvfs un-mount]]></category>
		<category><![CDATA[gvfs-mount]]></category>
		<category><![CDATA[gvfsd]]></category>
		<category><![CDATA[gvfsd-ftp]]></category>
		<category><![CDATA[gvfsd-sftp]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vfs]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=651</guid>
		<description><![CDATA[Linux, Filesystem: GNOME Virtual File System (GVFS) Remote Connectivity CLI<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=651&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>When not using NFS, Linux administrators generally move files from one server to the next via SFTP or FTP.  This can sometimes be a headache when needing to move large amounts of files between the systems.  This is where I like <strong>GVFS</strong> (GNOME Virtual File System).  This subsystem allows you to mount remote systems via the following protocols to a local directory tree:</p>
<li>SSH</li>
<li>FTP</li>
<li>CIFS (Windows shares)</li>
<li>WebDav (HTTP)</li>
<li>Secure WebDav (HTTPS)
<p><span id="more-651"></span><br />
Above are the common protocols supported, but there is support for more.  Using GVFS to mount the remote filesystem to yours allows you to create and move files to and from the remote system using typical &#8220;cp&#8221;, &#8220;rm&#8221;, and &#8220;mv&#8221; commands.  This makes things even easier if you are working through an X windows console.  Just bring up the remote directory structure through a file manager application and work from there.  Gnome also uses GVFS to manage USB based storage.  The following will go through manually connecting to a server using GVFS.<strong>Move into the &#8220;.gvfs&#8221; filesystem in the users home directory.  Unless Gnome has automatically mounted a device, this filesystem should be empty.</strong></p>
<pre>user01@LinuxDesk:~$ cd ~/.gvfs</pre>
<p><strong>In the below example, a remote servers filesystem will be mounted over an SSH/SFTP session.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount ssh://user05@SftpServer02
Enter password
Password:</pre>
<p><strong>Verify that the location has been mounted.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ ls
sftp for user05 on SftpServer02</pre>
<p><strong>The SFTP was mounted and we can now traverse the remote servers filesystem as if it were our own.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ cd sftp\ for\ user05\ on\ SftpServer02/

user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ ls
app  boot  etc   hs_err_pid15240.log  lib         media  mnt  opt   relay  sbin     srv  tmp  var
bin  dev   home  hs_err_pid8660.log   lost+found  misc   net  proc  root   selinux  sys  usr</pre>
<p><strong>Since we logged into the SSH/SFTP system using user &#8220;user05&#8243;, we can write to any direcotry that remote user has access to.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02$ cd home/user05/</pre>
<p><strong>Below creates a new file &#8220;asdf&#8221; containing the text &#8220;asdfasdf&#8221;.  Here we are just testing write capability to the remote server</strong></p>
<pre>user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ echo "asdfasdf" &gt; asdf
user01@LinuxDesk:~/.gvfs/sftp for user05 on SftpServer02/home/user05$ cat asdf
asdfasdf</pre>
<p><strong>&#8220;gvfs-mount&#8221; can also be used to list all currently mounted gvfs systems.  Below shows only the sftp session.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Mount(0): sftp on SftpServer02 -&gt; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>For reference, the following shows my 4gig USB drive that was automatically mounted when attached to the workstation through Gnome.</strong></p>
<pre>user01@LinuxDesk:~$ gvfs-mount -l
Drive(0): USB Drive
  Type: GProxyDrive (GProxyVolumeMonitorHal)
  Volume(0): 4.1 GB Media
    Type: GProxyVolume (GProxyVolumeMonitorHal)
    Mount(0): 4.1 GB Media -&gt; file:///media/disk
      Type: GProxyMount (GProxyVolumeMonitorHal)
Mount(0): sftp on SftpServer02 -&gt; sftp://SftpServer02/
  Type: GDaemonMount</pre>
<p><strong>GVFS mount points can be un-mounted using the &#8220;-u&#8221; argument.  Below will un-mount the remote ssh server.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$ gvfs-mount -u ssh://user05@SftpServer02</pre>
<p><strong>Notes: GVFS contains one master daemon (gvfsd) which tracks current GVFS mounts.  Each mount is created as an individual daemon with it&#8217;s own process.  Knowing this, we can find the actual gvfsd process ID that the sftp connection is running under.</strong></p>
<pre>user01@LinuxDesk:~/.gvfs$  ps -ef | grep gvfsd-sftp
user01  8022     1  0 10:34 ?        00:00:00 /usr/lib/gvfs/gvfsd-sftp --spawner :1.8 /org/gtk/gvfs/exec_spaw/21</pre>
</li>
<br />Posted in Filesystems, Linux, Networking  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/651/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/651/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/651/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=651&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/12/07/linux-filesystem-gnome-virtual-file-system-gvfs-remote-connectivity-cli/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, SAN: Cisco MDS Switch Scheduled Backups</title>
		<link>http://blog.colovirt.com/2009/11/10/networking-san-cisco-mds-switch-scheduled-backups/</link>
		<comments>http://blog.colovirt.com/2009/11/10/networking-san-cisco-mds-switch-scheduled-backups/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 18:43:48 +0000</pubDate>
		<dc:creator>Kevin Goodman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[automate]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[mds]]></category>
		<category><![CDATA[schedule]]></category>
		<category><![CDATA[scheduler]]></category>
		<category><![CDATA[tftp]]></category>

		<guid isPermaLink="false">http://blog.colovirt.com/?p=649</guid>
		<description><![CDATA[Most people are good about making backup copies of their configuration before changes, but everyone makes mistakes eventually.  To me the risk is not worth it, so this will be dedicated to automating Cisco TFTP backups of configurations.  Most server administrators have automated tasks using either Cron (Linux/Unix) or Windows Scheduler.  Cisco [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=649&subd=colovirt&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Most people are good about making backup copies of their configuration before changes, but everyone makes mistakes eventually.  To me the risk is not worth it, so this will be dedicated to automating Cisco TFTP backups of configurations.  Most server administrators have automated tasks using either Cron (Linux/Unix) or Windows Scheduler.  Cisco IOS also has the ability to schedule tasks.</p>
<p>I am very picky when it comes to my Cisco devices.  A lot of information I read on this had the schedule execute &#8220;copy running-config startup&#8221; and would only backup one configuration.  This is not a good thing, especially when there are multiple device managers.  Below will go through setting up two jobs that backup both the running and saved configurations to different files daily.</p>
<p><strong>Note:  This assumes that you already have a TFTP server running on the network.</strong></p>
<p><strong>After logging into the switch, move into configuration mode</strong></p>
<pre>FiberSw01# config terminal
Enter configuration commands, one per line.  End with CNTL/Z.</pre>
<p><strong>Enable the scheduler</strong></p>
<pre>FiberSw01(config)# scheduler enable</pre>
<p><strong>Crate a job named &#8220;backup_running&#8221;</strong></p>
<pre>FiberSw01(config)# scheduler job name backup_running</pre>
<p><strong>Enter the syntax used to copy the running configuration to your TFTP server</strong></p>
<pre>FiberSw01(config-job)# copy running-config tftp://172.0.0.22:69/config/FiberSw01_running</pre>
<p><strong>Exit configuration mode</strong></p>
<pre>FiberSw01(config-job)# end</pre>
<p><strong>Now that we have a job defined, make sure it is listed with the scheduler</strong></p>
<pre>FiberSw01# show scheduler job
Job Name: backup_running
------------------------
   copy running-config tftp://172.0.0.22:69/config/FiberSw01_running
==============================================================================</pre>
<p><strong>With the job defined, we can go back in and set when we want it executed</strong></p>
<pre>FiberSw01# config terminal
Enter configuration commands, one per line.  End with CNTL/Z.</pre>
<p><strong>Define a new schedule name and set execution time(s)</strong></p>
<pre>FiberSw01(config)# scheduler schedule name Backup_Running
FiberSw01(config-schedule)# time daily 23:00
FiberSw01(config-schedule)# job name backup_running
FiberSw01(config-schedule)# end</pre>
<p><strong>Now the schedule(s) can be listed with names, execution times, and status</strong></p>
<pre>FiberSw01# show scheduler schedule
Schedule Name       : Backup_Running
------------------------------------
User Name           : user
Schedule Type       : Run every day at 23 Hrs 0 Mins
Last Execution Time : Yet to be executed
-----------------------------------------------
     Job Name            Last Execution Status
-----------------------------------------------
    backup_running                        -NA-
==============================================================================</pre>
<p><strong>Since the running configuration was backed up previously, we can go in configure the startup configuration backup.  All commands are close to above except the tftp file name</strong></p>
<pre>FiberSw01# config terminal
Enter configuration commands, one per line.  End with CNTL/Z.
FiberSw01(config)# scheduler job name backup_startup
FiberSw01(config-job)# copy startup-config tftp://172.0.0.22:69/config/FiberSw01_startup
FiberSw01(config-job)# end

FiberSw01# config t
Enter configuration commands, one per line.  End with CNTL/Z.
FiberSw01(config)# scheduler schedule name Backup_Startup
FiberSw01(config-schedule)# time daily 23:05
FiberSw01(config-schedule)# job name backup_startup
FiberSw01(config-schedule)# end</pre>
<p><strong>Check the schedule once more and both jobs show up</strong></p>
<pre>FiberSw01# show scheduler schedule
Schedule Name       : Backup_Running
------------------------------------
User Name           : user
Schedule Type       : Run every day at 23 Hrs 0 Mins
Last Execution Time : Yet to be executed
-----------------------------------------------
     Job Name            Last Execution Status
-----------------------------------------------
    backup_running                        -NA-
==============================================================================
Schedule Name       : Backup_Startup
------------------------------------
User Name           : user
Schedule Type       : Run every day at 23 Hrs 5 Mins
Last Execution Time : Yet to be executed
-----------------------------------------------
     Job Name            Last Execution Status
-----------------------------------------------
    backup_startup                        -NA-
==============================================================================
<pre><strong>Now that the configuration is done, save the current (running) configuration so the schedules will not be lost on reboot</strong>
<pre>FiberSw01# copy running-config startup-config
[########################################] 100%</pre>
<p><strong>Notes: The above was done on Cisco MDS Switches but should work on most other Ciso IOS versions.  Also, the Execution Status will change after the job is executed.</strong></pre>
</pre>
<br />Posted in Uncategorized  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/colovirt.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/colovirt.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/colovirt.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/colovirt.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/colovirt.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/colovirt.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/colovirt.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/colovirt.wordpress.com/649/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/colovirt.wordpress.com/649/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/colovirt.wordpress.com/649/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.colovirt.com&blog=5256186&post=649&subd=colovirt&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/11/10/networking-san-cisco-mds-switch-scheduled-backups/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, 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[bcgStartServer.sh]]></category>
		<category><![CDATA[bcgStopServer]]></category>
		<category><![CDATA[bcgStopServer.sh]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cgStartServer]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[fix pack]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[LinkedIn]]></category>
		<category><![CDATA[partner gateway]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[sftp]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[Update Installer]]></category>
		<category><![CDATA[update.sh]]></category>
		<category><![CDATA[updateinstaller]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[was]]></category>
		<category><![CDATA[websphere]]></category>
		<category><![CDATA[websphere application server]]></category>
		<category><![CDATA[websphere partner gateway]]></category>
		<category><![CDATA[wpg]]></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[<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>
<br />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" />]]></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>1</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[<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>
<br />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" />]]></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[<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>
<br />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" />]]></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 &#8211; 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[<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>
<br />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" />]]></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 &#8211; 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[<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>
<br />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" />]]></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[<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>
<br />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" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/09/03/networking-san-cisco-mds-9000-license-installation/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: Sudo &#8217;sudo su -&#8217; vs &#8217;sudo -s&#8217;</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[<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>
<br />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" />]]></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[<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>
<br />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" />]]></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[<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>
<br />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" />]]></content:encoded>
			<wfw:commentRss>http://blog.colovirt.com/2009/08/06/vmware-vsphere-esx-4-server-partitioning/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Kevin Goodman</media:title>
		</media:content>
	</item>
	</channel>
</rss>