<?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-1591862497911709290</id><updated>2011-11-27T17:16:28.415-08:00</updated><title type='text'>Linux and Oracle and Hiu</title><subtitle type='html'>Yet Another Technical Blog!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2004907681164899157</id><published>2009-09-09T19:42:00.000-07:00</published><updated>2009-09-09T19:54:28.865-07:00</updated><title type='text'>The hint of extracting tarball</title><content type='html'>I created a directory called, file. Then, i touched 3 dummy files, file1, file2, file3.&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 file]# ls&lt;br /&gt;file1  file2  file3&lt;br /&gt;&lt;br /&gt;when i zip those file. I choose two different ways, one with gzip compression and one without&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# tar -cvf file.tar.gz file/&lt;br /&gt;file/&lt;br /&gt;file/file2&lt;br /&gt;file/file3&lt;br /&gt;file/file1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# tar -zcvf file.tgz file&lt;br /&gt;file/&lt;br /&gt;file/file2&lt;br /&gt;file/file3&lt;br /&gt;file/file1&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# tar -jcvf file.tar file&lt;br /&gt;file/&lt;br /&gt;file/file2&lt;br /&gt;file/file3&lt;br /&gt;file/file1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I have three tarball files right now. Then, I do a file command on my tarballs file&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# file file.tar.gz&lt;br /&gt;file.tar.gz: POSIX tar archive&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# file file.tgz&lt;br /&gt;file.tgz: gzip compressed data, from Unix, last modified: Thu Sep 10 10:27:48 2009&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# file file.tar&lt;br /&gt;file.tar: bzip2 compressed data, block size = 900k&lt;br /&gt;&lt;br /&gt;Cool. I have three different formats. POSIX tar archive, and gzip and bzip2 file.&lt;br /&gt;&lt;br /&gt;So, when i extract the tarballs. i will prompt in the command.&lt;br /&gt;        1. tar -zvxf for gzip tarball&lt;br /&gt;        2. tar -xvf for POSIX tar archive&lt;br /&gt;        3. tar -jvxf for bzip2 tarball&lt;br /&gt;&lt;br /&gt;Obviously, the size of those tarballs also varying.&lt;br /&gt;&lt;br /&gt;[root@rhel54-1 ~]# ls -sh file.*&lt;br /&gt;4.0K file.tar   12K file.tar.gz  4.0K file.tgz&lt;br /&gt;&lt;br /&gt;gzip and bzip2 is much more better than POSIX tarball.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2004907681164899157?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2004907681164899157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2004907681164899157' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2004907681164899157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2004907681164899157'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/09/hint-of-when-extracting-tarball.html' title='The hint of extracting tarball'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-6875246034281109532</id><published>2009-06-11T21:30:00.000-07:00</published><updated>2009-06-11T21:32:13.615-07:00</updated><title type='text'>love tai ji</title><content type='html'>&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://www.youtube.com/v/90WYI-Pys-c&amp;amp;hl=en&amp;amp;fs=1&amp;amp;"&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;embed src="http://www.youtube.com/v/90WYI-Pys-c&amp;amp;hl=en&amp;amp;fs=1&amp;amp;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-6875246034281109532?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/6875246034281109532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=6875246034281109532' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6875246034281109532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6875246034281109532'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/06/love-tai-ji.html' title='love tai ji'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-7479911453210146346</id><published>2009-06-09T18:17:00.000-07:00</published><updated>2009-06-09T18:18:16.441-07:00</updated><title type='text'>RPM packaging</title><content type='html'>NUM_RPM_INSTANCE == 1 is a normal installation&lt;br /&gt;&lt;br /&gt;NUM_RPM_INSTANCE == 2 is a normal upgrading&lt;br /&gt;&lt;br /&gt;NUM_RPM_INSTANCE == 0 is a normal uninstallation&lt;br /&gt;&lt;br /&gt;Here are the actual values passed during an install:&lt;br /&gt;&lt;br /&gt;Run %pre of new package (1)&lt;br /&gt;Install new files&lt;br /&gt;Run %post of new package (1)&lt;br /&gt;&lt;br /&gt;Here are the values passed during an upgrade:&lt;br /&gt;&lt;br /&gt;Run %pre of new package (2)&lt;br /&gt;Install new files&lt;br /&gt;Run %post of new package (2)&lt;br /&gt;Run %preun of old package (1)&lt;br /&gt;Delete any old files not overwritten by newer ones&lt;br /&gt;Run %postun of old package (1)&lt;br /&gt;&lt;br /&gt;Here are the values passed during a delete:&lt;br /&gt;&lt;br /&gt;Run %preun of old package (0)&lt;br /&gt;Delete files&lt;br /&gt;Run %postun of old package (0)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-7479911453210146346?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/7479911453210146346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=7479911453210146346' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/7479911453210146346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/7479911453210146346'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/06/rpm-packaging.html' title='RPM packaging'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-5526093692511419884</id><published>2009-06-01T19:44:00.000-07:00</published><updated>2009-06-01T19:45:11.491-07:00</updated><title type='text'>Getting GREP on some colors</title><content type='html'>export GREP_COLOR='1;32'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-5526093692511419884?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/5526093692511419884/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=5526093692511419884' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/5526093692511419884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/5526093692511419884'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/06/getting-grep-on-some-colors.html' title='Getting GREP on some colors'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-6925421235427232573</id><published>2009-05-11T23:04:00.000-07:00</published><updated>2009-05-11T23:12:27.592-07:00</updated><title type='text'>Regexp lesson 2</title><content type='html'>&lt;tt&gt;Regular expression lesson 2&lt;br /&gt;&lt;br /&gt;[ and ] is a define a character set, everything between them is part of the set, and any one of the set members must match (but not all).&lt;br /&gt;&lt;br /&gt;&lt;/tt&gt;&lt;p class="docText"&gt;&lt;span style="font-family:courier new;"&gt;Multiple ranges may be combined in a single set. For example,  the following pattern matches any alphanumeric character in uppercase or  lowercase, but not anything that is neither a digit nor an alphabetic  character:&lt;/span&gt;&lt;a name="idd1e3339"&gt;&lt;/a&gt;&lt;a name="idd1e3344"&gt;&lt;/a&gt;&lt;a name="idd1e3349"&gt;&lt;/a&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-weight: bold;"&gt;[A-Za-z0-9]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This pattern is shorthand for&lt;/pre&gt; &lt;pre&gt;&lt;span style="font-weight: bold;"&gt;[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890]&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;tt&gt;&lt;br /&gt;&lt;/tt&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:verdana;font-size:180%;"  &gt;TEXT&lt;/span&gt;&lt;br /&gt;abbreviated as RegEx or regex&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:verdana;font-size:180%;"  &gt;REGEXP&lt;/span&gt;&lt;br /&gt;[Rr]eg[Ee]x&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:verdana;font-size:180%;"  &gt;RESULT&lt;/span&gt;&lt;br /&gt;abbreviated as &lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;RegEx&lt;/span&gt; or &lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;regex&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-6925421235427232573?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/6925421235427232573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=6925421235427232573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6925421235427232573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6925421235427232573'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/05/regexp-lesson-2.html' title='Regexp lesson 2'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-8986544022970868963</id><published>2009-05-11T22:52:00.000-07:00</published><updated>2009-05-11T23:01:48.791-07:00</updated><title type='text'>Regexp lesson 1</title><content type='html'>&lt;tt&gt;Regular expression lesson 1&lt;br /&gt;&lt;br /&gt;.&lt;/tt&gt; matches any character. &lt;tt&gt;\&lt;/tt&gt;is used to escape characters and to  start special character sequences.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;font-family:verdana;font-size:180%;"  &gt;&lt;span style="font-weight: bold;"&gt;TEXT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;sales1.xls&lt;br /&gt;&lt;br /&gt;orders3.xls&lt;br /&gt;&lt;br /&gt;sales2.xls&lt;br /&gt;&lt;br /&gt;sales3.xls&lt;br /&gt;&lt;br /&gt;apac1.xls&lt;br /&gt;&lt;br /&gt;europe2.xls&lt;br /&gt;&lt;br /&gt;na1.xls&lt;br /&gt;&lt;br /&gt;na2.xls&lt;br /&gt;&lt;br /&gt;sa1.xls&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:180%;" &gt;&lt;span style="font-family:verdana;"&gt;REGEXP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;.a.\.xls&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:verdana;font-size:180%;"  &gt;RESULT&lt;/span&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;sales1.xls&lt;br /&gt;&lt;br /&gt;orders3.xls&lt;br /&gt;&lt;br /&gt;sales2.xls&lt;br /&gt;&lt;br /&gt;sales3.xls&lt;br /&gt;&lt;br /&gt;apac1.xls&lt;br /&gt;&lt;br /&gt;europe2.xls&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;na1.xls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;na2.xls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;sa1.xls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-family:verdana;font-size:180%;"  &gt;TEXT&lt;/span&gt;&lt;br /&gt;sales1.xls&lt;br /&gt;&lt;br /&gt;orders3.xls&lt;br /&gt;&lt;br /&gt;sales2.xls&lt;br /&gt;&lt;br /&gt;sales3.xls&lt;br /&gt;&lt;br /&gt;apac1.xls&lt;br /&gt;&lt;br /&gt;europe2.xls&lt;br /&gt;&lt;br /&gt;na1.xls&lt;br /&gt;&lt;br /&gt;na2.xls&lt;br /&gt;&lt;br /&gt;sa1.xls&lt;br /&gt;&lt;br /&gt;ca1.xls&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;font-size:180%;" &gt;&lt;span style="font-family:verdana;"&gt;REGEXP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;[ns]a.\.xls&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=";font-family:verdana;font-size:180%;"  &gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;RESULT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;sales1.xls&lt;br /&gt;&lt;br /&gt;orders3.xls&lt;br /&gt;&lt;br /&gt;sales2.xls&lt;br /&gt;&lt;br /&gt;sales3.xls&lt;br /&gt;&lt;br /&gt;apac1.xls&lt;br /&gt;&lt;br /&gt;europe2.xls&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;na1.xls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;na2.xls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);" class="docEmphMark"&gt;sa1.xls&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;ca1.xls&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-8986544022970868963?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/8986544022970868963/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=8986544022970868963' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/8986544022970868963'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/8986544022970868963'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/05/regexp-lesson-1.html' title='Regexp lesson 1'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2619381384442313694</id><published>2009-05-11T22:46:00.000-07:00</published><updated>2009-05-11T22:50:45.684-07:00</updated><title type='text'>Highlighting matching on regexp</title><content type='html'>hi all,&lt;br /&gt;&lt;br /&gt;If you wish to declare a environment variable to have regular expression operates with grep where the standard output showing the colors, in fact, you can!&lt;br /&gt;&lt;br /&gt;export GREP_OPTIONS='--color=auto'&lt;br /&gt;&lt;br /&gt;Have fun.&lt;br /&gt;&lt;br /&gt;yen_onn_hiu@nasilemak:~/regexp&gt; grep .a.. text1&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;sale&lt;/span&gt;s1.xls&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;sale&lt;/span&gt;s2.xls&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;sale&lt;/span&gt;s3.xls&lt;br /&gt;a&lt;span style="color: rgb(255, 102, 102);"&gt;pac1&lt;/span&gt;.xls&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;na1.&lt;/span&gt;xls&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;na2.&lt;/span&gt;xls&lt;br /&gt;&lt;span style="color: rgb(255, 102, 102);"&gt;sa1.&lt;/span&gt;xls&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2619381384442313694?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2619381384442313694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2619381384442313694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2619381384442313694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2619381384442313694'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/05/highlighting-matching-on-regexp.html' title='Highlighting matching on regexp'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-1223141580521787059</id><published>2009-05-07T20:05:00.000-07:00</published><updated>2009-05-08T02:37:38.804-07:00</updated><title type='text'>VAS troubleshooting skills</title><content type='html'>Yesterday, I have been spending times to debug the vastool. That's give me error when prompting the id of the account.&lt;br /&gt;&lt;br /&gt;End up, I did a "vas merge" to get all the vas cache load into the /etc/passwd and /etc/group. That's pain. But, It works temporarily.&lt;br /&gt;&lt;br /&gt;Here are the bunch of vas command for troubleshooting.&lt;br /&gt;&lt;br /&gt;1. To check on the user access&lt;br /&gt;&lt;br /&gt;vastool user checkaccess &lt;account_name&gt;[account_name]&lt;br /&gt;&lt;br /&gt;2. To get the vastool status result&lt;br /&gt;&lt;br /&gt;&lt;a href="http://vintela.inside.quest.com/thread.jspa?threadID=9756&amp;amp;tstart=0#"&gt;&lt;span style=";font-family:Consolas;font-size:small;"  &gt;ftp://ftp.vintela.com/vas/support/vas_status.sh.gz&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To get the vastool snapshot&lt;br /&gt;&lt;br /&gt;/opt/quest/libexec/vas/scripts/vas_snapshot.sh&lt;br /&gt;&lt;br /&gt;3. To flush the cache&lt;br /&gt;&lt;br /&gt;vastool flush&lt;br /&gt;&lt;br /&gt;4. To check is vas&lt;br /&gt;&lt;br /&gt;vastool isvas user [account name] &lt;account_name&gt;&lt;br /&gt;&lt;br /&gt;5.  Test AD connection and user password&lt;br /&gt;vastool kinit  [account_name]&lt;username_who_cannot_login&gt;&lt;br /&gt;&lt;br /&gt;6. Test VAS service access control (assuming your using sshd)&lt;br /&gt;vastool user checkaccess -s sshd  [acount_name]&lt;username_who_cannot_login&gt;&lt;br /&gt;&lt;br /&gt;7. Check authentication logs&lt;br /&gt;1) Add the words "debug" and "trace" to the end of all pam_vas lines in /etc/pam.d/system-auth&lt;br /&gt;2) Add "*.debug     /var/log/debug" to /etc/syslog.conf&lt;br /&gt;3) Restart syslog daemon&lt;br /&gt;4) Attempt login&lt;br /&gt;5) Look at output in /var/log/debug for indication/reason of failure&lt;br /&gt;&lt;br /&gt;8. You can also turn on vasd debug if desired&lt;br /&gt;1) vastool configure vas vasd debug-level 3&lt;/username_who_cannot_login&gt;&lt;/username_who_cannot_login&gt;&lt;/account_name&gt;&lt;/account_name&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-1223141580521787059?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/1223141580521787059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=1223141580521787059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1223141580521787059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1223141580521787059'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/05/vas-issue.html' title='VAS troubleshooting skills'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-8612560146846180462</id><published>2009-03-03T01:29:00.000-08:00</published><updated>2009-03-03T01:37:18.569-08:00</updated><title type='text'>vmware way of discovering lun</title><content type='html'>In order to list a vmware lun, please do this.&lt;br /&gt;&lt;br /&gt;[root@testdev01 volumes]# esxcfg-mpath -l&lt;br /&gt;Disk vmhba1:0:16 /dev/sdr (204800MB) has 4 paths and policy of Most Recently Used FC 10:0.0 10000000c9610905&lt;-&gt;5006016941e02f2b vmhba1:0:16 Standby FC 10:0.0 10000000c9610905&lt;-&gt;5006016141e02f2b vmhba1:1:16 On active FC 14:0.0 10000000c96106fc&lt;-&gt;5006016041e02f2b vmhba2:0:16 On FC 14:0.0 10000000c96106fc&lt;-&gt;5006016841e02f2b vmhba2:1:16 Standby  preferred&lt;br /&gt;&lt;br /&gt;Disk vmhba1:0:17 /dev/sds (204800MB) has 4 paths and policy of Most Recently Used FC 10:0.0 10000000c9610905&lt;-&gt;5006016941e02f2b vmhba1:0:17 Standby FC 10:0.0 10000000c9610905&lt;-&gt;5006016141e02f2b vmhba1:1:17 On active FC 14:0.0 10000000c96106fc&lt;-&gt;5006016041e02f2b vmhba2:0:17 On FC 14:0.0 10000000c96106fc&lt;-&gt;5006016841e02f2b vmhba2:1:17 Standby  preferred&lt;br /&gt;&lt;br /&gt;Disk vmhba1:0:18 /dev/sdt (204800MB) has 4 paths and policy of Most Recently Used FC 10:0.0 10000000c9610905&lt;-&gt;5006016941e02f2b vmhba1:0:18 Standby FC 10:0.0 10000000c9610905&lt;-&gt;5006016141e02f2b vmhba1:1:18 On active FC 14:0.0 10000000c96106fc&lt;-&gt;5006016041e02f2b vmhba2:0:18 On FC 14:0.0 10000000c96106fc&lt;-&gt;5006016841e02f2b vmhba2:1:18 Standby  preferred&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-8612560146846180462?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/8612560146846180462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=8612560146846180462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/8612560146846180462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/8612560146846180462'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/03/vmware-way-of-discovering-lun.html' title='vmware way of discovering lun'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-863606115185890209</id><published>2009-02-10T22:10:00.000-08:00</published><updated>2009-06-09T19:13:36.417-07:00</updated><title type='text'>Discovering HBA information from RHEL3 and SLES10</title><content type='html'>If you wish to retrieve information on HBAs on RHEL3 or SLES10 SP1. Basically, here is the path that you are looking for.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;RHEL3: /proc/scsi/lpfc/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SLES10 SP1: /sys/class/fc_host/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;As for the SLES10 SP2 : /sys/class/scsi_host/&lt;br /&gt;&lt;br /&gt;There are bunch of information like HBA model, firmware, speed, port_state and WWN.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-863606115185890209?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/863606115185890209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=863606115185890209' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/863606115185890209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/863606115185890209'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/02/discovering-hba-information-from-rhel3.html' title='Discovering HBA information from RHEL3 and SLES10'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-9028074967515246637</id><published>2009-02-10T21:57:00.000-08:00</published><updated>2009-02-10T22:09:42.308-08:00</updated><title type='text'>Discovering HBA from OEL5</title><content type='html'>hbanyware prepares a good place to query the hba information.&lt;br /&gt;&lt;br /&gt;e.g.&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[root@test03 audit]# /usr/sbin/hbanyware/hbacmd listhbas&lt;br /&gt;Manageable HBA List&lt;br /&gt;Port WWN : 10:00:00:00:c9:63:1d:79&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Node WWN : 20:00:00:00:c9:63:1d:79&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Fabric Name: 10:00:00:05:1e:04:6c:8b&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Flags : 8000f0e5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Host Name : test03.hiu.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Mfg : Emulex Corporation&lt;br /&gt;Port WWN : 10:00:00:00:c9:63:1d:34&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Node WWN : 20:00:00:00:c9:63:1d:34&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Fabric Name: 10:00:00:05:1e:04:3f:9d&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Flags : 8000f0e5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Host Name : test03.hiu.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Mfg : Emulex Corporation&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;"&gt;In order to get the HBA Model, you can get the information from hbanyware command as well.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Times New Roman;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[root@test03 audit]# /usr/sbin/hbanyware/hbacmd hbaAttributes 10:00:00:00:c9:63:1d:79&lt;br /&gt;HBA Attributes for 10:00:00:00:c9:63:1d:79&lt;br /&gt;Host Name : test03.hiu.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Manufacturer : Emulex Corporation&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Serial Number : BG72036851&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Model : LPe1150-E&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Model Desc : EMC LPe1150-E 4Gb PCIe Fibre Channel Adapter&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Node WWN : 20 00 00 00 c9 63 1d 79&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Node Symname : Emulex LPe1150-E FV2.72A2 DV8.2.0.22&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;HW Version : 2057706d&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Opt ROM Version:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;FW Version : 2.72A2 (W3F2.72A2), sli-3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Vendor Spec ID : 10DFNumber of Ports: 1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Driver Name : lpfc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Device ID : F0E5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;HBA Type : LPe1150-E&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Operational FW : SLI-3 Overlay&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SLI1 FW : SLI-1 Overlay 2.72a2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SLI2 FW : SLI-2 Overlay 2.72a2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SLI3 FW : SLI-3 Overlay 2.72a2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;IEEE Address : 00 00 c9 63 1d 79&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Boot BIOS : 1.70a3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Driver Version : 8.2.0.22; HBAAPI(I) v2.1.g, 12-07-07&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Kernel Version : 1.20a4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;HBA Temperature: Not Available&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-9028074967515246637?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/9028074967515246637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=9028074967515246637' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/9028074967515246637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/9028074967515246637'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/02/discovering-hba-from-oel5.html' title='Discovering HBA from OEL5'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-4596078708831005426</id><published>2009-02-08T00:52:00.000-08:00</published><updated>2009-02-08T00:56:16.482-08:00</updated><title type='text'>Configure opensuse11 + rewrite_module</title><content type='html'>if you are using opensuse 11 with cakephp development, most likely you will need to have the rewrite_module enabled on apache2.&lt;br /&gt;&lt;br /&gt;All apache2 modules are kept at /usr/lib/apache2. Please use this command to enable your rewrite_module. Enjoy!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;a2enmod rewrite&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/init.d/apache2 force-reload&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-4596078708831005426?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/4596078708831005426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=4596078708831005426' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/4596078708831005426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/4596078708831005426'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2009/02/configure-opensuse11-rewritemodule.html' title='Configure opensuse11 + rewrite_module'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-3521825608725386222</id><published>2008-10-12T20:44:00.000-07:00</published><updated>2008-10-12T22:51:36.659-07:00</updated><title type='text'>Passed Novell CLP10</title><content type='html'>&lt;span style="font-family:verdana;"&gt;After making my mind to go for the certification, i finally passed the cert. It is not that too hard but, the remote connection is slow and lame. What make worse of it is the timer is keep on triggering, making the feeling of panics and nervous. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-3521825608725386222?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/3521825608725386222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=3521825608725386222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/3521825608725386222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/3521825608725386222'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/10/passed-novell-clp10.html' title='Passed Novell CLP10'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-4360104845872984539</id><published>2008-10-08T19:55:00.000-07:00</published><updated>2008-10-08T20:10:00.217-07:00</updated><title type='text'>Backup Files</title><content type='html'>TAR&lt;br /&gt;We have two different backup, full backup and incremental backup.&lt;br /&gt;&lt;br /&gt;Let's pick our backup folder as /srv/www/htdocs.&lt;br /&gt;&lt;br /&gt;To do a full backup, you need to prompt this command&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;cd /srv/www&lt;br /&gt;tar cvz -g /tmp/backup/snapshot_htdocs -f /tmp/backup/htdocs_full.tar.gz htdocs&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;To do a incremental backup.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;tar cvz -g /tmp/backup/snapshot_htdocs -f /tmp/backup/htdocs_incremental.tar.gz htdocs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;RSYNC&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Rsync backup is much more better than tar. Both incremental and full backup can use the same command to execute. Rsync will pick the changes on backup target without capturing the file snapshot.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;rsync -ave ssh &lt;a href="mailto:root@ip_addr_to_be_backup:/home/users"&gt;root@ip_addr_to_be_backup:/home/users&lt;/a&gt; /tmp/backup_dir&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-4360104845872984539?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/4360104845872984539/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=4360104845872984539' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/4360104845872984539'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/4360104845872984539'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/10/backup-files.html' title='Backup Files'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-4584241428118734093</id><published>2008-10-06T20:13:00.000-07:00</published><updated>2008-10-06T20:23:06.168-07:00</updated><title type='text'>syslog</title><content type='html'>The configuration of syslog-ng is distributed across three files&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/etc/sysconfig/syslog&lt;/li&gt;&lt;li&gt;/etc/syslog-ng/syslog-ng.conf.in&lt;/li&gt;&lt;li&gt;/etc/syslog-ng/syslog-ng.conf&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;/etc/sysconfig/syslog contains general parameters applicable to syslog-ng. &lt;/p&gt;&lt;p&gt;/etc/syslog-ng/syslog-ng.conf.in is the template used to create the configuration file /etc/syslog-ng/syslog-ng.conf, which is the configuration file actually used by syslog-ng. both files have the same syntax.&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;syslogd and syslog-ng share two concepts that you have to understand to the able to configure either one:&lt;/p&gt;&lt;ul&gt;&lt;li&gt;facilities&lt;/li&gt;&lt;li&gt;priorities&lt;/li&gt;&lt;/ul&gt;&lt;p&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-4584241428118734093?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/4584241428118734093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=4584241428118734093' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/4584241428118734093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/4584241428118734093'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/10/syslog.html' title='syslog'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-258783130247778645</id><published>2008-10-05T21:15:00.001-07:00</published><updated>2008-10-06T20:12:50.424-07:00</updated><title type='text'>Creating a virtual interface on opensuse11</title><content type='html'>&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;a normal network interface can be queried via the command ifconfig&lt;br /&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;opensuse01:~ # ifconfig &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;eth2 Link encap:Ethernet HWaddr 00:0C:29:4F:74:C5 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;inet addr:192.168.80.134 Bcast:192.168.80.255 Mask:255.255.255.0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;inet6 addr: fe80::20c:29ff:fe4f:74c5/64 Scope:Link &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;RX packets:346 errors:0 dropped:0 overruns:0 frame:0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;TX packets:781 errors:0 dropped:0 overruns:0 carrier:0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;collisions:0 txqueuelen:1000 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;RX bytes:44214 (43.1 Kb) TX bytes:109649 (107.0 Kb) &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;Interrupt:18 Base address:0x2024&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;lo Link encap:Local Loopback &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;inet addr:127.0.0.1 Mask:255.0.0.0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;inet6 addr: ::1/128 Scope:Host &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;UP LOOPBACK RUNNING MTU:16436 Metric:1 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;RX packets:326 errors:0 dropped:0 overruns:0 frame:0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;TX packets:326 errors:0 dropped:0 overruns:0 carrier:0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;collisions:0 txqueuelen:0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;RX bytes:45674 (44.6 Kb) TX bytes:45674 (44.6 Kb)&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;============================================&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;To add the virtual interface.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;ip addr add 192.168.80.135/24 brd + dev eth2 label eth2:1&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:verdana;"&gt;ifconfig again to the command prompt will display this&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;eth2:1 Link encap:Ethernet HWaddr 00:0C:29:4F:74:C5 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;inet addr:192.168.80.135 Bcast:192.168.80.255 Mask:255.255.255.0 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 &lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;Interrupt:18 Base address:0x2024&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:Verdana;"&gt;============================================&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div align="left"&gt;&lt;span style="font-family:Verdana;"&gt;Please do a ping to the new virtual interface.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;opensuse01:~ # ping 192.168.80.135&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;PING 192.168.80.135 (192.168.80.135) 56(84) bytes of data.&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;64 bytes from 192.168.80.135: icmp_seq=1 ttl=64 time=0.034 ms&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;64 bytes from 192.168.80.135: icmp_seq=2 ttl=64 time=0.039 ms&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;64 bytes from 192.168.80.135: icmp_seq=3 ttl=64 time=0.049 ms&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;64 bytes from 192.168.80.135: icmp_seq=4 ttl=64 time=0.049 ms&lt;/span&gt;&lt;/div&gt;&lt;div align="left"&gt;&lt;span style="font-family:Verdana;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-258783130247778645?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/258783130247778645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=258783130247778645' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/258783130247778645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/258783130247778645'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/10/creating-virtual-interface-on.html' title='Creating a virtual interface on opensuse11'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-1535244900345007192</id><published>2008-09-21T19:30:00.000-07:00</published><updated>2008-09-21T20:04:07.608-07:00</updated><title type='text'>Linux Users and Groups</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Linux stores all users&lt;/span&gt; and groups configuration data in the following files.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/etc/passwd&lt;/li&gt;&lt;li&gt;/etc/shadow&lt;/li&gt;&lt;li&gt;/etc/group&lt;/li&gt;&lt;/ul&gt;E.G&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;geeko:x:1000:100:Geeko Chameleon:/home/geeko:/bin/bash&lt;br /&gt;geeko:$sdfsdf$123$asf234sdfasdf23132:13181:0:9999:7:-1::&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;The above illustration shows the entry for the user geeko with an encrypted password. Some users such as wwwrun or bin ave an * in the password field. This means that these users can not log in to the system, but are for special applications.&lt;br /&gt;&lt;br /&gt;Command to manage the users and groups.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;useradd -m : automatically generates the home directory for the user. Without this argument, the directory is created under /home/&lt;/li&gt;&lt;li&gt;useradd -c : creating a new user with the ext for comment field.&lt;/li&gt;&lt;li&gt;useradd -u : specifying the UID of the new account.&lt;/li&gt;&lt;li&gt;useradd -g : specifying the primary group of the user.&lt;/li&gt;&lt;li&gt;useradd -e : set the expire date.&lt;/li&gt;&lt;li&gt;usermod : used to modify the setting. All the options used by usermod is the same as useradd&lt;/li&gt;&lt;li&gt;passwd -l :  a user can be locked out.&lt;/li&gt;&lt;li&gt;passwd -u : a user can be unlocked, or re-activated.&lt;/li&gt;&lt;li&gt;if /etc/shadow lists a user account where is the password field is started with !, it means this account had been locked.&lt;/li&gt;&lt;li&gt;passwd -S : list the status of a user account.&lt;/li&gt;&lt;li&gt;passwd -i : disable an account after the password has been expired for number of days&lt;/li&gt;&lt;li&gt;passwd -n : sets the minimum number of days before a password can be changed.&lt;/li&gt;&lt;li&gt;passwd -w : warns the user that in number of days his password will expire.&lt;/li&gt;&lt;li&gt;passwd -x : sets the maximum number of days a password remains valid. After number of days the password must be changed.&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: courier new;"&gt;E.G passwd -x 30 -w 5 geeko&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: verdana;"&gt;When the passwd command is used, the /etc/default/passwd file is checked for the encryption method.&lt;br /&gt;&lt;br /&gt;Manage groups from the command line.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;ul&gt;&lt;li&gt;groupadd -g 200 sports : adding a new group, called sport with gid, 200&lt;/li&gt;&lt;li&gt;groupdel sports : deleting a group called sports&lt;/li&gt;&lt;li&gt;groupmod -g 201 sports : modifying the gid of sports group to 201&lt;/li&gt;&lt;li&gt;groupmod -A geeko : add the user geekp to the group&lt;/li&gt;&lt;li&gt;gpasswd : Change password for group accounts.&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: verdana;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;/span&gt;The standrad configuration information is derived from 2 importants files.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;/etc/default/useradd&lt;/li&gt;&lt;li&gt;/etc/login.defs&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-1535244900345007192?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/1535244900345007192/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=1535244900345007192' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1535244900345007192'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1535244900345007192'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/09/linux-users-and-groups.html' title='Linux Users and Groups'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-1035313497555368634</id><published>2008-09-14T21:00:00.000-07:00</published><updated>2008-09-20T06:38:21.968-07:00</updated><title type='text'>Apache on SLES10</title><content type='html'>&lt;span style="font-family:verdana;"&gt;To setup a basic apache webserver, you need to install&lt;/span&gt;&lt;br /&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;apache2&lt;/li&gt;&lt;li&gt;apache2-prefork&lt;/li&gt;&lt;li&gt;apache2-example-pages (optional)&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;Commands to administer apache2&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;To start apache2: rcapache2 start&lt;/li&gt;&lt;li&gt;To stop: rcapache2 stop&lt;/li&gt;&lt;li&gt;To let apache starts at boot time: insserv apache2&lt;/li&gt;&lt;li&gt;To reload the config file: rcapache2 reload&lt;/li&gt;&lt;li&gt;To restart daemon: rcapache2 restart&lt;/li&gt;&lt;li&gt;To examine the syntax of the config files: apache2ctl configtest&lt;/li&gt;&lt;li&gt;The default directory: /srv/www/htdocs. It is called DocumentRoot of the web server.&lt;/li&gt;&lt;li&gt;wwwrun is the user that executing apache2&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;Apache2 configuration files&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;/etc/apache2/httpd.conf - The main apache configuration file.&lt;/li&gt;&lt;li&gt;/etc/apache2/default-server.conf - Contains the basic web server setup. All options set in this file can be overwritten by other configuration files.&lt;/li&gt;&lt;li&gt;/etc/apache2/vhost.d - The directory for virtual host setups.&lt;/li&gt;&lt;li&gt;/etc/apache2/uuid - Sets the user and group id for apache. By default, apache uses wwwrun(uid) and www(gid)&lt;/li&gt;&lt;li&gt;/etc/apache2/server-tuning.conf - tune the performance of apache2.&lt;/li&gt;&lt;li&gt;/etc/apache2/errors.conf - configure the behavior of apache when a request cannot be performed.&lt;/li&gt;&lt;li&gt;/etc/apache2/ssl-global.conf - configure the connection encryption with SSL.&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;Create RSA Key Pair&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;cat /dev/random &gt; /tmp/random Stop this command after a few seconds by pressing Ctrl-C&lt;/li&gt;&lt;li&gt;To create the server key: openssl genrsa -des3 -rand /tmp/random 1024 -out server.key&lt;/li&gt;&lt;li&gt;Sign the public key to create a certification: openssl req -new -x509 -key server.key -out server.crt&lt;/li&gt;&lt;li&gt;Copy the server.key to /etc/apache2/ssl.key/* and copy the server.crt to /etc/apache2/ssl.crt/*&lt;/li&gt;&lt;li&gt;To configure the main server, you need to add the following  lines to /etc/apache2/default-server.conf&lt;/li&gt;&lt;li&gt;SSLEngine on&lt;/li&gt;&lt;li&gt;SSLCertificateFile /etc/apache2/ssl.crt/server.crt&lt;/li&gt;&lt;li&gt;SSLCertificateKeyFile /etc/apache2/ssl.key/server.key&lt;/li&gt;&lt;li&gt;APACHE_START_TIMEOUT="10" - This setting extends the start timeout of apache so that have more time to enter the passphrase of the private RSA key.&lt;/li&gt;&lt;li&gt;APACHE_SERVER_FLAGS="SSL" - This enables some directives that are necessary for SSL encrytion. It lets apache listen on port 443 instead of only to port 80.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-1035313497555368634?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/1035313497555368634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=1035313497555368634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1035313497555368634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1035313497555368634'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/09/apache-on-sles10.html' title='Apache on SLES10'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-7318870667395565464</id><published>2008-09-14T19:42:00.000-07:00</published><updated>2008-09-20T06:52:22.159-07:00</updated><title type='text'>Xen on SLES10</title><content type='html'>&lt;span style="font-family:verdana;"&gt;Xen consists of two major components.&lt;/span&gt;&lt;br /&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;Virtual Machine Monitor (VMM) - A layer between physical hardware and VM. In general term, this is called hypervisor.&lt;/li&gt;&lt;li&gt;Xen Tools - a set of command line application used to administer VM.&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;VMM must be loaded before any of VMs are started. VM in xen are called as &lt;strong&gt;domains&lt;/strong&gt;. Privileged domain, called domain0 is an interface to communicate directly with an adminstrator to access the physical hardware of the host machine.&lt;/p&gt;&lt;p style="font-family: verdana;"&gt;An unprivileged domain is called domainU. To install Xen, the following package is needed.&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;xen&lt;/li&gt;&lt;li&gt;xen-tools&lt;/li&gt;&lt;li&gt;kernel-xen&lt;/li&gt;&lt;li&gt;xen-doc* (optional)&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;After the installation, the reboot is required to boot into Xen bootloader. In case the system is not booting properly, you can switch back to the non-virtualized system and disable the firewall.&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;rcSuSEfirewall2 stop&lt;/li&gt;&lt;li&gt;insserv -r SuSEfirewall2_setup&lt;/li&gt;&lt;li&gt;insserv -r SuSEfirewall2_init&lt;/li&gt;&lt;li&gt;insserv -r SuSEfirewall_final (conditional)&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;To manage Xen domains at the commands line.&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;Xen configuration file is located at: /etc/xen/vm&lt;/li&gt;&lt;li&gt;There are examples of template configuration file for a single domain: /etc/xen/examples&lt;/li&gt;&lt;li&gt;xm is the administration tools, it communicates with the xend management processes running on domain0 linux installation.&lt;/li&gt;&lt;li&gt;To start a vm, the create command is used: xm create -c -f /data/xen/SLES10-WebServer.conf&lt;/li&gt;&lt;li&gt;To list the currently running Xen domains: xm list&lt;/li&gt;&lt;li&gt;The list command contains the following fields: name, domid, memory, vcpus, state (r - running, b - blocked, domain has been created, but it is blocked when a domain is waiting for IO or nothing to do, p - pause, s - shutdown, c - crashed)&lt;/li&gt;&lt;li&gt;To connects you with the terminal of running domain: xm console domain_id&lt;/li&gt;&lt;li&gt;To disconnect from a terminal: use the keystrokes: Ctrl-]&lt;/li&gt;&lt;li&gt;To interrupt the execution a domain temporarily: xm pause domain_id&lt;/li&gt;&lt;li&gt;To unpause: xm unpause domain_id&lt;/li&gt;&lt;li&gt;To shutdown: xm shutdown domain_id&lt;/li&gt;&lt;li&gt;To force shutdown a not responding domain: xm destroy domain_id&lt;/li&gt;&lt;li&gt;To save the state of a domain for a longer time: xm save domain_id&lt;/li&gt;&lt;li&gt;To restore a domain from a resulting file: xm restore filename&lt;/li&gt;&lt;li&gt;To change the memory allocation for a domain: xm mem-set domain_id amount_of_memory_in_megabytes&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;Automate Domain Startup and shutdown&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;SLES10 comes with a start script called, xendomains, which included in the xen-tools package.&lt;/li&gt;&lt;li&gt;If domain0 is booted, all the domains with the configuration files located under /etc/xen/auto will be started.&lt;/li&gt;&lt;li&gt;If domain0 is shutdown, or rebooted, all the running Xen domains will be shutdown.&lt;/li&gt;&lt;li&gt;The script can be adjusted /etc/sysconfig/xendomains for some configuration options like: XENDOMAINS_MIGRATE. It will migrate domain automatically to a different host when a domain0 is shutdown. The flags has to be set to the IP address of the target machine.&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;Understand Xen Networking&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ITqTes2RlSQ/SNT_CGmRBnI/AAAAAAAAAIw/t3YuQjkfj7I/s1600-h/xen-network.bmp"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://4.bp.blogspot.com/_ITqTes2RlSQ/SNT_CGmRBnI/AAAAAAAAAIw/t3YuQjkfj7I/s320/xen-network.bmp" alt="" id="BLOGGER_PHOTO_ID_5248099877389403762" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;domain0 is controlling the physical network interfaces of the host system. Unprivileged domains are connected to domain0 through Virtual Ethernet adapters.&lt;/li&gt;&lt;li&gt;domainU (VE) &lt;----&gt;(VE)domain0(Physical Ethernet)&lt;------&gt;Network(LAN)&lt;/li&gt;&lt;li&gt;The default mechanism to connect VE and PE in domain0 is bridging.&lt;/li&gt;&lt;li&gt;When a new domain is created, the following steps happened.&lt;/li&gt;&lt;li&gt;        1. Xen provides a VE to the new domain&lt;/li&gt;&lt;li&gt;        2. xend creates a new VE in domain0&lt;/li&gt;&lt;li&gt;        3. both VE are connected through a virtual point to point connection.&lt;/li&gt;&lt;li&gt;        4. The VE in domain0 is added to the bridge with the physical interface.&lt;/li&gt;&lt;li&gt;xend performs the networking changes with the help of scripts: /etc/xen/scripts.&lt;/li&gt;&lt;li&gt;The script to initiate the bridge xenbr0: /etc/xen/scripts/nework-bridge&lt;/li&gt;&lt;li&gt;The script to start and add the VE: /etc/xen/scripts/vif-bridge&lt;/li&gt;&lt;li&gt;To configure the network scripts are used by xend: /etc/xen/xend-config.sxp&lt;/li&gt;&lt;li&gt;Command: ip a is prompted on domain0 will list down all the different interface naming schema.&lt;/li&gt;&lt;li&gt;        1. peth - physical interfaces in domain0. peth devices are connected to the network bridge&lt;/li&gt;&lt;li&gt;        2. vif - virtual interfaces which are part of the bridge. E.g: vif6.0 is connected to the first vif in domain 6.&lt;/li&gt;&lt;li&gt;        3. veth - virtual interfaces are connected to the vif interfaces of domain0 (vif0.x)&lt;/li&gt;&lt;li&gt;        4. eth0 - the default veth interface is named eth0 and connected with vif0.0. This is the default network interface of domain0.&lt;/li&gt;&lt;li&gt;        5. xenbr0 - the default bridge that connects virtual and physical interfaces.&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt; &lt;/p&gt;&lt;p style="font-family: verdana;"&gt;Migrate a Guest Domain&lt;/p&gt;&lt;ul style="font-family: verdana;"&gt;&lt;li&gt;2 methods: Use domain save and restore or Use migration and live migration.&lt;/li&gt;&lt;li&gt;Domain Save and Restore&lt;/li&gt;&lt;li&gt;    1. suspend the domain: xm save domain_id filename&lt;/li&gt;&lt;li&gt;    2. copy the file to the new host system, then restore the domain: xm restore filename&lt;/li&gt;&lt;li&gt;Migration and Live Migration&lt;/li&gt;&lt;li&gt;    1. xm migrate domain_id target_host&lt;/li&gt;&lt;li&gt;    2. By adding --live migration flag, the downtime during the migration can be reduced.&lt;/li&gt;&lt;li&gt;    3. /etc/xen/xend-config.sxp with 2 importants flags: xend-relocation-server yes, xend-relocation-hosts-allow '^localhost$'&lt;/li&gt;&lt;/ul&gt;&lt;p style="font-family: verdana;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-family: verdana;"&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-7318870667395565464?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/7318870667395565464/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=7318870667395565464' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/7318870667395565464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/7318870667395565464'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/09/xen-on-sles10.html' title='Xen on SLES10'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ITqTes2RlSQ/SNT_CGmRBnI/AAAAAAAAAIw/t3YuQjkfj7I/s72-c/xen-network.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-6716264068656596628</id><published>2008-09-03T20:29:00.000-07:00</published><updated>2008-09-03T20:32:07.026-07:00</updated><title type='text'>VI Cursor Movement Commands</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_ITqTes2RlSQ/SL9WYgNES_I/AAAAAAAAAIo/J9aTu7mK7E8/s1600-h/vi-keystrokes"&gt;&lt;img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://4.bp.blogspot.com/_ITqTes2RlSQ/SL9WYgNES_I/AAAAAAAAAIo/J9aTu7mK7E8/s320/vi-keystrokes" border="0" alt="" id="BLOGGER_PHOTO_ID_5242003470244137970" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-6716264068656596628?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/6716264068656596628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=6716264068656596628' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6716264068656596628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6716264068656596628'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/09/blog-post.html' title='VI Cursor Movement Commands'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_ITqTes2RlSQ/SL9WYgNES_I/AAAAAAAAAIo/J9aTu7mK7E8/s72-c/vi-keystrokes' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2064035815184933123</id><published>2008-08-30T01:33:00.000-07:00</published><updated>2008-08-30T01:34:20.251-07:00</updated><title type='text'>xargs and find</title><content type='html'>&lt;h2&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;xargs and find&lt;/span&gt;&lt;/h2&gt;  &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;&lt;tt&gt;find&lt;/tt&gt; and &lt;tt&gt;xargs&lt;/tt&gt; do go very well together: &lt;tt&gt;find&lt;/tt&gt; to locate what you're looking for, and &lt;tt&gt;xargs&lt;/tt&gt; to run the same command on each of the things found. &lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;Traditionally, an advantage to &lt;tt&gt;xargs&lt;/tt&gt; was its ability to handle long command lines before failing, unlike some other commands.  This command: &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;rm `find tmp -maxdepth 1 -name '*.mp3'`&lt;/span&gt;&lt;/pre&gt; &lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;is intended to remove all &lt;tt&gt;tmp/*.mp3&lt;/tt&gt; files (and ignore any subdirectories), but can fail with an "Argument list too long" message.  This exact equivalent:  &lt;/span&gt;&lt;pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;find tmp -maxdepth 1 -name '*.mp3' -maxdepth 1 | xargs rm&lt;/span&gt;&lt;/pre&gt;  &lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;does exactly the same thing but will avoid the problem by batching arguments up.  More modern kernels (since 2.6.23) shouldn't have this issue, but it's wise to make your scripts as portable as possible; and the &lt;tt&gt;xargs&lt;/tt&gt; version is also easier on the eye. &lt;/span&gt;  &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;You can also manually batch arguments if needed, using the &lt;tt&gt;-n&lt;/tt&gt; option.    &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;find tmp -maxdepth 1 -name '*.mp3' -maxdepth 1 | xargs -n1 rm&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;   will pass one argument at a time to &lt;tt&gt;rm&lt;/tt&gt;.  This is also useful if you're using the &lt;tt&gt;-p&lt;/tt&gt; option as you can confirm one file at a time rather than all at once. &lt;/span&gt;  &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;Filenames containing whitespace can also cause problems; &lt;tt&gt;xargs&lt;/tt&gt; and &lt;tt&gt;find&lt;/tt&gt; can deal with this, using GNU extensions to both to break on the null character rather than on whitespace:   &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;find tmp -maxdepth 1 -name *.mp3 -print0 | xargs -0 rm&lt;/span&gt;&lt;/pre&gt;  &lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;You must use these options either on both &lt;tt&gt;find&lt;/tt&gt; and &lt;tt&gt;xargs&lt;/tt&gt; or on neither, or you'll get odd results.&lt;/span&gt;  &lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;Another common use of &lt;tt&gt;xargs&lt;/tt&gt; with &lt;tt&gt;find&lt;/tt&gt; is to combine it with &lt;tt&gt;grep&lt;/tt&gt;.  For example,   &lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;find . -name '*.pl' | xargs grep -L '^use strict'&lt;/span&gt;&lt;/pre&gt;&lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;   will search all the &lt;tt&gt;*.pl&lt;/tt&gt; files in the current directory and subdirectories, and print the names of any that don't have a line starting with &lt;tt&gt;'use strict'&lt;/tt&gt;.  Enforce good practice in your scripting!&lt;/span&gt; &lt;span style="font-family:Verdana, Arial, Helvetica;font-size:85%;"&gt;        &lt;/span&gt;&lt;p align="right"&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2064035815184933123?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2064035815184933123/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2064035815184933123' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2064035815184933123'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2064035815184933123'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/08/xargs-and-find.html' title='xargs and find'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-816622768509578764</id><published>2008-08-21T00:51:00.000-07:00</published><updated>2008-09-03T20:41:01.112-07:00</updated><title type='text'>Configure Special File Permissions</title><content type='html'>&lt;strong&gt;Name: sticky bit, 1, t&lt;/strong&gt;&lt;br /&gt;Users can only delete files when they are owner, or when they are root or owner of the directory. This is usually applied to be /tmp directory.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Name: SGID (Set GroupID), 2, s&lt;/strong&gt;&lt;br /&gt;When a program is run, this sets the group ID of the process to that of the group of the file. Files created in this directory belong to the group to which the directory belongs and not the primary group of the users. New directories created in this directories inherit the SGID bit.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Name: SUID (Set UserID), 4, s&lt;br /&gt;&lt;/strong&gt;Sets the user ID of the process to that of the owner of the file when the program is run.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-816622768509578764?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/816622768509578764/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=816622768509578764' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/816622768509578764'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/816622768509578764'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/08/configure-special-file-permissions.html' title='Configure Special File Permissions'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2710122375444962466</id><published>2008-08-20T18:14:00.001-07:00</published><updated>2008-08-20T18:14:22.255-07:00</updated><title type='text'>UUID</title><content type='html'>1. If you don't know the UUID of your disk, you can find it by using one of the several commands below:&lt;br /&gt;&lt;br /&gt;host # vol_id /dev/sda3&lt;br /&gt;...&lt;br /&gt;ID_FS_UUID=a1331d73-d640-4bac-97b4-cf33a375ae5b&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;or:&lt;br /&gt;&lt;br /&gt;host # blkid /dev/sda3 &lt;-- Leave blank to show all disks&lt;br /&gt;/dev/sda3: LABEL="/" UUID="a1331d73-d640-4bac-97b4-cf33a375ae5b" SEC_TYPE="ext3" TYPE="ext2" &lt;br /&gt;&lt;br /&gt;also:&lt;br /&gt;&lt;br /&gt;host # ls -l /dev/disk/by-uuid|grep sda3&lt;br /&gt;lrwxrwxrwx 1 root root 10 11. Okt 18:02 a1331d73-d640-4bac-97b4-cf33a375ae5b-&gt; ../../sda3&lt;br /&gt;&lt;br /&gt;2. If you prefer to generate your own UUID's (see above), you can use the uuidgen command and couple it with tune2fs to change the default UUID assigned to your disk by the system, like this:&lt;br /&gt;&lt;br /&gt;host # uuidgen&lt;br /&gt;1d721189-7b71-4315-95a7-1c3abc90d379&lt;br /&gt;host # tune2fs -U 1d721189-7b71-4315-95a7-1c3abc90d379 /dev/sda3&lt;br /&gt;&lt;br /&gt;3. Then again, if you already know the UUID, you might want to find out what disk it's associated with. You can generally get this information with the "findfs" command, like so:&lt;br /&gt;&lt;br /&gt;host # findfs UUID=a1331d73-d640-4bac-97b4-cf33a375ae5b&lt;br /&gt;/dev/sda3&lt;br /&gt;&lt;br /&gt;Of course, using some of the commands above and grepping out part of the UUID will also get you your answer, like:&lt;br /&gt;&lt;br /&gt;host # ls -l /dev/disk/by-uuid|grep a1331d73-d640-4bac-97b4-cf33a375ae5b&lt;br /&gt;lrwxrwxrwx 1 root root 10 11. Okt 18:02 a1331d73-d640-4bac-97b4-cf33a375ae5b-&gt; ../../sda3&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;host # blkid|grep a1331d73-d640-4bac-97b4-cf33a375ae5b &lt;-- remember that blkid with no arguments returns all of the system disk&lt;br /&gt;/dev/sda3: LABEL="/" UUID="a1331d73-d640-4bac-97b4-cf33a375ae5b" SEC_TYPE="ext3" TYPE="ext2"&lt;br /&gt;&lt;br /&gt;4. And, lastly (for this post, at least ;), you can mount your disks using the UUID, and even incorporate that automated UUID mounting into your /etc/fstab. To mount directly from the command line, you can do something like this:&lt;br /&gt;&lt;br /&gt;host # mount -U a1331d73-d640-4bac-97b4-cf33a375ae5b /directory/you/mount/this/disk/on&lt;br /&gt;&lt;br /&gt;and you could instruct your system to mount this partition by UUID from within the fstab, as well. It works basically the same way that the LABEL keyword does:&lt;br /&gt;&lt;br /&gt;host # cat /etc/fstab&lt;br /&gt;...&lt;br /&gt;UUID=a1331d73-d640-4bac-97b4-cf33a375ae5b /directory/you/mount/this/disk/on ext3fs defaults 1 1&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And, at this point, you should be able to figure your way around using UUID's to manipulate your disk on Linux with no problem. Enjoy, and please "be careful" :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2710122375444962466?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2710122375444962466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2710122375444962466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2710122375444962466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2710122375444962466'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/08/uuid.html' title='UUID'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2998285085460374616</id><published>2008-05-15T08:12:00.000-07:00</published><updated>2008-05-15T08:15:54.142-07:00</updated><title type='text'>Expect and SSH</title><content type='html'>#!/usr/bin/expect -f&lt;br /&gt;&lt;br /&gt;set username [lrange $argv 0 0]&lt;br /&gt;set password [lrange $argv 1 1]&lt;br /&gt;set ipaddr [lrange $argv 2 2]&lt;br /&gt;set timeout -1&lt;br /&gt;&lt;br /&gt;spawn ssh $username@$ipaddr&lt;br /&gt;match_max 100000&lt;br /&gt;&lt;br /&gt;expect {&lt;br /&gt;        "*?(yes/no)*" { send -- "yes\r" }&lt;br /&gt;        "*?assword:*" { send -- "$password\r" }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;set timeout 10&lt;br /&gt;expect {&lt;br /&gt;        "*?assword:*" { send -- "$password\r" }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;expect "$username*" { send -- "sudo su - \r" }&lt;br /&gt;interact&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2998285085460374616?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2998285085460374616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2998285085460374616' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2998285085460374616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2998285085460374616'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/05/expect-and-ssh.html' title='Expect and SSH'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-1910939964282183949</id><published>2008-04-27T07:25:00.000-07:00</published><updated>2008-04-27T07:43:35.462-07:00</updated><title type='text'>System Global Area</title><content type='html'>The SGA consists of several memory structures:&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;1. Shared Pool&lt;br /&gt;2. Database Buffer Cache&lt;br /&gt;3. Redo Log Buffer&lt;br /&gt;4. Other structures (for example, lock and latch management, statistical data)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Shared Pool&lt;/span&gt;&lt;br /&gt;It consists of two key performance-related memory structures, &lt;span style="font-weight:bold;"&gt;Library Cache&lt;/span&gt;, &lt;span style="font-weight:bold;"&gt;Data Dictionary Cache&lt;/span&gt;. Because the Shared Pool can be shared globally, such as reusable SQL execution plans, PL/SQL packages, procedures, functions, and cursor information, it must be sized to accommodate the needs of both the fixed and variables areas. Memory allocation for the Shared Pool is determined by the SHARED_POOL_SIZE initialization parameter. It can be dynamically resized using ALTER SYSTEM SET. After performance analysis, this can be adjusted but the total SGA size cannot exceed SGA_MAX_SIZE.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Libray Cache&lt;/span&gt;&lt;br /&gt;It stores information about eh most recently used SQL and PL/SQL statements. It enables the sharing of commonly used statements which is managed by the least recently used (LRU) algorithm. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Data Dictionary Cache&lt;/span&gt;&lt;br /&gt;This is a collection of the most recently used definitions in the database, which includes information about database files, tables, indexes, columns, users, privileges, and other database objects. During the parse phase, the server process looks at the data dictionary for information to resolve object names and validate access. By caching data dctionary information into memory improves response time on queries and DML.&lt;br /&gt;&lt;br /&gt;There are two additional memory structures that can be configured within the SGA:&lt;br /&gt;1. Large Pool&lt;br /&gt;2. Java Pool&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-1910939964282183949?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/1910939964282183949/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=1910939964282183949' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1910939964282183949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1910939964282183949'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/04/system-global-area.html' title='System Global Area'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2241910289354029843</id><published>2008-04-23T12:13:00.000-07:00</published><updated>2008-04-23T12:17:29.117-07:00</updated><title type='text'>Oracle Architecture Diagram</title><content type='html'>&lt;div style='text-align:left;margin:0px auto 10px;'&gt;&lt;A HREF='http://3.bp.blogspot.com/_ITqTes2RlSQ/SA-KW59m_OI/AAAAAAAAAH4/JMwMobaoozc/s1600-h/Oracle+Architect.jpg'&gt;&lt;br /&gt;&lt;IMG SRC='http://3.bp.blogspot.com/_ITqTes2RlSQ/SA-KW59m_OI/AAAAAAAAAH4/JMwMobaoozc/s400/Oracle+Architect.jpg' border=0 alt='' id='BLOGGER_PHOTO_ID_' &gt;&lt;/A&gt;&amp;nbsp;&lt;/div&gt;&lt;div style='clear:both; text-align:LEFT'&gt;&lt;a href='http://picasa.google.com/blogger/' target='ext'&gt;&lt;img src='http://photos1.blogger.com/pbp.gif' alt='Posted by Picasa' style='border: 0px none ; padding: 0px; background: transparent none repeat scroll 0% 50%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;' align='left' border='0' /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2241910289354029843?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2241910289354029843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2241910289354029843' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2241910289354029843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2241910289354029843'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/04/oracle-architecture-diagram_23.html' title='Oracle Architecture Diagram'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_ITqTes2RlSQ/SA-KW59m_OI/AAAAAAAAAH4/JMwMobaoozc/s72-c/Oracle+Architect.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-1565185112235064050</id><published>2008-04-23T11:21:00.000-07:00</published><updated>2008-04-27T07:24:45.905-07:00</updated><title type='text'>Oracle Primary Components</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Oracle server:&lt;/span&gt; &lt;br /&gt;There are several files, processes and memory structures in an Oracle server, however, not all of them are used when processing a SQL statement. Some are used to improve the performance of the databse, to ensure that the database can be recovered in the event of a software of hardware error, ot to perform other tasks necessary to maintain the database. The Oracle server consists of an Oracle instance and an Oracle database&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Oracle Instance:&lt;/span&gt;&lt;br /&gt;An Oracle instance is the combination of the background processes and memory structures. The instance must be started to access the data in the database. Every time an instance is started, a System Global Area (SGA) is allocated and Oracle background processes are started. Background processes perform functions on behalf of the invoking procceses. They consolidate functions that would otherwise be handled my multiple Oracle programs running for each user. The background processes perform input/output (I/O) and monitor other ORacle processes to provide increased parallelism for better performance and reliability. An Oracle instance consists of the System Global Area (SGA) memory structure and the background processes that are used to manage a database. An instance is identified by using methods specific to each operating system. The instance can open and use only one database at a time.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Oracle Database:&lt;/span&gt;&lt;br /&gt;The general purpose of a database is to store and retrieve related information. an Oracle database has a logical and a physical structure. The physical structure of the database is a set of operating system files in the database. An Oracle database consists of three file types.&lt;br /&gt;1. Data files containing the actual data in the database.&lt;br /&gt;2. Online redo log files containing a record of changes made to the database to enable recovery of the data in case of failures.&lt;br /&gt;3. Control files containing information necessary to maintain and verify database integrity.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Memory Structure&lt;/span&gt;&lt;br /&gt;Oracle's memory structure consists of two memory areas known as&lt;br /&gt;1. System Global Area (SGA): Allocated at instance startup, and is a fundamental component of an Oracle instance.&lt;br /&gt;2. Program Global Area (PGA): Allocated when the server process is started.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-1565185112235064050?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/1565185112235064050/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=1565185112235064050' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1565185112235064050'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/1565185112235064050'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/04/oracle-primary-components.html' title='Oracle Primary Components'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-6804871659383464984</id><published>2008-01-09T06:35:00.000-08:00</published><updated>2008-01-09T17:14:46.512-08:00</updated><title type='text'>Migration ASM from /dev/sdc to /dev/sdb</title><content type='html'>&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;1. Startup ASM on sdc&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 ~]# fdisk -l /dev/sdc&lt;br /&gt;&lt;br /&gt;Disk /dev/sdc: 10.7 GB, 10737418240 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1305 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/sdc1 1 487 3911796 83 Linux&lt;br /&gt;/dev/sdc2 488 974 3911827+ 83 Linux&lt;br /&gt;[root@oracle01 ~]# su - oracle&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ export ORACLE_SID=+ASM&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 9 22:10:09 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle. All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;ASM instance started&lt;br /&gt;&lt;br /&gt;Total System Global Area 83886080 bytes&lt;br /&gt;Fixed Size 1217836 bytes&lt;br /&gt;Variable Size 57502420 bytes&lt;br /&gt;ASM Cache 25165824 bytes&lt;br /&gt;ASM diskgroups mounted&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ asmcmd&lt;br /&gt;ASMCMD&gt; lsdg&lt;br /&gt;State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name&lt;br /&gt;MOUNTED NORMAL N N 512 4096 1048576 7640 5284 0 2642 0 DATA/&lt;br /&gt;ASMCMD&gt; exit&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;2. Create filesystem onto sdb and do a dd sdc[1-2] to files (data_lun1, data_lun2)&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 ~]# fdisk -l /dev/sdb&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb: 10.7 GB, 10737418240 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1305 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/sdb1 1 1305 10482381 83 Linux&lt;br /&gt;[root@oracle01 ~]# mkfs /dev/sdb1&lt;br /&gt;mke2fs 1.35 (28-Feb-2004)&lt;br /&gt;max_blocks 2683489280, rsv_groups = 81894, rsv_gdb = 639&lt;br /&gt;Filesystem label=&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;1310720 inodes, 2620595 blocks&lt;br /&gt;131029 blocks (5.00%) reserved for the super user&lt;br /&gt;First data block=0&lt;br /&gt;Maximum filesystem blocks=2684354560&lt;br /&gt;80 block groups&lt;br /&gt;32768 blocks per group, 32768 fragments per group&lt;br /&gt;16384 inodes per group&lt;br /&gt;Superblock backups stored on blocks:&lt;br /&gt;32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632&lt;br /&gt;&lt;br /&gt;Writing inode tables: done&lt;br /&gt;inode.i_blocks = 46016, i_size = 4243456&lt;br /&gt;Writing superblocks and filesystem accounting information: done&lt;br /&gt;&lt;br /&gt;This filesystem will be automatically checked every 33 mounts or&lt;br /&gt;180 days, whichever comes first. Use tune2fs -c or -i to override.&lt;br /&gt;[root@oracle01 ~]# mount /dev/sdb1 /mydata/&lt;br /&gt;[root@oracle01 ~]# df -h&lt;br /&gt;Filesystem Size Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;7.3G 3.5G 3.5G 51% /&lt;br /&gt;/dev/sda1 99M 9.0M 85M 10% /boot&lt;br /&gt;none 126M 0 126M 0% /dev/shm&lt;br /&gt;/dev/sdb1 9.9G 23M 9.4G 1% /mydata&lt;br /&gt;[root@oracle01 ~]# dd if=/dev/sdc1 of=/mydata/data_lun1 bs=1M&lt;br /&gt;3820+1 records in&lt;br /&gt;3820+1 records out&lt;br /&gt;[root@oracle01 ~]# dd if=/dev/sdc2 of=/mydata/data_lun2 bs=1M&lt;br /&gt;3820+1 records in&lt;br /&gt;3820+1 records out&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;3. Shutdown ASM&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 ~]# su - oracle&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ export ORACLE_SID=+ASM&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 9 22:20:36 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle. All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Connected to:&lt;br /&gt;Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;&lt;br /&gt;SQL&gt; shutdown immediate&lt;br /&gt;ASM diskgroups dismounted&lt;br /&gt;ASM instance shutdown&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;4. Delete /dev/sdc1 and /dev/sdc2. Create a filesystem of 9.9G.&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 ~]# fdisk /dev/sdc&lt;br /&gt;&lt;br /&gt;The number of cylinders for this disk is set to 1305.&lt;br /&gt;There is nothing wrong with that, but this is larger than 1024,&lt;br /&gt;and could in certain setups cause problems with:&lt;br /&gt;1) software that runs at boot time (e.g., old versions of LILO)&lt;br /&gt;2) booting and partitioning software from other OSs&lt;br /&gt;(e.g., DOS FDISK, OS/2 FDISK)&lt;br /&gt;&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;e extended&lt;br /&gt;p primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4):&lt;br /&gt;Value out of range.&lt;br /&gt;Partition number (1-4): 1&lt;br /&gt;First cylinder (1-1305, default 1):&lt;br /&gt;Using default value 1&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): 1305&lt;br /&gt;&lt;br /&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;br /&gt;&lt;br /&gt;Calling ioctl() to re-read partition table.&lt;br /&gt;Syncing disks.&lt;br /&gt;[root@oracle01 ~]# partprobe&lt;br /&gt;Warning: Unable to open /dev/hdc read-write (Read-only file system). /dev/hdc has been opened read-only.&lt;br /&gt;[root@oracle01 ~]# mkfs /dev/sdc1&lt;br /&gt;mke2fs 1.35 (28-Feb-2004)&lt;br /&gt;max_blocks 2683489280, rsv_groups = 81894, rsv_gdb = 639&lt;br /&gt;Filesystem label=&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;1310720 inodes, 2620595 blocks&lt;br /&gt;131029 blocks (5.00%) reserved for the super user&lt;br /&gt;First data block=0&lt;br /&gt;Maximum filesystem blocks=2684354560&lt;br /&gt;80 block groups&lt;br /&gt;32768 blocks per group, 32768 fragments per group&lt;br /&gt;16384 inodes per group&lt;br /&gt;Superblock backups stored on blocks:&lt;br /&gt;32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632&lt;br /&gt;&lt;br /&gt;Writing inode tables: done&lt;br /&gt;inode.i_blocks = 46016, i_size = 4243456&lt;br /&gt;Writing superblocks and filesystem accounting information: done&lt;br /&gt;&lt;br /&gt;This filesystem will be automatically checked every 24 mounts or&lt;br /&gt;180 days, whichever comes first. Use tune2fs -c or -i to override.&lt;br /&gt;[root@oracle01 ~]# mkdir /mydata2&lt;br /&gt;[root@oracle01 ~]# mount /dev/sdc1 /mydata2&lt;br /&gt;[root@oracle01 ~]# df -h&lt;br /&gt;Filesystem Size Used Avail Use% Mounted on&lt;br /&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;7.3G 3.5G 3.5G 51% /&lt;br /&gt;/dev/sda1 99M 9.0M 85M 10% /boot&lt;br /&gt;none 126M 0 126M 0% /dev/shm&lt;br /&gt;/dev/sdb1 9.9G 7.5G 1.9G 81% /mydata&lt;br /&gt;/dev/sdc1 9.9G 23M 9.4G 1% /mydata2&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;5. Move data_lun[1-2] to this filesystem /mydata2&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 ~]# cp /mydata/* /mydata2/&lt;br /&gt;cp: omitting directory `/mydata/lost+found'&lt;br /&gt;[root@oracle01 ~]# cd /mydata2&lt;br /&gt;[root@oracle01 mydata2]# ls -sh&lt;br /&gt;total 7.5G&lt;br /&gt;3.8G data_lun1 3.8G data_lun2 16K lost+found&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;6. Creating /dev/sdb[1-2]&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 mydata2]# fdisk /dev/sdb&lt;br /&gt;&lt;br /&gt;The number of cylinders for this disk is set to 1305.&lt;br /&gt;There is nothing wrong with that, but this is larger than 1024,&lt;br /&gt;and could in certain setups cause problems with:&lt;br /&gt;1) software that runs at boot time (e.g., old versions of LILO)&lt;br /&gt;2) booting and partitioning software from other OSs&lt;br /&gt;(e.g., DOS FDISK, OS/2 FDISK)&lt;br /&gt;&lt;br /&gt;Command (m for help): p&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb: 10.7 GB, 10737418240 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1305 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/sdb1 1 1305 10482381 83 Linux&lt;br /&gt;&lt;br /&gt;Command (m for help): d&lt;br /&gt;Selected partition 1&lt;br /&gt;&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;e extended&lt;br /&gt;p primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 1&lt;br /&gt;First cylinder (1-1305, default 1):&lt;br /&gt;Using default value 1&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (1-1305, default 1305): 487&lt;br /&gt;&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;e extended&lt;br /&gt;p primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 2&lt;br /&gt;First cylinder (488-1305, default 488):&lt;br /&gt;Using default value 488&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (488-1305, default 1305): 974&lt;br /&gt;&lt;br /&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;br /&gt;&lt;br /&gt;Calling ioctl() to re-read partition table.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;7. dd the data_lun[1-2] back to /dev/sdb[1-2]&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[root@oracle01 mydata2]# fdisk -l /dev/sdb&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb: 10.7 GB, 10737418240 bytes&lt;br /&gt;255 heads, 63 sectors/track, 1305 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/sdb1 1 487 3911796 83 Linux&lt;br /&gt;/dev/sdb2 488 974 3911827+ 83 Linux&lt;br /&gt;&lt;br /&gt;[root@oracle01 mydata2]# dd if=/mydata2/data_lun1 of=/dev/sdb1 bs=1M&lt;br /&gt;3820+1 records in&lt;br /&gt;3820+1 records out&lt;br /&gt;[root@oracle01 mydata2]# dd if=/mydata2/data_lun2 of=/dev/sdb2 bs=1M&lt;br /&gt;3820+1 records in&lt;br /&gt;3820+1 records out&lt;br /&gt;[root@oracle01 asm]# ln -s /dev/sdb1 /u02/oradata/asm/data_lun1&lt;br /&gt;[root@oracle01 asm]# ln -s /dev/sdb2 /u02/oradata/asm/data_lun2&lt;br /&gt;[root@oracle01 asm]# chown -R oracle:oinstall /u02/oradata/asm/data_lun*&lt;br /&gt;[root@oracle01 asm]# chmod -R 660 /u02/oradata/asm/data_lun*&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;8. Start and mount ASM on /dev/sdb[1-2]&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;font-size:85%;"&gt;[root@oracle01 asm]# su - oracle&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ export ORACLE_SID=+ASM&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 9 22:58:11 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle. All rights reserved.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup mount&lt;br /&gt;ASM instance started&lt;br /&gt;&lt;br /&gt;Total System Global Area 83886080 bytes&lt;br /&gt;Fixed Size 1217836 bytes&lt;br /&gt;Variable Size 57502420 bytes&lt;br /&gt;ASM Cache 25165824 bytes&lt;br /&gt;ASM diskgroups mounted&lt;br /&gt;SQL&gt; exit&lt;br /&gt;Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production&lt;br /&gt;With the Partitioning, OLAP and Data Mining options&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ asmcmd&lt;br /&gt;ASMCMD&gt; lsdg&lt;br /&gt;State Type Rebal Unbal Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Name&lt;br /&gt;MOUNTED NORMAL N N 512 4096 1048576 7640 5284 0 2642 0 DATA/&lt;br /&gt;ASMCMD&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;9. Start Database instance&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ export ORACLE_SID=testdb&lt;br /&gt;[oracle@oracle01.myserver.com /home/oracle]&lt;br /&gt;$ sqlplus / as sysdba&lt;br /&gt;&lt;br /&gt;SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 9 23:00:00 2008&lt;br /&gt;&lt;br /&gt;Copyright (c) 1982, 2005, Oracle. All rights reserved.&lt;br /&gt;&lt;br /&gt;Connected to an idle instance.&lt;br /&gt;&lt;br /&gt;SQL&gt; startup open&lt;br /&gt;ORACLE instance started.&lt;br /&gt;&lt;br /&gt;Total System Global Area 167772160 bytes&lt;br /&gt;Fixed Size 1218316 bytes&lt;br /&gt;Variable Size 71305460 bytes&lt;br /&gt;Database Buffers 92274688 bytes&lt;br /&gt;Redo Buffers 2973696 bytes&lt;br /&gt;Database mounted.&lt;br /&gt;Database opened.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;SQL&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-6804871659383464984?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/6804871659383464984/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=6804871659383464984' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6804871659383464984'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6804871659383464984'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2008/01/migration-asm-from-devsdc-to-devsdb.html' title='Migration ASM from /dev/sdc to /dev/sdb'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-6284766186997031168</id><published>2007-12-04T20:10:00.000-08:00</published><updated>2007-12-04T20:12:32.483-08:00</updated><title type='text'>wget and bash</title><content type='html'>If you want to download a script and run it right away, then, you can run this command to ease your task.&lt;br /&gt;&lt;br /&gt;wget -qO- http://myserver/myscript.sh | /bin/bash&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-6284766186997031168?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/6284766186997031168/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=6284766186997031168' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6284766186997031168'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/6284766186997031168'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2007/12/wget-and-bash.html' title='wget and bash'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1591862497911709290.post-2883073847386020842</id><published>2007-11-13T06:17:00.000-08:00</published><updated>2007-11-13T06:23:10.727-08:00</updated><title type='text'>My First Posting</title><content type='html'>Hi all,&lt;br /&gt;&lt;br /&gt;I have been hearing my friends doing a lot of blogging from time to time. It attracted me so much when I knew that blogging can be a fun thing to do. So, I took my initiative to write my own blogging site.&lt;br /&gt;&lt;br /&gt;I am a one of the Linux/Unix big fan. So much likely, I will write some articles about Linux related technologies and research.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1591862497911709290-2883073847386020842?l=yenonn.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://yenonn.blogspot.com/feeds/2883073847386020842/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=1591862497911709290&amp;postID=2883073847386020842' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2883073847386020842'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1591862497911709290/posts/default/2883073847386020842'/><link rel='alternate' type='text/html' href='http://yenonn.blogspot.com/2007/11/my-first-posting.html' title='My First Posting'/><author><name>yenonn</name><uri>http://www.blogger.com/profile/10258205287381326747</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://1.bp.blogspot.com/_ITqTes2RlSQ/SKjM21mX2JI/AAAAAAAAAIE/HyViJJZYqXs/S220/09082006076.jpg'/></author><thr:total>0</thr:total></entry></feed>
