<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-584481283321339586</id><updated>2012-01-03T17:39:20.117-08:00</updated><title type='text'>System Admin Profile</title><subtitle type='html'>Since technology develops so fast! I keep forgetting about what I used to know. So feel compelling to document my hard work for myself and someone who might need those experience. Also want to benefit others I used to benefit from.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-6654257423710669903</id><published>2010-12-03T12:34:00.000-08:00</published><updated>2010-12-03T12:34:58.200-08:00</updated><title type='text'>Scan Opened TCP Ports Based on Server Name List  Script</title><content type='html'>&amp;nbsp;In order to see if the server is sql server or other port is listening, the following script can scan the port based on the server list.&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl -w &lt;br /&gt;&lt;br /&gt;use IO::Socket; &lt;br /&gt;use strict;&lt;br /&gt;my $debug = 0; &lt;br /&gt;my $servername='';&lt;br /&gt;my @ports=('2025','1433');&lt;br /&gt;&lt;br /&gt;open(SERVERNAME,"sqlserver.log");&lt;br /&gt;&lt;br /&gt;while ($servername=&amp;lt;SERVERNAME&amp;gt;){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chomp $servername; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "scaning server:$servername .....\n\n" if $debug; &lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach my $port (@ports){&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; my $sock = new IO::Socket::INET ( &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PeerAddr =&amp;gt; $servername, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PeerPort =&amp;gt; $port, &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Proto =&amp;gt; 'tcp'); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (! $sock ) { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "ServerName:$servername:$!\n" if $debug&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "ServerName:$servername:OPENED:$port\n"; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; close($sock);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;close(SERVERNAME);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-6654257423710669903?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/6654257423710669903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=6654257423710669903' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/6654257423710669903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/6654257423710669903'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2010/12/scan-opened-tcp-ports-based-on-server.html' title='Scan Opened TCP Ports Based on Server Name List  Script'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-6686140343824492293</id><published>2010-12-03T11:24:00.000-08:00</published><updated>2010-12-03T11:24:51.756-08:00</updated><title type='text'>Install Naigos NPRE and Nagios Plugin on AIX 6.1</title><content type='html'>Failed on compiling from source code and ran out of time to troubleshoot the source code. Then went to pre-compiled solution.&lt;br /&gt;&lt;br /&gt;The following procedure has been tested and it working on my box at least. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Install Naigos NPRE and Nagios Plugin on AIX 6.1&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Written&amp;nbsp; on 12/3/2010&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Download nagios plugin and NREP precompiled binary from http://www.guntram.de/nagios/.&lt;br /&gt;&lt;br /&gt;2. install them into /usr/loacl/nagios folder. &lt;br /&gt;&lt;br /&gt;3. Configure NRPE running with /etc/rc.local&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;edit nrpe.cfg file to put your customization there. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;# mkitab -i rcnfs "rclocal:2:wait:/etc/rc.local &amp;gt;/dev/console 2&amp;gt;&amp;amp;1"&lt;br /&gt;# touch /etc/rc.local&lt;br /&gt;# chmod 700 /etc/rc.local&lt;br /&gt;&lt;br /&gt;Then put the command lines to start the daemons in /etc/rc.local.&lt;br /&gt;&lt;br /&gt;nohup /usr/local/nagios/bin/nrpe -c /usr/local/nagios/etc/nrpe.cfg -d &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference: &lt;br /&gt;&lt;br /&gt;http://linuxdocument.blogspot.com/2010/03/installing-nrpe-212-on-aix.html&lt;br /&gt;http://www.guntram.de/nagios/&lt;br /&gt;http://saifulaziz.wordpress.com/2006/12/06/how-do-i-start-local-daemons-at-aix-system-startup/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-6686140343824492293?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/6686140343824492293/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=6686140343824492293' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/6686140343824492293'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/6686140343824492293'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2010/12/install-naigos-npre-and-nagios-plugin.html' title='Install Naigos NPRE and Nagios Plugin on AIX 6.1'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-5420647151781763142</id><published>2007-07-05T14:46:00.001-07:00</published><updated>2007-07-05T14:46:36.412-07:00</updated><title type='text'>setup a CA to self-sign the SSL cert.</title><content type='html'>1. download a Openssl For windows binaries and source package&lt;br /&gt;http://sourceforge.net/project/showfiles.php?group_id=23617&amp;release_id=188569&lt;br /&gt;&lt;br /&gt;2. unzip both of the OpenSSL packages to temporary folders. From the binaries package "bin" folder, copy the files "openssl.exe" and the two DLLs into the source package's "apps" folder.&lt;br /&gt;&lt;br /&gt;In the "apps" folder is a file called CA.pl. Open this perl script in a text editor and change the line&lt;br /&gt;&lt;br /&gt;$SSLEAY_CONFIG=$ENV{"SSLEAY_CONFIG"};&lt;br /&gt;to&lt;br /&gt;$SSLEAY_CONFIG="-config openssl.cnf";&lt;br /&gt;&lt;br /&gt;3. Copy the cert request file to into this "apps" directory, and rename it to "newreq.pem".&lt;br /&gt;&lt;br /&gt;Next, open a command prompt window in the apps directory, and run the following commands:&lt;br /&gt;&lt;br /&gt;    * perl CA.pl -newca&lt;br /&gt;    * perl CA.pl -signreq&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$ perl CA.pl -newca&lt;br /&gt;&lt;br /&gt;sg22785@maximus-a7juw9u ~/openssl-0.9.7c-src/src/openssl-0.9.7c/apps&lt;br /&gt;$ perl CA.pl -signreq&lt;br /&gt;Using configuration from openssl.cnf&lt;br /&gt;Check that the request matches the signature&lt;br /&gt;Signature ok&lt;br /&gt;Certificate Details:&lt;br /&gt;        Serial Number: 1 (0x1)&lt;br /&gt;        Validity&lt;br /&gt;            Not Before: Jul  5 20:24:25 2007 GMT&lt;br /&gt;            Not After : Jul  4 20:24:25 2008 GMT&lt;br /&gt;        Subject:&lt;br /&gt;            countryName               = US&lt;br /&gt;            stateOrProvinceName       = California&lt;br /&gt;            localityName              = Los Angeles&lt;br /&gt;            organizationName          = MAXIMUS&lt;br /&gt;            organizationalUnitName    = Education&lt;br /&gt;            commonName                = lasttmp1.schoolmax.net&lt;br /&gt;        X509v3 extensions:&lt;br /&gt;            X509v3 Basic Constraints:&lt;br /&gt;                CA:FALSE&lt;br /&gt;            Netscape Comment:&lt;br /&gt;                OpenSSL Generated Certificate&lt;br /&gt;            X509v3 Subject Key Identifier:&lt;br /&gt;                D2:AD:D2:27:2A:52:BD:67:1A:BF:4A:65:8E:E8:52:6E:D6:E7:B9:30&lt;br /&gt;            X509v3 Authority Key Identifier:&lt;br /&gt;                DirName:/C=AU/ST=QLD/CN=SSLeay/rsa test CA&lt;br /&gt;                serial:04&lt;br /&gt;&lt;br /&gt;Certificate is to be certified until Jul  4 20:24:25 2008 GMT (365 days)&lt;br /&gt;Sign the certificate? [y/n]:y&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1 out of 1 certificate requests certified, commit? [y/n]y&lt;br /&gt;Write out database with 1 new entries&lt;br /&gt;Data Base Updated&lt;br /&gt;Signed certificate is in newcert.pem&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-5420647151781763142?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/5420647151781763142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=5420647151781763142' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/5420647151781763142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/5420647151781763142'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/07/setup-ca-to-self-sign-ssl-cert.html' title='setup a CA to self-sign the SSL cert.'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-359804487982389605</id><published>2007-06-28T15:33:00.000-07:00</published><updated>2007-07-06T20:44:29.571-07:00</updated><title type='text'>ORA-01555 error.</title><content type='html'>Under the help from Wenson, the following ora-01555 has been fixed.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Errors in file D:\ora81\RDBMS\TRACE\ORA16184.TRC:&lt;br /&gt;ORA-00604: error occurred at recursive SQL level 1&lt;br /&gt;ORA-01555: snapshot too old: rollback segment number  with name "" too small&lt;br /&gt;&lt;br /&gt;Fix:&lt;br /&gt;&lt;br /&gt;shutdown immeidate&lt;br /&gt;startup mount&lt;br /&gt;recover database&lt;br /&gt;alter database open&lt;br /&gt;or alter database open resetlogs&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-359804487982389605?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/359804487982389605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=359804487982389605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/359804487982389605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/359804487982389605'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/ora01555-error.html' title='ORA-01555 error.'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-4169135750824107129</id><published>2007-06-25T21:46:00.000-07:00</published><updated>2007-06-26T00:38:03.799-07:00</updated><title type='text'>The Thinking  from Wii</title><content type='html'>An article on this month's issue of Fortune arouses my interests about Wii. The success story about Wii is really impressive - battling on the indifference of people who have no interest in video games. Wii focuses on delivering experiences with lower price rather than other gaming industry giants do, such as SNE and MSFT.  Good game experience is not necessary to be expensive!&lt;br /&gt;&lt;br /&gt;The first time I knew Wii was from a friend, Diedian's home. The little box is really something that is very attractive. The way that a player is playing the game and the sensitivity to the player's body movements are more accurate than I thought.  I heard that Wii was also hard to get.&lt;br /&gt;&lt;br /&gt;The target of the Wii's marketing segment is bald and I am not sure how long the successful trend can last. Since the target consumers are not game-sensitive, and this segment usually is composed of low value users of traditional electronic games. I am interested in how the product information can be spread to those people, and how much the target consumer are willing to pay for this box. Currently the list price is less than 300 US.&lt;br /&gt;&lt;br /&gt;The "little" company's revenue is unbelievable-- 8.36 B with only 3,400 employees, almost 8 times of that of the company I work at, and just a little less than Mattel ( Barbie doll company) which has been in Market for more than 50 years,  2.5M per employee whereas 1M per employee at Google. I checked their website (http://www.nintendo.com) and wanted to check out how to invest this company. But they seem to be only traded in Japan. In US, we have to purchase ADR ( America Depository Receipt) from some banks.  Never done any ADR trade before. Might investigate it more later on.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-4169135750824107129?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/4169135750824107129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=4169135750824107129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/4169135750824107129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/4169135750824107129'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/thinking-from-wii.html' title='The Thinking  from Wii'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-7519243975156892180</id><published>2007-06-25T15:54:00.000-07:00</published><updated>2007-06-25T15:59:29.836-07:00</updated><title type='text'>RHEL AS4 NFS client can not mount volum during the boot time.</title><content type='html'>Symptom:&lt;br /&gt;&lt;br /&gt;Got the following error in the /var/log/messages file during the boot.  But after the boot manually mount is OK.&lt;br /&gt;&lt;br /&gt;Jun 25 14:58:03 laappt6 mount: mount: mount to NFS server 'laappt3' failed:&lt;br /&gt;Jun 25 14:58:03 laappt6 mount: System Error: No route to host.&lt;br /&gt;&lt;br /&gt;Cause:&lt;br /&gt;&lt;br /&gt;The NFS mount script runs during the network initialize phase.&lt;br /&gt;&lt;br /&gt;Solution :&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Found two  solutions from web.&lt;br /&gt;&lt;br /&gt;1. append  "/bin/mount -a " in /etc/rc.d/rc.local&lt;br /&gt;&lt;br /&gt;2. insert the following line in to /etc/rc.d/init.d/netfs file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;before :&lt;br /&gt;&lt;br /&gt;            [ ! -f /var/lock/subsys/portmap ] &amp;&amp;amp; service portmap start&lt;br /&gt;            action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4&lt;br /&gt;&lt;br /&gt;after :           &lt;br /&gt; [ ! -f /var/lock/subsys/portmap ] &amp;&amp;amp; service portmap start&lt;br /&gt;#added by David W.&lt;br /&gt;                action $"Sleeping for 30 secs:" sleep 30&lt;br /&gt;#end of added by David W.&lt;br /&gt;            action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;&lt;br /&gt;1. CrazyToon,&lt;br /&gt;http://crazytoon.com/2007/05/11/centos-and-redhat-problem-nfs-mount-at-boot-up-fails-with-error-system-error-no-route-to-host/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-7519243975156892180?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/7519243975156892180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=7519243975156892180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/7519243975156892180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/7519243975156892180'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/rhel-as4-nfs-client-can-not-mount-volum.html' title='RHEL AS4 NFS client can not mount volum during the boot time.'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-8611951721595169956</id><published>2007-06-22T10:29:00.000-07:00</published><updated>2007-06-22T14:46:09.516-07:00</updated><title type='text'>Use Microsfot iSCSI Initiator to access Openfiler</title><content type='html'>The steps are straightforward .&lt;br /&gt;&lt;br /&gt;1. download microsoft iscsi initiator and install it.&lt;br /&gt;2. configure the target.&lt;br /&gt;3. click target tab and make sure the disk is connected , otherwise, click logon.&lt;br /&gt;4. use disk management on windows to format to assign a drive letter.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-8611951721595169956?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/8611951721595169956/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=8611951721595169956' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/8611951721595169956'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/8611951721595169956'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/use-microsfot-initiator-to-access.html' title='Use Microsfot iSCSI Initiator to access Openfiler'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-3428230991151648707</id><published>2007-06-21T00:38:00.000-07:00</published><updated>2007-06-21T00:56:22.601-07:00</updated><title type='text'>How to install kernel source on RHEL4</title><content type='html'>http://kbase.redhat.com/faq/FAQ_79_8848.shtm&lt;br /&gt;&lt;br /&gt;   up2date --get-source kernel&lt;br /&gt;&lt;br /&gt;Fetching all package list for channel: rhel-i386-as-4...&lt;br /&gt;########################################&lt;br /&gt;&lt;br /&gt;Fetching package list for channel: rhel-i386-as-4...&lt;br /&gt;########################################&lt;br /&gt;&lt;br /&gt;kernel-2.6.9-55.EL.src.rpm...&lt;br /&gt;&lt;br /&gt;[root@RH4 up2date]# rpm -ivh kernel-2.6.9-55.EL.src.rpm&lt;br /&gt;error: cannot create %sourcedir /usr/src/redhat/SOURCES&lt;br /&gt;[root@RH4 up2date]# mkdir -p /usr/src/redhat/SOURCES&lt;br /&gt;[root@RH4 up2date]#&lt;br /&gt;[root@RH4 up2date]# rpm -ivh kernel-2.6.9-55.EL.src.rpm&lt;br /&gt;   1:kernel                 warning: user brewbuilder does not exist - using root&lt;br /&gt;warning: group brewbuilder does not exist - using root&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-3428230991151648707?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/3428230991151648707/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=3428230991151648707' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/3428230991151648707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/3428230991151648707'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/how-to-install-kernel-source-on-rhel4.html' title='How to install kernel source on RHEL4'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-8285671840673978624</id><published>2007-06-21T00:12:00.000-07:00</published><updated>2007-06-21T00:32:38.368-07:00</updated><title type='text'>how to Mount iSCSI snapshot from openfiler</title><content type='html'>after create the snapshot from the openfiler console. Check the /dev/vol1/ dir. found the snapshot device file name is :&lt;br /&gt;&lt;br /&gt;   of.snapshot.crs.snap&lt;br /&gt;&lt;br /&gt;edit /etc/iedt.conf file to share the volume.&lt;br /&gt;&lt;br /&gt;Target iqn.2006-01.com.openfiler:vol1.crs&lt;br /&gt;       Lun 0 Path=/dev/vol1/crs,Type=fileio&lt;br /&gt;       Lun 1 Path=/dev/vol1/of.snapshot.crs.snap,Type=fileio&lt;br /&gt;&lt;br /&gt;Write out your changes and run the following:&lt;br /&gt;# service iscsi-target restart&lt;br /&gt;Stopping iSCSI target service:                             [  OK  ]&lt;br /&gt;Starting iSCSI target service:                             [  OK  ]&lt;br /&gt;&lt;br /&gt;Refresh / rescan your iSCSI initiator so it sees the snapshot as another drive.&lt;br /&gt;&lt;br /&gt;[root@RH4 /]# fdisk -l&lt;br /&gt;&lt;br /&gt;Disk /dev/sda: 8589 MB, 8589934592 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1044 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sda1   *           1          13      104391   83  Linux&lt;br /&gt;/dev/sda2              14        1044     8281507+  8e  Linux LVM&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb: 1006 MB, 1006632960 bytes&lt;br /&gt;31 heads, 62 sectors/track, 1022 cylinders&lt;br /&gt;Units = cylinders of 1922 * 512 = 984064 bytes&lt;br /&gt;&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sdb1               1        1022      982111   83  Linux&lt;br /&gt;&lt;br /&gt;Disk /dev/sdc: 1006 MB, 1006632960 bytes&lt;br /&gt;31 heads, 62 sectors/track, 1022 cylinders&lt;br /&gt;Units = cylinders of 1922 * 512 = 984064 bytes&lt;br /&gt;&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sdc1               1        1022      982111   83  Linux&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then mount the partition with mount command.&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;https://www.openfiler.com/community/forums/viewtopic.php?id=1124 by &lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;a href="https://www.openfiler.com/community/forums/profile.php?id=1612"&gt;dtuneman&lt;/a&gt;&lt;/strong&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-8285671840673978624?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/8285671840673978624/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=8285671840673978624' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/8285671840673978624'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/8285671840673978624'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/how-to-mount-iscsi-snapshot-from.html' title='how to Mount iSCSI snapshot from openfiler'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-584481283321339586.post-6559768329981124166</id><published>2007-06-20T21:09:00.000-07:00</published><updated>2007-06-20T23:49:12.627-07:00</updated><title type='text'>iSCSI on RHEL4 with openfiler issue</title><content type='html'>Yesterday, felt good for successfully configured 2-node RAC on VMware 6 workstation. It took my 3 days to troubleshoot all the issues. Then, I think that using iscsi might be easier on configuration and more reliable. So after taking a look on someone's blogs regarding to  iscsi. And noticed iscsi is a good stuff, so wanted to give a shot today.&lt;br /&gt;&lt;br /&gt;Today,  tried to install iscsi on RHEL AS4 with openfiler ( a freeware of NAS). But always could not attach the disk configured in openfiler from initiator.&lt;br /&gt;&lt;br /&gt;installed iscsi-initiator-utils-4.0.3.0-4.i386.rpm, sysfsutils-1.2.0-1.i386.rpm&lt;br /&gt;&lt;br /&gt;   up2date iscsi-initiator-utils&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On the target server:&lt;br /&gt;under /opt/openfiler/etc/iscsi/, the xml file on the openfiler server is control the network privilege.&lt;br /&gt;/opt/openfiler/etc/networks.xml file can delete the network configured . i could not find the place under openfiler to delete the network.&lt;br /&gt;and also /etc/initiators.allow&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Jun 20 19:36:37 RH4 iscsi: iscsi config check succeeded&lt;br /&gt;Jun 20 19:36:37 RH4 kernel: iscsi-sfnet: Loading iscsi_sfnet version 4:0.1.11-3&lt;br /&gt;Jun 20 19:36:37 RH4 kernel: iscsi-sfnet: Control device major number 254&lt;br /&gt;Jun 20 19:36:37 RH4 iscsi: Loading iscsi driver:  succeeded&lt;br /&gt;Jun 20 19:36:43 RH4 iscsid[13333]: version 4:0.1.11-4 variant (15-Jan-2007)&lt;br /&gt;Jun 20 19:36:43 RH4 iscsi: iscsid startup succeeded&lt;br /&gt;Jun 20 19:36:43 RH4 iscsid[13338]: Connected to Discovery Address 10.1.72.125&lt;br /&gt;&lt;br /&gt;but could not attach the disk.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If the network is not configured to be allowed access. the following error message will be showed up in initiator /var/log/messages file.&lt;br /&gt;&lt;br /&gt;un 20 19:44:47 RH4 iscsid[14750]: cannot make connection to 10.1.72.125:3260: Connection refused&lt;br /&gt;Jun 20 19:44:47 RH4 iscsid[14750]: Connection to Discovery Address 10.1.72.125 failed&lt;br /&gt;Jun 20 19:44:52 RH4 iscsi: iscsid shutdown succeeded&lt;br /&gt;Jun 20 19:44:52 RH4 iscsi: removing driver succeeded&lt;br /&gt;Jun 20 19:44:55 RH4 iscsi: iscsi config check succeeded&lt;br /&gt;Jun 20 19:44:55 RH4 kernel: iscsi-sfnet: Loading iscsi_sfnet version 4:0.1.11-3&lt;br /&gt;Jun 20 19:44:55 RH4 kernel: iscsi-sfnet: Control device major number 254&lt;br /&gt;Jun 20 19:44:55 RH4 iscsi: Loading iscsi driver:  succeeded&lt;br /&gt;Jun 20 19:45:01 RH4 iscsid[14880]: version 4:0.1.11-4 variant (15-Jan-2007)&lt;br /&gt;Jun 20 19:45:01 RH4 iscsi: iscsid startup succeeded&lt;br /&gt;Jun 20 19:45:01 RH4 iscsid[14884]: cannot make connection to 10.1.72.125:3260: Connection refused&lt;br /&gt;Jun 20 19:45:01 RH4 iscsid[14884]: Connection to Discovery Address 10.1.72.125 failed&lt;br /&gt;Jun 20 19:45:02 RH4 iscsid[14884]: cannot make connection to 10.1.72.125:3260: Connection refused&lt;br /&gt;Jun 20 19:45:02 RH4 iscsid[14884]: Connection to Discovery Address 10.1.72.125 failed&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if only configure target IP:&lt;br /&gt;&lt;br /&gt;you get the following message, but can not discover the disk.&lt;br /&gt;&lt;br /&gt;Jun 20 19:46:28 RH4 iscsi: iscsi config check succeeded&lt;br /&gt;Jun 20 19:46:28 RH4 kernel: iscsi-sfnet: Loading iscsi_sfnet version 4:0.1.11-3&lt;br /&gt;Jun 20 19:46:28 RH4 kernel: iscsi-sfnet: Control device major number 254&lt;br /&gt;Jun 20 19:46:28 RH4 iscsi: Loading iscsi driver:  succeeded&lt;br /&gt;Jun 20 19:46:33 RH4 iscsid[15021]: version 4:0.1.11-4 variant (15-Jan-2007)&lt;br /&gt;Jun 20 19:46:34 RH4 iscsi: iscsid startup succeeded&lt;br /&gt;Jun 20 19:46:34 RH4 iscsid[15025]: Connected to Discovery Address 10.1.72.125&lt;br /&gt;&lt;br /&gt;Even configured to allow the initialter's IP access, still can not find the disk.&lt;br /&gt;&lt;br /&gt;After configure to allow the whole subnet to access the volume. the problem is solved!!&lt;br /&gt;&lt;br /&gt;for example, configure 10.1.72.122/24 : failed. but 10.1.72.0/24 works!.&lt;br /&gt;&lt;br /&gt;Then even removed 10.1.72.0/24 from networks.xml file. it still work.  I believe that is a bug on openfiler.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;command to restart target :&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# service iscsi-target restart&lt;br /&gt;Stopping iSCSI target service: [  OK  ]&lt;br /&gt;Starting iSCSI target service: [  OK  ]&lt;br /&gt;[root@localhost ~]#&lt;br /&gt;&lt;br /&gt;command to restart initiator on RHEL:&lt;br /&gt;[root@RH4 etc]# service iscsi restart&lt;br /&gt;Searching for iscsi-based multipath maps&lt;br /&gt;Found 0 maps&lt;br /&gt;Stopping iscsid: [  OK  ]&lt;br /&gt;Removing iscsi driver: [  OK  ]&lt;br /&gt;Checking iscsi config:  [  OK  ]&lt;br /&gt;Loading iscsi driver:  [  OK  ]&lt;br /&gt;mknod: `/dev/iscsictl': File exists&lt;br /&gt;Starting iscsid: [  OK  ]&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After attached the disk, use the following command to list the iscsi device.&lt;br /&gt;&lt;br /&gt;[root@RH4 etc]# iscsi-ls&lt;br /&gt;*******************************************************************************&lt;br /&gt;SFNet iSCSI Driver Version ...4:0.1.11-4(15-Jan-2007)&lt;br /&gt;*******************************************************************************&lt;br /&gt;TARGET NAME             : iqn.2006-01.com.openfiler:vol1.crs&lt;br /&gt;TARGET ALIAS            :&lt;br /&gt;HOST ID                 : 10&lt;br /&gt;BUS ID                  : 0&lt;br /&gt;TARGET ID               : 0&lt;br /&gt;TARGET ADDRESS          : 10.1.72.125:3260,1&lt;br /&gt;SESSION STATUS          : ESTABLISHED AT Wed Jun 20 19:55:19 EDT 2007&lt;br /&gt;SESSION ID              : ISID 00023d000001 TSIH 200&lt;br /&gt;*******************************************************************************&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;[root@RH4 etc]# iscsi-device /dev/sdb&lt;br /&gt;/dev/sdb is an iSCSI device&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;My setting in /etc/iscsi.conf :&lt;br /&gt;&lt;br /&gt;HeaderDigest=never&lt;br /&gt;DataDigest=never&lt;br /&gt;ImmediateData=yes&lt;br /&gt;ConnFailTimeout=180&lt;br /&gt;Continuous=no&lt;br /&gt;DiscoveryAddress=10.1.72.125&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then use fdisk /dev/sdb , n, p, 1 ... then w to partition the disk.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="screen"&gt;mke2fs -j -L &lt;label&gt; /dev/sdXY&lt;/label&gt;&lt;/pre&gt;  &lt;p&gt;It is extremely important to use disk labels when working with iSCSI storage. Delays in network traffic may cause the LUNs to be discovered in a different order the next time the system is booted. The only way to guarantee that the correct partition will be mounted at the proper mount point is to use disk labels to identify them.&lt;/p&gt;&lt;br /&gt;[[root@RH4 mnt]# mke2fs -j -L idisk1  /dev/sdb1&lt;br /&gt;mke2fs 1.35 (28-Feb-2004)&lt;br /&gt;Filesystem label=idisk1&lt;br /&gt;OS type: Linux&lt;br /&gt;Block size=4096 (log=2)&lt;br /&gt;Fragment size=4096 (log=2)&lt;br /&gt;122880 inodes, 245527 blocks&lt;br /&gt;12276 blocks (5.00%) reserved for the super user&lt;br /&gt;First data block=0&lt;br /&gt;Maximum filesystem blocks=251658240&lt;br /&gt;8 block groups&lt;br /&gt;32768 blocks per group, 32768 fragments per group&lt;br /&gt;15360 inodes per group&lt;br /&gt;Superblock backups stored on blocks:&lt;br /&gt;     32768, 98304, 163840, 229376&lt;br /&gt;&lt;br /&gt;Writing inode tables: done                        &lt;br /&gt;Creating journal (4096 blocks): done&lt;br /&gt;Writing superblocks and filesystem accounting information: done&lt;br /&gt;&lt;br /&gt;This filesystem will be automatically checked every 39 mounts or&lt;br /&gt;180 days, whichever comes first.  Use tune2fs -c or -i to override&lt;br /&gt;&lt;br /&gt;mount -L idisk1 /mnt/data1&lt;br /&gt;&lt;br /&gt;edit /etc/fstab to put the entry to mount this volume automatically.&lt;br /&gt;&lt;br /&gt;LABEL=idisk1    /mnt/data1      ext3    _netdev 0       0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Reference:&lt;br /&gt;1. Redhat  Article ID: 7905&lt;br /&gt;2. https://www.openfiler.com/doc/&lt;br /&gt;3. Jeff Hunter's Oracle  http://www.idevelopment.info/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/584481283321339586-6559768329981124166?l=isysadmin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://isysadmin.blogspot.com/feeds/6559768329981124166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=584481283321339586&amp;postID=6559768329981124166' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/6559768329981124166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/584481283321339586/posts/default/6559768329981124166'/><link rel='alternate' type='text/html' href='http://isysadmin.blogspot.com/2007/06/iscsi-on-rhel4-with-openfiler-issue.html' title='iSCSI on RHEL4 with openfiler issue'/><author><name>speed</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_s3Z0Gv03rMg/TPkmRDtCjVI/AAAAAAAAAHE/fRb8pCOCzEY/S220/Winter.jpg'/></author><thr:total>3</thr:total></entry></feed>
