<?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-5009621251640435938</id><updated>2012-01-06T14:32:05.435-08:00</updated><category term='Windows XP'/><category term='Windows 2003'/><category term='VSphere'/><category term='VMWare'/><category term='Mondorescue'/><category term='Linux'/><category term='Linux Emulex'/><category term='Proclarity'/><category term='Sharepoint'/><category term='SQL Server'/><category term='Clariion'/><category term='Tips'/><category term='Windows (all)'/><category term='ipod touch'/><title type='text'>Tips, Tricks and More for IT System Administrators and Computer Users</title><subtitle type='html'>This blog is a set of tips, tricks and other useful information for IT System Administrators and Computer Users</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5021214922092465010</id><published>2011-07-21T11:54:00.000-07:00</published><updated>2011-07-21T11:54:11.287-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to kill the process running on specific port in Linux</title><content type='html'>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I would like to stop the process which is running on port 8080 in a Linux server, but&amp;nbsp;I don't know the process that owns it.&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;'lsof -w -n -i tcp:8080'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;or &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;'fuser -n tcp 8080'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;or &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;'netstat -anp | &lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;grep :8080[[:blank:]]'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;should show you the process ID.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If there is no (init) script to use to shut down the offending service (since TCP/8080 means proxy) to kill you can by PID 'kill -9 pidnumber'.&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5021214922092465010?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5021214922092465010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/07/how-to-kill-process-running-on-specific.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5021214922092465010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5021214922092465010'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/07/how-to-kill-process-running-on-specific.html' title='How to kill the process running on specific port in Linux'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6698245563315436359</id><published>2011-07-21T08:02:00.000-07:00</published><updated>2011-07-21T08:02:32.624-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to send email from the Linux command line</title><content type='html'>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The Linux command line can be very powerful once you know how to use it. You can parse data, monitor processes, and do a lot of other useful and cool things using it. There often comes a need to generate a report and mail it out. It could be as simple a requirement as a notification that the day’s backup went through fine, or did not. I’ll help you get started with sending mails from the Linux command line and in shell scripts. We will also cover sending attachments from the command line. We will begin with the “mail” command. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;MAIL&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;First run a quick test to make sure the “sendmail” application is installed and working correctly. Execute the following command, replacing “you@youremailid.com” with your e-mail address.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# mail -s “Hello world” you@youremailid.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Hit the return key and you will come to a new line. Enter the text “This is a test from my server”. Follow up the text by hitting the return key again. Then hit the key combination of Control+D to continue. The command prompt will ask you if you want to mark a copy of the mail to any other address, hit Control+D again. Check your mailbox. This command will send out a mail to the email id mentioned with the subject, “Hello world”.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;To add content to the body of the mail while running the command you can use the following options. If you want to add text on your own:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# echo “This will go into the body of the mail.” &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mail -s “Hello world” you@youremailid.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;And if you want mail to read the content from a file:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# mail -s “Hello world” you@youremailid.com &amp;lt; /home/calvin/application.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Some other useful options in the mail command are:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;-s subject (The subject of the mail)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;-c email-address (Mark a copy to this “email-address”, or CC)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;-b email-address (Mark a blind carbon copy to this “email-address”, or BCC)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Here’s how you might use these options:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# echo “Welcome to the world of Calvin n Hobbes” &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mail -s “Hello world” calvin@cnh.com -c hobbes@cnh.com -b susie.derkins@cnh.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;MUTT&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;One of major drawbacks of using the mail command is that it does not support the sending of attachments. mutt, on the other hand, does support it. I’ve found this feature particularly useful for scripts that generate non-textual reports or backups which are relatively small in size which I’d like to backup elsewhere. Of course, mutt allows you to do a lot more than just send attachments. It is a much more complete command line mail client than the “mail” command. Right now we’ll just explore the basic stuff we might need often. Here’s how you would attach a file to a mail:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# echo “Sending an attachment.” &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mutt -a backup.zip -s “attachment” calvin@cnh.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This command will send a mail to calvin@cnh.com with the subject (-s) “attachment”, the body text “Sending an attachment.”, containing the attachment (-a) backup.zip. Like with the mail command you can use the “-c” option to mark a copy to another mail id.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;SENDING MAIL FROM A SHELL SCRIPT&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Now, with the basics covered you can send mails from your shell scripts. Here’s a simple shell script that gives you a reading of the usage of space on your partitions and mails the data to you.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;df -h &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mail -s “disk space report” calvin@cnh.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Save these lines in a file on your Linux server and run it. You should receive a mail containing the results of the command. If, however, you need to send more data than just this you will need to write the data to a text file and enter it into the mail body while composing the mail. Here’s and example of a shell script that gets the disk usage as well as the memory usage, writes the data into a temporary file, and then enters it all into the body of the mail being sent out:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;df -h &amp;gt; /tmp/mail_report.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;free -m &amp;gt;&amp;gt; /tmp/mail_report.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mail -s “disk and RAM report” calvin@cnh.com &amp;lt; /tmp/mail_report.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Now here’s a more complicated problem. You have to take a backup of a few files and mail then out. First the directory to be mailed out is archived. Then it is sent as an email attachment using mutt. Here’s a script to do just that:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;#!/bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;tar -zcf /tmp/backup.tar.gz /home/calvin/files&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;echo &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;mutt -a /tmp/backup.tar.gz -s “daily backup of data” calvin@cnh.com&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The echo at the start of the last line adds a blank into the body of the mail being set out.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This should get you started with sending mails form the Linux command line and from shell scripts. Read up the “man page” for both mail and mutt for more options.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6698245563315436359?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6698245563315436359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/07/how-to-send-email-from-linux-command.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6698245563315436359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6698245563315436359'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/07/how-to-send-email-from-linux-command.html' title='How to send email from the Linux command line'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1982635071307038606</id><published>2011-06-23T18:50:00.000-07:00</published><updated>2011-06-23T18:50:10.860-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ipod touch'/><title type='text'>How to export ipod notes to your PC computer for free?</title><content type='html'>There are few applications in the market offering this feature, but if you want to do it for free and easily, take note of how to do it:&lt;br /&gt;&lt;br /&gt;1) You will need a PC computer with iTunes and Microsoft Outlook. Of course, you also need your ipod and the cable connected to the PC.&lt;br /&gt;2) You must install Microsoft Outlook (not Outlook Express), and set it up as the default email client. You can do it temporarily if you want, and then change it back later to your favorite email client.&lt;br /&gt;This is because itunes uses Microsoft Outlook as the default application to synchronize the Notes.&lt;br /&gt;Go to iTunes, select your ipod under Devices, and from the tabs on top, select Info. In the section "Other" tick the option "Sync notes with: Outlook"&lt;br /&gt;Do it, sync your ipod.&lt;br /&gt;3) You will find all your notes in Outlook, that is the yellow sticky notes icon under "Tasks" on the left menu. Or just use the menu: Go to -&gt; Notes.&lt;br /&gt;You can start copying and pasting the contents of your notes, but if you have many of them, it is a better idea to export them to notepad, however, there is no such functionality in Outlook :( &lt;br /&gt;Don't worry, go to the next step.&lt;br /&gt;4) Open outlook, Alt+F11 to open VBA editor, put the following code in the right blank area, while on the vba editor, click the save button.&lt;br /&gt;&lt;br /&gt;Sub exportNotes()&lt;br /&gt;On Error GoTo huboerr&lt;br /&gt;   myfolder = "c:\notes\" 'change this to your folder path but folder path has to end with a backlash&lt;br /&gt;   Set myNote = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderNotes)&lt;br /&gt;   For ibi = 1 To myNote.Items.Count&lt;br /&gt;      fname = myNote.Items(ibi).Subject&lt;br /&gt;      myNote.Items(ibi).SaveAs myfolder &amp; fname &amp; ".txt", 0&lt;br /&gt;      &lt;br /&gt;   Next&lt;br /&gt;Exit Sub&lt;br /&gt;huboerr:&lt;br /&gt;    MsgBox fname&lt;br /&gt;Resume Next&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then all you need to do is to change the first line of code to the path of export folder&lt;br /&gt;While in vba editor, when hit F5, all the notes in the notes folder will be exported to the folder you specified, the notes name will be the same as you have in your Outlook notes and in your ipod . You will probably have to edit the note names in Outlook before exporting them, as you may name them using some special characters (*, %, etc.) that are not accepted by Windows...&lt;br /&gt;&lt;br /&gt;I hope it saved you some time re-typing the notes in your PC, and some bucks if you were thinking about buying an application for doing that.&lt;br /&gt;&lt;br /&gt;Enjoy !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1982635071307038606?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1982635071307038606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/06/how-to-export-ipod-notes-to-your-pc.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1982635071307038606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1982635071307038606'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/06/how-to-export-ipod-notes-to-your-pc.html' title='How to export ipod notes to your PC computer for free?'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-2296646952286615394</id><published>2011-06-20T14:36:00.000-07:00</published><updated>2011-06-20T14:36:26.916-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux Emulex'/><title type='text'>How do I find discovered SAN targets and LUNs on a Linux host with Emulex HBA cards?</title><content type='html'>The sys file system (sysfs) provides details on what devices have been discovered. &lt;br /&gt;&lt;br /&gt;Change directory to /sys/class/scsi_host. Perform an ls: &lt;br /&gt;&lt;br /&gt;[tam@tsdownload scsi_host]$ ls &lt;br /&gt;host0 &lt;br /&gt;&lt;br /&gt;Each SCSI host adapter and those that look like SCSI host adapters to Linux are assigned a host number by Linux. You may see more than one hostX (where x is a number). In the example above, only one SCSI host bus adapter is found, host0. If there are more than one, perform an ls command on each:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[tam@tsdownload scsi_host]$ ls host0 &lt;br /&gt;[tam@tsdownload scsi_host]$ ls host0 &lt;br /&gt;board_online lpfc_discovery_min_wait node_name &lt;br /&gt;cmd_per_lun lpfc_discovery_wait_limit nport_evt_cnt &lt;br /&gt;ctlreg lpfc_drvr_version num_discovered_ports &lt;br /&gt;device lpfc_fcp_bind_method option_rom_version &lt;br /&gt;disc_adisc lpfc_fcp_class outfcpio &lt;br /&gt;disc_map lpfc_fdmi_on portfcid &lt;br /&gt;disc_npr lpfc_hba_queue_depth port_name &lt;br /&gt;disc_plogi lpfc_link_speed portnum &lt;br /&gt;disc_prli lpfc_linkup_wait_limit port_type &lt;br /&gt;disc_reglgn lpfc_log_verbose proc_name &lt;br /&gt;disc_unmap lpfc_lun_queue_depth programtype &lt;br /&gt;disc_unused lpfc_max_luns scan &lt;br /&gt;events lpfc_nodev_tmo serialnum &lt;br /&gt;fabric_name lpfc_scan_down sg_tablesize &lt;br /&gt;fwrev lpfc_topology speed &lt;br /&gt;hdw lpfc_use_adisc state &lt;br /&gt;host_busy management_version unchecked_isa_dma &lt;br /&gt;info mbox unique_id &lt;br /&gt;issue_lip modeldesc &lt;br /&gt;lpfc_ack0 modelname &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Any items listed with lpfc are Emulex adapters. You can check the model, firmware version, and driver version: &lt;br /&gt;&lt;br /&gt;[tam@tsdownload host0]$ cat info &lt;br /&gt;Emulex LP10000 2Gb PCI-X Fibre Channel Adapter on PCI bus 05 device 20 irq 209 &lt;br /&gt;&lt;br /&gt;[tam@tsdownload host0]$ cat lpfc_drvr_version &lt;br /&gt;Emulex LightPulse Fibre Channel SCSI driver 8.0.16.27 &lt;br /&gt;&lt;br /&gt;[tam@tsdownload host0]$ cat fwrev &lt;br /&gt;1.91A5 (T2D1.91A5) &lt;br /&gt;&lt;br /&gt;Change directory to the host directory and then the device directory: &lt;br /&gt;&lt;br /&gt;[tam@tsdownload scsi_host]$ cd host0 &lt;br /&gt;{tam@tsdownload host0]$ device &lt;br /&gt;[tam@tsdownload device]$ ls &lt;br /&gt;detach_state power target0:0:0 target0:0:1 &lt;br /&gt;&lt;br /&gt;Each target and LUN is listed as targetX:Y:Z where: &lt;br /&gt;•X is the bus number&lt;br /&gt;•Y is the target number&lt;br /&gt;•Z is the LUN number. &lt;br /&gt;These are the devices discovered by the host bus adapter and Linux SCSI midlayer. &lt;br /&gt;&lt;br /&gt;To determine what type of devices were found, change directory to the targetX:Y:Z directory and then the X:X:X:X directory below it. You can cat the model, vendor, and other files to learn more about the devices: &lt;br /&gt;[tam@tsdownload device]$ cd 0:target0:0:0 &lt;br /&gt;[tam@tsdownload target0:0:0]$ cd 0:0:0:0 &lt;br /&gt;[tam@tsdownload 0:0:0:0]$ ls &lt;br /&gt;block detach_state dump power rescan scsi_level timeout vendor &lt;br /&gt;delete device_blocked model queue_depth rev state type &lt;br /&gt;&lt;br /&gt;[tam@tsdownload 0:0:0:0]$ cat model &lt;br /&gt;ST336854FC &lt;br /&gt;&lt;br /&gt;[tam@tsdownload 0:0:0:0]$ cat vendor &lt;br /&gt;SEAGATE &lt;br /&gt;&lt;br /&gt;[tam@tsdownload 0:0:0:0]$ cat state &lt;br /&gt;running &lt;br /&gt;&lt;br /&gt;The 0:0:0:0 directory represents host bus adapter 0, bus 0, target 0, LUN 0.  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Original document (official Emulex web site):&lt;br /&gt;http://www.emulex.com/knowledge/search/viewArticle.jsp?docId=68&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-2296646952286615394?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/2296646952286615394/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/06/how-do-i-find-discovered-san-targets.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/2296646952286615394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/2296646952286615394'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/06/how-do-i-find-discovered-san-targets.html' title='How do I find discovered SAN targets and LUNs on a Linux host with Emulex HBA cards?'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5482330800967833837</id><published>2011-06-04T10:25:00.000-07:00</published><updated>2011-06-04T10:25:42.933-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><title type='text'>Upgrade to Vspere ESX 4.1 failed, ESX host boot stops and drops into Troubleshooting mode.</title><content type='html'>&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Recently, I've got this error whe upgrading an ESX host from version 4.0 to 4.1 upd 01, using the upgrade manager. I was looking to the console, after the ESX host reboot and:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;ESX host boot stops at the error: VSD mount/Bin/SH:cant access TTY job control turned off&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I was in panic.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Rebooting the host failed, giving me the same error.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I didn't want to re-install the host, because I had some Production Virtual Machines in the local storage, and wanted to solve it quick, as my maintenance window was almost over.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;On the ESX console, you see the error:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;VSD mount/bin/sh:can't access TTY; job control turned off.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The ESX host does not boot and drops into Troubleshooting (busy box) mode.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Looking into the /var/log/messages file, there was something similar to:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;sysboot: Getting '/boot/cosvdmk' parameter from esx.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;sysboot: COS VMDK Specified in esx.conf: /vmfs/volumes/4b27ec62-93ec3816-0475-00215aaf882a/esxconsole-4b27e9e3-20ee-69d7-ae11-00215aaf882a/esxconsole.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;sysboot: 66.vsd-mount returned critical failure&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;sysboot: Executing 'chvt 1'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;How to solve it:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;This issue occurs if an ESX host cannot identify the esxconsole.vmdk file in which the service console resides. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;1. Go to the console of the ESX host. After the error message, ESX drops into Troubleshooting (busy box) mode.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;2. Find the .vmdk for the service console by running the command:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;grep "/boot/cosvmdk" /etc/vmware/esx.conf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The output is similar to: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;/boot/cosvmdk = "&lt;uudi&gt;/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;For example:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;/boot/cosvmdk = "/vmfs/volumes/4a14d968-88bf7161-700f-00145ef48f76/esxconsole-4a14d906-2f96-7956-7284-00145ef48f74/esxconsole.vmdk"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;3. Make note of the &lt;uuid&gt;and the &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;4. Verify that the files exist by running the command:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;ls -al /vmfs/volumes/&lt;uuid&gt;/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Where &lt;uuid&gt;and &lt;path&gt;is from the output of step 2. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The output is similar to:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;total 7906560&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;drwxr-xr-x 1 root root 840 May 21 00:45 .&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;drwxr-xr-t 1 root root 2660 Oct 21 09:10 ..&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;-rw------- 1 root root 8095006720 Oct 26 15:37 esxconsole-flat.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;-rw------- 1 root root 475 May 21 00:32 esxconsole.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;drwxr-xr-x 1 root root 980 May 21 00:45 logs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;5. Ensure that both the esxconsole-flat.vmdk and the esxconsole.vmdk files exist. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;In my case, the esxconsole.vmdk file did not exist.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;I troubleshoot using a modification to the following: http://kb.vmware.com/kb/1002511&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;All the step in this section are important !!!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;a. Identify and record the exact size of the -flat file using a command similar to:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# ls -l esxconsole-flat.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;-rw------- 1 root root 4294967296 Oct 11 12:30 esxconsole-flat.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Write down this number (4294967296) it could be different in your case, it is usually 8GB !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;b. Rename the file, as all the valuable data is in this file !&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# mv esxconsole-flat.vmdk esxconsole-flat_ORIG.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;c. Use the vmkfstools command to create a new virtual disk:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# vmkfstools -c 4294967296 -a buslogic esxconsole.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Remember to use buslogic as the bus type.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;d. Rename the new blank created disk file esxconsole-flat.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# mv esxconsole-flat.vmdk esxconsole-flat_BLANK.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;e. Rename the old console disk to the new file&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;# mv esxconsole-flat_ORIG.vmdk esxconsole-flat.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Type exit, or reboot the ESX server.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;You will be able to boot the server normally.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Later, you can delete the file esxconsole-flat_BLANK.vmdk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Problem solved !&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Note:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;If the esxconsole-flat file does not exist in step 5, you must re-install the ESX host to recreate the service console.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Original VMware KBs:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1012874&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1002511&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;dir&gt;/*.vmdk&lt;/dir&gt;&lt;br /&gt;&lt;dir&gt;values in the output.&lt;/dir&gt;&lt;br /&gt;&lt;dir&gt;/esxconsole.vmdk"&lt;/dir&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5482330800967833837?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5482330800967833837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/06/upgrade-to-vspere-esx-41-failed-esx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5482330800967833837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5482330800967833837'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/06/upgrade-to-vspere-esx-41-failed-esx.html' title='Upgrade to Vspere ESX 4.1 failed, ESX host boot stops and drops into Troubleshooting mode.'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6049973822842315112</id><published>2011-05-06T07:03:00.001-07:00</published><updated>2011-05-06T07:03:44.293-07:00</updated><title type='text'>Vsphere ESX NIC numbering</title><content type='html'>&lt;div class=Section1&gt;  &lt;p class=MsoNormal&gt;VMware had an issue with the nics port numbering. If you have on board nics, and some PCIe nics, the numbering is not correct. With HP server and Broadband and Intel adapter it happens.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;It pretty much assigns them in whatever order it finds them - you can see this article (&lt;a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1002315"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1002315&lt;/a&gt;) for a rundown on the process. Now if you are really dead set on changing them it can be done. You would have to:&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;You can change the numbering by changing the esx.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;1. go into the console (tech support mode on ESXi)&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;2. cd /etc/vmware&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;3. backup your esx.conf&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eg. cp esx.conf esx.conf.bak&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;4. edit esx.conf and look for your vmnic entries.. will look something like&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /device/000:001:00.0/vmkname = &amp;quot;vmnic0&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /device/000:001:00.1/vmkname = &amp;quot;vmnic1&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /device/000:002:00.0/vmkname = &amp;quot;vmnic2&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /device/000:002:00.1/vmkname = &amp;quot;vmnic3&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;5. Order as desired by editing the string vmnicX&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;6. Look for mac address assignment to vmnicX and change them accordingly, change the lines for the mac &amp;quot;xx:xx:xx:xx:xx:xx&amp;quot; and virtualmac &amp;quot;yy:yy:yy:yy:yy:yy&amp;quot; to be consistent. Don't change just the &amp;quot;vmnicX&amp;quot;, leave everything in the same place.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /net/pnic/child[000X]/mac/ = &amp;quot;xx:xx:xx:xx:xx:xx&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /net/pnic/child[000X]/name/ = &amp;quot;vmnicX&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /net/pnic/child[000X]/virtualmac/ = &amp;quot;yy:yy:yy:yy:yy:yy&amp;quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;7. Save the edited file and reboot&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;You may have to readjust your nic bindings in networking in the Virtual Center when done.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;For many implementations, the numbering is not an issue, but for a correct design (using nic port to a specific Switch port) and validate the cabling the right numbering is important. The use of host profiles is standardized, including the nic names, which makes things easier to maintain with less efforts.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;Example: We use vmnic0 and vmnic5 for service console and vmkernel for iscsi, and vmnic1 and vmnic4 for Virtual Machines Data, if the numbering is not correct, you can use the same nic/port for High Availability, if you have a nic problem, both nics/ports can be the some physical port, and you have no vmkernel, or Service Console&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;This is just an example what can happen if you have your infrastructure very well documented, and the correct design for High Availability on all connections.&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/p&gt;  &lt;p class=MsoNormal&gt;I hope It is useful for you as it was for me !&lt;o:p&gt;&lt;/o:p&gt;&lt;/p&gt;  &lt;/div&gt;  &lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6049973822842315112?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6049973822842315112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/05/vsphere-esx-nic-numbering.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6049973822842315112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6049973822842315112'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/05/vsphere-esx-nic-numbering.html' title='Vsphere ESX NIC numbering'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-168924912797968322</id><published>2011-01-20T13:04:00.001-08:00</published><updated>2011-01-20T13:04:32.180-08:00</updated><title type='text'>VMware vcenter server migration from 4.0 to 4.1</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;VMwAre Vcenter server is used for maintaining the esx servers from a centralized place with user permission and cluster creation and the licensing issues.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;New version 4.1 MUST be installed on a Windows 64 bit OS computer.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I migrated it from an old server to a new one, so I had to proceed with a migration.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;While migrating from 4.0 to 4.1, we need to follow these steps for getting old database converted to new format, as it is different from 4.0 to 4.1.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Before migration, the following services of vcenter should be stopped&lt;br /&gt;&lt;/p&gt;&lt;p&gt;VMware VirtualCenter Server&lt;br /&gt;&lt;/p&gt;&lt;p&gt;VMware VirtualCenter Management Webservices&lt;br /&gt;&lt;/p&gt;&lt;p&gt;VMware vCenter Update Manager Service&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Mount the vcenter ISO image or load the bunt DVD in the old vcenter server machine. Open the cd and copy the Datamigration folder to C:\Datamigration&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Extract all the file in the same folder.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;IMPORTANT: Verify that you have at least 8 GB of available space, as many configuration files will be copied to C: drive.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Navigate to C:\Datamigration\ and run backup.bat , the script will backup all configuration settings from your recent vCenter installation and database. (Software builds, used ports, database information, server names and VUM Settings/Patches etc.).. once finished all the important data is stored in C:\Datamigration\Data\&lt;br/&gt;If there are any errors while making the backup… check this and fix before you go further!&lt;br/&gt;Now you need to copy the C:\Databasemigration\ folder to your new planned vCenter 4.1 server. You can do this by share, copy this on USB stick or whatever.&lt;br/&gt;&lt;br/&gt;Migrate the database and install vCenter 4.1:&lt;br/&gt;- Login to the new vCenter server;&lt;br/&gt;- Mount the new &lt;a target='_blank' href='http://downloads.vmware.com/d/details/vc41/ZHcqYmRoaGpiZHRAag=='&gt;VMware vCenter Server 4.1 and modules&lt;/a&gt;&lt;br/&gt;Open CMD:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;- Navigate to C:\Data migration\ and run install.bat. The script will check if the correct data is present..&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If you used a different name for your new vCenter server press Yes.. to continue&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then you must select the vCenter 4.1 and VUM installation source. In my case the mounted ISO has drive letter F:\&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;The configuration will be validated, correct ports numbers, vCenter serial number etc.. all good..&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;.. The vCenter Installation is started﻿&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;I already installed a Microsoft SQL 2005 Enterprise server (local) and created a 32 bit ODBC connection, THEN select "vCenter41" DSN&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;If needed, give the correct credentials&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;You can modify this later, please check: http://kb.vmware.com/kb/1001046 for more information&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;- I changed the installation path to D:\Program Files\VMware\Infrastructure\ .. default location is C:\..\.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;Oke, the installation was not so difficult. After clicking finish the install.bat will continue with the VMware Update Manager database migration and installation.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;VMware Update Manager – Database migration and installation software:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;As you can see "vCenter Server migration installed completed successfully" great &lt;br /&gt;&lt;/p&gt;&lt;p&gt;The install.bat script will continue and check again if the selected VUM ports are available and if the copied data migratable is for the new VUM database location&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt; For VMware Update Manager you need to create a 64-Bit DSN. You can create this here: C:\WINDOWS\SysWOW64\odbcad32.exe .. oke, thats done.. select the VUM (already created before installation) database.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;The installation and patch download location is by default C:\.. I prefer to install this data on a separate disk.. so I changed the installation path to D:\…\.. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;Now you can connect your vCenter server and manage your hosts and VM's.. sometimes you can't!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Tip before connect the vCenter:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- Reboot your new vCenter 4.1 server;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- On the ESX host: Restart your management services: service mgmt-vmware restart&lt;br /&gt;&lt;/p&gt;&lt;p&gt;- On the ESX host: Use a text editor to view/change the IP address inside the xxx.xxx.xxx.xxx tags the following file:/etc/opt/vmware/vpxa/vpxa.cfg&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Finally result:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Successful migration process of vCenter 4.0 to new 4.1 server.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-168924912797968322?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/168924912797968322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/01/vmware-vcenter-server-migration-from-40.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/168924912797968322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/168924912797968322'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2011/01/vmware-vcenter-server-migration-from-40.html' title='VMware vcenter server migration from 4.0 to 4.1'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8904513285911302313</id><published>2010-12-02T13:19:00.001-08:00</published><updated>2010-12-02T13:19:02.311-08:00</updated><title type='text'>How to fix VMware error fsck.ext3 Unable to resolve UUID with no data loss</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;It happened to me after a power failure, that damaged a server of our vmware farm. The resolution is presented below:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:18pt'&gt;&lt;strong&gt;ESX 4.0 host fails to boot after power operation with the error: fsck.ext3: Unable to resolve UUID&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#ff9900; font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Symptoms&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;After power-cycling or rebooting an ESX 4.x server, the following error message is produced during boot: &lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;fsck.ext3: Unable to resolve 'UUID=34d192db-17eb-442e-9613-c5c24c6fa9fa'&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;							&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;And&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;*** An error occurred during the file system check.&lt;br/&gt;*** Dropping you to a shell; the system will reboot &lt;br/&gt;*** when you leave the shell.&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;							&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;After encountering this error, you are unable to boot into ESX or Troubleshooting mode.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;The unresolvable EXT file systems or partitions most commonly later appear to have mount points such as &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/var&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;, &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/opt&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; and &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/tmp&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style='color:#ff9900; font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Resolution&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;This issue occurs when the boot-time file system check utility (FSCK) for EXT-3 file systems cannot resolve a file system (by UUID) defined in &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;.&lt;br/&gt;&lt;br/&gt;Issues that can result in this may include:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;The default roll-back option is left enabled when a subsequent upgrade is being performed.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;The device not present during system boot.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;The unresolvable EXT file systems appear to reside on disks/devices that are initialized later during system boot (e.g. the last LUN).&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Note&lt;/strong&gt;: If you are experiencing an outage with virtual machines down, consider resolving the situation in a timely manner through the reinstallation of VMware ESX. Troubleshooting may take more time than a reinstallation, which is in the order of approximately 20 minutes.&lt;br/&gt;&lt;br/&gt;Otherwise refer to instructions below for submission of information to VMware Technical Support for technical analysis.&lt;br/&gt;&lt;br/&gt;Further troubleshooting is available in the shell:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Confirm the UUIDs which were not resolvable, and remain so, by running &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;fsck&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; again without additional arguments. Information similar to the following is displayed:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;&lt;br/&gt;# fsck&lt;br/&gt;&lt;br/&gt;fsck 1.39 (29-May-2006)&lt;br/&gt;e2fsck 1.39 (29-May-2006)&lt;br/&gt;esx-root: clean, 32953/641280 files, 414801/1281175 blocks&lt;br/&gt;e2fsck 1.39 (29-May-2006)&lt;br/&gt;/dev/sdt1: clean, 35/140832 files, 25323/281596 blocks&lt;br/&gt;&lt;strong&gt;fsck.ext3: Unable to resolve 'UUID=34d192db-17eb-442e-9613-c5c24c6fa9fa'&lt;/strong&gt;&lt;br/&gt;e2fsck 1.39 (29-May-2006)&lt;br/&gt;/dev/sdt6: clean, 31/250368 files, 27851/500220 blocks&lt;br/&gt;e2fsck 1.39 (29-May-2006)&lt;br/&gt;/dev/sdt7: clean, 22/250368 files, 16815/500220 blocks&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;							&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Record the UUID or UUIDs which failed to resolve. You may take a screen shot of your System Management Interface, take a picture, or write the values down.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Confirm these same values in the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; file.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;# cat /etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;UUID=79815890-f11c-4907-80fe-d1cd6bf061f8 /        ext3    defaults                  1 1&lt;br/&gt;UUID=45460133-027b-40b6-8b4d-e52aaf4c417f /boot    ext3    defaults                  1 2&lt;br/&gt;None                    /dev/pts                   devpts  defaults                  0 0&lt;br/&gt;/dev/cdrom              /mnt/cdrom                 udf,iso9660 noauto,owner,kudzu,ro 0 0&lt;br/&gt;/dev/fd0                /mnt/floppy                auto    noauto,owner,kudzu        0 0&lt;br/&gt;None                    /proc                      proc    defaults                  0 0&lt;br/&gt;None                    /sys                       sysfs   defaults                  0 0&lt;br/&gt;UUID=&lt;span style='color:red'&gt;&lt;strong&gt;34d192db-17eb-442e-9613-c5c24c6fa9fa&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;								&lt;span style='color:mediumblue'&gt;&lt;strong&gt;/var/log&lt;/strong&gt;&lt;/span&gt; ext3    defaults,errors=panic     1 2&lt;br/&gt;UUID=e32ec5f4-d795-414a-8d73-a2bb3ea86342 swap     swap    defaults                  0 0&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note&lt;/strong&gt;: Highlighted in blue is the mount point for the respective unresolvable UUID, in red.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Verify what UUIDs the system is currently aware of by running the following command:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;# ls -l /dev/disk/by-uuid&lt;br/&gt;&lt;br/&gt;total 0&lt;br/&gt;lrwxrwxrwx 1 root root 10 Nov  9 14:36 45460133-027b-40b6-8b4d-e52aaf4c417f -&amp;gt; ../../sdm1&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;lrwxrwxrwx 1 root root 10 Nov  9 14:36 e32ec5f4-d795-414a-8d73-a2bb3ea86342 -&amp;gt; ../../sdr1&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;lrwxrwxrwx 1 root root 10 Nov  9 14:36 &lt;span style='color:red'&gt;&lt;strong&gt;34d192db-17eb-442e-9613-c5c24c6fa9fa&lt;/strong&gt;&lt;/span&gt; -&amp;gt; ../../sdr2&lt;br/&gt;lrwxrwxrwx 1 root root 10 Nov  9 14:36 79815890-f11c-4907-80fe-d1cd6bf061f8 -&amp;gt; ../../sdr5&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br/&gt;&lt;strong&gt;Notes&lt;/strong&gt;:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul style='margin-left: 66pt'&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;This output reveals the UUID-to-partition relationship for all discovered EXT partitions in the system. Affected mount points or content can be associated using the previous step.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;It is possible in some environments that none of the known partitions reported by listing &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/dev/disk/by-uuid&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; match the unresolved UUID. This is correctable; for additional instructions, proceed to the following sections and correct the content of the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; file.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:13pt'&gt;&lt;strong&gt;Solution&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;VMware is currently investigating further for a full root-cause and solution. Workarounds are available below.&lt;br/&gt;&lt;br/&gt;If you are able to reproduce this issue while maintaining production via alternate servers, contact VMware Technical Support after completing the following:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Log into the terminal of the affected ESX server.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Remount the root partition in read-write mode:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Courier New; font-size:12pt'&gt;# mount / -o remount,rw&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Configure Serial Line Logging per the section &lt;em&gt;Configuring the Service Console for VMware ESX 3.x and 4.x&lt;/em&gt; in KB article: &lt;a target='_blank' href='http://kb.vmware.com/kb/1003900'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;Enabling serial-line logging for an ESX and ESXi host (1003900)&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Reboot the ESX server and log the results via your listening serial terminal.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Contact VMware Technical Support and file a Support Request. For additional information, see &lt;a target='_blank' href='http://kb.vmware.com/kb/1021619'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;Filing a Support Request (1021619)&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:13pt'&gt;&lt;strong&gt;Workarounds&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Both recommended workarounds involve the modification of the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; file. You may either:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Generate a new UUID for the affected file system(s) and update &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; to match the new value(s).&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Update &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; to incorporate the correct UUID from the file system.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Applying a new UUID&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Apply a new UUID to the EXT-3 file systems which fail to resolve and update the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; file.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Run &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;tune2fs&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; against each Linux partition on the suspected disk device. For example:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;# tune2fs -l /dev/sdr2 | grep UUID&lt;br/&gt;Filesystem UUID:          &lt;span style='color:red'&gt;&lt;strong&gt;34d192db-17eb-442e-9613-c5c24c6fa9fa&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;&lt;br/&gt;# tune2fs -U random /dev/sdr2&lt;br/&gt;tune2fs 1.39 (29-May-2006)&lt;br/&gt;&lt;br/&gt;# tune2fs -l /dev/sdr2 | grep UUID&lt;br/&gt;Filesystem UUID:          &lt;strong&gt;25a18c70-ffcb-4b15-9d2d-1cfab1754d86&lt;/strong&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;							&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Update &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; with the updated UUID. From earlier steps, &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/dev/sdr2&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; partition was determined to be the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/var/log&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; mount point:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;br /&gt; &lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Remount the root partition in read-write mode:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;# mount / -o remount,rw&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;									&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Open the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/fstab&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt; file for re-writing. For more information, see &lt;a target='_blank' href='http://kb.vmware.com/kb/1017022'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;Editing configuration files in VMware ESX (1017022)&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Search for, and change, the original UUID to the newly-generated UUID from earlier steps, above.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Save the file and remount the root partition in read-only mode:&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Courier New'&gt;# mount / -o remount,ro&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;									&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times New Roman'&gt;Reboot the server using &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;shutdown -r now&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;You  can read the full document at (check the "mount" syntax):&lt;br /&gt;&lt;/p&gt;&lt;p&gt;http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;amp;docType=kc&amp;amp;externalId=1017162&amp;amp;sliceId=1&amp;amp;docTypeID=DT_KB_1_1&amp;amp;dialogID=127160699&amp;amp;stateId=0%200%20138435051&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8904513285911302313?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8904513285911302313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/12/how-to-fix-vmware-error-fsckext3-unable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8904513285911302313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8904513285911302313'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/12/how-to-fix-vmware-error-fsckext3-unable.html' title='How to fix VMware error fsck.ext3 Unable to resolve UUID with no data loss'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1690330854995780532</id><published>2010-11-24T12:43:00.001-08:00</published><updated>2010-12-01T08:46:38.988-08:00</updated><title type='text'>How to setup a NFS server to archive Cisco Mars logs</title><content type='html'>&lt;span xmlns=""&gt;&lt;/span&gt;&lt;br /&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;For the purpose of archive Cisco Mars logs using a NFS Server.&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="font-family: Trebuchet MS;"&gt;&lt;span style="color: #131414; font-size: 12pt;"&gt;Now NFS is supported natively in Linux, and is what Cisco would recommend for your NFS storage, which is quite simple to set up....&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3333ff; font-size: 15pt;"&gt;&lt;strong&gt;NFS Setup for Linux&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #131414; font-size: 12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="font-family: Trebuchet MS; font-size: 12pt;"&gt;&lt;span style="color: #131414;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #cc33cc;"&gt;1) As root, create a directory for the archive data eg,.. &lt;br /&gt;&lt;br /&gt;mkdir -p /archive/MARSBox&lt;br /&gt;chown -R nobody.nobody /archive&lt;br /&gt;chmod -R 777 /archive&lt;/span&gt;&lt;span style="color: #131414;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #cc33cc;"&gt;&lt;br /&gt;&lt;br /&gt;2) In the /etc/exports file, add the following...&lt;br /&gt;&lt;br /&gt;/archive/MARSBox MARS_IP_Address (rw)&lt;/span&gt;&lt;span style="color: #131414;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #cc33cc;"&gt;&lt;br /&gt;&lt;br /&gt;3) Restart the NFS Service...&lt;br /&gt;&lt;br /&gt;/etc/init.d/nfs restart&lt;/span&gt;&lt;span style="color: #131414;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;But what if we want to do this with Windows? Well we can use &lt;strong&gt;Windows Services for UNIX&lt;/strong&gt; (WSU). This allows an NFS mount to be created on a Windows file server.&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="font-family: Trebuchet MS;"&gt;&lt;span style="color: #131414; font-size: 12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3333ff; font-size: 15pt;"&gt;&lt;strong&gt;Windows Services for UNIX Setup&lt;/strong&gt;&lt;/span&gt;&lt;span style="font-size: 12pt;"&gt;&lt;span style="color: #131414;"&gt;&lt;br /&gt;&lt;br /&gt;This can be downloaded from &lt;a href="http://www.microsoft.com/windowsserversystem/sfu/downloads/default.mspx"&gt;&lt;/a&gt;&lt;/span&gt;&lt;span style="color: #0066cc;"&gt;&lt;strong&gt;HERE&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #131414;"&gt; current version is 3.5, filename SFU35SEL_EN.exe&lt;br /&gt;&lt;br /&gt;1) Extract this to a folder on your windows box, and run &lt;strong&gt;SfuSetup.msi&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;&lt;br /&gt;2) Click &lt;strong&gt;NEXT&lt;/strong&gt; to Continue&lt;br /&gt;&lt;br /&gt;3) Enter values for the Username and Organization fields, and click &lt;strong&gt;NEXT&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;4) &lt;strong&gt;ACCEPT&lt;/strong&gt; the agreement option, and Click &lt;strong&gt;NEXT&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;5) Select the &lt;strong&gt;CUSTOM&lt;/strong&gt; Installation option, and &lt;strong&gt;NEXT&lt;br /&gt;&lt;/strong&gt;6) As a minimum, and for this example, you must select &lt;strong&gt;Entire Feature (including any subfeatures if any) will be installed on local hard drive&lt;/strong&gt;, for the following components..&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;&lt;strong&gt;NFS&lt;/strong&gt; (see note below)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;&lt;strong&gt;Authentication tools for NFS&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;But, make sure you deselect Gateway for NFS, or else you will get this error below...&lt;br /&gt;&lt;br /&gt;7) Verify that Change the default behaviour to case sensitive check box is &lt;strong&gt;NOT TICKED&lt;/strong&gt;, then click &lt;strong&gt;NEXT&lt;/strong&gt;.&lt;br /&gt;8) The Username Mapping Panel appears. Verify that...&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;Local User Name Mapping Server&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;Network Information Service (NIS)&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="background: white;"&gt;&lt;span style="font-family: Trebuchet MS;"&gt;&lt;span style="color: #131414; font-size: 12pt;"&gt;&lt;br /&gt;are selected, then click &lt;strong&gt;NEXT&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;9) Enter the &lt;strong&gt;Windows Domain name&lt;/strong&gt;, the NIS Domain and Server are optional, click &lt;strong&gt;NEXT&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;10) Enter the desired location for the Windows Service for UNIX install, (Not MARS Archive Share), and click &lt;strong&gt;NEXT&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;11) Click &lt;strong&gt;FINISH, and REBOOT.&lt;br /&gt;&lt;/strong&gt;Now you have successfully install the NFS Windows Component, we are now ready to define a share to used by the MARS appliance.&lt;br /&gt;&lt;/span&gt;&lt;span style="color: #3333ff; font-size: 15pt;"&gt;&lt;strong&gt;Define a NFS Share on Windows&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #131414; font-size: 12pt;"&gt;&lt;br /&gt;&lt;br /&gt;1) In Windows Explorer, create a folder for MARS to Archive to.&lt;br /&gt;&lt;br /&gt;2) Right-Click the folder, and select the &lt;strong&gt;NFS Sharing Tab&lt;/strong&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;3) Select &lt;strong&gt;Share this folder&lt;/strong&gt;, and enter a &lt;strong&gt;share name&lt;/strong&gt;. Encoding &lt;strong&gt;ANSI.&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;4) Select &lt;strong&gt;Allow Anonymous Access&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;5) Click on&lt;strong&gt; Permissions&lt;/strong&gt;, and select&lt;strong&gt; ALL Machines, &lt;/strong&gt;and&lt;strong&gt; No Access&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;6) Now click&lt;strong&gt; ADD, &lt;/strong&gt;and type the&lt;strong&gt; IP Address of your MARS Box, &lt;/strong&gt;with&lt;strong&gt; Read-Write, &lt;/strong&gt;and&lt;strong&gt; ANSI Encoding.&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;7) Click &lt;strong&gt;OK&lt;/strong&gt;, and&lt;strong&gt; Apply&lt;/strong&gt;.&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;8) From a DOS Window, type the following, to modify the shared folder permissions so that Everyone has local filesystem access to the folder.&lt;br /&gt;&lt;br /&gt;cd &lt;strong&gt;share&lt;/strong&gt;&lt;br /&gt;cacls &lt;strong&gt;share &lt;/strong&gt;/E /G everyone:F&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;8) Under &lt;strong&gt;Administration Tools/Local Security Policy / Security Options&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Double click.. &lt;strong&gt;Network Access: Let Everyone permissions apply to anonymous users&lt;/strong&gt;, and select &lt;strong&gt;Enabled&lt;/strong&gt;. Then click &lt;strong&gt;OK&lt;/strong&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You have now completed the NFS configuration for the Windows Server.&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;Check your share issuing the command "showmount –e"&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white; text-align: justify;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;Before we configure MARS to Archive to the NFS share, there is one last thing that is recommended. This is to add the NFS Client, which is the MARS Box, to the&lt;strong&gt; hosts file&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;/etc/hosts on Linux&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;Windows\system32\drivers\etc on Windows&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;And also Add the MARS Appliance to your internal DNS.&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;br /&gt;&amp;nbsp;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="font-family: Trebuchet MS;"&gt;&lt;span style="color: #3333ff; font-size: 15pt;"&gt;&lt;strong&gt;CS-MARS Archive Configuration&lt;/strong&gt;&lt;/span&gt;&lt;span style="color: #131414; font-size: 12pt;"&gt;&lt;br /&gt;&lt;br /&gt;1) Select &lt;strong&gt;Admin / System Maintenance / Data Archiving&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;2) In the &lt;strong&gt;Remote Host IP&lt;/strong&gt; Field, enter the IP Address of your NFS Server&lt;br /&gt;&lt;br /&gt;3) In the &lt;strong&gt;Remote Path&lt;/strong&gt; Field, enter the export path on the NFS Server&lt;br /&gt;&lt;br /&gt;(In Windows a forward slash is required to resolve the UNC Share name)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;4) &lt;strong&gt;Archiving Protocol&lt;/strong&gt;, NFS is the only option at the moment!&lt;br /&gt;&lt;br /&gt;5) &lt;strong&gt;Remote Storage Capacity in Days&lt;/strong&gt; - enter one of the following...&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;The maximum number of days for which you want the NFS server to retain data. The NFS Server keeps your data for the number of days previous to the current date.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div style="background: white;"&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;The number of days that the NFS Server can maximally retain, ie the upward capacity of the archive server.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;span style="color: #131414; font-family: Trebuchet MS; font-size: 12pt;"&gt;6) Click &lt;strong&gt;START&lt;/strong&gt;, to enable your MARS Archiving&lt;br /&gt;&lt;br /&gt;If everything has gone to plan, you should receive a message back of DONE Status OK.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you see an error message such as "Invalid remote IP or path", your NFS Server may not be correctly configured. I`d check the remote path is correct in the first instance.&lt;br /&gt;&lt;br /&gt;In a &lt;strong&gt;Windows environment&lt;/strong&gt;, we can also enable logging of NFS events...&lt;br /&gt;&lt;br /&gt;1)&lt;strong&gt; Programs/ Windows Services for UNIX/ Services for UNIX Administration &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;2) Select &lt;strong&gt;Server for NFS&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) Under Logging, &lt;strong&gt;tick all the boxes&lt;/strong&gt;, and specify a folder where you want to place the log file.&lt;br /&gt;&lt;br /&gt;4) Click &lt;strong&gt;Apply&lt;/strong&gt; to save changes.&lt;br /&gt;&lt;br /&gt;Thats the Archiving all set up.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1690330854995780532?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1690330854995780532/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/11/how-to-setup-nfs-server-to-archive.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1690330854995780532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1690330854995780532'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/11/how-to-setup-nfs-server-to-archive.html' title='How to setup a NFS server to archive Cisco Mars logs'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-890130033717937976</id><published>2010-10-27T08:46:00.001-07:00</published><updated>2010-10-27T08:46:23.011-07:00</updated><title type='text'>How to Backup the DHCP Database (on Win2K3) and Restore to another Server (also running Win2K3)</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; text-decoration:underline'&gt;To move a DHCP database and configuration from a server that is running Windows Server 2003 to another server that is running Windows Server 2003:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Log on to the source DHCP server by using an account that is a member of the local Administrators group.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Click Start, click Run, type &lt;strong&gt;cmd&lt;/strong&gt; in the Open box, and then click OK.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Type &lt;strong&gt;netsh dhcp server export C:\dhcp.txt all&lt;/strong&gt;, and then press ENTER.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; text-decoration:underline'&gt;Install the DHCP server service on the server that is running Windows Server 2003&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial'&gt;To install the DHCP Server service on an existing Windows Server 2003-based computer:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Click Start, click Control Panel, and then double-click Add or Remove Programs.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Click Add/Remove Windows Components.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;In the Windows Component Wizard, click Networking Services in the Components box, and then click Details.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Click to select the Dynamic Host Configuration Protocol (DHCP) check box if it is not already selected, and then click OK.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;In the Windows Components Wizard, click Next to install the selected components. Insert the Windows Server 2003 CD into your computer CD drive or DVD drive if you are prompted to do this. Setup copies the DHCP server and tool files to your computer.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;When Setup is complete, click Finish.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; text-decoration:underline'&gt;Import the DHCP database&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Log on as a user who is an explicit member of the local Administrators group. A user account in a group that is a member of the local Administrators group will not work. If a local Administrators account does not exist for the domain controller, restart the computer in Directory Services Restore Mode, and use the administrator account to import the database as described later in this section.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Copy the exported DHCP database file to the local hard disk of the Windows Server 2003-based computer.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;span style='font-family:Arial'&gt;Verify that the DHCP service is started on the Windows Server 2003-based computer.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Click Start, click Run, type &lt;strong&gt;cmd&lt;/strong&gt; in the Open box, and then click OK.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;At the command prompt, type &lt;strong&gt;netsh dhcp server import c:\dhcp.txt all&lt;/strong&gt;, and then press ENTER, where &lt;strong&gt;c:\dhcp.txt&lt;/strong&gt; is the full path and file name of the database file that you copied to the server.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial'&gt;&lt;strong&gt;Authorize the new DHCP server&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Click Start, point to All Programs, point to Administrative Tools, and then click DHCP.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;In the console tree of the DHCP snap-in, expand the new DHCP server. If there is a red arrow in the lower-right corner of the server object, the server has not yet been authorized.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;Right-click the server objects, and then click &lt;strong&gt;Authorize&lt;/strong&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial'&gt;After several moments, right-click the server again, and then click Refresh. A green arrow indicates that the DHCP server is authorized.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-890130033717937976?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/890130033717937976/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/10/how-to-backup-dhcp-database-on-win2k3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/890130033717937976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/890130033717937976'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/10/how-to-backup-dhcp-database-on-win2k3.html' title='How to Backup the DHCP Database (on Win2K3) and Restore to another Server (also running Win2K3)'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8800600263338472845</id><published>2010-09-24T07:39:00.001-07:00</published><updated>2010-09-24T07:39:09.382-07:00</updated><title type='text'>sendmail and sm-client very slow to start</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;After changing the IP address of a server, at the time of booting up sendmail and sm-client took a very long time (about 5 minutes each) to start.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;Usually when sendmail is sluggish starting - it's because it can't figure out hostname details.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# cat /etc/hosts&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;127.0.0.1       localhost.localdomain   localhost&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;above needs to be the very first line of /etc/hosts&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;if you are accepting email for a domain then it would help if you have&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;the fully qualified domain name set in /etc/sysconfig/network and that&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;name resolves via dns or at least is listed with an ip address&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;in /etc/hosts...&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;i.e.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# hostname&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;linuxserver.mydomain.com&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# cat /etc/sysconfig/network&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;NETWORKING=yes&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;HOSTNAME=linuxserver.mydomain.com&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# cat /etc/hosts&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# Do not remove the following line, or various programs&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# that require network functionality will fail.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;127.0.0.1       localhost.localdomain   localhost&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;192.168.0.1     linuxserver.mydomain.com linuxserver&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# host linuxserver.mydomain.com&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;linuxserver.mydomain.com has address 192.168.0.1&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;# cat /etc/mail/local-host-names&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;mydomain.com&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;linuxserver.mydomain.com&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;www.mydomain.com&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;localhost&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;localhost.localdomain&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Courier New; font-size:10pt'&gt;That's it !&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8800600263338472845?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8800600263338472845/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/sendmail-and-sm-client-very-slow-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8800600263338472845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8800600263338472845'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/sendmail-and-sm-client-very-slow-to.html' title='sendmail and sm-client very slow to start'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-4938989921486053099</id><published>2010-09-21T10:19:00.001-07:00</published><updated>2010-09-21T10:19:43.796-07:00</updated><title type='text'>Linux LVM tips</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;&lt;a name='LVM_Tools'/&gt;LVM Tools&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;table border='0' style='border-collapse:collapse'&gt;&lt;colgroup&gt;&lt;col style='width:159px'/&gt;&lt;col style='width:471px'/&gt;&lt;/colgroup&gt;&lt;tbody valign='top'&gt;&lt;tr style='background: silver'&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;LVM Tool&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Description&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;pvcreate&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Create physical volume from a hard drive&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgcreate&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Create logical volume group from one or more physical volumes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgextend&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Add a physical volume to an existing volume group&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgreduce&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Remove a physical volume from a volume group&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;lvcreate&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Create a logical volume from available space in the volume group&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;lvextend&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Extend the size of a logical volume from free physical extents in the logical volume group&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;lvremove&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Remove a logical volume from a logical volume group, after unmounting it&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgdisplay&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Show properties of existing volume group&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;lvdisplay&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Show properties of existing logical volumes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;pvscan&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style='padding-top: 1px; padding-left: 1px; padding-bottom: 1px; padding-right: 1px'&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Show properties of existing physical volumes&lt;/span&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;&lt;a name='Operations_on_Logical_Volumes'/&gt;Operations on Logical Volumes&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Among typical operations: &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href='http://www.gweep.net/~sfoskett/linux/lvmlinux.html'&gt;&lt;span style='color:blue; font-family:Times; font-size:12pt; text-decoration:underline'&gt;A Walkthrough of the LVM for Linux&lt;/span&gt;&lt;/a&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Adding a disk to the Volume Group&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Next, we'll add /dev/hda6 to the Volume Group. Just type vgextend vg01 /dev/hda6 and you're done! You can check this out by using vgdisplay -v vg01. Note that there are now a lot more PEs available! &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Moving Creating a striped Logical Volume&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Note that LVM created your whole Logical Volume on one Physical Volume within the Volume Group. You can also stripe an LV across two Physical Volumes with the -i flag in lvcreate. We'll create a new LV, lv02, striped across hda5 and hda6. Type lvcreate -l4 -nlv02 -i2 vg01 /dev/hda5 /dev/hda6. Specifying the PV on the command line tells LVM which PEs to use, while the -i2 command tells it to stripe it across the two. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;You now have an LV striped across two PVs! &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Moving data within a Volume Group&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Up to now, PEs and LEs were pretty much interchangable. They are the same size and are mapped automatically by LVM. This does not have to be the case, though. In fact, you can move an entire LV from one PV to another, even while the disk is mounted and in use! This will impact your performance, but it can prove useful. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Let's move lv01 to hda6 from hda5. Type pvmove -n/dev/vg01/lv01 /dev/hda5 /dev/hda6. This will move all LEs used by lv01 mapped to PEs on /dev/hda5 to new PEs on /dev/hda6. Effectively, this migrates data from hda5 to hda6. It takes a while, but when it's done, take a look with lvdisplay -v /dev/vg01/lv01 and notice that it now resides entirely on /dev/hda6! &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Removing a Logical Volume from a Volume Group&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Let's say we no longer need lv02. We can remove it and place its PEs back in the empty pool for the Volume Group. First, unmounting its filesystem. Next, deactivate it with lvchange -a n /dev/vg01/lv02. Finally, delete it by typing lvremove /dev/vg01/lv02. Look at the Volume Group and notice that the PEs are now unused. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Removing a disk from the Volume Group&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 72pt'&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;You can also remove a disk from a volume group. We aren't using hda5 anymore, so we can remove it from the Volume Group. Just type vgreduce vg01 /dev/hda5 and it's gone! &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;A file system on logical volume may be extended. Also more space may be added to a VG by adding new partitions or devices  with the command: &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgextend. &lt;/span&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;For example:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;lvextend -L +4G /dev/VolGroup00/LogVol04 &lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;The command &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;pvmove&lt;/span&gt;&lt;span style='font-family:Times; font-size:12pt'&gt; can be used in several ways to move any LV elsewhere. There are also many more commands to rename, remove, split, merge, activate, deactivate and get extended information about current PV's, VG's and LV's. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times'&gt;Here is a typical du map of a server with volume manager installed. As you can see all partitions except &lt;/span&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;/boot&lt;/span&gt;&lt;span style='font-family:Times'&gt; partition are referred vi path &lt;/span&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;/dev/mapper/VolGroup00-LogVolxx&lt;/span&gt;&lt;span style='font-family:Times'&gt; where xx is two digit number: &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;/dev/mapper/VolGroup00-LogVol00&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                       4128448    316304   3602432   9% /&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;&lt;span style='color:red'&gt;&lt;strong&gt;/dev/sda3               194449     22382    162027  13% /boot&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;none                   2020484         0   2020484   0% /dev/shm&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;/dev/mapper/VolGroup00-LogVol05&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                       4128448     42012   3876724   2% /home&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;/dev/mapper/VolGroup00-LogVol03&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                       4128448     41640   3877096   2% /tmp&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;/dev/mapper/VolGroup00-LogVol02&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                       8256952   3189944   4647580  41% /usr&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;/dev/mapper/VolGroup00-LogVol04&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                       8256952    174232   7663344   3% /var&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;/dev/hde                594366    594366         0 100% /media/cdrecorder&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;                &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;Resiliency to renumbering of physical hard disks &lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;LVM identifies PVs by UUID, not by device name. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Each disk (PV) is labeled with a UUID, which uniquely identifies it to the system. 'vgscan' identifies this after a new disk is added that changes your drive numbering. Most distros run vgscan in the lvm startup scripts to cope with this on reboot after a hardware addition. If you're doing a hot-add, you'll have to run this by hand I think. On the other hand, if your vg is activated and being used, the renumbering should not affect it at all. It's only the activation that needs the identifier, and the worst case scenario is that the activation will fail without a vgscan with a complaint about a missing PV. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;The failure or removal of a drive that LVM is currently using will cause problems with current use and future activations of the VG that was using it. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;How to get information about free space&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgdisplay &lt;/span&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;shows logical volumes one by one and provides the information about free disk space on each: &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;vgdisplay volume_group_one | grep "Total PE"&lt;/span&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;&lt;a name='How_to_create_a_new_volume'/&gt;How to create a new volume&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times'&gt;# &lt;/span&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;vgcreate vg01 /dev/hda2 /dev/hda10&lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br/&gt;  Volume group "vg01" successfully created&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;&lt;a name='create_and_mount_a_partition'/&gt;How to create and mount a partition&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Create the partition with &lt;span style='color:blue'&gt;lvcreate&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;						&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;# lvcreate -L 5G -n data vg02&lt;br/&gt;  Logical volume "data" created&lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br/&gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Format partition&lt;/strong&gt;&lt;br /&gt;						&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;# mkfs -t ext3 /dev/vg02/data &lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br/&gt; &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Make mount point and mount it &lt;/strong&gt;&lt;br /&gt;						&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;# mkdir /data&lt;br/&gt;# mount /dev/vg02/data /data/&lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br /&gt;							&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Check results&lt;/strong&gt;&lt;br /&gt;						&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;# df -h /data&lt;br/&gt;Filesystem            Size  Used Avail Use% Mounted on&lt;br/&gt;/dev/mapper/test--volume-data&lt;br/&gt;                      50.0G   33M  5.0G   1% /data&lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br /&gt;							&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;&lt;strong&gt;Add it to &lt;span style='color:blue'&gt;/etc/fstab&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;&lt;a name='How_to_extend_the_partition'/&gt;How to extend the partition&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;If one wishes to use all the free physical extents on the volume group one can achieve this using the &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;lvm&lt;/span&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;lvextend &lt;/span&gt;&lt;span style='font-family:Times'&gt;command : &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;lvm lvextend -L +4G /dev/VolGroup00/LogVol04 # extend /var&lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;ext2online /dev/VolGroup00/LogVol04&lt;/span&gt;&lt;span style='font-family:Times'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Option -l operates with free extents . This adds the 7153 free extents to the logical volume:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;# lvm lvextend -l+7153 /dev/TestVG/TestLV&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;  Extending logical volume TestLV to 30.28 GB&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style='margin-left: 30pt'&gt;&lt;span style='font-family:Times New Roman; font-size:10pt'&gt;  Logical volume TestLV successfully resized&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Times'&gt; "&lt;/span&gt;&lt;span style='color:blue; font-family:Times New Roman'&gt;lvextend -L +54 /dev/vg01/lvol10 /dev/sdk3"&lt;/span&gt;&lt;span style='font-family:Times'&gt; tries to extend the size of that logical volume by 54MB on physical volume /dev/sdk3. This is only possible if /dev/sdk3 is a member of volume group vg01. &lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Then the &lt;span style='color:blue'&gt;&lt;strong&gt;pvcreate&lt;/strong&gt;&lt;/span&gt; command is used to create the new physical volume using the new partition, and the pvs again to verify the new physical volume. See &lt;a target='_blank' href='http://kbase.redhat.com/faq/FAQ_96_4842.shtm'&gt;&lt;span style='color:blue; text-decoration:underline'&gt; redhat.com Knowledgebase&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p style='text-align: center'&gt;&lt;span style='font-family:Arial; font-size:13pt'&gt;&lt;strong&gt;How to remove LVM partionon&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Use lvremove to Remove a logical volume from a logical volume group, after unmounting it&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;syntax: &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;lvremove [-A/--autobackup y/n] [-d/--debug] [-f/--force] [-h/-?/--help] [-t/--test] [-v/--verbose] LogicalVolumePath [LogicalVolumePath...]&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;lvremove removes one or more logical volumes. Confirmation will be requested before deactivating any active logical volume prior to removal. Logical volumes cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem).&lt;br/&gt; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times; font-size:12pt'&gt;Options.&lt;br/&gt;&lt;br/&gt;-f, --force&lt;br/&gt;Remove active logical volumes without confirmation.&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;EXAMPLES&lt;br/&gt;Remove the active logical volume lvol1 in volume group vg00 without&lt;br/&gt;asking for confirmation:&lt;br/&gt;&lt;br/&gt;lvremove -f vg00/lvol1&lt;br/&gt;&lt;br/&gt;Remove all logical volumes in volume group vg00:&lt;br/&gt;&lt;br/&gt;lvremove vg00&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:18pt'&gt;&lt;strong&gt;TIPS:&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Missing drives in a volume group have caused me a lot of problems. If you just want to excommunicate the drive from your vg, the following works:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;vgreduce --removemissing vg00&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;# pvscan&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find device with uuid 'pQMQJ3-Rq3M-kQD9-M6DB-UWLi-Dyk4-3pWoa7'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find device with uuid 'pQMQJ3-Rq3M-kQD9-M6DB-UWLi-Dyk4-3pWoa7'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  PV unknown device   VG milan    lvm2 [30.00 GB / 29.90 GB free]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  PV /dev/sdg         VG milan    lvm2 [30.00 GB / 29.90 GB free]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;# vgscan&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Reading all physical volumes.  This may take a while...&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find device with uuid 'pQMQJ3-Rq3M-kQD9-M6DB-UWLi-Dyk4-3pWoa7'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find all physical volumes for volume group milan.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find device with uuid 'pQMQJ3-Rq3M-kQD9-M6DB-UWLi-Dyk4-3pWoa7'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find all physical volumes for volume group milan.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Volume group "milan" not found&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;# lvscan&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find device with uuid 'pQMQJ3-Rq3M-kQD9-M6DB-UWLi-Dyk4-3pWoa7'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find all physical volumes for volume group milan.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find device with uuid 'pQMQJ3-Rq3M-kQD9-M6DB-UWLi-Dyk4-3pWoa7'.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Couldn't find all physical volumes for volume group milan.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;  Volume group "milan" not found&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:14pt'&gt;&lt;strong&gt;LINKS:&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;More information about LVM at http://www.softpanorama.org/Commercial_linuxes/logical_volume_manager.shtml&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-4938989921486053099?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/4938989921486053099/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/linux-lvm-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4938989921486053099'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4938989921486053099'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/linux-lvm-tips.html' title='Linux LVM tips'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-3030358553919132365</id><published>2010-09-15T11:40:00.001-07:00</published><updated>2010-09-15T11:40:25.370-07:00</updated><title type='text'>How to restore a pending request in IIS 6.0 if it was deleted</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;To install a Web server certificate that lacks a pending certificate request:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;1. Click Start &amp;gt;  point to Run &amp;gt;  type cmd &amp;gt; click OK.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;2. Navigate to the directory where Certutil.exe is stored;  by default, this is %windir%\system32.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;3. Type the following command at the command prompt: certutil -addstore my certnew.cer &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;where certnew.cer is the name of the certificate you received from the certification authority (CA).&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;You should see the following message:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;CertUtil: -addstore command completed successfully.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;4. Navigate to the directory where you stored the certificate you received from the CA. Double click the saved certificate.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;5. Click the Details tab and select &amp;lt;All&amp;gt; in the Show drop-down list.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;6. In the Field list, select Thumbprint to display its value in the view pane.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;7. Select the Thumbprint value in the view pane and then click CTRL+C.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;8. Return to the command prompt window and type the following command: certutil -repairstore my "thumbprint"&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;where thumbprint is the value of the Thumbprint field. Be sure to type the double quotes as part of the command.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;If the command is successful, the following message is displayed: "Encryption test passed CertUtil: = repairstore command completed successfully." &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Install the server certificate on your Web server.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;IMPORTANT:&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;If the certutil command does not complete successfully, the following error message is displayed:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;"Certutil: -repairstore command FAILED: 0x80090011 (-2146893807) Certutil: Object was not found."&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;This message indicates that the private key for the certificate does not exist in the certificate store. You cannot install the certificate you obtained from the CA. Instead, you must generate a new certificate request, obtain the new certificate, and install that new certificate on your Web server.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;IIS stores the private key for a certificate as the pending request. Deleting the pending request deletes the association of the private key with IIS, but the private key still exists in the certificate store.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;To install the certificate without having the pending request available, you can use version 5.2.3718.0 of the Certutil.exe command-line tool that is available through the Certificate Services MMC snap-in in Windows Server 2003.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-3030358553919132365?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/3030358553919132365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/how-to-restore-pending-request-in-iis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3030358553919132365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3030358553919132365'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/how-to-restore-pending-request-in-iis.html' title='How to restore a pending request in IIS 6.0 if it was deleted'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1749820450788653739</id><published>2010-09-15T11:00:00.001-07:00</published><updated>2010-09-15T11:00:15.243-07:00</updated><title type='text'>How-to enable web access in ESX 4 vSphere</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;If you need to &lt;strong&gt;access your ESX 4.0 server through your web browser via HTTPS&lt;/strong&gt;, you might not succeed at first try. You will receive an error "503 Service unavailable". So what to do?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;01.)&lt;/strong&gt; You first I check for the service if it's running or not. Go to the console and log in. Then type in following command to see if the service is running : &lt;strong&gt;(it's case sensitive)&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;service vmware-webAccess status&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;02.)&lt;/strong&gt; Start the service:  &lt;strong&gt;service vmware-webAccess start&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;It seems that this service is disabled by default. Then, if you need to have web access enabled every time your start your ESX Server, then you can do it by executing folowing command:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;chkconfig --level 345 vmware-webAccess on&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;or simply: chkconfig vmware-webAccess on&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1749820450788653739?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1749820450788653739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/how-to-enable-web-access-in-esx-4.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1749820450788653739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1749820450788653739'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/how-to-enable-web-access-in-esx-4.html' title='How-to enable web access in ESX 4 vSphere'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-4626016208891231850</id><published>2010-09-15T07:08:00.001-07:00</published><updated>2010-09-15T07:08:39.968-07:00</updated><title type='text'>Changing the IP address, default gateway, and hostname of the Service Console in ESX</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;This article provides steps to change the Service Console IP address, gateway address, and hostname on an ESX 3.x and 4.x host&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial'&gt;&lt;span style='font-size:12pt'&gt;&lt;strong&gt;Changing settings from the physical or remote console connection&lt;/strong&gt;&lt;/span&gt;&lt;span style='font-size:10pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;Changing the IP for the Service Console must be done from the physical console or through a remote console session. If you make changes through a network connection such as SSH, network connectivity to the Service Console disconnects because the Service Console's network interface changes. &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style='font-size:10pt'&gt;&lt;span style='font-family:Arial'&gt;Run the following command to set the IP address:&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;[root@server root]# esxcfg-vswif -i &amp;lt;a.b.c.d&amp;gt; -n &amp;lt;w.x.y.z&amp;gt; vswif0 &lt;/span&gt;&lt;span style='font-family:Arial'&gt;, where &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;&amp;lt;a.b.c.d&amp;gt; &lt;/span&gt;&lt;span style='font-family:Arial'&gt;is the IP address and &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;&amp;lt;w.x.y.z&amp;gt; &lt;/span&gt;&lt;span style='font-family:Arial'&gt;is the subnet mask.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note&lt;/strong&gt;: In this example, &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;v&lt;/span&gt;&lt;span style='font-family:Arial'&gt;&lt;br /&gt;						&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;swif0 &lt;/span&gt;&lt;span style='font-family:Arial'&gt;is the Service Console adapter that is the interface to which you are applying the IP address change.&lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:10pt'&gt;&lt;span style='font-family:Arial'&gt;Open the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/hosts&lt;/span&gt;&lt;span style='font-family:Arial'&gt; file with a text editor and modify it so that it reflects the correct IP address and hostname. &lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:10pt'&gt;&lt;span style='font-family:Arial'&gt;To change the default gateway address and the hostname, edit the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/sysconfig/network &lt;/span&gt;&lt;span style='font-family:Arial'&gt;file and change the GATEWAY and HOSTNAME parameters to the proper values. &lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-size:10pt'&gt;&lt;span style='font-family:Arial'&gt;For the changes to take place, reboot the host or restart the network service with the command: &lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style='font-family:Courier New'&gt;[root@server root]# service network restart&lt;/span&gt;&lt;span style='font-family:Arial'&gt;&lt;br /&gt;							&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note&lt;/strong&gt;: This command breaks any current network connections to the Service Console. &lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Arial'&gt;&lt;strong&gt;Changing the hostname without rebooting&lt;/strong&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;To dynamically change the hostname, run the command: &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:10pt'&gt;&lt;span style='font-family:Courier New'&gt;[root@server root]# hostname newname&lt;/span&gt;&lt;span style='font-family:Arial'&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note&lt;/strong&gt;: This command creates a temporary hostname change. This change is lost when the system is rebooted.&lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Arial'&gt;&lt;strong&gt;Changing the DNS server settings&lt;/strong&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:10pt'&gt;&lt;span style='font-family:Arial'&gt;To change the DNS server settings, update the nameserver IPs and search domain the &lt;/span&gt;&lt;span style='font-family:Courier New'&gt;/etc/resolv.conf &lt;/span&gt;&lt;span style='font-family:Arial'&gt;file. &lt;/span&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-size:12pt'&gt;&lt;span style='font-family:Arial'&gt;&lt;strong&gt;Changing settings in VMware vSphere or Infrastructure Client&lt;/strong&gt;&lt;/span&gt;&lt;span style='font-family:Times New Roman'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;To change the hostname, domain, DNS servers, and default gateway in VMware vSphere or Infrastructure (VI) Client: &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;Highlight the ESX host and click the &lt;strong&gt;Configuration&lt;/strong&gt; tab. &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;Click &lt;strong&gt;DNS and Routing&lt;/strong&gt;. &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;Click &lt;strong&gt;Properties&lt;/strong&gt;. &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;To change the hostname, domain, and DNS servers, click the &lt;strong&gt;DNS Configuration&lt;/strong&gt; tab and enter the appropriate values.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Note&lt;/strong&gt;: Disable VMware High Availability if you do not want virtual machines to failover during the hostname IP change.&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;To change the default gateway, click the &lt;strong&gt;Routing&lt;/strong&gt; tab and enter the appropriate value. &lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;Reboot the ESX host for the changes to take effect.&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:10pt'&gt;Reconnect the ESX host to vCenter Server with the new IP address.&lt;/span&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br /&gt;					&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-4626016208891231850?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/4626016208891231850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/changing-ip-address-default-gateway-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4626016208891231850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4626016208891231850'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/changing-ip-address-default-gateway-and.html' title='Changing the IP address, default gateway, and hostname of the Service Console in ESX'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6211752990172380982</id><published>2010-09-09T13:32:00.001-07:00</published><updated>2010-09-09T13:32:53.927-07:00</updated><title type='text'>How to fix: This file is invalid for use as the following: Security Certificate</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Solution:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana; font-size:8pt'&gt;This file is invalid for use as the following: Security Certificate&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;&lt;br/&gt;This is not an error, it simply means you cannot open the file.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana; font-size:8pt'&gt;I've got the file with .txt extension and changed it to .cer, but that message appeared when I double click on it.&lt;br/&gt;&lt;br/&gt;To view the certificates in the file, change the file extension from .cer to .p7b&lt;br/&gt;&lt;br/&gt;Now, when you open the file and open the branch on the left of the window you will see 'Certificates'.&lt;br/&gt;By clicking on 'Certificates' you will see all the certificates contained in the single .cer format file.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana; font-size:8pt'&gt;You can right click on every single .cer file and export it.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana; font-size:8pt'&gt;If you want to install it, you might use the .p7b file instead of the single .cer file as this could be a cross certificate.&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6211752990172380982?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6211752990172380982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/how-to-fix-this-file-is-invalid-for-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6211752990172380982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6211752990172380982'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/how-to-fix-this-file-is-invalid-for-use.html' title='How to fix: This file is invalid for use as the following: Security Certificate'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8500477578744546683</id><published>2010-09-09T13:17:00.001-07:00</published><updated>2010-09-09T13:17:17.751-07:00</updated><title type='text'>Generate Certificate Signing Request in Microsoft IIS 6.0 without removing the current certificate</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:13pt'&gt;&lt;strong&gt;Problem&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;Change CSR information without losing the current certificate&lt;br/&gt;Generate CSR without overwriting the current certificate&lt;br/&gt;Create renewal CSR with changes&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:13pt'&gt;&lt;strong&gt;Resolution&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;This article describes how you can create a new Certificate Signing Request (CSR) or generate a Renewal Request without having to remove the existing certificate from your web site.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;To Generate Certificate Signing Request in Microsoft IIS 6.0 without removing the current certificate, requires you to do the following: &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;A. Generate a temporary web site.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;NOTE:&lt;/strong&gt;  When you create the temporary web site, you do not need to assign an IP address and port number. You only have to give it read and write permissions and create a temporary folder in your hard drive and save it there.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;br/&gt;B. Generate the pending request and CSR on the Temporary web site.&lt;br/&gt;&lt;br/&gt;C. After receiving the certificate, install the certificate to the Temporary web site.&lt;br/&gt;&lt;br/&gt;D. On the actual web site, replace the certificate with the newly installed certificate.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Instructions for 'work around':&lt;/strong&gt; &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;1. In IIS right click the &lt;strong&gt;Default Web Site&lt;/strong&gt; and click on &lt;strong&gt;New&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Web Site&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;2. Create a new site. You can give it a temporary name. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;3. Right click on this new site and go to &lt;strong&gt;Properties&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Directory Security&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Server certificate&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;4. Select &lt;strong&gt;Create a new certificate&lt;/strong&gt; and follow the wizard to create a new CSR&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;5. Backup the Private Key file. &lt;strong&gt;Very important:&lt;/strong&gt; if no backup is made and the Private Key is lost, the certificate issued will not work.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;&lt;strong&gt;Although a new csr was generated, you are still required to go through the normal renewal process with that new csr. &lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;6. When you receive the certificate back, right click on this temporary site and go to &lt;strong&gt;Properties&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Directory&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Security&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Server certificate&lt;/strong&gt; and follow the wizard to &lt;strong&gt;process the pending request&lt;/strong&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;7. Once the certificate has been installed, go to the correct website and right click &lt;strong&gt;Properties&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Directory Security&lt;/strong&gt; --&amp;gt; &lt;strong&gt;Server certificate&lt;/strong&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;8. Select the option &lt;strong&gt;Replace the current certificate&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;9. You will then be able to select the certificate that you have just installed. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;10. Once installed we strongly advise you to make a backup of your certificate with its corresponding private key. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;11. You can now delete the temporary site that you created previously. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Times New Roman; font-size:12pt'&gt;The official Microsoft article explaining this process can be found at Microsoft Knowledge Base Article: "How To Renew or Create New Certificate Signing Request While Another Certificate Is Currently Installed" utilizing this URL: &lt;a target='_blank' href='http://support.microsoft.com/kb/295281'&gt;&lt;span style='color:blue; text-decoration:underline'&gt;http://support.microsoft.com/kb/295281&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8500477578744546683?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8500477578744546683/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/generate-certificate-signing-request-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8500477578744546683'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8500477578744546683'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/09/generate-certificate-signing-request-in.html' title='Generate Certificate Signing Request in Microsoft IIS 6.0 without removing the current certificate'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1170303503644625912</id><published>2010-07-15T13:52:00.001-07:00</published><updated>2010-07-15T13:52:14.716-07:00</updated><title type='text'>How to install service packs in a cluster</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;You can install Windows service packs on Windows Server Failover Cluster nodes using the following procedure. Always install the same service packs or hotfixes to each node. Use this procedure to install the service packs unless otherwise directed by a particular service pack version. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Check the System event log for errors and ensure proper system operation. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Make sure you have a current backup and updated emergency repair disk for each system. In the event of corrupt files, power outage, or incompatibility, it may be necessary to revert back to the state of the system prior to attempting to install the service pack. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Open Cluster Administrator, right-click &lt;strong&gt;Node A&lt;/strong&gt;, and then click &lt;strong&gt;Pause Node&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Expand &lt;strong&gt;Node A&lt;/strong&gt;, and then click &lt;strong&gt;Active Groups&lt;/strong&gt;. In the left pane, right-click the groups, and then click &lt;strong&gt;Move Group&lt;/strong&gt; to move all groups to Node B. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Install the service pack on Node A, and then restart the computer. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Check the System event log for errors. If you find any errors, troubleshoot them before continuing this process. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;In Cluster Administrator, right-click &lt;strong&gt;Node A&lt;/strong&gt;, and then click &lt;strong&gt;Resume Node&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;In Cluster Administrator, right-click &lt;strong&gt;Node B&lt;/strong&gt;, and then click &lt;strong&gt;Pause Node&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Right-click &lt;strong&gt;Node B&lt;/strong&gt;, and then click &lt;strong&gt;Move Group&lt;/strong&gt; for all groups owned by Node B to move all groups to Node A. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Install the service pack on Node B, and then restart the computer. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Check the system event log for errors. If you find any errors, troubleshoot them before continuing this process. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;In Cluster Administrator, right-click &lt;strong&gt;Node B&lt;/strong&gt;, and then click &lt;strong&gt;Resume Node&lt;/strong&gt;. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Right-click each group, click &lt;strong&gt;Move Group&lt;/strong&gt;, and then move the groups back to their preferred owner.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='color:black; font-family:Verdana; font-size:9pt'&gt;&lt;strong&gt;APPLIES TO&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Windows Server 2008 Enterprise &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Windows Server 2008 Datacenter &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Microsoft Windows Server 2003, Enterprise Edition (32-bit x86) &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Microsoft Windows Server 2003, Datacenter Edition (32-bit x86) &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Microsoft Windows 2000 Advanced Server &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Microsoft Windows NT Server 4.0 Enterprise Edition &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Windows Server 2008 R2 Datacenter &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='color:black; font-family:Verdana; font-size:8pt'&gt;Windows Server 2008 R2 Enterprise&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;Find the original article at:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href='http://support.microsoft.com/default.aspx?scid=kb;en-us;174799'&gt;http://support.microsoft.com/default.aspx?scid=kb;en-us;174799&lt;/a&gt;&lt;br /&gt;			&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1170303503644625912?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1170303503644625912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/07/how-to-install-service-packs-in-cluster.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1170303503644625912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1170303503644625912'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/07/how-to-install-service-packs-in-cluster.html' title='How to install service packs in a cluster'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5177786447483125818</id><published>2010-06-30T12:12:00.001-07:00</published><updated>2010-06-30T12:12:40.870-07:00</updated><title type='text'>Create a NFS share for VM ISO files with Windows 2003 Server R2</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;If your ESX servers are not connected to network storage or if you do not have enough available space on your SAN to dedicate a sub folder of a VMFS volume for ISO files, then you can use a NFS network share to centrally store these images. Creating the NFS share can be done with many server operating systems, but did you know that Windows Server 2003 R2 has native NFS?&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a target='_blank' href='http://vmware-land.com'&gt;&lt;span style='font-family:Arial; font-size:12pt; text-decoration:underline'&gt;VMware-land.com&lt;/span&gt;&lt;/a&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt; has many "how to"&lt;a href='http://vmware-land.com/Vmware_Tips.html'&gt;&lt;span style='text-decoration:underline'&gt; VMware Tips&lt;/span&gt;&lt;/a&gt; for ESX, and the following is the instructions found there for creating a Windows 2003 R2 NFS share:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ol&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;On the Windows 2003 Server make sure "Microsoft Services for NFS" in installed. If not you need to add it under Add/Remove Programs, Windows&lt;br/&gt;Components, Other Network File and Print Services &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Next go to folder you want to share and right-click on it and select Properties &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Click on the NFS Sharing tab and select "Share this Folder" &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Enter a Share Name, check "Anonymous Access" and make sure the UID and GID are both -2 &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;In VirtualCenter, select your ESX server and click the "Configuration" tab and then select "Storage" &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Click on "Add Storage" and select "Network File System" as the storage type &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Enter the Windows Server name, the folder (share) name and a descriptive Datastore Name &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Once it finishes the configuration you can now map your VM's CD-ROM devices to this new VMFS volume &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Repeat steps 5 through 8 for each of your ESX servers to make the same ISO files available to all ESX hosts.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;These instructions assume that you have already configured the VMkernel port group on a vSwitch for each ESX host. For instructions and information about configuring the VMKernel for NAS/NFS storage check the Storage Chapter of the &lt;a target='_blank' href='http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf'&gt;&lt;span style='text-decoration:underline'&gt;ESX Server 3 Configuration Guide&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Of course, you can use the NFS share for more than just ISO file storage too. This is a good repository for patches and scripts that need to be used on all hosts. NFS also makes a good target for VM image backups too. Use some imagination and install the free VMware server on your 2003 R2 box and you have a low budget DR platform. Oh yeah, I shouldn't forget to mention you can even run ESX VMs from NFS!&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Important Notes:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;ESX version 3.x only supports NFS version 3 over TCP/IP. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Best practice for TCP/IP storage is to use a dedicated subnet. This will usually require creating separate Service Console and VMKernel port groups on a dedicated vSwitch. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;On the Windows 2003 R2 server be sure to configure the shared folder so that the file permissions allow anonymous full control. You can make the share read only when adding the storage in ESX. &lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;Be sure to remember to punch a hole in the ESX firewall for NFS. On the Configuration tab, go to the Security Profile settings and add the NFS Client so it appears in the allowed outbound connections.&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;&lt;strong&gt;You can also create a NFS share from the Windows command line with the following command&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;C:\&amp;gt;nfsshare [SHARENAME]=[path to folder, e:\foldername] -o rw -o root anon=yes anonuid=-2 anonguid=-2&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='font-family:Arial; font-size:12pt'&gt;&lt;strong&gt;You then need to manually add the Anonymous Access user account on the Security tab and set to "full control". (I bet you can do this from the cmd line too, but I do not have that command right now)&lt;/strong&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5177786447483125818?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5177786447483125818/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/06/create-nfs-share-for-vm-iso-files-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5177786447483125818'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5177786447483125818'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/06/create-nfs-share-for-vm-iso-files-with.html' title='Create a NFS share for VM ISO files with Windows 2003 Server R2'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6249712931963588891</id><published>2010-06-17T08:49:00.001-07:00</published><updated>2010-06-17T08:49:13.167-07:00</updated><title type='text'>How to Modify the All Users Startup Menu in Windows 2008, Vista and Windows 7</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='text-align: center'&gt;&lt;a href='http://www.expta.com/2008/12/how-to-modify-all-users-startup-menu.html'&gt;&lt;span style='color:#336699; font-family:Verdana; font-size:13pt; text-decoration:underline'&gt;&lt;strong&gt;How to Modify the All Users Startup Menu&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style='color:#333333; font-family:Verdana; font-size:13pt'&gt;&lt;strong&gt;&lt;br /&gt;					&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana'&gt;&lt;br /&gt;				&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana'&gt;As you no doubt know, Windows Vista, Windows 7, Windows Server 2008 and Windows Server 2008 R2 have modified the locations for user profiles. They are no longer in &lt;strong&gt;%SystemDrive%\Documents and Settings&lt;/strong&gt; and exist in the &lt;strong&gt;%ProgramData%\Users&lt;/strong&gt; folder. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:#333333; font-family:Verdana'&gt;However, to modify the &lt;strong&gt;All Users&lt;/strong&gt; profile to add a shortcut to the &lt;strong&gt;Startup&lt;/strong&gt; menu you actually need to access the &lt;strong&gt;%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup&lt;/strong&gt; folder. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6249712931963588891?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6249712931963588891/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/06/how-to-modify-all-users-startup-menu-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6249712931963588891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6249712931963588891'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/06/how-to-modify-all-users-startup-menu-in.html' title='How to Modify the All Users Startup Menu in Windows 2008, Vista and Windows 7'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1114332004311091688</id><published>2010-06-01T11:34:00.000-07:00</published><updated>2010-06-01T11:34:47.838-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><title type='text'>Cannot open Virtual Machine Console</title><content type='html'>&lt;span xmlns=""&gt;&lt;/span&gt;&lt;br /&gt;Original document located at vmware KB:&lt;br /&gt;&lt;a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=749640"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=749640&lt;/a&gt;&lt;br /&gt;&lt;h1&gt;Details&lt;/h1&gt;&lt;ul&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;When you try to connect to a virtual machine console from VirtualCenter, you see one or more of these errors:&lt;/span&gt;&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Courier New; font-size: 10pt;"&gt;Error connecting: Login (username/password) incorrect&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Courier New; font-size: 10pt;"&gt;Error connecting: Host address lookup for server &amp;lt;SERVER&amp;gt; failed: The requested name is valid and was found in the database, but it does not have the correct associated data being resolved for Do you want to try again?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Courier New; font-size: 10pt;"&gt;Error connecting: cannot connect to host &amp;lt;host&amp;gt;: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Do you want to try again?&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Courier New; font-size: 10pt;"&gt;Error connecting: You need execute access in order to connect with the VMware console. Access denied for config file.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Courier New;"&gt;Unable to connect to MKS: failed to connect to server IP:903.&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; For more information, see&lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;&lt;br /&gt;&lt;a href="http://kb.vmware.com/kb/1010828" target="_blank"&gt;&lt;/a&gt;&lt;a href="http://kb.vmware.com/kb/1003490" target="_blank"&gt;&lt;/a&gt;&lt;a href="http://kb.vmware.com/kb/1017022" target="_blank"&gt;&lt;/a&gt;&lt;a href="http://kb.vmware.com/kb/1003634" target="_blank"&gt;Troubleshooting the firewall policy on an ESX Server (1003634)&lt;/a&gt;.&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;ESX 4.0 hosts lose network connectivity when multiple service console interfaces are configured on subnets that use DHCP IP addresses (1010828).&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;You cannot open a remote console to a virtual machine.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Virtual machine console is black (blank).&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;The VMware Infrastructure (VI) Client console tab session may time out or disconnect while in use.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Migration of virtual machines using vMotion fails.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;This issue may affect a single ESX&amp;nbsp; host. If the virtual machines are moved to another ESX host, you may be able to connect to the console without error.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;This issue may occur if you try to connect to the console using VMware Infrastructure (VI) Client connected directly to the ESX host or to vCenter Server.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;h1&gt;Solution&lt;/h1&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;If your network is configured such that a firewall exists between the ESX host and the client running the workstation running VI Client, you might not be able to open a virtual machine console. To connect to a virtual machine console from VI Client, port 903 needs to be open in any firewall between the the workstation running VI Client and the ESX host.&amp;nbsp;This&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;applies even if VI Client is connected to VirtualCenter and not directly to ESX host.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Arial; font-size: 10pt;"&gt;&lt;strong&gt;Note&lt;/strong&gt;: Before performing the steps in this article:&lt;/span&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: black;"&gt;For more information on restarting the Management agents, see &lt;/span&gt;&lt;span style="color: #003399;"&gt;Restarting the Management agents on an ESX Server (1003490)&lt;/span&gt;&lt;span style="color: black;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;&lt;span style="color: black;"&gt;For more information on editing configuration files, see &lt;/span&gt;Editing configuration files in VMware ESX (1017022)&lt;span style="color: black;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;To troubleshoot this issue:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;(Just issuing step 1 worked for me !)&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Log in to the VirtualCenter Server directly through Terminal Services or a Remote KVM and attempt a connection from VI Client from this system. If this method works, the firewall is likely preventing the console from working. Configure your firewall to allow communications on port 903 between the ESX host and the workstation running VI Client.&lt;br /&gt;&lt;br /&gt;If port 903 is not open or cannot be opened in your environment, enable the vmauthd proxy. This forces remote console communication to be sent on port 902 on the Service Console, instead of 903.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note&lt;/strong&gt;: By enabling this setting there may be degradation in performance communicating to the ESX host service console, if remote consoles are heavily utilized.&lt;br /&gt;&lt;br /&gt;To enable the proxy:&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Log in to the ESX host's service console as &lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;root&lt;/span&gt;&lt;span style="font-family: Arial;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Open&amp;nbsp;&lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;/etc/vmware/config&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; with a text editor.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Add the following line:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;vmauthd.server.alwaysProxy = "TRUE"&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Issue the following command to restart xinetd:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;service xinetd restart&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Verify the ESX firewall policy.&amp;nbsp; For more information, see &lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Verify that the ESX host and the workstation running VI Client are correctly synced to an NTP service. This is required to satisfy SSL handshaking between VI Client and ESX. For more information, see &lt;a href="http://kb.vmware.com/kb/1003736" target="_blank"&gt;Verifying time synchronization across environment (1003736)&lt;/a&gt;.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;DNS problems are a common cause of virtual machine console problems. Verify name resolution in your environment. For more information, see:&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;/ol&gt;&lt;ul style="margin-left: 72pt;"&gt;&lt;li&gt;&lt;a href="http://kb.vmware.com/kb/1003735" target="_blank"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Identifying issues with and setting up name resolution on ESX Server (1003735)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://kb.vmware.com/kb/1003713" target="_blank"&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Configuring name resolution for VMware VirtualCenter (1003713)&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;After verifying DNS, open a command prompt on the VI Client machine and perform the following:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;ipconfig /flushdns&lt;br /&gt;ipconfig /registerdns&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Verify &lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;/var partition&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; is not full.&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-size: 10pt;"&gt;&lt;span style="font-family: Arial;"&gt;Verify that the permissions for the virtual machine's &lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;.vmx&lt;/span&gt;&lt;span style="font-family: Arial;"&gt; file are set correctly. To set the permissions, run the command:&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family: Courier New;"&gt;chmod 755 &amp;lt;/full/path/to/virtual machine.vmx&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;If your ESX host has more than one service console configured, verify that they are not on the same network.&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family: Arial; font-size: 10pt;"&gt;Check if the Service Console IP is&amp;nbsp;routing traffic to the workstation running the vCenter. For more information on configuring the Service Console Gateway, see&amp;nbsp;&lt;a href="http://kb.vmware.com/kb/4309499" target="_blank"&gt;Changing the IP address, default gateway, and hostname of the Service Console in ESX (4309499)&lt;/a&gt;.&lt;/span&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/5009621251640435938-1114332004311091688?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1114332004311091688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/06/cannot-open-virtual-machine-console.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1114332004311091688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1114332004311091688'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/06/cannot-open-virtual-machine-console.html' title='Cannot open Virtual Machine Console'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6968764895263283497</id><published>2010-05-14T07:08:00.000-07:00</published><updated>2010-05-14T07:19:57.893-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to delete old files in Linux</title><content type='html'>In order to delete OLD files older than XX days, execute following command on your Linux box, where /opt/app/logs is the directory where files are located:&lt;br /&gt;&lt;br /&gt;find /opt/app/logs -mtime +XX -exec rm {} \;&lt;br /&gt;&lt;br /&gt;For example, to delete files older than 90 days:&lt;br /&gt;&lt;br /&gt;find /opt/app/logs -mtime +90 -exec rm {} \;&lt;br /&gt;&lt;br /&gt;If the same directory has multiple type of files, and want to delete ONLY those with .log extension:&lt;br /&gt;&lt;br /&gt;find /opt/app/logs -name '*.log' -mtime +90 -exec rm {} \;&lt;br /&gt;&lt;br /&gt;If you want to see the files to be deleted, run the same command removing "-exec rm {} \;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6968764895263283497?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6968764895263283497/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/05/how-to-delete-old-files-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6968764895263283497'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6968764895263283497'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/05/how-to-delete-old-files-in-linux.html' title='How to delete old files in Linux'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6433966990877915870</id><published>2010-04-20T11:43:00.000-07:00</published><updated>2010-04-20T11:45:53.802-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>MOUNT USB STICK WITH READ AND WRITE PERMISSIONS FOR A USER</title><content type='html'>Important: As most up-to-date Linux Distributions support Hotplug for USB removable media you might want to try to plug your USB stick to the system and see if it gets detected and mounted automatically. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you just mount the usb stick without special options it is only read/writable for root. &lt;br /&gt;&lt;br /&gt;To read/write enable the stick for a different user use the following: &lt;br /&gt;&lt;br /&gt;mount /dev/sda1 /mnt/usbstick/ -o uid=500 &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;User ID 500 is on many systems the default ID for your first user. You might want to switch it to another user (take a look at the ID in /etc/passwd) or set permissions for a group. For a group use "gid" instead of "uid". &lt;br /&gt;&lt;br /&gt;It also might be handy to add a line like the following to your /etc/fstab file (where you can specify some default mount information): &lt;br /&gt;&lt;br /&gt;/dev/sda1 /mnt/usbstick vfat noauto,users,exec,rw,umask=000 0 0 &lt;br /&gt; &lt;br /&gt;&lt;br /&gt;This allows the members of the group "users" to mount the device /dev/sda1 (which represents the usb stick on my system) with read and write access. Another advantage of this line in your /etc/fstab is that for some graphical environments (e.g. KDE) read the file at startup and present you a corresponding icon to mount and unmount the device automatically on your desktop.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6433966990877915870?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6433966990877915870/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/04/mount-usb-stick-with-read-and-write.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6433966990877915870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6433966990877915870'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/04/mount-usb-stick-with-read-and-write.html' title='MOUNT USB STICK WITH READ AND WRITE PERMISSIONS FOR A USER'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-7101355318903411185</id><published>2010-04-13T11:44:00.000-07:00</published><updated>2010-04-13T11:46:20.793-07:00</updated><title type='text'>Some vbs scripts to create shortcuts in your Windows</title><content type='html'>Create any or all of the examples and execute it from either the command prompt or Start / Run using:&lt;br /&gt;&lt;br /&gt;wscript xyz.vbs&lt;br /&gt;&lt;br /&gt;Note: These scripts were all tested on Windows 7, Windows 2008 and 2003.  They should run fine on earlier versions of Windows (XP, Vista, 2000, etc.) as well.&lt;br /&gt;&lt;br /&gt;Although most of these examples will create shortcuts to Windows Explorer (the last one is a shortcut to the Command Prompt), they are being placed in different locations.  Of course you could modify the examples to launch any program of your choosing.  Additionally you could combine them into one script that could be launched the first time you logon.&lt;br /&gt;&lt;br /&gt;For easy reference I highlighted the values you may want to change to tailor the script to your needs.&lt;br /&gt;&lt;br /&gt;Windows 7, Vista and Windows 2008 Server note: You will probably have to execute these with administrative rights.  One way to do this is to launch a command prompt (the old fashioned way - Start [All] Programs / Accessories / Command Prompt) using right-click and selecting "Run As Administrator."&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example 1 - Shortcut to Windows Explorer in the "All Users" Desktop folder.  I named the script Explorer_Shortcut_on_AU_Desktop.vbs.&lt;br /&gt;&lt;br /&gt;set WshShell = WScript.CreateObject("WScript.Shell" )&lt;br /&gt;strDesktop = WshShell.SpecialFolders("AllUsersDesktop" )&lt;br /&gt;set oShellLink = WshShell.CreateShortcut(strDesktop &amp; "\Windows Explorer.lnk" )&lt;br /&gt;oShellLink.TargetPath = "%SYSTEMROOT%\explorer.exe"&lt;br /&gt;oShellLink.WindowStyle = 1&lt;br /&gt;oShellLink.IconLocation = "%SystemRoot%\explorer.exe"&lt;br /&gt;oShellLink.Description = "Windows Explorer"&lt;br /&gt;oShellLink.WorkingDirectory = "%HOMEPATH%"&lt;br /&gt;oShellLink.Save&lt;br /&gt;&lt;br /&gt;Example 2 - Shortcut to Windows Explorer in the "All Users" Start Menu folder.  I named the script Explorer_Shortcut_in_AU_Startmenu.vbs.&lt;br /&gt;&lt;br /&gt;set WshShell = WScript.CreateObject("WScript.Shell" )&lt;br /&gt;strStartMenu = WshShell.SpecialFolders("AllUsersStartmenu" )&lt;br /&gt;set oShellLink = WshShell.CreateShortcut(strStartMenu &amp; "\Windows Explorer.lnk" )&lt;br /&gt;oShellLink.TargetPath = "%SYSTEMROOT%\explorer.exe"&lt;br /&gt;oShellLink.WindowStyle = 1&lt;br /&gt;oShellLink.IconLocation = "%SystemRoot%\explorer.exe"&lt;br /&gt;oShellLink.Description = "Windows Explorer"&lt;br /&gt;oShellLink.WorkingDirectory = "%HOMEPATH%"&lt;br /&gt;oShellLink.Save&lt;br /&gt;&lt;br /&gt;Example 3 - Shortcut to Windows Explorer in the "All Users" Startup folder.  I named the script Explorer_Shortcut_in_AU_Startup.vbs.  This will cause one instance of Windows Explorer to launch during logon.  If you're like me you will be using it anyway, so why not have it open automatically.&lt;br /&gt;&lt;br /&gt;set WshShell = WScript.CreateObject("WScript.Shell" )&lt;br /&gt;strStartup = WshShell.SpecialFolders("AllUsersStartmenu" )&lt;br /&gt;set oShellLink = WshShell.CreateShortcut(strStartup &amp; "\programs\startup\Windows Explorer.lnk" )&lt;br /&gt;oShellLink.TargetPath = "%SYSTEMROOT%\explorer.exe"&lt;br /&gt;oShellLink.WindowStyle = 1&lt;br /&gt;oShellLink.IconLocation = "%SystemRoot%\explorer.exe"&lt;br /&gt;oShellLink.Description = "Windows Explorer"&lt;br /&gt;oShellLink.WorkingDirectory = "%HOMEPATH%"&lt;br /&gt;oShellLink.Save&lt;br /&gt;&lt;br /&gt;Example 4 - Shortcut to Windows Explorer in the "Current User" Quick Launch toolbar.  I named the script Explorer_Shortcut_in_CU_QuickLaunch.vbs.&lt;br /&gt;&lt;br /&gt;set WshShell = WScript.CreateObject("WScript.Shell" )&lt;br /&gt;strStartup = WshShell.SpecialFolders("AppData" )&lt;br /&gt;set oShellLink = WshShell.CreateShortcut(strStartup &amp; "\Microsoft\Internet Explorer\Quick Launch\Windows Explorer.lnk" )&lt;br /&gt;oShellLink.TargetPath = "%SYSTEMROOT%\explorer.exe"&lt;br /&gt;oShellLink.WindowStyle = 1&lt;br /&gt;oShellLink.IconLocation = "%SystemRoot%\explorer.exe"&lt;br /&gt;oShellLink.Description = "Windows Explorer"&lt;br /&gt;oShellLink.WorkingDirectory = "%HOMEPATH%"&lt;br /&gt;oShellLink.Save&lt;br /&gt;&lt;br /&gt;Example 5 - Shortcut to Command Prompt in the Quick Launch toolbar for you, the current user.  I named the script CMD_Shortcut_in_CU_QuickLaunch.vbs.&lt;br /&gt;&lt;br /&gt;set WshShell = WScript.CreateObject("WScript.Shell" )&lt;br /&gt;strStartup = WshShell.SpecialFolders("AppData" )&lt;br /&gt;set oShellLink = WshShell.CreateShortcut(strStartup &amp; "\Microsoft\Internet Explorer\Quick Launch\Command Prompt.lnk" )&lt;br /&gt;oShellLink.TargetPath = "%SYSTEMROOT%\system32\cmd.exe"&lt;br /&gt;oShellLink.WindowStyle = 1&lt;br /&gt;oShellLink.Hotkey = "Ctrl+Alt+C"&lt;br /&gt;oShellLink.IconLocation = "%SystemRoot%\system32\cmd.exe"&lt;br /&gt;oShellLink.Description = "Windows Command Prompt"&lt;br /&gt;oShellLink.WorkingDirectory = "%HOMEPATH%"&lt;br /&gt;oShellLink.Save&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-7101355318903411185?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/7101355318903411185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/04/some-vbs-scripts-to-create-shortcuts-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7101355318903411185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7101355318903411185'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/04/some-vbs-scripts-to-create-shortcuts-in.html' title='Some vbs scripts to create shortcuts in your Windows'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8585366246301224684</id><published>2010-04-13T11:43:00.000-07:00</published><updated>2010-04-13T11:44:11.248-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows (all)'/><title type='text'>How to run vbs scripts from KiXtart?</title><content type='html'>You can do it by SHELL (waits for execution) or RUN (continues with Kixtart script) &lt;br /&gt;&lt;br /&gt;eg: &lt;br /&gt;&lt;br /&gt;shell 'wscript.exe yourscript.vbs [arguments]'&lt;br /&gt;&lt;br /&gt;where [arguments] might be one of your KiX variables&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;http://www.kixtart.org/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8585366246301224684?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8585366246301224684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/04/how-to-run-vbs-scripts-from-kixtart.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8585366246301224684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8585366246301224684'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/04/how-to-run-vbs-scripts-from-kixtart.html' title='How to run vbs scripts from KiXtart?'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-7326703327398684947</id><published>2010-03-07T11:19:00.000-08:00</published><updated>2010-03-07T11:22:54.843-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows (all)'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><title type='text'>Run add printer wizard as another user</title><content type='html'>In a Windows 200X system (Windows 2000, Windows XP, Windows 2003), to start the printer wizard with another user like administration, go to the command line and execute this:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;runas /U:administrator "rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-7326703327398684947?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/7326703327398684947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/03/run-add-printer-wizard-as-another-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7326703327398684947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7326703327398684947'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/03/run-add-printer-wizard-as-another-user.html' title='Run add printer wizard as another user'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5675798890703992658</id><published>2010-03-05T14:02:00.000-08:00</published><updated>2010-03-05T14:07:19.410-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><category scheme='http://www.blogger.com/atom/ns#' term='Proclarity'/><title type='text'>Proclarity: The selected page could not be opened because the cube could not be found</title><content type='html'>Here's a slightly dated but still fantastic document from Dawn Fink regarding cube could not be found errors. Check out the link near the bottom for a whitepaper on Kerberos Delegation and PAS.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SYMPTOMS:&lt;br /&gt;Opening a book with the Standard Web Client displays a warning message. The message states, "The cube used by this page could not be found" [The selected page could not be opened because the cube could not be found.]. The message also states that the details of the condition have been recorded and sent to the web site administrator and that if immediate assistance is required, contact the administrator.&lt;br /&gt;&lt;br /&gt;CAUSE:&lt;br /&gt;The message fundamentally means that the ProClarity Analytic Server (PAS) could not contact Microsoft SQL Server Analysis Services (SSAS) successfully. There are many reasons why this might happen. This article will cover some common issues.&lt;br /&gt;&lt;br /&gt;Configuration 1:&lt;br /&gt;PAS is located on a separate machine from SSAS, and IIS authentication is set to "Windows Integrated," and Kerberos Delegation is not configured. This is also known as the "two-hop" problem.&lt;br /&gt;&lt;br /&gt;Cause:&lt;br /&gt;Because of intentional security restrictions, it is not possible in to have the OLAP server and PAS server on separate physical machines, use Integrated authentication and have OLAP security respected at the same time - unless you configure Kerberos Delegation.&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;There are a few possible solutions to this problem.&lt;br /&gt;&lt;br /&gt;1. Set the IIS authentication to Basic only. This will allow PAS (IIS) to receive credentials and pass them on to the OLAP server. Note that when this is done IIS will display a warning about credentials being passed in clear text when using this mode - please use SSL to secure Basic traffic.&lt;br /&gt;&lt;br /&gt;2. Move SSAS and PAS (IIS) to the same machine. This will eliminate one of the two hops in the two hop problem.&lt;br /&gt;&lt;br /&gt;3. Do not use any security settings on SSAS by allowing the Anonymous IIS user access to the cube. This means that everyone will have access to all of the information on the server.&lt;br /&gt;&lt;br /&gt;4. Configure your network to use the Kerberos Delegation. Please see the document below.&lt;br /&gt;&lt;br /&gt;Configuration 2:&lt;br /&gt;PAS and SSAS are located on the same machine OR they are located on separate machines AND IIS authentication is set to "Basic" and not "Windows Integrated".&lt;br /&gt;&lt;br /&gt;Cause:&lt;br /&gt;The user attempting to access SSAS does not have sufficient privileges to access the desired data.&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;Check the security roles on SSAS at both the cube level and the database level. Be sure the user has access to the data they are attempting to view.&lt;br /&gt;&lt;br /&gt;Configuration 3:&lt;br /&gt;PAS and SSAS are located on the same machine OR they are located on separate machines AND IIS authentication is set to "Basic" and not "Windows Integrated" (or you are leveraging the features of Kerberos Delegation). SSAS data has recently been migrated to another machine, the SSAS machine name has changed, one or more of the catalog names have been changed, or one or more of the cube names have been changed.&lt;br /&gt;&lt;br /&gt;Resolution:&lt;br /&gt;Please use ProClarity Professional and the Change Connection Information Wizard to verify you are pointing to the correct server, database (catalog), and cube.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blogs.technet.com/proclarity/attachment/3172290.ashx"&gt;http://blogs.technet.com/proclarity/attachment/3172290.ashx&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5675798890703992658?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5675798890703992658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/03/proclarity-selected-page-could-not-be.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5675798890703992658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5675798890703992658'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/03/proclarity-selected-page-could-not-be.html' title='Proclarity: The selected page could not be opened because the cube could not be found'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1176096400669066660</id><published>2010-02-26T08:06:00.000-08:00</published><updated>2010-02-26T08:15:13.822-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tips'/><title type='text'>How to write text on PDF files for free?</title><content type='html'>&lt;span style="font-family:arial;"&gt;If you are looking to write text on PDF files or fill up forms, try:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.pdfescape.com/" rel="nofollow"&gt;&lt;span style="font-family:arial;"&gt;http://www.pdfescape.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;It's a free online PDF editor, and will let you type on the file where-ever needed.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Here are its major features:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Free Online PDF Reader&lt;br /&gt;Open PDF documents natively in your web browser&lt;br /&gt;Rotate &amp;amp; zoom PDF pages to preferred viewing style&lt;br /&gt;Select text and copy PDF content to your clipboard&lt;br /&gt;Save, download, email, &amp;amp; print PDF documents&lt;br /&gt;PDF thumbnail, bookmark, &amp;amp; link support&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Free Online PDF Editor&lt;br /&gt;Add text, shapes, whiteout &amp;amp; more to PDF files&lt;br /&gt;Move, delete, &amp;amp; insert PDF pages&lt;br /&gt;Create links to other PDF pages or web content&lt;br /&gt;Change PDF information tags&lt;br /&gt;Encrypt PDF contents using a password&lt;br /&gt;Add &amp;amp; edit PDF annotations (sticky notes)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Free PDF Form Filler&lt;br /&gt;Fill out PDF forms using existing form fields or use text tool&lt;br /&gt;PDF text, checkbox, radio, list, and drop down fields supported&lt;br /&gt;Essential PDF field calculation and formatting supported&lt;br /&gt;Basic PDF field styling properties supported&lt;br /&gt;Quickly tab from field to field&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Free PDF Form Designer&lt;br /&gt;Add new PDF form fields to any PDF file&lt;br /&gt;Style PDF form fields (font, size, color, etc)&lt;br /&gt;Modify existing PDF form fields&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;If you want more advanced features, the same company developed another application:&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.pdftypewriter.com/" rel="nofollow"&gt;&lt;span style="font-family:arial;"&gt;http://www.pdftypewriter.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;Price for this one is less than $30.&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1176096400669066660?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1176096400669066660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/02/how-to-write-text-on-pdf-files-for-free.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1176096400669066660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1176096400669066660'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/02/how-to-write-text-on-pdf-files-for-free.html' title='How to write text on PDF files for free?'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5649946286707056746</id><published>2010-02-12T09:19:00.000-08:00</published><updated>2010-02-12T09:22:25.962-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Sharepoint'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>Search Function not working in Sharepoint 3.0</title><content type='html'>&lt;span style="font-family:arial;"&gt;I also noticed there were many warning messages in the event log, coming every 15 minutes:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;'The start address &lt;sts3://mysite/contentdbid={8ad03df4-8d1f-4344-86df-6ebe0bc9a057}&gt; cannot be crawled'  Context: Application 'Search index file on the search server', Catalog 'Search' Details: Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. (0x80041205)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;Verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.  verify that the account you are using has "Full Read" permissions on the SharePoint Web Application being crawled.&lt;br /&gt;&lt;br /&gt;How to troubleshoot and solve it:&lt;br /&gt;&lt;br /&gt;From a newsgroup post: "There are some particulars that are not documented very well when setting up your search settings.&lt;br /&gt;&lt;strong&gt;The search engine will only crawl on a site that is the default zone.&lt;/strong&gt;&lt;br /&gt;If the default zone is secured (https), search will not return any results and you will see this error in the application log.&lt;br /&gt;To fix this, create and extend the current web application with a new site. The default settings will suffice for everything except the zone. Change the “Zone” to Internet or Custom. This new site will be the site the search service uses to index. Bear in mind the site uses the same content as your public SharePoint site.&lt;br /&gt;&lt;br /&gt;After creating the site, go to Operations &gt; Alternate Access Mappings and change the “Alternate Access Mapping Collection to your main SharePoint site collection.&lt;br /&gt;Then click “Edit Public URLs” and swap the URLs in the fields such that the Default zone is the new “unsecured” SharePoint site.&lt;br /&gt;The secure site can be in any zone except the default zone.Now when the search indexer runs, it will use the default zone site (the new unsecured site) to crawl.&lt;br /&gt;That’s it.&lt;br /&gt;&lt;br /&gt;See the link to "&lt;/span&gt;&lt;a href="http://www.kevincornwell.com/"&gt;&lt;span style="font-family:arial;"&gt;www.kevincornwell.com&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:arial;"&gt; - Windows SharePoint Services (WSS) 3.0 Search Setup Notes" for the original thread.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;WSS Central Console --&gt; Operations --&gt; Alternate Address Mapping&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;In my case, I only&lt;/span&gt;&lt;span style="font-family:arial;"&gt; reset the default Sharepoint - 80 site back to the servername.&lt;br /&gt;Once this was configured, the crawling warnings went away.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;Workaround also with these additional steps:&lt;br /&gt;&lt;br /&gt;- Check accounts with permissions for search feature:&lt;br /&gt;WSS Central Console --&gt; Operations --&gt; Services on Server --&gt; Windows SharePoint Services Search Service Settings&lt;br /&gt;&lt;br /&gt;- Select a content database&lt;br /&gt;Central Admin --&gt;Applicaton Management tab --&gt;SharePoint Web Application Management heading --&gt; Content databases&lt;br /&gt;Ensure your web application is the one selectedSelect your content database nameUnder Search Server - select your server&lt;br /&gt;OK&lt;br /&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/5009621251640435938-5649946286707056746?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5649946286707056746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/02/search-function-not-working-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5649946286707056746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5649946286707056746'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/02/search-function-not-working-in.html' title='Search Function not working in Sharepoint 3.0'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-3721571825361990362</id><published>2010-02-10T06:53:00.000-08:00</published><updated>2010-02-10T08:23:16.555-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><category scheme='http://www.blogger.com/atom/ns#' term='VSphere'/><title type='text'>SOLVED: unable to access file unspecified filename since it is locked</title><content type='html'>&lt;div&gt;&lt;div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;SOLVED: unable to access file &lt;unspecified&gt;since it is locked&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;This error message is so generic, and appeared to me at least in two different situations.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;First time, trying to remove a snapshot of a VM, and second time, trying to power on a VM.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;This is the second time now where I cannot power on the VDR virtual machine.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;The message "Unable to access file &lt;unspecified&gt;since it is locked appears in the Recent tasks panel.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5436645963791790690" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 43px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_UJ9GgqoIyJ0/S3LYsxFe8mI/AAAAAAAAIbg/L-YdvqxcXIs/s400/vdr1.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Since the filename is unspecified, it makes it hard to figure out what the issue is.&lt;br /&gt;Why did it happen? Well, first I have to tell you that something went wrong in a backup process of one of my VMs, specifically the Virtual Center Server (in my case, this is a VM). It could be ANY VM, but in this case is this one. The last time, the same issue happened with a different VM, but anyway, the problem is the same.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;img id="BLOGGER_PHOTO_ID_5436646909446492418" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 365px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_UJ9GgqoIyJ0/S3LZjz7IkQI/AAAAAAAAIbo/TVVH52yHeDo/s400/vdr8.jpg" border="0" /&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;&lt;div align="justify"&gt;I figured out that the job failed, and It couldn't remove the snapshot. (VDR appliance creates a snapshot, and then copies the contents to the destination; after that, the snapshot is removed). But something went wrong, and the snapshot was not removed. It caused all future jobs also failed. I tried manually creating a snapshot for the failed VM, and then remove it, to force it to "Delete All" the unused snapshots, but the procedure failed, giving me the same error: "unable to access file &lt;unspecified&gt;since it is locked" ... mmmm, who is locking and which file ?????&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;I tried also moving the VM to another ESX in the cluster; restarted vmware management services; restarted the VM; restarted the ESX host itself, but no luck.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Ok, you got it, VDR is locking it .... but which file ???? I searched hours in google and Vmware KB, but nothing ... I opened a ticked with VMware. It took one day for them to call me back, just to acknowledge the ticket. It took another 3 days to have an email from them asking me for uploading the log files (I already did it at the time I opened the ticket !).It took another 3 days for them to call me, but I was busy and I couldn't work with them, after three more days, I called them again, but they told me they will call me back ... GRRR. I hate VMware support procedures and times.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Don't worry, I solved it by myself, and let me tell you how:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;1) Shutdown the VDR appliance. It will free up the locked files in your VMs that were not sucessfuly backed up.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;2) Create manually a snapshot in every VM with the problem, then "Delete all" snapshots will work !, you won't get that error message again.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;3) "Try" to power on the VDR (VMware Data Recovery) appliance... Oh, no, the same message again! And now, I cannot power up the Virtual Machine !&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;4) I found the VDR "mounts" the hard disks of the VMs it is creating the backups, so, go to the VDR, and in commands "Edit settings".&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;By default, the VDR has only one hard disk, but mine shows three: those two extra hard disks corresponds to the Virtual Machine the backup failed!&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Look at the hard disk description path for the first hard disk drive, and disk mode independent checkbox is not checked.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5436647130351681218" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 354px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_UJ9GgqoIyJ0/S3LZwq3CPsI/AAAAAAAAIbw/mjGaIgK5zMM/s400/vdr2.jpg" border="0" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Look at the extra hard disks added to the VDR, see the hard disk description path (it corresponds to the VM that was in progress of backup). It also has the independent checkbox checked.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5436647527676765250" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 354px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_UJ9GgqoIyJ0/S3LaHzAt5EI/AAAAAAAAIb4/Pogf9Qxlm98/s400/vdr3.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5436647668398728594" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 354px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_UJ9GgqoIyJ0/S3LaP_PcpZI/AAAAAAAAIcA/TNqVMSlAbqM/s400/vdr4.jpg" border="0" /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Select one by one the extra hard disks and click "Remove". Be very careful here, selecting just remove, and DO NOT dele files from disk.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5436648524343166898" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 140px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_UJ9GgqoIyJ0/S3LbBz4gR7I/AAAAAAAAIcI/wQRL0x0rp9c/s400/vdr9.jpg" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5436648724854680242" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 354px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_UJ9GgqoIyJ0/S3LbNe2LKrI/AAAAAAAAIcQ/zpH9qj_cO2o/s400/vdr5.jpg" border="0" /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;Also, confirm that you selected the right hard disks ! If you make a mistake, just hit Cancel and do it again.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;5) Verify that you have the single and right hard disk in place.&lt;/span&gt;&lt;/div&gt;&lt;div align="justify"&gt;&lt;span style="font-family:Arial;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5436649058685415282" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 354px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S3Lbg6dn73I/AAAAAAAAIcY/WddEhQPiYQQ/s400/vdr6.jpg" border="0" /&gt;&lt;br /&gt;&lt;div align="justify"&gt;&lt;span style="font-family:arial;"&gt;6) Power on the (VMware Data Recovery) appliance. &lt;/span&gt;&lt;span style="font-family:arial;"&gt;Problem solved !&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5436649217542572226" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 294px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_UJ9GgqoIyJ0/S3LbqKQHyMI/AAAAAAAAIcg/JtfAQQOkm50/s400/vdr7.jpg" border="0" /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-3721571825361990362?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/3721571825361990362/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/02/solved-unable-to-access-file.html#comment-form' title='20 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3721571825361990362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3721571825361990362'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/02/solved-unable-to-access-file.html' title='SOLVED: unable to access file unspecified filename since it is locked'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_UJ9GgqoIyJ0/S3LYsxFe8mI/AAAAAAAAIbg/L-YdvqxcXIs/s72-c/vdr1.jpg' height='72' width='72'/><thr:total>20</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8544948029660500412</id><published>2010-01-15T14:17:00.000-08:00</published><updated>2010-04-09T12:23:37.129-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>SQL 2005: Truncating Log Files and Recovering Space</title><content type='html'>A common issue for users of SQL Server databases is disk space and the size of the physical log file and database. While we’re not going to attempt to make “one size fits all” statement on database maintenance plans, we though it would be helpful to provide a few suggestions that will help you trim the size of your files when you are in a pinch.&lt;br /&gt;&lt;br /&gt;Steps to truncating log files and shrinking your database:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;1. Get the physical names of your database file (MDF) and log file (LDF):&lt;/strong&gt;&lt;br /&gt;Run the following system stored procedure:&lt;br /&gt;&lt;br /&gt;use [yourdatabasename]&lt;br /&gt;exec sp_helpfile&lt;br /&gt;&lt;br /&gt;This command will return a variety of information, including the physical size (the “size” column) and the path and name of your database and log files (in the “filename” column).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Important:&lt;/b&gt;&lt;br /&gt;Record the name of the file from the “filename” colunm, excluding the path and file extension (e.g. if filename contains “C:\sqldatabases\yourdatabase_data.mdf” you want to save the string “yourdatabase_data”)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2. Truncate the database and shrink the database&lt;/strong&gt;&lt;br /&gt;The following set of SQL will shrink your database and “truncate” the log file. File in the parmaters surrounded by […]. Note that you’ll need the two filename values from step 1, one for the data file and the other one for the log file, be very careful when typing in the file names:&lt;br /&gt;&lt;br /&gt;USE [yourdatabasename]&lt;br /&gt;GO&lt;br /&gt;BACKUP LOG [yourdatabasename] WITH TRUNCATE_ONLY&lt;br /&gt;GO&lt;br /&gt;DBCC SHRINKFILE ([yourdatabaselogfilename], 1)&lt;br /&gt;GO&lt;br /&gt;DBCC SHRINKFILE ([yourdatabasedatafilename], 1)&lt;br /&gt;GO&lt;br /&gt;exec sp_helpfile&lt;br /&gt;&lt;br /&gt;When complete, this script will output the same information as in step 1. Compare the new size with the old one.&lt;br /&gt;&lt;br /&gt;If you get an error like:&lt;br /&gt;"Cannot shrink log file because all logical log files are in use"&lt;br /&gt;I solved doing the following:&lt;br /&gt;&lt;br /&gt;1. open enterprise manager.&lt;br /&gt;2. right click on the database you wanna shrink.&lt;br /&gt;3. click on properties.&lt;br /&gt;4. from the data properties go to options.&lt;br /&gt;5. in the middle you will see recovery model. Make it "simple" then click on "ok" and try again.&lt;br /&gt;&lt;br /&gt;Once done, it's recommended to take the parameter back to Recovery model = Full.&lt;br /&gt;You can also setup the maximum log file size at this point, so you won't be facing the same problem again !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8544948029660500412?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8544948029660500412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/01/sql-2005-truncating-log-files-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8544948029660500412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8544948029660500412'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2010/01/sql-2005-truncating-log-files-and.html' title='SQL 2005: Truncating Log Files and Recovering Space'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8757770184939601590</id><published>2009-12-30T13:14:00.000-08:00</published><updated>2009-12-30T13:15:07.552-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>List all Users and Groups in Domain</title><content type='html'>Using LDIFDE&lt;br /&gt;&lt;br /&gt;From the support tools we can find LDIFDE.exe, which is a tool for bulk import and export of Active Directory Objects. You can use LDIFDE to import new user records into the directory, or export specific information on specific users into a text file. LDIFDE defaults to export mode (reading From the Directory). When you add the -i option it can be used to write changes into the Directory. Also, if you want to export and extract only specific details, such as the user name, title and login name for all the users in a specific OU (Organizational Unit), you can run the following command: &lt;br /&gt;&lt;br /&gt;ldifde -f C:\ldif\ExportUsers.ldf –s SERVERNAME -d "OU=YourOUname,dc=YourDomainName,dc=com" -p subtree -r "(objectClass=User)" -l "cn,givenName,Title,SamAccountName"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8757770184939601590?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8757770184939601590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/list-all-users-and-groups-in-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8757770184939601590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8757770184939601590'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/list-all-users-and-groups-in-domain.html' title='List all Users and Groups in Domain'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5273509983767594763</id><published>2009-12-30T09:49:00.000-08:00</published><updated>2009-12-30T09:51:23.190-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows XP'/><title type='text'>Enabling Multiple Remote Desktop Sessions in Windows XP Professional and Media Center Edition 2005</title><content type='html'>If you have ever used a real remote computer system like Citrix, then you have probably been craving multiple Remote Desktop sessions since you first fired up Windows XP Professional and/or Media Center Edition. Here is a HACK (translated: USE AT YOUR OWN RISK), to enable multiple Remote Desktop sessions on your XP Pro or MCE 2005 box:&lt;br /&gt;&lt;br /&gt;NOTE: You will have to have knowledge of the Windows operating system and more specifically the Windows Registry. If you have no experience with the registry, then I would recommend you find someone who does or leave these alone. I do not make any kind of warranty that this will work for you or your friends. This is provided for entertainment purposes only. Don’t call me if your computer stops working. Got it?&lt;br /&gt;&lt;br /&gt;Print these directions so that you have them to work from. &lt;br /&gt;Restart your computer in Safe Mode - Follow this link to learn how to &lt;a href="http://service1.symantec.com/SUPPORT/tsgeninfo.nsf/docid/2001052409420406?OpenDocument&amp;ExpandSection=3&amp;Src=sec_doc_nam#_Section3"&gt;restart Windows XP in Safe Mode&lt;/a&gt; &lt;br /&gt;Turn off/disable Remote Desktop Connection (RDC) and Terminal Services &lt;br /&gt;Right click My Computer &lt;br /&gt;Select Properties &lt;br /&gt;Click on the Remote tab at the top of the window &lt;br /&gt;UNCHECK the box next to, “Allow users to connect remotely to this computer“ &lt;br /&gt;Click OK &lt;br /&gt;Go to Start -&gt; Control Panel -&gt; Administrative Tools -&gt; Services &lt;br /&gt;Find Terminal Services in the list &lt;br /&gt;Right click on Terminal Services and click Properties &lt;br /&gt;In the Startup Type box, select Disabled &lt;br /&gt;Click OK to close the window &lt;br /&gt;Next you will replace the current version of the Terminal Services DLL (termsrv.dll) with an unrestricted version from a previous release of Terminal Services. &lt;br /&gt;&lt;a href="http://members.lycos.nl/nessyh/files/termsrv.dll"&gt;Here is a copy of the Terminal Services DLL &lt;/a&gt;- Save it to your Desktop or other suitable location &lt;br /&gt;Using a file manager like Windows Explorer open C:\Windows\system32\dllcache &lt;br /&gt;Rename the file termsrv.dll to termsrv_dll.bak or whatever you would like. &lt;br /&gt;Copy the downloaded termsrv.dll file (the one you just downloaded from the web) to C:\Windows\system32\dllcache &lt;br /&gt;Open the C:\Windows\system32 folder &lt;br /&gt;Delete the file termsrv.dll in C:\Windows\system32 &lt;br /&gt;Now we can edit the Windows Registry to enable more than one RDP connection. Go to Start -&gt; Run and type regedit - Hopefully you knew that already &lt;br /&gt;Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\Licensing Core &lt;br /&gt;Add a DWORD Key named EnableConcurrentSessions and give it a value of 1 &lt;br /&gt;Close the Registry Editor window &lt;br /&gt;Go to Start -&gt; Run and type gpedit.msc to run the Group Policy Editor &lt;br /&gt;Browse to Computer Configuration -&gt; Administrative Templates -&gt; Windows Components -&gt; Terminal Services and double click Limit number of connections &lt;br /&gt;Select the Enabled button and enter the number of connections you would like to enable….at least 2. &lt;br /&gt;Restart Windows &lt;br /&gt;Right click My Computer and select Properties. &lt;br /&gt;Click on the Remote tab at the top of the window &lt;br /&gt;CHECK the box next to, “Allow users to connect remotely to this computer“ &lt;br /&gt;Click OK &lt;br /&gt;Go to Start -&gt; Control Panel -&gt;Administrative Tools -&gt; Services. Select Terminal Services from the list and double click it or right-click -&gt; Properties. Set the Startup Type to Manual. &lt;br /&gt;&lt;br /&gt;Restart Windows/Computer &lt;br /&gt;You should be good to go&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5273509983767594763?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5273509983767594763/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/enabling-multiple-remote-desktop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5273509983767594763'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5273509983767594763'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/enabling-multiple-remote-desktop.html' title='Enabling Multiple Remote Desktop Sessions in Windows XP Professional and Media Center Edition 2005'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1408532861273981596</id><published>2009-12-11T09:29:00.001-08:00</published><updated>2009-12-11T09:29:58.787-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Bulk delete from Postfix queue</title><content type='html'>To delete a message in Postfix queue, I normally find out the message id first from “postqueue -p” (or simply “mailq”) command. Once the message id is known, I simply issue the following command to delete that particular message (assume the message id is BA4491827DE):&lt;br /&gt;&lt;br /&gt;# postsuper -d BA4491827DE&lt;br /&gt;&lt;br /&gt;If there is only one message to delete, I can live with that. However, when there’s a bunch of messages (e.g. from a particular domain) you need to delete from the queue, the above method simply too much of a hassle (well, unless you want to delete *everything*, which would be #postsuper -d ALL). Postfix does not have a function for doing that. Luckily, a search on Google yielded this Perl script that does exactly what I want, removing message(s) from queue based on my keyword. Here is the content of that Perl script called “delete-from-mailq”:&lt;br /&gt;&lt;br /&gt;#!/usr/bin/perl&lt;br /&gt;&lt;br /&gt;$REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!”;&lt;br /&gt;&lt;br /&gt;@data = qx;&lt;br /&gt;for (@data) {&lt;br /&gt;if (/^(\w+)(\*|\!)?\s/) {&lt;br /&gt;$queue_id = $1;&lt;br /&gt;}&lt;br /&gt;if($queue_id) {&lt;br /&gt;if (/$REGEXP/i) {&lt;br /&gt;$Q{$queue_id} = 1;&lt;br /&gt;$queue_id = “”;&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;open(POSTSUPER,”|postsuper -d -”) || die “couldn’t open postsuper” ;&lt;br /&gt;&lt;br /&gt;foreach (keys %Q) {&lt;br /&gt;print POSTSUPER “$_\n”;&lt;br /&gt;};&lt;br /&gt;close(POSTSUPER);&lt;br /&gt;&lt;br /&gt;Save the above script to a file say “delete-queue” in your home directory, and make it excutable:&lt;br /&gt;&lt;br /&gt;# chmod 755 delete-queue&lt;br /&gt;&lt;br /&gt;Usage&lt;br /&gt;&lt;br /&gt;Delete all queued messages from or to the domain “iamspammer.com”&lt;br /&gt;&lt;br /&gt;./delete-queue iamspammer.com &lt;br /&gt;Delete all queued messages to specific address “bogususer@mydomain.com”&lt;br /&gt;&lt;br /&gt;./delete-queue bogususer@mydomain.com &lt;br /&gt;Delete all queued messages that begin with the word “bush” in the e-mail address:&lt;br /&gt;&lt;br /&gt;./delete-queue bush*\@whateverdomain.com &lt;br /&gt;Delete all queued messages that contain the word “biz” in the e-mail address:&lt;br /&gt;&lt;br /&gt;./delete-queue biz&lt;br /&gt;&lt;br /&gt;That's it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1408532861273981596?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1408532861273981596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/bulk-delete-from-postfix-queue.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1408532861273981596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1408532861273981596'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/bulk-delete-from-postfix-queue.html' title='Bulk delete from Postfix queue'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-3570976139284485790</id><published>2009-12-10T09:04:00.000-08:00</published><updated>2009-12-10T09:23:16.053-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows (all)'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Self-Signed IIS SSL Certificates using OpenSSL</title><content type='html'>Self-Signed IIS SSL Certificates using OpenSSL&lt;br /&gt;&lt;br /&gt;This tutorial assumes that you have a Linux box with OpenSSL installed,and that you want to create a self-signed certificate for IIS5.0 / 6.0&lt;br /&gt;&lt;br /&gt;Set up your CA (you only have to do this once)&lt;br /&gt;ON THE LINUX BOX…&lt;br /&gt;&lt;br /&gt;Create a private key&lt;br /&gt;&lt;br /&gt;openssl genrsa -des3 -out CA.key 1024&lt;br /&gt;&lt;br /&gt;(You’ll need to supply a passphrase. DON’T FORGET THIS!!) &lt;br /&gt;&lt;br /&gt;Set this to read-only for root for security&lt;br /&gt;&lt;br /&gt;chmod 400 CA.key&lt;br /&gt;&lt;br /&gt;Create the CA certificate&lt;br /&gt;&lt;br /&gt;openssl req -new -key CA.key -x509 -days 1095 -out CA.crt&lt;br /&gt;&lt;br /&gt;(Provide appropriate responses to the prompts…for Common Name, you might want to use something like “OurCompany CA”) &lt;br /&gt;&lt;br /&gt;Set the certificate to read-only for root for security&lt;br /&gt;&lt;br /&gt;chmod 400 CA.crt&lt;br /&gt;&lt;br /&gt;Obtain a CSR&lt;br /&gt;ON THE IIS BOX…&lt;br /&gt;&lt;br /&gt;Open the Internet Manager &lt;br /&gt;Select the site for which you want to create a key &lt;br /&gt;Right-click and choose Properties &lt;br /&gt;Select the “Directory Security” tab &lt;br /&gt;Click the “Server Certificate” button &lt;br /&gt;Follow the prompts to create a CSR &lt;br /&gt;Save&lt;br /&gt;your CSR, then transfer it to the Linux box for further processing.&lt;br /&gt;(For the following steps, we’ll refer to your CSR as “new.csr”) &lt;br /&gt;Sign the CSR&lt;br /&gt;ON THE LINUX BOX…&lt;br /&gt;&lt;br /&gt;Sign the CSR (all of this on one line)&lt;br /&gt;&lt;br /&gt;openssl x509 -req -days 365 -in new.csr -CA CA.crt&lt;br /&gt;-CAkey CA.key -CAcreateserial -out new.crt&lt;br /&gt;&lt;br /&gt;Transfer the new.crt file back to the IIS box &lt;br /&gt;Install self-signed certificate&lt;br /&gt;ON THE IIS BOX…&lt;br /&gt;&lt;br /&gt;Open the Internet Manager &lt;br /&gt;Select the site to install the key &lt;br /&gt;Right-click and choose properties &lt;br /&gt;Select the “Directory Security” tab &lt;br /&gt;Click the “Server Certificate” button &lt;br /&gt;Specify that you want to complete the pending request &lt;br /&gt;Select the .crt file that you just transferred &lt;br /&gt;That’s it!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;PS: If you have problems with the certification path (”does not chain up to a&lt;br /&gt;trusted root certificate” in System Log), the following seems to fix it:&lt;br /&gt;&lt;br /&gt;1. Internet Information Services -&gt; select the site -&gt; right click -&gt; Properties&lt;br /&gt;2. Directory Security -tab -&gt; Secure communications -frame -&gt; Edit…&lt;br /&gt;3. Select “Enable certificate trust list”, click New… -&gt; Next&lt;br /&gt;4. Add from file -&gt; use CA.crt -&gt; Next&lt;br /&gt;5. Write something to the Name and Description, if you like. -&gt; Next -&gt; Finish&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-3570976139284485790?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/3570976139284485790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/self-signed-iis-ssl-certificates-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3570976139284485790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3570976139284485790'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/12/self-signed-iis-ssl-certificates-using.html' title='Self-Signed IIS SSL Certificates using OpenSSL'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8454403890207916319</id><published>2009-11-17T12:48:00.001-08:00</published><updated>2009-11-17T12:48:33.632-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Tripwire generating too big report files</title><content type='html'>Tripwire was generating big report files in one of our boxes, almost 12MB, compared to 60KB for the others.&lt;br /&gt;I found the problem is that there were many changes applied to this server, and files copied/moved,&lt;br /&gt;so the tripwire DB holding the changes grew up a lot.&lt;br /&gt;The only command to run and update the tripwire DB is:&lt;br /&gt;tripwire --update -Z low&lt;br /&gt;&lt;br /&gt;This command will compare your database against your current file system and then launch an editor so that you can choose to make changes to your database. &lt;br /&gt;&lt;br /&gt;If you try this command but get an error message about a missing report file, the reason is most likely that the last check was not run immediately prior to the update.  The report file in the /var/lib/tripwire/report directory is named by hostname, then date (yyyymmdd) then time.  If you have recently run a check and want the update to proceed using your most recent report file, then use the -r option and provide the report filename that you want the update to use.&lt;br /&gt;tripwire --update -Z low --twrfile host-yyyymmdd-tttttt.twr&lt;br /&gt;&lt;br /&gt;If it asks for a password, you'll have to set it up first, unless you already know the password:&lt;br /&gt;&lt;br /&gt;tripwire --local-passphrase mypassword&lt;br /&gt;&lt;br /&gt;Then, run the sync again, now you know the password.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8454403890207916319?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8454403890207916319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/11/tripwire-generating-too-big-report.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8454403890207916319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8454403890207916319'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/11/tripwire-generating-too-big-report.html' title='Tripwire generating too big report files'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-148933392327840186</id><published>2009-11-17T06:17:00.000-08:00</published><updated>2009-11-17T08:28:08.721-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Converting Ext2 Filesystems to Ext3</title><content type='html'>This is one of those tips that are handy when you upgrade or have a partition already formatted and with data, and you realize that it is ext2!, there is no need to re-format it, or erase the data, just convert it !&lt;br /&gt;&lt;br /&gt;When you see the partition type, 83 is used for a Linux partition, no matter if it is ext2 or ext3.&lt;br /&gt;&lt;br /&gt;The Ext3 filesystem is an Ext2 filesystem with a journal file and some filesystem driver additions making the filesystem journalized.&lt;br /&gt;&lt;br /&gt;Converting from Ext2 to Ext3&lt;br /&gt;The conversion procedure is simple enough. Imagine /dev/sdb1 mounted as /data – the procedure would be as follows:&lt;br /&gt;&lt;br /&gt;Log in as root &lt;br /&gt;Make sure /etc/fstab has /dev/sdb1 mounted to /data as ext2, read write &lt;br /&gt;umount /dev/sdb1 &lt;br /&gt;If you can't unmount it, then remount it read only (mount -o remount,ro /dev/sdb1) &lt;br /&gt;tune2fs -j /dev/sdb1 &lt;br /&gt;Edit /etc/fstab, and for /dev/sdb1, change ext2 to ext3 &lt;br /&gt;mount /dev/sdb1 /data, or mount -a&lt;br /&gt;Check if the partition was correctly mounted:&lt;br /&gt;mount | grep /dev/sdb1 &lt;br /&gt;If it's not shown as ext3, reboot (shutdown -r now)&lt;br /&gt;if still not, troubleshoot ...&lt;br /&gt;Otherwise, you're done. &lt;br /&gt;A few explanations are in order.&lt;br /&gt;The tune2fs command creates the journal file, which is kept in a special inode on the device (by default). You then must change the /etc/fstab entry to reflect it's a journalling filesystem, and then mount it.&lt;br /&gt;&lt;br /&gt;You can check a full article describing other procedures in:&lt;br /&gt;&lt;a href="http://www.troubleshooters.com/linux/ext2toext3.htm"&gt;http://www.troubleshooters.com/linux/ext2toext3.htm&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-148933392327840186?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/148933392327840186/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/11/converting-ext2-filesystems-to-ext3.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/148933392327840186'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/148933392327840186'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/11/converting-ext2-filesystems-to-ext3.html' title='Converting Ext2 Filesystems to Ext3'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8579141525318672435</id><published>2009-11-16T15:59:00.000-08:00</published><updated>2009-11-16T16:04:40.070-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Accurate Date and Time in Linux using ntp step by step instructions</title><content type='html'>First, a little bit of theory. Read it all, so you will understand how time works, and why setup needs some steps.&lt;br /&gt;&lt;br /&gt;Why do We Need a Precise Clock?&lt;br /&gt;If our computer never connects to other computers (or other devices that use a clock), the precision of the clock is not critical itself, it depends on the need of the user. However, programs that some way use the net are dependent on a precise date and time. Some examples, when you may need precise clock:&lt;br /&gt;&lt;br /&gt;Softwares that deal with transactions&lt;br /&gt;&lt;br /&gt;Commercial applications (e.g. eBay)&lt;br /&gt;&lt;br /&gt;Mail and messaging-related client and servers&lt;br /&gt;&lt;br /&gt;Websites that use cookies&lt;br /&gt;&lt;br /&gt;Distributed web applications&lt;br /&gt;&lt;br /&gt;Web services&lt;br /&gt;&lt;br /&gt;Distributed component-based applications as J2EE, .NET, etc&lt;br /&gt;&lt;br /&gt;Advanced modern and paralel filesystems, as AFS, DFS, GFS, GPFS, etc&lt;br /&gt;&lt;br /&gt;And of course, to use the computer to adjust our wristwatch clock.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Computer Global Date and Time Concept&lt;br /&gt;To determine the current time for some planet region, a computer needs exactly these two pieces of information:&lt;br /&gt;&lt;br /&gt;Correct UTC (universal time as in Greenwich, but not GMT) time&lt;br /&gt;&lt;br /&gt;Region's current Time Zone&lt;br /&gt;&lt;br /&gt;For computers, there is also the hardware clock, which is used as a base by the OS to set its time.&lt;br /&gt;&lt;br /&gt;OS date and time (we'll use only date or time from now on) is set on boot, by some script that reads the hardware clock, makes Time Zone calculations (there is no time zone data stored in BIOS) and sets the OS. After this synchronization, BIOS&lt;br /&gt;and OS time are independent from each other. So after a while they may have some seconds of difference. Which one is correct?&lt;br /&gt;If you don't make any special configuration, none of them.&lt;br /&gt;&lt;br /&gt;We'll discuss here how to make them both globally 100% accurate.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Time Zones&lt;br /&gt;Time Zones are a geographical world globe division of 15o each, starting at Greenwich, in England, created to help people know what time is it now in another part of the world.&lt;br /&gt;&lt;br /&gt;Nowadays it is much more a political division than geographical, because sometimes people needs to have the same time as other people in not-so-far locations. And for energy savings reasons, we have today the Daylight Savings Time, that are also a Time&lt;br /&gt;Zone variation.&lt;br /&gt;&lt;br /&gt;Time Zones are usually defined by your country government or some astronomical institute, and is represented by 3 or 4 letters. &lt;br /&gt;&lt;br /&gt;Use the timezoneconverter.com to know what time is it now at any part of the globe.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Daylight Savings Time&lt;br /&gt;For energy savings reasons, governments created the Daylight Savings Time. Our clocks are forwarded one hour, and this makes our days look longer. In fact, what really happens is only a Time Zone change. The primitive time (UTC) is still, and will always be, the same.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Time Zone Mechanism on Linux&lt;br /&gt;Linux systems uses the GLIBC dynamic Time Zones, based on /etc/localtime. This file is a link to (or a copy of) a zone information file, usually located under /usr/share/zoneinfo directory.&lt;br /&gt;To make it effective, you only have to link (or copy) the zoneinfo file to /etc/localtime. In some distributions, there is a higher level (and preferred) way to set the Time Zone, described later.&lt;br /&gt;&lt;br /&gt;After making /etc/localtime pointing to the correct zoneinfo file, you are already under that zone rules and DST changes are automatic -- you don't have to change time manually.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Accurate Global Time Synchronization&lt;br /&gt;To have accurate time in all your systems is as important as having a solid network security strategy (achieved by much more than simple firewall boxes). It is one of the primary components of a system administration based on good practices, which leads to organization and security. Specially when administering distributed applications, web-services, or even a distributed security monitoring tool, accurate time is a must.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;NTP: The Network Time Protocol&lt;br /&gt;We won't discuss here the protocol, but how this wonderful invention, added to the pervasivenes of the Internet, can be useful for us. You can find more about it at www.ntp.org.&lt;br /&gt;&lt;br /&gt;Once your system is properly setup, NTP will manage to keep its time accurate, making very small adjustments to not impact the running applications.&lt;br /&gt;&lt;br /&gt;People can get exact time using hardware based on atom's electrons frequency. There is also a method based on GPS (Global Positioning System). The first is more accurate, but the second is pretty good also. Atomic clocks require very special and&lt;br /&gt;expensive equipment, but their maintainers (usually universities and research labs) connect them to computers, that run a NTP daemon, and some of them are connected to the Internet, that finally let us access them for free. And this is how we'll&lt;br /&gt;synchronize our systems.&lt;br /&gt;&lt;br /&gt;Building a Simple Time Synchronization Architecture&lt;br /&gt;You will need:&lt;br /&gt;&lt;br /&gt;1) A direct or indirect (through a firewall) connection to the Internet, to syncrhonize our servers with a public accurate NTP server.&lt;br /&gt;&lt;br /&gt;2) Choose some NTP servers. You can use the public server pool.ntp.org, or choose some from the stratum 2 public time servers on NTP website. If you don't have an Internet access, your WAN administrator (must be a clever guy) can provide you some internal addresses.&lt;br /&gt;&lt;br /&gt;3) Have the NTP package installed in all systems you want to synchronize. You can find RPMs in your favorite Linux distribution CD, or make a search on rpmfind.net.&lt;br /&gt;&lt;br /&gt;Local Relay Servers for NTP &lt;br /&gt;&lt;br /&gt;If you have several machines to synchronize, do not make them all access the remote NTP servers you chose. Only 2 of your server farm's machines need access remote NTP servers, and the other machines will sync with these 2. We will call them the Relay Servers.&lt;br /&gt;&lt;br /&gt;Your Relay Servers can be any machine already available in your network. NTP consumes low memory and CPU. You don't need a dedicated machine for it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The Correct Settings for Your Linux Box&lt;br /&gt;For any OS installation, you must know your Time Zone. This is expressed in terms of a city, a state or a country. You must also decide how to set BIOS time, and we may follow two strategies here:&lt;br /&gt;&lt;br /&gt;Linux Only Machine &lt;br /&gt;In this case you should set BIOS time to UTC time. DST changes will be dynamically managed by Time Zone configurations.&lt;br /&gt;&lt;br /&gt;Dual Boot Linux and MS Windows Machine &lt;br /&gt;Windows handles time in a more primitive way than Linux. For Windows, BIOS time is allways your local time, so DST changes are more aggressive because they directly change hardware clock. And since both Linux and Windows initially get and set time from the hardware, when they are together, Linux must handle it in the same way. So set BIOS time to your localtime.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 1, Setting the Zone Info file:&lt;br /&gt;&lt;br /&gt;Your time zone is defined by /etc/localtime&lt;br /&gt;&lt;br /&gt;If you are unsure of the file you have is the correct one, you can check if its the same as your time zone:&lt;br /&gt;diff -b /usr/share/zoneinfo/America/Vancouver /etc/localtime&lt;br /&gt;If it doesn't, you will have to remove it and create the link:&lt;br /&gt;#rm /etc/localtime&lt;br /&gt;#ln -s /usr/share/zoneinfo/America/Vancouver /etc/localtime&lt;br /&gt;Alternatively, instead of creting the symbolic link, you can just copy the file:&lt;br /&gt;#rm /etc/localtime&lt;br /&gt;#cp /usr/share/zoneinfo/America/Vancouver /etc/localtime&lt;br /&gt;&lt;br /&gt;Step 2, Setting the Time Zone:&lt;br /&gt;&lt;br /&gt;On Red Hat Linux and derived systems, you can set the hardware clock strategy and Time Zone using the timeconfig command:&lt;br /&gt;#timeconfig&lt;br /&gt;that shows a user-friendly dialog to select your time zone, and apply the changes.&lt;br /&gt;&lt;br /&gt;You can also use it non-interactively:&lt;br /&gt;#timeconfig "America/Vancouver" # set HC to localtime, and TZ to America/Vancouver&lt;br /&gt;or&lt;br /&gt;#timeconfig --utc "America/Vancouver" # set HC to UTC, and TZ to America/Vancouver&lt;br /&gt;&lt;br /&gt;In any case, this utility changes /etc/sysconfig/clock file that is read at boot time.&lt;br /&gt;You can edit it by hand, and that is how it looks:&lt;br /&gt;&lt;br /&gt;#cat /etc/sysconfig/clock&lt;br /&gt;ZONE="America/Vancouver"&lt;br /&gt;UTC=true&lt;br /&gt;ARC=false&lt;br /&gt;&lt;br /&gt;Step 3, Setting the Hardware Clock&lt;br /&gt;&lt;br /&gt;I encourage you to set your hardware clock only after understanding how to get accurate time.&lt;br /&gt;&lt;br /&gt;The hwclock command reads and sets the hardware clock, based on several options you give to it, documented in its man page.&lt;br /&gt;But you don't have to use it if you have a modern Linux distribution. After defining your hardware clock strategy and Time Zone, you can use the high level setclock command to correctly set your hardware clock.&lt;br /&gt;You don't need to pass any parameters because setclock intelligently calls hwclock to set the BIOS based on your OS current date and time. So you should always use the setclock command.&lt;br /&gt;&lt;br /&gt;#hwclock --systohc --utc   # set HC with UTC time based on OS current time (I personally use this one)&lt;br /&gt;&lt;br /&gt;You can also use any of these options:&lt;br /&gt;&lt;br /&gt;#setclock     # The easy way to set HC&lt;br /&gt;#hwclock     # reads HC&lt;br /&gt;#hwclock --systohc    # set HC with local time based on OS current time&lt;br /&gt;#hwclock --set --date "21 Oct 2004 21:17" # set HC with time specified on stringSince the OS time is independent from the hardware clock, any BIOS change we make will take place in the next boot.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another option to change HC is rebooting and accessing your computer BIOS screens, but as you see, there is no need to do it in Linux!&lt;br /&gt;&lt;br /&gt;Step 4, Configure NTP protocol&lt;br /&gt;&lt;br /&gt;Of course, as a prerequisite, you need to install the ntp package.&lt;br /&gt;&lt;br /&gt;The only file to configure is /etc/ntp.conf, doesn't matter if you are configuring a client, or a server (like a local relay server to serve your local network), you will only need an additional keyword.&lt;br /&gt;&lt;br /&gt;Change the following parameters in /etc/ntp.conf:&lt;br /&gt;&lt;br /&gt;To make it a local relay server:&lt;br /&gt;&lt;br /&gt;1) First we specify the servers you're interested in: &lt;br /&gt;&lt;br /&gt;server  otherntp.server.org    # A stratum 1 server at server.org&lt;br /&gt;server  ntp.research.gov       # A stratum 2 server at research.gov&lt;br /&gt;&lt;br /&gt;2) Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server. &lt;br /&gt;&lt;br /&gt;restrict otherntp.server.org   mask 255.255.255.255 nomodify notrap noquery&lt;br /&gt;restrict ntp.research.gov      mask 255.255.255.255 nomodify notrap noquery&lt;br /&gt;&lt;br /&gt;The mask 255.255.255.255 statement is really a subnet mask limiting access to the single IP address of the remote NTP servers. &lt;br /&gt;&lt;br /&gt;3) As this server is also going to provide time for other computers, such as PCs, other Linux servers and networking devices, then you'll have to define the networks from which this server will accept NTP synchronization requests. You do so with a &lt;br /&gt;modified restrict statement removing the noquery keyword to allow the network to query your NTP server. The syntax is: &lt;br /&gt;&lt;br /&gt;restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap&lt;br /&gt;&lt;br /&gt;In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network. &lt;br /&gt;&lt;br /&gt;4) We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords: &lt;br /&gt;&lt;br /&gt;restrict 127.0.0.1&lt;br /&gt;&lt;br /&gt;5) Save the file and restart NTP for these settings to take effect.&lt;br /&gt;&lt;br /&gt;6) To get NTP configured to start at boot, use the line: &lt;br /&gt;&lt;br /&gt;# chkconfig ntpd on&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can now configure other Linux hosts on your network to synchronize with this new master NTP server in a similar fashion.&lt;br /&gt;To make it a client accessing your brand new local relay server:&lt;br /&gt;&lt;br /&gt;1) First we specify the servers you're interested in, you can use a host name or an ip address; it is recommended to use a host name, if later you have to change their ip address, you don't have to change anything in your client computers: &lt;br /&gt;&lt;br /&gt;server  ntp1.mynetwork.com     # Your first local ntp server&lt;br /&gt;server  ntp2.mynetwork.com       # Your second local ntp server&lt;br /&gt;&lt;br /&gt;2) Restrict the type of access you allow these servers. In this example the servers are not allowed to modify the run-time configuration or query your Linux NTP server. &lt;br /&gt;&lt;br /&gt;restrict ntp1.mynetwork.com   mask 255.255.255.255 nomodify notrap noquery&lt;br /&gt;restrict ntp2.mynetwork.com      mask 255.255.255.255 nomodify notrap noquery&lt;br /&gt;&lt;br /&gt;The mask 255.255.255.255 statement is really a subnet mask limiting access to the single IP address of the remote NTP servers. &lt;br /&gt;&lt;br /&gt;3) As this server is NOT going to provide time for other computers, there is no need to allow others to query it, then include the noquery statement: &lt;br /&gt;&lt;br /&gt;restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap noquery&lt;br /&gt;&lt;br /&gt;In this case the mask statement has been expanded to include all 255 possible IP addresses on the local network. &lt;br /&gt;&lt;br /&gt;4) We also want to make sure that localhost (the universal IP address used to refer to a Linux server itself) has full access without any restricting keywords: &lt;br /&gt;&lt;br /&gt;restrict 127.0.0.1&lt;br /&gt;&lt;br /&gt;5) Save the file and restart NTP for these settings to take effect.&lt;br /&gt;&lt;br /&gt;6) To get NTP configured to start at boot, use the line: &lt;br /&gt;&lt;br /&gt;# chkconfig ntpd on&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Step 5: First sync:&lt;br /&gt;&lt;br /&gt;It's a good practice to syncronize manually the first time, because if the time difference is too big, it will not be synchronized automatically.&lt;br /&gt;&lt;br /&gt;For your local ntp server:&lt;br /&gt;&lt;br /&gt;#service ntpd stop&lt;br /&gt;#ntpdate otherntp.research.gov&lt;br /&gt;#service ntpd start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;For the rest of your servers/guests ntp clients:&lt;br /&gt;&lt;br /&gt;#service ntpd stop&lt;br /&gt;#ntpdate ntp1.mynetwork.com&lt;br /&gt;#service ntpd start&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To check the sync status, you can use:&lt;br /&gt;&lt;br /&gt;#ntpq -p&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Enjoy, and have A GOOD TIME !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8579141525318672435?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8579141525318672435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/11/accurate-date-and-time-in-linux-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8579141525318672435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8579141525318672435'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/11/accurate-date-and-time-in-linux-using.html' title='Accurate Date and Time in Linux using ntp step by step instructions'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-568348711071892804</id><published>2009-09-11T12:39:00.000-07:00</published><updated>2009-09-11T13:09:12.674-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows (all)'/><title type='text'>Control Windows services of a remote computer using the command line</title><content type='html'>You can control Windows services of a remote computer just using the command line.&lt;br /&gt;There are some options around there, but the one I use is psservice. This is a command line utility, part of PsTools, that allows you to control services. (See at the bottom a short description of PsTools).&lt;br /&gt;The syntax is very simple:&lt;br /&gt;&lt;br /&gt;psservice.exe \\HOST -u USERNAME -p PASSWORD COMMAND SERVICENAME&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;HOST - is the hostname or ip address of the host to control (local or remote)&lt;br /&gt;USERNAME - a user with permissions to control services of the HOST&lt;br /&gt;PASSWORD - the password of the user&lt;br /&gt;COMMAND - the action to take with the service. The most commonly used are: query, stop, start, restart&lt;br /&gt;SERVICENAME - the name of the service to control&lt;br /&gt;&lt;br /&gt;For example, to restart IIS service of a remote server:&lt;br /&gt;&lt;br /&gt;psservice.exe \\192.x.x.x -u user -p ******* restart W3SVC&lt;br /&gt;&lt;br /&gt;If you receive an error like:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Unable to access Service Control Manager on \\192.x.x.x:&lt;br /&gt;Access is denied.&lt;br /&gt;&lt;br /&gt;or&lt;br /&gt;&lt;br /&gt;Unable to connect to \\192.x.x.x&lt;br /&gt;&lt;br /&gt;It's because pstools relies on $admin share access. A way to open it is:&lt;br /&gt;&lt;br /&gt;net use \\HOST\admin$ PASSWORD /USER:USERNAME&lt;br /&gt;&lt;br /&gt;HOST -  is the hostname or ip address of the host&lt;br /&gt;PASSWORD - the password of the user&lt;br /&gt;USERNAME - a local or domain user with permissions to map a folder in the host&lt;br /&gt;if USERNAME is a local user, type it as HOST\USERNAME,&lt;br /&gt;if USERNAME is a domain user, type it as DOMAIN\USERNAME&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;&lt;br /&gt;net use \\192.x.x.x\admin$ ****** /USER:DOMAIN\USERNAME&lt;br /&gt;&lt;br /&gt;You can remove the connection using:&lt;br /&gt;&lt;br /&gt;net use \\192.x.x.x\admin$ /DELETE&lt;br /&gt;&lt;br /&gt;Whith this base, you can create a batch file to restart services of a remote host with just a double-click&lt;br /&gt;&lt;br /&gt;----------------------------------------------&lt;br /&gt;&lt;br /&gt;PsTools description   &lt;br /&gt;===================&lt;br /&gt; &lt;br /&gt;This tool is a set of command line utilities that allow you to manage local and remote systems&lt;br /&gt;PsTools is a set of commandline utilities that allow you to manage local and remote systems.&lt;br /&gt;&lt;br /&gt;All of the utilities in the PsTools suite work on Windows NT, Windows 2000 and Windows XP. The PsTools download package includes an HTML help file with complete usage information for all the tools.&lt;br /&gt;&lt;br /&gt;The tools included in the PsTools suite are: &lt;br /&gt;&lt;br /&gt;· PsExec - execute processes remotely &lt;br /&gt;· PsFile - shows files opened remotely &lt;br /&gt;· PsGetSid - display the SID of a computer or a user &lt;br /&gt;· PsKill - kill processes by name or process ID &lt;br /&gt;· PsInfo - list information about a system &lt;br /&gt;· PsList - list detailed information about processes &lt;br /&gt;· PsLoggedOn - see who's logged on locally and via resource sharing (full source is included) &lt;br /&gt;· PsLogList - dump event log records &lt;br /&gt;· PsService - view and control services &lt;br /&gt;· PsShutdown - shuts down and optionally reboots a computer &lt;br /&gt;· PsSuspend - suspends processes &lt;br /&gt;· PsUptime - shows you how long a system has been running since its last reboot (PsUptime's functionality has been incorporated into PsInfo)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-568348711071892804?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/568348711071892804/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/09/control-windows-services-of-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/568348711071892804'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/568348711071892804'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/09/control-windows-services-of-remote.html' title='Control Windows services of a remote computer using the command line'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-7855756781173797487</id><published>2009-05-29T08:22:00.000-07:00</published><updated>2009-05-29T08:26:03.198-07:00</updated><title type='text'>Centos 5.1 Chrooting SFTP using SCPonly</title><content type='html'>&lt;div class="content"&gt;&lt;br /&gt;    &lt;p&gt;&lt;strong&gt;Centos 5.1 Chrooting SFTP using SCPonly&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;strong&gt;Installation&lt;/strong&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;GCC is installed.&lt;br /&gt;&lt;br /&gt;OpenSSH is installed.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Download scponly from: &lt;a href="https://sourceforge.net/project/showfiles.php?group_id=155849" title="https://sourceforge.net/project/showfiles.php?group_id=155849"&gt;https://sourceforge.net/project/showfiles.php?group_id=155849&lt;/a&gt; and extract it to /tmp&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Configure Your Installation&lt;br /&gt;&lt;br /&gt;Navigate into the directory in /tmp where you extracted scponly.  Configure with the bellow command:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;./configure --enable-chrooted-binary&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Build &amp;amp; Install The Binaries&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;make&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;make install&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;This will install your manpage and scponly binary/binaries.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Edit &lt;code&gt;/etc/shells&lt;/code&gt; using vi to look like this:&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;/bin/sh&lt;br /&gt;&lt;br /&gt;/bin/bash&lt;br /&gt;&lt;br /&gt;/sbin/nologin&lt;br /&gt;&lt;br /&gt;/bin/tcsh&lt;br /&gt;&lt;br /&gt;/bin/csh&lt;br /&gt;&lt;br /&gt;/bin/ksh&lt;br /&gt;&lt;br /&gt;/usr/local/sbin/scponlyc&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;If you want to not use scponly in a chrooted fashion then use the following instead of scponlyc:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;/usr/local/bin/scponly&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Set up the jail with the following command which invokes a helper script:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;make jail&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The output will look similar to below:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;/usr/bin/install -c -d /usr/local/bin&lt;br /&gt;&lt;br /&gt;/usr/bin/install -c -d /usr/local/man/man8&lt;br /&gt;&lt;br /&gt;/usr/bin/install -c -d /usr/local/etc/scponly&lt;br /&gt;&lt;br /&gt;/usr/bin/install -c -o 0 -g 0 scponly /usr/local/bin/scponly&lt;br /&gt;&lt;br /&gt;/usr/bin/install -c -o 0 -g 0 -m 0644 scponly.8 /usr/local/man/man8/scponly.8&lt;br /&gt;&lt;br /&gt;/usr/bin/install -c -o 0 -g 0 -m 0644 debuglevel /usr/local/etc/scponly/debuglevel&lt;br /&gt;&lt;br /&gt;if test "xscponlyc" != "x"; then                        \&lt;br /&gt;&lt;br /&gt;                /usr/bin/install -c -d /usr/local/sbin;                        \&lt;br /&gt;&lt;br /&gt;                rm -f /usr/local/sbin/scponlyc;                 \&lt;br /&gt;&lt;br /&gt;                cp scponly scponlyc;                            \&lt;br /&gt;&lt;br /&gt;                /usr/bin/install -c -o 0 -g 0 -m 4755 scponlyc /usr/local/sbin/scponlyc;        \&lt;br /&gt;&lt;br /&gt;        fi&lt;br /&gt;&lt;br /&gt;chmod u+x ./setup_chroot.sh&lt;br /&gt;&lt;br /&gt;./setup_chroot.sh&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Next we need to set the home directory for this scponly user.&lt;br /&gt;&lt;br /&gt;please note that the user's home directory MUST NOT be writeable&lt;br /&gt;&lt;br /&gt;by the scponly user. this is important so that the scponly user&lt;br /&gt;&lt;br /&gt;cannot subvert the .ssh configuration parameters.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;for this reason, a writeable subdirectory will be created that&lt;br /&gt;&lt;br /&gt;the scponly user can write into.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Username to install [scponly]scponly&lt;br /&gt;&lt;br /&gt;home directory you wish to set for this user [/home/scponly]&lt;br /&gt;&lt;br /&gt;name of the writeable subdirectory [incoming]files&lt;br /&gt;&lt;br /&gt;useradd: warning: the home directory already exists.&lt;br /&gt;&lt;br /&gt;Not copying any file from skel directory into it.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;creating  /home/scponly/files directory for uploading files&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Your platform (Linux) does not have a platform specific setup script.&lt;br /&gt;&lt;br /&gt;This install script will attempt a best guess.&lt;br /&gt;&lt;br /&gt;If you perform customizations, please consider sending me your changes.&lt;br /&gt;&lt;br /&gt;Look to the templates in build_extras/arch.&lt;br /&gt;&lt;br /&gt; - joe at sublimation dot org&lt;/p&gt;&lt;br /&gt;&lt;p&gt;please set the password for scponly:&lt;br /&gt;&lt;br /&gt;Changing password for user scponly.&lt;br /&gt;&lt;br /&gt;New UNIX password:&lt;br /&gt;&lt;br /&gt;Retype new UNIX password:&lt;br /&gt;&lt;br /&gt;passwd: all authentication tokens updated successfully.&lt;br /&gt;&lt;br /&gt;if you experience a warning with winscp regarding groups, please install&lt;br /&gt;&lt;br /&gt;the provided hacked out fake groups program into your chroot, like so:&lt;br /&gt;&lt;br /&gt;cp groups /home/scponly/bin/groups&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Note:  I ran the command mentioned at the end.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;cp groups /home/scponly/bin/groups&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Note that this is not the end all for setting up chrooted scponly!&lt;/p&gt;&lt;br /&gt;&lt;p&gt;During "make jail", for example I used &lt;strong&gt;/home/scponly/&lt;/strong&gt; as mychroot main path.  The following are the final steps I took to get scponly working.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Edit /home/scponly/etc/ld.so.conf and replace its content with :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;/lib&lt;br /&gt;&lt;br /&gt;/usr/lib&lt;br /&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Type &lt;code&gt;ldconfig -r /home/scponly/&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Copy /lib/ld-linux.so.* in /home/scponly/lib/&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;cp /lib/ld-linux.so.* /home/scponly/lib/&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Copy /etc/group in /home/scponly/etc/&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;cp /etc/group /home/scponly/etc/&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Create the folder /home/scponly/etc/selinux &lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;mkdir /home/scponly/etc/selinux&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Create a file named config there and insert the following content in this file :&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;br /&gt;vi /home/scponly/etc/selinux/config&lt;/p&gt;&lt;br /&gt;&lt;p&gt;SELINUX=disabled&lt;br /&gt;&lt;br /&gt;SELINUXTYPE=targeted&lt;br /&gt;&lt;br /&gt;SETLOCALDEFS=0&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Create the folder:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;mkdir /home/scponly/dev&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Create the null device in chroot:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;mknod /home/scponly/dev/null c 1 3&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Change permissions on the null device:&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;code&gt;chmod 666 /home/scponly/dev/null&lt;/code&gt;&lt;/p&gt;&lt;br /&gt;  &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-7855756781173797487?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/7855756781173797487/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/05/centos-51-chrooting-sftp-using-scponly.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7855756781173797487'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7855756781173797487'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/05/centos-51-chrooting-sftp-using-scponly.html' title='Centos 5.1 Chrooting SFTP using SCPonly'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-502267668642427009</id><published>2009-04-06T13:53:00.000-07:00</published><updated>2009-04-06T14:04:08.268-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Clariion'/><title type='text'>Rescan dynamically the scsi bus (applicable to CX Clariion SAN infrastructure)</title><content type='html'>Rescan dynamically the scsi bus&lt;br /&gt;&lt;br /&gt;I've been working for a while with a Dell - Clariion CX-300, and the best way to add new attached LUNs was always to reboot the server.&lt;br /&gt;However, that procedure is not always the most acceptable if you're in a hurry or if just want to do some tests.&lt;br /&gt;I found the procedure described above, in an outdated website, but worked very well in my case.&lt;br /&gt;&lt;br /&gt;I also recommend to use rescan-scsi-bus.sh script with the options -lwc. Type rescan-scsi-bus.sh --help to see the description of each option.&lt;br /&gt;&lt;br /&gt;The original link is: &lt;a href="http://www.it-sudparis.eu/s2ia/user/procacci/Doc/AX100/AX100-en008.html"&gt;http://www.it-sudparis.eu/s2ia/user/procacci/Doc/AX100/AX100-en008.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;After initialization ends, the server doesn't see the new devices :-( I tried a script from &lt;a href="http://www.linux1394.org/scripts/rescan-scsi-bus.sh"&gt;http://www.linux1394.org/scripts/rescan-scsi-bus.sh&lt;/a&gt; that should dynamically rescan the bus, but with no sucess.&lt;br /&gt;&lt;br /&gt;$ /root/rescan-scsi-bus.sh&lt;br /&gt;Host adapter 1 (qla2xxx) found.&lt;br /&gt;Host adapter 2 (qla2xxx) found.&lt;br /&gt;Scanning for device 1 0 0 0 ...&lt;br /&gt;OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;      Vendor: DGC      Model: LUNZ             Rev: 0208&lt;br /&gt;      Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;Scanning for device 2 0 0 0 ...&lt;br /&gt;OLD: Host: scsi2 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;      Vendor: DGC      Model: LUNZ             Rev: 0208&lt;br /&gt;      Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;0 new device(s) found.&lt;br /&gt;0 device(s) removed.&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So I stoped powerpath and unload qla modules in order to restart the whole thing. &lt;br /&gt;$ /etc/init.d/PowerPath stop&lt;br /&gt;Stopping PowerPath:  done&lt;br /&gt;$ lsmod | grep qla&lt;br /&gt;qla6312               119233  0&lt;br /&gt;qla2xxx               165733  1 qla6312&lt;br /&gt;scsi_transport_fc      12225  1 qla2xxx&lt;br /&gt;scsi_mod              116941  5 sg,qla2xxx,scsi_transport_fc,megaraid_mbox,sd_mod&lt;br /&gt;[root@pasargades /opt/Navisphere/bin]&lt;br /&gt;$ modprobe -r qla6312 qla2xxx&lt;br /&gt;[root@pasargades /opt/Navisphere/bin]&lt;br /&gt;$ lsmod | grep qla&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then reload the whole thing:&lt;br /&gt;&lt;br /&gt;$ modprobe qla2xxx qla6312&lt;br /&gt;[root@pasargades /opt/Navisphere/bin]&lt;br /&gt;$ /etc/init.d/PowerPath start&lt;br /&gt;Starting PowerPath:  done&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then it works, the kernel does see the new devices&lt;br /&gt;&lt;br /&gt;$ cat /proc/scsi/scsi&lt;br /&gt;Attached devices:&lt;br /&gt;Host: scsi0 Channel: 00 Id: 06 Lun: 00&lt;br /&gt;  Vendor: PE/PV    Model: 1x2 SCSI BP      Rev: 1.0&lt;br /&gt;  Type:   Processor                        ANSI SCSI revision: 02&lt;br /&gt;Host: scsi0 Channel: 01 Id: 00 Lun: 00&lt;br /&gt;  Vendor: MegaRAID Model: LD 0 RAID1   69G Rev: 521S&lt;br /&gt;  Type:   Direct-Access                    ANSI SCSI revision: 02&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;  Vendor: DGC      Model: RAID 5           Rev: 0208&lt;br /&gt;  Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;Host: scsi3 Channel: 00 Id: 00 Lun: 01&lt;br /&gt;  Vendor: DGC      Model: RAID 5           Rev: 0208&lt;br /&gt;  Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;Host: scsi4 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;  Vendor: DGC      Model: RAID 5           Rev: 0208&lt;br /&gt;  Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;Host: scsi4 Channel: 00 Id: 00 Lun: 01&lt;br /&gt;  Vendor: DGC      Model: RAID 5           Rev: 0208&lt;br /&gt;  Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;[root@pasargades /opt/Navisphere/bin]&lt;br /&gt;$ fdisk -l&lt;br /&gt;&lt;br /&gt;Disk /dev/sda: 73.2 GB, 73274490880 bytes&lt;br /&gt;255 heads, 63 sectors/track, 8908 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;   Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sda1               1           4       32098+  de  Dell Utility&lt;br /&gt;/dev/sda2   *           5         583     4650817+  83  Linux&lt;br /&gt;/dev/sda3             584        1220     5116702+  83  Linux&lt;br /&gt;/dev/sda4            1221        8908    61753860    5  Extended&lt;br /&gt;/dev/sda5            1221        3770    20482843+  83  Linux&lt;br /&gt;/dev/sda6            3771        5682    15358108+  83  Linux&lt;br /&gt;/dev/sda7            5683        6192     4096543+  82  Linux swap&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb: 676.4 GB, 676457349120 bytes&lt;br /&gt;255 heads, 63 sectors/track, 82241 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;Disk /dev/sdb doesn't contain a valid partition table&lt;br /&gt;&lt;br /&gt;Disk /dev/sdc: 1395.8 GB, 1395864371200 bytes&lt;br /&gt;255 heads, 63 sectors/track, 169704 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;Disk /dev/sdc doesn't contain a valid partition table&lt;br /&gt;&lt;br /&gt;Disk /dev/sdd: 676.4 GB, 676457349120 bytes&lt;br /&gt;255 heads, 63 sectors/track, 82241 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;Disk /dev/sdd doesn't contain a valid partition table&lt;br /&gt;&lt;br /&gt;Disk /dev/sde: 1395.8 GB, 1395864371200 bytes&lt;br /&gt;255 heads, 63 sectors/track, 169704 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;Disk /dev/sde doesn't contain a valid partition table&lt;br /&gt;&lt;br /&gt;Disk /dev/emcpowera: 676.4 GB, 676457349120 bytes&lt;br /&gt;255 heads, 63 sectors/track, 82241 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;Disk /dev/emcpowera doesn't contain a valid partition table&lt;br /&gt;&lt;br /&gt;Disk /dev/emcpowerb: 1395.8 GB, 1395864371200 bytes&lt;br /&gt;255 heads, 63 sectors/track, 169704 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;&lt;br /&gt;Disk /dev/emcpowerb doesn't contain a valid partition table&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;REmarque: We can see that fdisk sees double path 'raw' devices ( /dev/sdb and /dev/sdd ) to a same device, which finnaly is presented by powerpath as /dev/emcpowera . All disk system command (fdisk etc ...) should now use that device in order to benefit the use of powerpath (load balancing and failover on our double attached FC ).//&lt;br /&gt;&lt;br /&gt;The 'rescan' script shows that now:&lt;br /&gt;&lt;br /&gt;$ /root/rescan-scsi-bus.sh&lt;br /&gt;Host adapter 3 (qla2xxx) found.&lt;br /&gt;Host adapter 4 (qla2xxx) found.&lt;br /&gt;Scanning for device 3 0 0 0 ...&lt;br /&gt;OLD: Host: scsi3 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;      Vendor: DGC      Model: RAID 5           Rev: 0208&lt;br /&gt;      Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;Scanning for device 4 0 0 0 ...&lt;br /&gt;OLD: Host: scsi4 Channel: 00 Id: 00 Lun: 00&lt;br /&gt;      Vendor: DGC      Model: RAID 5           Rev: 0208&lt;br /&gt;      Type:   Direct-Access                    ANSI SCSI revision: 04&lt;br /&gt;0 new device(s) found.&lt;br /&gt;0 device(s) removed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-502267668642427009?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/502267668642427009/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/04/rescan-dynamically-scsi-bus-applicable.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/502267668642427009'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/502267668642427009'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/04/rescan-dynamically-scsi-bus-applicable.html' title='Rescan dynamically the scsi bus (applicable to CX Clariion SAN infrastructure)'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5393127791961278601</id><published>2009-03-23T11:30:00.000-07:00</published><updated>2009-03-23T11:56:56.124-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to run an application a daemon? Example with nsca Nagios utility</title><content type='html'>Recently I needed to make a server application run as an Unix daemon and be able to start, stop and restart it on demand. The application I’m talking about didn’t have any startup/shutdown utilities (nsca utility to send passive check results to Nagios). It runs as a script, without even detaching from the console ( unless you use the &amp; at the end of the command line, let's say #nsca -c nsca.cfg &amp; ).&lt;br /&gt;I also did it some time ago, to make another utility work as a daemon, but today I want to share the info.&lt;br /&gt;I’ll have to write a utility application that would start the process, store it’s PID in some file and somehow “daemonize” the forked process.&lt;br /&gt;&lt;br /&gt;Let’s assume that the application we want to run is /usr/local/nagios/nsca&lt;br /&gt;&lt;br /&gt;First, we need to create a script in /etc/init.d/ Let us name the file /etc/init.d/nsca&lt;br /&gt;&lt;br /&gt;The file contents would look something like this:&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# /etc/rc.d/init.d/nsca&lt;br /&gt;#&lt;br /&gt;# Control to start/stop nsca utility as a daemon&lt;br /&gt;# chkconfig: 345 99 01&lt;br /&gt;# description: NSCA passive alerts writer for Nagios&lt;br /&gt;#&lt;br /&gt;# Author: Edwin Salvador (edwin.salvador@gmail.com)&lt;br /&gt;#&lt;br /&gt;# Changelog:&lt;br /&gt;# 2009-03-23&lt;br /&gt;# - First version of the script &lt;br /&gt;#&lt;br /&gt;# processname: nsca&lt;br /&gt;# Source function library.&lt;br /&gt;. /etc/init.d/functions&lt;br /&gt;&lt;br /&gt;test -x /usr/local/nagios/nsca || exit 0&lt;br /&gt;&lt;br /&gt;RETVAL=0&lt;br /&gt;&lt;br /&gt;prog="NSCA passive alerts writer for Nagios"&lt;br /&gt;&lt;br /&gt;start() {&lt;br /&gt;        echo -n $"Starting $prog: "&lt;br /&gt; daemon /usr/local/nagios/nsca -c /usr/local/nagios/nsca.cfg&lt;br /&gt; RETVAL=$?&lt;br /&gt; [ $RETVAL -eq 0 ] &amp;&amp; touch /var/lock/subsys/nsca&lt;br /&gt; echo&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;stop() {&lt;br /&gt; echo -n $"Stopping $prog: "&lt;br /&gt; killproc /usr/local/nagios/nsca&lt;br /&gt; RETVAL=$?&lt;br /&gt; [ $RETVAL -eq 0 ] &amp;&amp; rm -f /var/lock/subsys/nsca&lt;br /&gt; echo&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#&lt;br /&gt;# See how we were called.&lt;br /&gt;#&lt;br /&gt;case "$1" in&lt;br /&gt;  start)&lt;br /&gt; start&lt;br /&gt; ;;&lt;br /&gt;  stop)&lt;br /&gt; stop&lt;br /&gt; ;;&lt;br /&gt;  reload|restart)&lt;br /&gt; stop&lt;br /&gt; start&lt;br /&gt; RETVAL=$?&lt;br /&gt; ;;&lt;br /&gt;  condrestart)&lt;br /&gt; if [ -f /var/lock/subsys/nsca ]; then&lt;br /&gt;     stop&lt;br /&gt;     start&lt;br /&gt; fi&lt;br /&gt; ;;&lt;br /&gt;  status)&lt;br /&gt; status /usr/local/nagios/nsca&lt;br /&gt; RETVAL=$?&lt;br /&gt; ;;&lt;br /&gt;  *)&lt;br /&gt; echo $"Usage: $0 {condrestart|start|stop|restart|reload|status}"&lt;br /&gt; exit 1&lt;br /&gt;esac&lt;br /&gt;&lt;br /&gt;exit $RETVAL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is a pretty standard service start/stop/restart file. This small script will take care of controlling the PID and work as any other standard service, you don't need to remove any PID file manually, nor event to kill the process.&lt;br /&gt;&lt;br /&gt;It can also be easyly modified to match any other program / application / script under Linux you want to daemonize !!.&lt;br /&gt;&lt;br /&gt;Remember to assign user and group "root", and chmod 755&lt;br /&gt;Use a different and unique name to each new startup script you create.&lt;br /&gt;&lt;br /&gt;You're all set. Just use it as any usual service you run:&lt;br /&gt;&lt;br /&gt;START:&lt;br /&gt;#service start nsca&lt;br /&gt;STOP:&lt;br /&gt;#service stop nsca&lt;br /&gt;RESTART:&lt;br /&gt;#service restart nsca&lt;br /&gt;&lt;br /&gt;If you need it to startup automatically on system boot-up:&lt;br /&gt;&lt;br /&gt;#chkconfig nsca on&lt;br /&gt;&lt;br /&gt;Enjoy it !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5393127791961278601?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5393127791961278601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/03/how-to-run-application-daemon-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5393127791961278601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5393127791961278601'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/03/how-to-run-application-daemon-example.html' title='How to run an application a daemon? Example with nsca Nagios utility'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-3213503336092654411</id><published>2009-03-12T07:01:00.000-07:00</published><updated>2009-03-12T07:03:31.360-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Sudo: allow a normal user to run commands as root under Linux / UNIX operating systems</title><content type='html'>I would like to run few commands such as stop or start web server as a root user. How do I allow a normal user to run these commands as root?&lt;br /&gt;&lt;br /&gt;You need to use sudo command which is use to execute a command as another user. It allows a permitted user to execute a command as the superuser or another user, as specified in the /etc/sudoers (config that defines or list of who can run what) file. i.e. the sudo command allows users to do tasks on a Linux system as another user.&lt;br /&gt;&lt;br /&gt;sudo is more more secure then su command. By default it logs sudo usage, command and arguments in /var/log/secure (Red Hat/Fedora / CentOS Linux) or /var/log/auth.log (Ubuntu / Debian Linux).&lt;br /&gt;&lt;br /&gt;If the invoking user is root or if the target user is the same as the invoking user, no password is required. Otherwise, sudo requires that users authenticate themselves with a password by default (NOTE: in the default configuration this is the user's password, not the root password). Once a user has been authenticated, a timestamp is updated and the user may then use sudo without a password for a short period of time (15 minutes unless overridden in sudoers).&lt;br /&gt;&lt;br /&gt;/etc/sudoers Syntax&lt;br /&gt;Following is general syntax used by /etc/sudoers file:&lt;br /&gt;USER HOSTNAME=COMMAND&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;USER: Name of normal user &lt;br /&gt;HOSTNAME: Where command is allowed to run. It is the hostname of the system where this rule applies. sudo is designed so you can use one sudoers file on all of your systems. This space allows you to set per-host rules. &lt;br /&gt;COMMAND: A simple filename allows the user to run the command with any arguments he/she wishes. However, you may also specify command line arguments (including wildcards). Alternately, you can specify "" to indicate that the command may only be run without command line arguments. &lt;br /&gt;How do I use sudo?&lt;br /&gt;For example, you want to give user rokcy access to halt/shutdown command and restart apache web server.&lt;br /&gt;1) Login as root user&lt;br /&gt;&lt;br /&gt;2) Use visudo command edit to edit the config file:&lt;br /&gt;# visudo&lt;br /&gt;3) Append the following lines to file:&lt;br /&gt;rokcy localhost=/sbin/halt&lt;br /&gt;rokcy dbserver=/etc/init.d/apache-perl restart&lt;br /&gt;4) Save the file and exit to shell prompt.&lt;br /&gt;5) Now rokcy user can restart apache server by typing the following command:&lt;br /&gt;$ sudo /etc/init.d/apache-perl restart&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;Password:&lt;br /&gt;Restarting apache-perl 1.3 web server....The sudo command has logged the attempt to the log file /var/log/secure or /var/log/auth.log file:&lt;br /&gt;# tail -f /var/log/auth.log&lt;br /&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;May 13 08:37:43 debian sudo:       rokcy : TTY=pts/4 ; PWD=/home/rokcy ; USER=root &lt;br /&gt;&lt;br /&gt;If rokcy want to shutdown computer he needs to type command:&lt;br /&gt;$ sudo /sbin/halt&lt;br /&gt;Output:&lt;br /&gt;&lt;br /&gt;Password:Before running a command with sudo, users usually supply their password. Once authenticated, and if the /etc/sudoers configuration file permits the user access, then the command is run. sudo logs each command run and in some cases has completely supplanted the superuser login for administrative tasks.&lt;br /&gt;&lt;br /&gt;More examples&lt;br /&gt;a) Specify multiple commands for user jadmin:&lt;br /&gt;jadmin ALL=/sbin/halt, /bin/kill, /etc/init.d/httpd&lt;br /&gt;b) Allow user jadmin to run /sbin/halt without any password i.e. as root without authenticating himself:&lt;br /&gt;jadmin ALL= NOPASSWD: /sbin/halt&lt;br /&gt;c) Allow user charvi to run any command from /usr/bin directory on the system devl02:&lt;br /&gt;charvi devl02 = /usr/bin/*&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Source:&lt;br /&gt;http://www.cyberciti.biz/tips/allow-a-normal-user-to-run-commands-as-root.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-3213503336092654411?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/3213503336092654411/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/03/sudo-allow-normal-user-to-run-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3213503336092654411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3213503336092654411'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/03/sudo-allow-normal-user-to-run-commands.html' title='Sudo: allow a normal user to run commands as root under Linux / UNIX operating systems'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-9055317703070251820</id><published>2009-03-12T07:00:00.001-07:00</published><updated>2009-03-12T07:01:17.062-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>HowTo SSH/SCP without a password</title><content type='html'>HowTo SSH/SCP without a password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This small HowTo will explain how to setup key-based authentication for password-less SSH and SCP usage.&lt;br /&gt;&lt;br /&gt;This HowTo does assume the reader has some basic knowledge of ssh and a terminal, and is using an operating system that implements SSH. If you're using a Windows OS and want to use SSH, try PuTTY. For Putty, see key-based auth with Putty.&lt;br /&gt;&lt;br /&gt;In the examples that follow please substitute 'servername' , 'ipaddress' and 'username' with the proper information for your setup. I have included a list of weblinks for the words in italic at the end of this document.&lt;br /&gt;&lt;br /&gt;Step 1. Verify that you can connect normally (using a password) to the server you intend to setup keys for:&lt;br /&gt;&lt;br /&gt;#### Examples ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh username@'servername'&lt;br /&gt;&lt;br /&gt;# Or:&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh username@'ipaddress'&lt;br /&gt;&lt;br /&gt;# If your username is the same on both the client ('homebox') and the server ('servername'):&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh 'servername'&lt;br /&gt;&lt;br /&gt;# Or:&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh 'ipaddress'&lt;br /&gt;&lt;br /&gt;# If this is your first time connecting to 'servername' (or 'ipaddress'), upon establishing a connection with the &lt;br /&gt;# server you'll be asked if you want to add the servers fingerprint to the known_hosts file on your computer.&lt;br /&gt;# Press 'enter' to add the fingerprint.&lt;br /&gt;&lt;br /&gt;Step 2. Now that you're connected to the server and verified that you have everything you need for access (hopefully), disconnect by typing 'exit' .&lt;br /&gt;&lt;br /&gt;#### Examples ####&lt;br /&gt;&lt;br /&gt;user@servername ~ $ exit&lt;br /&gt;&lt;br /&gt;# You should be back at:&lt;br /&gt;&lt;br /&gt;user@homebox ~ $&lt;br /&gt;&lt;br /&gt;Step 3. The next step is to copy a unique key generated on your 'homebox' to the server you are connecting too. First, before you generate a new key, check to see if you already have a key:&lt;br /&gt;&lt;br /&gt;#### Example ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ls -l ~/.ssh&lt;br /&gt;total 20&lt;br /&gt;-rwx--xr-x 1 user user  601 Feb  2 01:58 authorized_keys&lt;br /&gt;-rwx--xr-x 1 user user  668 Jan  1 19:26 id_dsa&lt;br /&gt;-rwx--xr-x 1 user user  599 Jan  1 19:26 id_dsa.pub&lt;br /&gt;-rwx--xr-x 1 user user 6257 Feb  2 21:04 known_hosts&lt;br /&gt;&lt;br /&gt;# The file we need to copy to the server is named id_dsa.pub. As you can see above, the file needed exists. You may or may not have other files in ~/.ssh as I do. If the key doesn't exist, however, you can make one as follows:&lt;br /&gt;&lt;br /&gt;#### Example ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh-keygen -t dsa&lt;br /&gt;Generating public/private dsa key pair.&lt;br /&gt;Enter file in which to save the key (/home/user/.ssh/id_dsa):     # Press 'enter' here&lt;br /&gt;Enter passphrase (empty for no passphrase):     # Press 'enter' here&lt;br /&gt;Enter same passphrase again:     # Press 'enter' here&lt;br /&gt;Your identification has been saved in /home/user/.ssh/id_dsa.&lt;br /&gt;Your public key has been saved in /home/user/.ssh/id_dsa.pub.&lt;br /&gt;The key fingerprint is:&lt;br /&gt;6f:c3:cb:50:e6:e9:90:f0:0f:68:d2:10:56:eb:1d:91 user@host&lt;br /&gt;&lt;br /&gt;# Entering a password when asked during the key generation processes when prompted would require you to enter a  password each time you SSH/SCP to the server which defeats the purpose of this document.&lt;br /&gt;&lt;br /&gt;Step 4. Regardless whether you had a key ready to go or if you had to generate a new key, the next step is the same in either case. Now you're ready to copy the key to the server. Do so like this:&lt;br /&gt;&lt;br /&gt;#### Example ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh-copy-id -i ~/.ssh/id_dsa.pub user@'servername' (or 'ipaddress')&lt;br /&gt;&lt;br /&gt;# If you are asked weather or not you wish to continue, say yes.&lt;br /&gt;&lt;br /&gt;Step 5. Now it's time to test the setup. To do that, try to ssh to the server:&lt;br /&gt;&lt;br /&gt;#### Example ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ssh 'servername' (or 'ipaddress')&lt;br /&gt;&lt;br /&gt;# You should log in to the remote host without being asked for a password.&lt;br /&gt;&lt;br /&gt;Step 6. You can now SSH or SCP to the remote host without having to enter a password at each connection. To make sure your public key stays secure from prying eyes, do the following to change permissions and restrict access on 'homebox' and also on 'servername' to ~/.ssh:&lt;br /&gt;&lt;br /&gt;#### Example ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ chmod 600 ~/.ssh/id_dsa ~/.ssh/id_dsa.pub&lt;br /&gt;&lt;br /&gt;# Verify the permissions on the files:&lt;br /&gt;&lt;br /&gt;#### Example ####&lt;br /&gt;&lt;br /&gt;user@homebox ~ $ ls -l ~/.ssh&lt;br /&gt;-rw-------  1 user user  668 Feb  4 19:26 id_dsa&lt;br /&gt;-rw-------  1 user user  599 Feb  4 19:26 id_dsa.pub&lt;br /&gt;&lt;br /&gt;Links&lt;br /&gt;&lt;br /&gt;1. OpenSSH&lt;br /&gt;&lt;br /&gt;2. known_hosts&lt;br /&gt;&lt;br /&gt;3. fingerprint&lt;br /&gt;&lt;br /&gt;------&lt;br /&gt;Nice post!&lt;br /&gt;&lt;br /&gt;I've noticed that I don't have the command ssh-copy-id on my OS X machine (I didn't even know one existed!). To achieve the same effect I usually do the following:&lt;br /&gt;user@homebox ~ $ scp ~/.ssh/id_dsa.pub user@'servername':.ssh/authorized_keysThis is assuming you've already created a .ssh directory on your server 'servername' (just ssh in as normal and `mkdir .ssh`). This also assumes that you don't already have an `authorized_keys` file in the .ssh directory on your server. If you do just copy (scp) the id_dsa.pub file to a temporary file in your server's home directory and then&lt;br /&gt;user@homebox ~ $ scp .ssh/id_dsa.pub user@servername:homebox_dsa.pubuser@homebox ~ $ ssh user@servernameuser@servername ~ $ cat homebox_dsa.pub &gt;&gt; .ssh/authorized_keysuser@servername ~ $ rm homebox_dsa.pub If you've got it, the ssh-copy-id way is clearly a lot easier!&lt;br /&gt;&lt;br /&gt;~ Mark&lt;br /&gt;&lt;br /&gt;Hi Mark. Thanks for adding that bit. I don't have access to a Mac (new one anyway) so that's very nice to know.&lt;br /&gt;&lt;br /&gt;Seth&lt;br /&gt;&lt;br /&gt;Seth, I liked this post a lot, but felt the formatting and wording can be improved. I've made a few changes to the introduction.&lt;br /&gt;&lt;br /&gt;Xin&lt;br /&gt;(I wish I had used my name for my username now!)&lt;br /&gt;&lt;br /&gt;-------&lt;br /&gt;&lt;br /&gt;I found an elegant way of creating a new, or adding to an existing authorized_keys file with a single command:&lt;br /&gt;&lt;br /&gt;ssh username@somedomain.com -n "echo `cat ~/.ssh/id_dsa.pub` &gt;&gt; ~/.ssh/authorized_keys"-&lt;br /&gt;&lt;br /&gt;I think it *is* a good practice to use pass phrases when using ssh keys. You can use ssh-agent on Linux and SSH Agent or SSHKeychain on Mac OS X, to avoid you to type your pass phrase everytime you access a remote host. Also, you can forward your keys using 'ssh -A' if you need to hop onto some host in the middle.&lt;br /&gt;&lt;br /&gt;-- Igor&lt;br /&gt;http://www.hostingrails.com/wiki/27/HowTo-SSHSCP-without-a-password&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-9055317703070251820?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/9055317703070251820/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/03/howto-sshscp-without-password.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/9055317703070251820'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/9055317703070251820'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/03/howto-sshscp-without-password.html' title='HowTo SSH/SCP without a password'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-2294433374093454429</id><published>2009-02-11T11:26:00.000-08:00</published><updated>2009-02-11T11:28:09.570-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Two ways to copy files from a remote computer securely</title><content type='html'>Run any of the two following commands from the destination computer, previously located in the destination directory.&lt;br /&gt;&lt;br /&gt;rsync -avz -e ssh root@192.x.x.x:/s01/backup/oradata/databkup/* .&lt;br /&gt;&lt;br /&gt;scp root@192.x.x.x:/s01/backup/oradata/databkup/* .&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-2294433374093454429?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/2294433374093454429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/two-ways-to-copy-files-from-remote.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/2294433374093454429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/2294433374093454429'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/two-ways-to-copy-files-from-remote.html' title='Two ways to copy files from a remote computer securely'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8679844181802165680</id><published>2009-02-11T11:23:00.000-08:00</published><updated>2009-02-11T11:24:42.762-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>After cloning a Linux box problems running vnc server, xterm can not run</title><content type='html'>After cloning a Linux box, running vnc server, a terminal connection could not start xterm. (I clonned a virtual server into a virtual server, on vmware ESX 3.5)&lt;br /&gt;The log file (located at /home/username/.vnc/hostname:1.log) was as follows:&lt;br /&gt;&lt;br /&gt;Wed Feb 11 11:27:53 2009&lt;br /&gt; Client:      Server default pixel format depth 16 (16bpp) little-endian rgb565&lt;br /&gt; Client:      Client pixel format depth 6 (8bpp) rgb222&lt;br /&gt;xterm: Error 32, errno 2: No such file or directory&lt;br /&gt;Reason: get_pty: not enough ptys&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I think the two steps that solved it were:&lt;br /&gt;&lt;br /&gt;1) create a new .Xauthority file&lt;br /&gt;Loged in as username:&lt;br /&gt;Delete the .Xauthority file, located at /home/username&lt;br /&gt;Create a new .Xauthority file, issuing the command: $mkxauth -c&lt;br /&gt;&lt;br /&gt;2) use makedev to create the pty and pts devices:&lt;br /&gt;Loged in as root:&lt;br /&gt;&lt;br /&gt;cd /dev&lt;br /&gt;./MAKEDEV pty&lt;br /&gt;./MAKEDEV ptm&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Steps found at:&lt;br /&gt;&lt;br /&gt;a) http://www.gelato.unsw.edu.au/IA64wiki/XinChroot&lt;br /&gt;&lt;br /&gt;host:/# xterm&lt;br /&gt;xterm: Error 32, errno 2: No such file or directory&lt;br /&gt;Reason: get_pty: not enough ptys&lt;br /&gt;try running MAKEDEV pty in /dev to make the devices you need. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;b) http://mail-index.netbsd.org/pkgsrc-users/2008/07/09/msg007591.html&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;cannot start xterm on NetBSD-4.0&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;To: pkgsrc-users%netbsd.org@localhost &lt;br /&gt;Subject: Re: cannot start xterm on NetBSD-4.0 &lt;br /&gt;From: Aleksey Cheusov &lt;cheusov%tut.by@localhost&gt; &lt;br /&gt;Date: Thu, 10 Jul 2008 00:46:55 +0300 &lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt; &gt;&gt; - After manual running the following commands&lt;br /&gt; &gt;&gt;       cd /dev&lt;br /&gt; &gt;&gt;       ./MAKEDEV ptm&lt;br /&gt; &gt;&gt;       mkdir pts&lt;br /&gt; &gt;&gt;       mount pts&lt;br /&gt;&lt;br /&gt;&gt; You can add this to MAKEDEV under "init)":&lt;br /&gt;&gt;       makedev ptm&lt;br /&gt;&gt;       mkdir -m 0755 /dev/pts&lt;br /&gt;&lt;br /&gt;I've added this code to /etc/rc.local (because /dev is on MFS)&lt;br /&gt;and everything works fine now while booting.&lt;br /&gt;But this is strange ;-( Before HDD failure everything worked fine&lt;br /&gt;without this code.&lt;br /&gt;&lt;br /&gt; &gt;&gt;   xterm seems to work but says&lt;br /&gt; &gt;&gt;     utmp_update: Cannot update utmp entry: Resource temporarily unavailable&lt;br /&gt; &gt;&gt;     utmp_update: Cannot update utmp entry: Undefined error: 0&lt;br /&gt;&lt;br /&gt;&gt; Have you searched for "Cannot update utmp entry"? Same problem, same solution?&lt;br /&gt;Thank you. I've found it :-) I really forgot -U option of build.sh&lt;br /&gt;&lt;br /&gt;-- &lt;br /&gt;Best regards, Aleksey Cheusov.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I also made as root:&lt;br /&gt;&lt;br /&gt;set DISPLAY=:0.0&lt;br /&gt;export DISPLAY&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8679844181802165680?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8679844181802165680/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/after-cloning-linux-box-problems.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8679844181802165680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8679844181802165680'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/after-cloning-linux-box-problems.html' title='After cloning a Linux box problems running vnc server, xterm can not run'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8704181513107710689</id><published>2009-02-09T09:43:00.000-08:00</published><updated>2009-02-09T13:27:13.349-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server'/><title type='text'>Change name of server, after install SQL Server 2005</title><content type='html'>If you change the name of a server / computer, after installing SQL server 2005 (it happened to me also for SQL 7.0 server and SQL 2000 server), some of the programs that have access to the database, will have problems, because of the default instance was using the old name.&lt;br /&gt;A long time ago, I had to backup my databases, uninstall SQL server, change the server name, reinstall SQL server, and restore the databases ....&lt;br /&gt;But the solution is very simplistic: change the name of the server, and after restarting it, launch the SQL Management Studio (Enterprise Manager or Query Analyzer if using SQL server 2000), then execute the following queries:&lt;br /&gt;&lt;br /&gt;1) select @@servername&lt;br /&gt;It will show you the actual server name used by SQL server&lt;br /&gt;&lt;br /&gt;2) sp_dropserver OLDNAME&lt;br /&gt;   GO&lt;br /&gt;It will erase this parameter&lt;br /&gt;&lt;br /&gt;3) sp_addserver NEWNAME, local&lt;br /&gt;   GO&lt;br /&gt;It will configure the SQL server parameter with the new name&lt;br /&gt;&lt;br /&gt;4) Restart SQL server services&lt;br /&gt;&lt;br /&gt;5)  select @@servername&lt;br /&gt;It will show you the actual NEW server name used by SQL server. Try at least twice.&lt;br /&gt;&lt;br /&gt;You're all done.&lt;br /&gt;It works for the default instance.&lt;br /&gt;If you need to read further, go to http://msdn.microsoft.com/en-us/library/ms143799.aspx&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8704181513107710689?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8704181513107710689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/change-name-of-server-after-install-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8704181513107710689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8704181513107710689'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/change-name-of-server-after-install-sql.html' title='Change name of server, after install SQL Server 2005'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-11866692348423476</id><published>2009-02-05T09:04:00.000-08:00</published><updated>2009-02-05T09:35:38.377-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><title type='text'>VMware virtual machines grayed out in Virtual Center</title><content type='html'>It happened to me already twice, with no apparent cause. Fortunately, the resolution is very straightforward, you just need to restart the management agents on ESX server.&lt;br /&gt;&lt;br /&gt;Here is the link to VMware site:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1003490"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1003490&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is the contents of it, so you can follow the procedure easily:&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" height="2"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"&gt;&lt;content&gt;&lt;h3&gt;Restarting the Management agents on ESX Server 3.x &lt;/h3&gt;&lt;div&gt;To restart the management agents on ESX Server 3.x:&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Login to your ESX Server as &lt;span style="font-family:Courier New;font-size:85%;"&gt;root &lt;/span&gt;from either an SSH session or directly from the console of the server.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Type &lt;span style="font-family:Courier New;font-size:85%;"&gt;service mgmt-vmware restart &lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Caution&lt;/strong&gt;: Ensure Automatic Startup/Shutdown of virtual machines is disabled before running this command or you risk rebooting the virtual machines.  For more information, see &lt;a href="http://kb.vmware.com/kb/1003312" target="_blank"&gt;Restarting hostd (mgmt-vmware) on ESX Server Hosts Restarts Hosted Virtual Machines Where Virtual Machine Startup/Shutdown is Enabled (1003312)&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;li&gt;&lt;div&gt;Press Enter.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Type &lt;span style="font-family:Courier New;font-size:85%;"&gt;service vmware-vpxa restart &lt;/span&gt;.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Press Enter.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Type &lt;span style="font-family:Courier New;font-size:85%;"&gt;logout &lt;/span&gt;and press Enter to disconnect from the ESX Server.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;If this process is successful, it appears as:&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Courier New;font-size:85%;"&gt;[root@server]# service mgmt-vmware restart&lt;br /&gt;Stopping VMware ESX Server Management services:&lt;br /&gt;   VMware ESX Server Host Agent Watchdog                   [  &lt;span style="color:#000000;"&gt;OK &lt;/span&gt;  ]&lt;br /&gt;   VMware ESX Server Host Agent                            [  &lt;span style="color:#000000;"&gt;OK  &lt;/span&gt;]&lt;br /&gt;Starting VMware ESX Server Management services:&lt;br /&gt;   VMware ESX Server Host Agent (background)               [  &lt;span style="color:#000000;"&gt;OK &lt;/span&gt;  ]&lt;br /&gt;   Availability report startup (background)                [  &lt;span style="color:#000000;"&gt;OK &lt;/span&gt;  ]&lt;br /&gt;[root@server]# service vmware-vpxa restart&lt;br /&gt;Stopping vmware-vpxa:                                      [  &lt;span style="color:#000000;"&gt;OK &lt;/span&gt;  ]&lt;br /&gt;Starting vmware-vpxa:                                      [  &lt;span style="color:#000000;"&gt;OK &lt;/span&gt;  ]&lt;br /&gt;[root@server]#&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt; &lt;/div&gt;&lt;h3&gt;Restarting the Management agents on ESX Server 3i&lt;/h3&gt;&lt;div&gt;To restart the management agents on ESX Server 3i:&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;div&gt;Connect to the console of your ESX Server.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Press F2 to customize the system.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Login as &lt;span style="font-family:Courier New;font-size:85%;"&gt;root &lt;/span&gt;.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Using the Up/Down arrows navigate to &lt;strong&gt;Restart Management Agents&lt;/strong&gt;.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Press Enter.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Press F11 to restart the services.&lt;/div&gt;&lt;li&gt;&lt;div&gt;When the service has been restarted, press Enter.&lt;/div&gt;&lt;li&gt;&lt;div&gt;Press Esc to logout of the system.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-11866692348423476?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/11866692348423476/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/vmware-virtual-machines-grayed-out-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/11866692348423476'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/11866692348423476'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/vmware-virtual-machines-grayed-out-in.html' title='VMware virtual machines grayed out in Virtual Center'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-1762543861270656959</id><published>2009-02-05T08:55:00.000-08:00</published><updated>2009-02-05T09:03:49.063-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Command to delete user password under Linux</title><content type='html'>&lt;p&gt;Type the following command to delete a user password:&lt;/p&gt;&lt;p&gt;# passwd --delete username&lt;/p&gt;&lt;p&gt;OR&lt;/p&gt;&lt;p&gt;# passwd -d username&lt;/p&gt;&lt;p&gt;Above command delete a user's password (make it empty). This is a quick way to disable a password for an account. It will set the named account passwordless. User will not able to login.&lt;/p&gt;&lt;p&gt;It is also a good idea to setup user shell to nologin to avoid security related problems:&lt;/p&gt;&lt;p&gt;# usrmod -s /sbin/nologin username&lt;/p&gt;&lt;p&gt;For example to delete password for user johnc, Type:&lt;/p&gt;&lt;p&gt;# passwd -d johnc&lt;br /&gt;# usrmod -s /sbin/nologin johnc&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-1762543861270656959?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/1762543861270656959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/command-to-delete-user-password-under.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1762543861270656959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/1762543861270656959'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/02/command-to-delete-user-password-under.html' title='Command to delete user password under Linux'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-7793790551618394477</id><published>2009-01-15T08:01:00.000-08:00</published><updated>2009-01-15T08:03:37.544-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>Create a NFS share for VM ISO files with Windows 2003 Server R2</title><content type='html'>&lt;a href="http://vmetc.com/2008/02/19/create-a-nfs-share-for-vm-iso-files-with-windows-2003-server-r2/"&gt;http://vmetc.com/2008/02/19/create-a-nfs-share-for-vm-iso-files-with-windows-2003-server-r2/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;If your ESX servers are not connected to network storage or if you do not have enough available space on your SAN to dedicate a sub folder of a VMFS volume for ISO files, then you can use a NFS network share to centrally store these images. Creating the NFS share can be done with many server operating systems, but did you know that Windows Server 2003 R2 has native NFS?&lt;br /&gt;&lt;a href="http://vmware-land.com/" target="_blank"&gt;VMware-land.com&lt;/a&gt; has many “how to”&lt;a href="http://vmware-land.com/Vmware_Tips.html#ESX5"&gt; VMware Tips&lt;/a&gt; for ESX, and the following is the instructions found there for creating a Windows 2003 R2 NFS share:&lt;br /&gt;window.google_render_ad();&lt;br /&gt;On the Windows 2003 Server make sure “Microsoft Services for NFS” in installed. If not you need to add it under Add/Remove Programs, WindowsComponents, Other Network File and Print Services&lt;br /&gt;Next go to folder you want to share and right-click on it and select Properties&lt;br /&gt;Click on the NFS Sharing tab and select “Share this Folder”&lt;br /&gt;Enter a Share Name, check “Anonymous Access” and make sure the UID and GID are both -2&lt;br /&gt;In VirtualCenter, select your ESX server and click the “Configuration” tab and then select “Storage”&lt;br /&gt;Click on “Add Storage” and select “Network File System” as the storage type&lt;br /&gt;Enter the Windows Server name, the folder (share) name and a descriptive Datastore Name&lt;br /&gt;Once it finishes the configuration you can now map your VM’s CD-ROM devices to this new VMFS volume&lt;br /&gt;Repeat steps 5 through 8 for each of your ESX servers to make the same ISO files available to all ESX hosts.&lt;br /&gt;These instructions assume that you have already configured the VMkernel port group on a vSwitch for each ESX host. For instructions and information about configuring the VMKernel for NAS/NFS storage check the Storage Chapter of the &lt;a href="http://www.vmware.com/pdf/vi3_35/esx_3/r35/vi3_35_25_3_server_config.pdf" target="_blank"&gt;ESX Server 3 Configuration Guide&lt;/a&gt;.&lt;br /&gt;Of course, you can use the NFS share for more than just ISO file storage too. This is a good repository for patches and scripts that need to be used on all hosts. NFS also makes a good target for VM image backups too. Use some imagination and install the free VMware server on your 2003 R2 box and you have a low budget DR platform. Oh yeah, I shouldn’t forget to mention you can even run ESX VMs from NFS!&lt;br /&gt;Important Notes:&lt;br /&gt;ESX version 3.x only supports NFS version 3 over TCP/IP.&lt;br /&gt;Best practice for TCP/IP storage is to use a dedicated subnet. This will usually require creating separate Service Console and VMKernel port groups on a dedicated vSwitch.&lt;br /&gt;On the Windows 2003 R2 server be sure to configure the shared folder so that the both the share and the file permissions allow everyone and anonymous full control. You can make the share read only when adding the storage in ESX.&lt;br /&gt;Be sure to remember to punch a hole in the ESX firewall for NFS. On the Configuration tab, go to the Security Profile settings and add the NFS Client so it appears in the allowed outbound connections.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Important:&lt;br /&gt;Dont forget the thing about windows 2003 security thing"On the Windows 2003 R2 server be sure to configure the shared folder so that the both the share and the file permissions allow everyone and anonymous full control. You can make the share read only when adding the storage in ESX." Then u will not be see this error:Error during the configuration of the host: Cannot open volume: /vmfs/volumes/********-********It took me avile to check that, and now i will spank myself around.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-7793790551618394477?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/7793790551618394477/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/create-nfs-share-for-vm-iso-files-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7793790551618394477'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7793790551618394477'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/create-nfs-share-for-vm-iso-files-with.html' title='Create a NFS share for VM ISO files with Windows 2003 Server R2'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5803946991830858633</id><published>2009-01-15T07:56:00.000-08:00</published><updated>2009-01-15T08:00:43.073-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows 2003'/><title type='text'>HOW TO: Share Windows Folders by Using Server for NFS</title><content type='html'>&lt;a href="http://support.microsoft.com/kb/324089"&gt;http://support.microsoft.com/kb/324089&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="sbody"&gt;&lt;br /&gt;UNIX uses the Network File System (NFS) protocol to share files and folders on the network. You can use the Server for NFS component in Windows Services for UNIX to share Windows file system resources to UNIX and Linux clients by using NFS, which includes full support for NFS v3. You can use Server for NFS to make interoperability and migration in a mixed environment easier. If you are using Windows, you can use either Windows Explorer or the Windows Nfsshare.exe command-line utility to share files to UNIX clients.&lt;br /&gt;&lt;br /&gt;&lt;div class="topOfPage"&gt;&lt;a href="http://www.blogger.com/post-create.g?blogID=5009621251640435938#top"&gt;&lt;/a&gt; &lt;/div&gt;&lt;h3 id="tocHeadRef"&gt;&lt;span style="font-size:+0;"&gt;&lt;a id="2"&gt;&lt;/a&gt;&lt;/span&gt;Share Windows Folders by Using Server for NFS&lt;/h3&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;        loadTOCNode(2, 'summary');&lt;br /&gt;      &lt;/script&gt;&lt;br /&gt;You can use Server for NFS to make Windows resources available to UNIX and Linux clients by using the NFS protocol. You can use either Windows Explorer or the Nfsshare.exe command line utility to share the folder.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To share a folder by using Nfsshare.exe:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Log on to the Windows-based server by using an administrative level account.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Start&lt;/b&gt;, click &lt;b&gt;Run&lt;/b&gt;, type &lt;span class="userInput"&gt;cmd&lt;/span&gt;, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Type the following command, and then press ENTER to share a folder to NFS clients and to allow anonymous access:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;span class="userInput"&gt;nfsshare -o anon=yes &lt;var&gt;share_name&lt;/var&gt;=&lt;var&gt;drive&lt;/var&gt;:&lt;var&gt;path&lt;/var&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Type the following command, and then press ENTER to delete an NFS share:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;&lt;span class="userInput"&gt;nfsshare &lt;var&gt;share_name&lt;/var&gt; /delete&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Type: &lt;span class="userInput"&gt;nfsshare /?&lt;/span&gt;, and then press ENTER to display the parameters that you can use with Nfsshare.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;br /&gt;To share a folder by using Windows Explorer:&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Log on to the Windows-based server by using an administrative level account.&lt;/li&gt;&lt;li&gt;Start Windows Explorer.&lt;/li&gt;&lt;li&gt;Right-click the folder that you want to share, and then click &lt;b&gt;Sharing&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click the &lt;b&gt;NFS Sharing&lt;/b&gt; tab, and then click &lt;b&gt;Share this folder&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Configure the appropriate settings, and then click &lt;b&gt;OK&lt;/b&gt;.&lt;b&gt;NOTE&lt;/b&gt;: Microsoft recommends that you install at least one User Name Mapping service on your network to map UNIX and Windows user names to each other. Please view our Kb article about User Name Mapping service in our REFERENCES section.&lt;/li&gt;&lt;/ol&gt;&lt;/div&gt;&lt;div class="sbody"&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5803946991830858633?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5803946991830858633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/how-to-share-windows-folders-by-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5803946991830858633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5803946991830858633'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/how-to-share-windows-folders-by-using.html' title='HOW TO: Share Windows Folders by Using Server for NFS'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-4249536361371445077</id><published>2009-01-15T07:49:00.000-08:00</published><updated>2009-01-15T07:53:00.828-08:00</updated><title type='text'>P2V: How To Make a Physical Linux Box Into a Virtual Machine</title><content type='html'>&lt;div class="microid-mailto+http:sha1:8d6f7291a267a6b4414c33f2a3fd3971ae48e7b3"&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;&lt;br /&gt;digg_url = 'http://www.windley.com/archives/2007/08/p2v_how_to_make_a_physical_linux_box_into_a_virtual_machine.shtml';&lt;br /&gt;digg_title = "P2V: How To Make a Physical Linux Box Into a Virtual Machine";&lt;br /&gt;digg_topic = 'tech_news';&lt;br /&gt;digg_bodytext = " Over the last four days, I've been exploring how to convert physical Linux boxes into virtual machines. VMWare has a tool for doing P2V conversions, as they're called, but as far as I can tell it only works for...";&lt;br /&gt;reddit_url='http://www.windley.com/archives/2007/08/p2v_how_to_make_a_physical_linux_box_into_a_virtual_machine.shtml';&lt;br /&gt;reddit_title="P2V: How To Make a Physical Linux Box Into a Virtual Machine";&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;h1&gt;P2V: How To Make a Physical Linux Box Into a Virtual Machine&lt;/h1&gt;&lt;br /&gt;&lt;div class="diggbutton"&gt;&lt;br /&gt;&lt;script src="http://digg.com/tools/diggthis.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;!-- title:  P2V: How To Make a Physical Linux Box Into a Virtual Machine --&gt;&lt;br /&gt;&lt;!-- category: newsletter --&gt;&lt;br /&gt;&lt;!-- keywords:  howto, linux, virtualization, vmware, parallels, p2v  --&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Over the last four days, I’ve been exploring how to convert physical&lt;br /&gt;Linux boxes into virtual machines. VMWare has a &lt;a href="http://www.vmware.com/products/converter/overview.html"&gt;tool&lt;/a&gt;&lt;br /&gt;for doing P2V conversions, as they’re called, but as far as I can&lt;br /&gt;tell it only works for Windows physical machines and for converting&lt;br /&gt;various flavors of virtual machines into others.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I’ve had a Linux machine that I’ve used in my &lt;a href="http://classes.eclab.byu.edu/462/"&gt;CS462 (Large Distributed&lt;br /&gt;Systems)&lt;/a&gt; class for years. The Linux distro has been updated over&lt;br /&gt;the years, but the box is an old 266MHz Pentium with 512Mb of RAM.&lt;br /&gt;Overall, it’s done surprisingly well—a testament to the small&lt;br /&gt;footprint of Linux. Still, I decided it was time for an upgrade.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Why Go Virtual&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;In an effort to simplify my life, I’m trying to cut down on the&lt;br /&gt;number of physical boxes I administer, so I decided I wanted the new&lt;br /&gt;version of my class server to be running on a virtual machine. This offers several&lt;br /&gt;advantages:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Fewer physical boxes to manage&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Easier to move to faster hardware when needed&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Less noise and heat&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;I could have just rebuilt the whole machine from scratch on a new&lt;br /&gt;virtual machine, but that takes a lot of time and the old build isn’t&lt;br /&gt;that out of date (one year) and works fine. So, I set out to&lt;br /&gt;discover how to transfer a physical machine to a virtual machine.&lt;br /&gt;The instructions below give a few details specific to VMWare and OS&lt;br /&gt;X, but if you happen to use Parallels (or Windows), the vast majority&lt;br /&gt;of what I did is applicable and where it’s not, figuring it out isn’t&lt;br /&gt;hard. I’ve tried to leave clues and I’m &lt;a href="http://xri.net/=windley"&gt;open to questions&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Note: I’ve used&lt;br /&gt;this same process to transfer a VMWare virtual image to run on&lt;br /&gt;Parallels. The are probably easier ways, but this technique works&lt;br /&gt;fine for that purpose as well—it doesn’t matter if the source&lt;br /&gt;machine is physical or virtual.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;The Process&lt;/h3&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;The first step is to make an image of the source machine. I&lt;br /&gt;recommend &lt;tt&gt;g4l&lt;/tt&gt;, Ghost for Linux. There are some &lt;a href="http://irfanhabib.wordpress.com/2007/04/15/getting-started-with-ghost4linux/"&gt;detailed&lt;br /&gt;instructions&lt;/a&gt; on &lt;tt&gt;g4l&lt;/tt&gt; available, but the basics are:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Download the &lt;tt&gt;g4l&lt;/tt&gt; bootable ISO and put it on a CD.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Boot it on the source machine.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Select the latest version from the resulting menu and start it up&lt;br /&gt;(you have to type &lt;tt&gt;g4l&lt;/tt&gt; at the prompt).&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Select raw transfered over network and configure the IP address&lt;br /&gt;and the username/password for the FTP server you want the image&lt;br /&gt;transfered to.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Give the new image a name.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Select “backup” and sit back and watch it work.&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Note that if you have more than one hard drive on the&lt;br /&gt;source machine, you’ll have to do each separately. I found that&lt;br /&gt;separately imaging&lt;br /&gt;each partition on each drive worked best. One tip: there&lt;br /&gt;are three compression options. Lzop works, in this application,&lt;br /&gt;nearly as GZip or BZip but with much less CPU load. Compression&lt;br /&gt;helps not only with storing the images, but also with transfering&lt;br /&gt;them around on the ‘Net, so you’ll probably want some kind of&lt;br /&gt;compression.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;The next step is to create a virtual machine and put the images on&lt;br /&gt;it’s drive(s). Create a virtual machine in VMWare as you normally&lt;br /&gt;would, selecting the right options for the source OS. When you get&lt;br /&gt;to the screen that asks “Startup virtual machine and load OS” (or&lt;br /&gt;something like that), uncheck the box and you should be able to&lt;br /&gt;change the machine options.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;The first thing you need to do with the new VM is create the right&lt;br /&gt;number and size of hard drives—and partitions on those drives—to&lt;br /&gt;match the partition images you’re going to restore.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;For transfering single image machines to VMWare, just using the&lt;br /&gt;default drive, appropriately sized, worked fine. For more than one&lt;br /&gt;drive image, however, I found that making the drive type (SCSI/IDE)&lt;br /&gt;match the type on the source was easiest thing to do. Note that&lt;br /&gt;VMWare won’t let you make the main drive an IDE drive by default.&lt;br /&gt;You can always delete it and create a new drive that’s an IDE drive&lt;br /&gt;if you need to.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;The second thing you need to do with the new VM is set the machine to&lt;br /&gt;boot from the CD ROM since we’ve got to start up &lt;tt&gt;g4l&lt;/tt&gt; on the&lt;br /&gt;target machine.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;On VMWare, you can enter the BIOS by pressing F2 while the virtual&lt;br /&gt;machine is loading. This isn’t as easy as it sounds since it starts&lt;br /&gt;quick. Once you’re there, however, it’s a pretty standard BIOS setup&lt;br /&gt;and changing the boot order is straight forward. On Parallels this&lt;br /&gt;is easier since the boot order is an option you can change in the&lt;br /&gt;VM’s settings.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;If you’re creating partitions on the drives, you’ll need to boot from&lt;br /&gt;a ISO image for the appropriate Linux distro and create the&lt;br /&gt;partitions using the partition wiazrd, &lt;tt&gt;parted&lt;/tt&gt;, or some other&lt;br /&gt;tool—whatever you’d normally do.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Next boot the VM from the &lt;tt&gt;g4l&lt;/tt&gt; ISO image on your computer or&lt;br /&gt;the physical CD you made. If you have trouble, be sure the virtual&lt;br /&gt;CDROM is connected and powered on when the virtual machine is&lt;br /&gt;started. Start &lt;tt&gt;g4l&lt;/tt&gt; and configure it the same way you did&lt;br /&gt;before, but this time, you’ll select “restore” from the options.&lt;br /&gt;&lt;tt&gt;g4l&lt;/tt&gt; should start putting the images from the source machine&lt;br /&gt;onto the target. If you have more than one hard drive or partition&lt;br /&gt;image, you’ll have to restore each to a separate drive or&lt;br /&gt;partition—as appropriate—on the virtual machine.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;When doing a raw transfer, I you need make the drives the&lt;br /&gt;same size as the machine you’re moving the image from (I’ve found&lt;br /&gt;that larger works OK, but smaller doesn’t). If the drives aren’t big&lt;br /&gt;enough to support the entire image, you’ll get “short reads” and not&lt;br /&gt;everything will be transfered. Note that you won’t get much&lt;br /&gt;complaint from &lt;tt&gt;g4l&lt;/tt&gt;.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;The virtual drives should theoretically only take as much space as&lt;br /&gt;they need, but it turns out that since you’re doing a raw transfer,&lt;br /&gt;you’ll fill them up with “space.” This is one of those instances&lt;br /&gt;where copying a sparse data structure results in one that isn’t.&lt;br /&gt;This results in awfully large disks—make sure you’ve got plenty of&lt;br /&gt;scratch disk space for this operation. More on large disks later.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Repairing and Booting the New Machine&lt;/h3&gt;&lt;br /&gt;&lt;table align="right"&gt;&lt;tbody&gt;&lt;tr valign="top"&gt;&lt;td width="150"&gt;&lt;div class="inlineimage"&gt;&lt;a href="http://photos.windley.com/gallery/view_photo.php?set_albumName=screenshots&amp;amp;id=Linux_Panic_on_Reload"&gt;&lt;img title="Linux panics if the init RAM disk is not updated" height="104" alt="Linux panics if the init RAM disk is not updated" src="http://photos.windley.com/albums/screenshots/Linux_Panic_on_Reload.thumb.png" width="150" border="0" name="photo_j" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="caption"&gt;Linux panics if the init RAM disk is not updated&lt;br /&gt;(click to enlarge)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Once the images are copied, you have to make them usable. If you&lt;br /&gt;just try to boot from them, you’ll likely see something like the&lt;br /&gt;screenshot shown on the right: a short message followed by a kernel&lt;br /&gt;panic. Before you can use the new machine, you have to do a little&lt;br /&gt;repair work on the old images.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Get an emergency boot CD ISO for your flavor of Linux and boot&lt;br /&gt;the new virtual machine from it. Often you can just boot from the&lt;br /&gt;installation image and then enter a rescue mode. For example for&lt;br /&gt;Redhat, you can type “linux rescue” at the boot prompt and get into&lt;br /&gt;recovery mode.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;It will search for Linux partitions and should find any you’ve&lt;br /&gt;restored to the machine. You’ll have the option to mount these. Do&lt;br /&gt;so. &lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Now, use the &lt;tt&gt;chroot&lt;/tt&gt; command to change the root of the&lt;br /&gt;file system to the root partition. Mount any of the other partitions&lt;br /&gt;that you need (e.g. &lt;tt&gt;/boot&lt;/tt&gt;).&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Run &lt;tt&gt;kudzu&lt;/tt&gt; to find any new devices and get rid of old&lt;br /&gt;ones.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Use &lt;a href="http://linux.die.net/man/8/mkinitrd"&gt;&lt;tt&gt;mkinitrd&lt;/tt&gt;&lt;/a&gt; to&lt;br /&gt;create a new init RAM disk. This command should work:&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;/sbin/mkinitrd -v -f /boot/initrd-2.2.12-20.img 2.2.12-20&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;Of course, you’ll have to substitute the right &lt;tt&gt;initrd&lt;/tt&gt; name&lt;br /&gt;(look in &lt;tt&gt;/boot&lt;/tt&gt;) and use the right version (look in&lt;br /&gt;&lt;tt&gt;/lib/modules&lt;/tt&gt;).&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;If you get an error message about not being able to find the right&lt;br /&gt;modules, be sure that the last argument to &lt;tt&gt;mkinitrd&lt;/tt&gt; matches&lt;br /&gt;what you see in &lt;tt&gt;/lib/modules&lt;/tt&gt; exactly.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Now, you should be able to boot the machine. With any luck, it&lt;br /&gt;should work.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Disk Size Issues&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;When you restore the image, your new sparse disk will grow to the&lt;br /&gt;size of the image, even if the image is only partially full of real&lt;br /&gt;data. For example, my Linux box had a 6Gb drive (I told you it was&lt;br /&gt;ancient) that contained the root partition and a 100 Gb drive that&lt;br /&gt;I’d partitioned into two pieces: one 40Gb partition mounted as&lt;br /&gt;&lt;tt&gt;/home&lt;/tt&gt; and a 60Gb partition mounted as &lt;tt&gt;/web&lt;/tt&gt;. After&lt;br /&gt;restoring the images for these three partitions, I ended up with a 6Gb and&lt;br /&gt;a 107Gb files representing the virtual disks. This despite the fact&lt;br /&gt;that only 8Gb of the 107Gb actually contained any data.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Clearly, you don’t want 107Gb files hanging around if they can be&lt;br /&gt;smaller. One option is to do a file copy rather than an image. This&lt;br /&gt;would work fine for the &lt;tt&gt;/home&lt;/tt&gt; and &lt;tt&gt;/web&lt;/tt&gt; partitions&lt;br /&gt;in my case, but wouldn’t have worked for the root partition—I wanted&lt;br /&gt;an image for that. If you’ve just got one big partition, then you&lt;br /&gt;can’t use the file transfer option and still have &lt;em&gt;exactly&lt;/em&gt; the&lt;br /&gt;same machine.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Fortunately there’s a relatively painless way of reducing the size of&lt;br /&gt;the disk to just what’s needed (thanks to &lt;a href="http://h0bbel.p0ggel.org/2007/01/02/shrinking-vmdk-files/"&gt;Christian&lt;br /&gt;Mohn&lt;/a&gt; for the technique).&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;The first step is to zero out all the free space on each partition of&lt;br /&gt;the drive you want to shrink. This, in effect, marks the free&lt;br /&gt;space. You can do that easily with this command:&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;cat /dev/zero &gt; zero.fill;sync;sleep 1;sync;rm -f zero.fill&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;After this runs, you’ll get an error that says&lt;br /&gt;&lt;tt&gt;“cat: write error: No space left on device”&lt;/tt&gt;. That’s&lt;br /&gt;normal—you just filled the drive with one BIG file full of zeros,&lt;br /&gt;made sure it was flushed to the disk, and then deleted it.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Next you can use the VMWare supplied disk management tool to do the&lt;br /&gt;actual shrinking. For VMWare Workstation Manager, you use&lt;br /&gt;&lt;tt&gt;vmware-vdiskmanager&lt;/tt&gt;, but the version of this program that&lt;br /&gt;ships with Fusion doesn’t support the shrink option. Note that this,&lt;br /&gt;and other support programs, are in&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;/Library/Application Support/VMware\ Fusion/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;on OS X.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;Fortunately, in OS X at least, there’s another&lt;br /&gt;program, called &lt;tt&gt;diskTool&lt;/tt&gt; in&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;/Applications/VMware Fusion.app/Contents/MacOS/&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;that &lt;em&gt;does&lt;/em&gt; support the shrink option (&lt;tt&gt;-k1&lt;/tt&gt;). Running&lt;br /&gt;this command&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="code"&gt;&lt;br /&gt;diskTool -k 1 Luwak-IDE_0-1.vmdk&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;on my large disk reduced it from 107Gb to 8Gb!&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;A few notes: Apparently you have to perform the shrink option on the&lt;br /&gt;disks for a machine &lt;em&gt;before any snapshots have been taken&lt;/em&gt;.&lt;br /&gt;Also, be sure to run the zero fill operation in each partition on the&lt;br /&gt;disk. The shrinking option takes a little time, but it’s well worth&lt;br /&gt;it. I haven’t tried this in Parallels, but I suspect the disk&lt;br /&gt;compaction option would work. If someone tries it, let me know.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h3&gt;Conclusion&lt;/h3&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;So, after a lot of experimentation, some playing around, and a lot of&lt;br /&gt;long operations on large files, I have a virtual machine that’s a&lt;br /&gt;fairly accurate reproduction of the physical machine that it came&lt;br /&gt;from. I’ll be testing it over the next few days to make sure it’s&lt;br /&gt;usable.&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;On reflection, I needn’t have been so faithful to the structure on&lt;br /&gt;the physical machine. I could have created the right number of&lt;br /&gt;partitions on one drive rather than creating multiple drives. After&lt;br /&gt;all, the new drive can be as big as I like. Maybe I’ll do that next&lt;br /&gt;and see how things go…&lt;br /&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;div id="a011503more"&gt;&lt;div id="more"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;p class="posted"&gt;Posted by windley on August 20, 2007 7:38 AM&lt;/p&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-4249536361371445077?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/4249536361371445077/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/p2v-how-to-make-physical-linux-box-into.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4249536361371445077'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4249536361371445077'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/p2v-how-to-make-physical-linux-box-into.html' title='P2V: How To Make a Physical Linux Box Into a Virtual Machine'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-3652590117937755657</id><published>2009-01-15T07:44:00.000-08:00</published><updated>2009-01-15T07:48:34.195-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Creating and formatting swap partitions</title><content type='html'>&lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:85%;"&gt;You can have&lt;br /&gt;several swap partitions. [Older Linux kernels limit the size of each swap&lt;br /&gt;partition to up to approximately 124 MB, but the linux kernels 2.2.x up&lt;br /&gt;do not have this restriction.] Here are the steps to create and enable&lt;br /&gt;a swap partition:&lt;br /&gt;&lt;br /&gt;- Create the partition of the proper size using &lt;tt&gt;fdisk&lt;/tt&gt; (partition&lt;br /&gt;type 82, "Linux swap").&lt;br /&gt;&lt;br /&gt;- Format the partition checking for bad blocks, for example:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;mkswap -c /dev/hda4&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;You have to substitute /dev/hda4 with your partition name. Since I did&lt;br /&gt;not specify the partition size, it will be automatically detected.&lt;br /&gt;&lt;br /&gt;- Enable the swap, for example:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;swapon /dev/hda4&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;To have the swap enabled automatically at bootup, you have to include&lt;br /&gt;the appropriate entry into the file &lt;tt&gt;/etc/fstab&lt;/tt&gt;, for example:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;/dev/hda4 swap swap defaults 0 0&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;If you ever need to disable the swap, you can do it with (as root):&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;swapoff /dev/hda4&lt;/tt&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;h4&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:85%;"&gt;Swap partitions&lt;/span&gt;&lt;/h4&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-family:Verdana, Arial, Helvetica, sans-serif;font-size:85%;"&gt;Swap is an extension of the physical memory of the computer. Most likely, you&lt;br /&gt;created a swap partition during the initial RedHat setup. You can&lt;br /&gt;verify the amount of swap space available on your system using:&lt;br /&gt;&lt;br /&gt;&lt;tt&gt;cat /proc/meminfo&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;The general recommendation is that one should have: at least 4 MB&lt;br /&gt;swap space, at least 32 MB total (physical+swap) memory for a system running&lt;br /&gt;command-line-only, at least 64 MB of total (physical+swap) memory for&lt;br /&gt;a system running X-windows, and swap space at least 1.5 times the amount&lt;br /&gt;of the physical memory on the system.&lt;br /&gt;&lt;br /&gt;If this is too complicated, you might want to have a swap twice as large&lt;br /&gt;as your physical (silicon) memory, but not less than 64 MB.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-3652590117937755657?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/3652590117937755657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/creating-and-formatting-swap-partitions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3652590117937755657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3652590117937755657'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/creating-and-formatting-swap-partitions.html' title='Creating and formatting swap partitions'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-7725704023795175805</id><published>2009-01-15T07:25:00.000-08:00</published><updated>2009-01-15T07:36:49.716-08:00</updated><title type='text'>After Converting Physical RHEL4 System to a Virtual Machine, System Cannot See Hard Disks and Kernel Panics</title><content type='html'>vmware official document. KB Article 1002402 Updated Sep. 12, 2008&lt;br /&gt;&lt;br /&gt;&lt;a href="http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;amp;docType=kc&amp;amp;externalId=1002402&amp;amp;sliceId=2&amp;amp;docTypeID=DT_KB_1_1&amp;amp;dialogID=14730726&amp;amp;stateId=0%200%204678181"&gt;http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&amp;amp;docType=kc&amp;amp;externalId=1002402&amp;amp;sliceId=2&amp;amp;docTypeID=DT_KB_1_1&amp;amp;dialogID=14730726&amp;amp;stateId=0%200%204678181&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;table class="print" width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="print" align="left"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table cellspacing="0" cellpadding="0" width="100%" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table width="100%"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="document_title" style="PADDING-BOTTOM: 10px" align="middle" rowspan="2"&gt;&lt;span style="color:#000000;"&gt;After Converting Physical RHEL4 System to a Virtual Machine, System Cannot See Hard Disks and Kernel Panics&lt;/span&gt;&lt;/td&gt;&lt;td width="200"&gt;&lt;table style="BORDER-RIGHT: #a7c8e6 1px solid; PADDING-RIGHT: 1px; BORDER-TOP: #a7c8e6 1px solid; PADDING-LEFT: 1px; PADDING-BOTTOM: 1px; BORDER-LEFT: #a7c8e6 1px solid; PADDING-TOP: 1px; BORDER-BOTTOM: #a7c8e6 1px solid; border-spacing: 0px" align="right"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="color:#000000;"&gt;KB Article&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;1002402&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="color:#000000;"&gt;Updated&lt;/span&gt;&lt;/td&gt;&lt;td&gt;&lt;strong&gt;&lt;span style="color:#000000;"&gt;Sep. 12, 2008&lt;/span&gt;&lt;/strong&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="tabbar" style="PADDING-RIGHT: 5px; PADDING-LEFT: 10px; PADDING-BOTTOM: 1px; PADDING-TOP: 2px"&gt;&lt;span style="color:#000000;"&gt;Products&lt;br /&gt;&lt;img height="3" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="100" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="20" height="100%"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" height="2"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="2" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="1" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="body_bold" style="PADDING-BOTTOM: 5px"&gt;&lt;span style="color:#000000;"&gt;VMware Converter&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="tabbar" style="PADDING-RIGHT: 5px; PADDING-LEFT: 10px; PADDING-BOTTOM: 1px; PADDING-TOP: 2px"&gt;&lt;span style="color:#000000;"&gt;Details&lt;br /&gt;&lt;img height="3" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="100" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="20" height="100%"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" height="2"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="2" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="1" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"&gt;&lt;content&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;After using VMware Converter to convert a physical RHEL4 host into a virtual machine running on ESX Server 3.0.x, the RHEL4 guest operating system fails to boot. The following error message is returned:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;No volume groups found&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;color:#000000;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;Followed by:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;color:#000000;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Courier New;font-size:85%;color:#000000;"&gt;Kernel panic - not syncing: Attempted to kill init!&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;color:#000000;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:Arial;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Note:&lt;/strong&gt; This issue might also apply to other Linux distributions.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/content&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="tabbar" style="PADDING-RIGHT: 5px; PADDING-LEFT: 10px; PADDING-BOTTOM: 1px; PADDING-TOP: 2px"&gt;&lt;span style="color:#000000;"&gt;Solution&lt;br /&gt;&lt;img height="3" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="100" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="20" height="100%"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="100%" alt="" src="http://www.blogger.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" height="2"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="2" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="1" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"&gt;&lt;content&gt;&lt;p&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;The issue occure because the initial ramdisk image does not include the drivers or modules for the LSILogic virtual SCSI adapter in an ESX Server 3.0.x virtual machine. These modules are not in the initial ramdisk image because the image is originally created on a system that does not use this hardware. To fix this issue, you must replace the existing initial ramdisk image with a new one that includes the proper drivers.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;Note&lt;/strong&gt;: Before you begin modifying the guest operating system, ensure the SCSI host adapter for the virtual machine is set to LSI Logic. For more information, see &lt;/span&gt;&lt;a title="Changing the type of SCSI controller used in a Hosted virtual machine (1216)" href="http://kb.vmware.com/kb/1216" target="_blank"&gt;&lt;span style="color:#000000;"&gt;Changing the type of SCSI controller used in a Hosted virtual machine (1216)&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;&lt;/span&gt; &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;Here are the steps required to do this:&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;Remember to make a snapshot of your virtual machine before starting, and create a backup copy of any files to be edited.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;Because the RHEL4 installation in the virtual machine is not currently bootable, boot the virtual machine from the first RHEL4 installation disk.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;At the first prompt, type&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Courier New;"&gt;linux rescue&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:Arial;color:#000000;"&gt;and press Enter to boot into rescue mode.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Enter the following command to change root to the mounted RHEL installation:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;chroot /mnt/sysimage&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;If the physical host was IDE-based, check the following files for any cases of&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/dev/hda&lt;/span&gt;, &lt;span style="font-family:Arial;"&gt;and replace with&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/dev/sda&lt;/span&gt;:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;/etc/fstab&lt;br /&gt;&lt;br /&gt;/boot/grub/device.map&lt;br /&gt;&lt;br /&gt;/boot/grub/grub.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Ensure that grub is installed properly with the following command: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;grub-install&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Edit the file&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/etc/modules.conf&lt;/span&gt; &lt;span style="font-family:Arial;"&gt;and remove anything it contains. This should be an empty file. If the file does not exist, that is OK (you do not need to create it).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Edit the file&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/etc/modprobe.conf&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;, remove all existing lines, and replace them with the following 3 lines:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;alias eth0 pcnet32&lt;br /&gt;&lt;br /&gt;alias scsi_hostadapter mptbase&lt;br /&gt;&lt;br /&gt;alias scsi_hostadapter1 mptscsih&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Determine the full path to the initial ramdisk image you are going to rebuild. The initial ramdisk will be located in&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/boot&lt;/span&gt;.&lt;span style="font-family:Arial;"&gt; List the directory:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;ls /boot&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;You see a file with a name similar to &lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;initrd-2.6.9-42.EL.img&lt;/span&gt;.&lt;span style="font-family:Arial;"&gt; In this case, the full path to this file is &lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;/boot/initrd-2.6.9-42.EL.img&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Determine the kernel version to use for rebuilding the initial ramdisk image. Each installed kernel has their own folder in&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/lib/modules&lt;/span&gt;. &lt;span style="font-family:Arial;"&gt;List the directory: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;ls /lib/modules&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;You see a folder with a name similar to&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;2.6.9-42.EL&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;Rebuild the ramdisk with the following command (replacing the path to the initial ramdisk image, and the kernel version with the ones you determined in the previous two steps. If there were multiple options, choose the newest ones, or check /etc/grub.conf to see which version is in use. Be sure the version number in the initial ramdisk image path matches the kernel version.):&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;mkinitrd -v -f /boot/initrd-2.6.9-42.EL.img 2.6.9-42.EL&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:Arial;"&gt;Explanation of this command:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;ol type="disc"&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;mkinitrd&lt;/span&gt;: &lt;span style="font-family:Arial;"&gt;Make initial ramdisk&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;-v&lt;/span&gt;: &lt;span style="font-family:Arial;"&gt;Be verbose&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;-f&lt;/span&gt;: &lt;span style="font-family:Arial;"&gt;Force overwrite if file already exists (you want to replace the existing file)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;/boot/initrd-2.6.9-42.EL.img&lt;/span&gt;: &lt;span style="font-family:Arial;"&gt;Path to the file to write (which is already pointed to by&lt;/span&gt; &lt;span style="font-family:Courier New;"&gt;/etc/grub.conf&lt;/span&gt;&lt;span style="font-family:Arial;"&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Courier New;"&gt;2.6.9-42.EL&lt;/span&gt;: &lt;span style="font-family:Arial;"&gt;Kernel version to use, which tells &lt;/span&gt;&lt;span style="font-family:Courier New;"&gt;mkinitrd&lt;/span&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Arial;"&gt;where to find the modules to include.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;li&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-family:Arial;font-size:85%;color:#000000;"&gt;Reboot.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Important:&lt;/strong&gt; After you have booted the system successfully and determined it is working as expected, remember to delete the snapshot you created in step 1.&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/content&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="tabbar" style="PADDING-RIGHT: 5px; PADDING-LEFT: 10px; PADDING-BOTTOM: 1px; PADDING-TOP: 2px"&gt;&lt;span style="color:#000000;"&gt;Product Versions&lt;br /&gt;&lt;img height="3" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="100" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="20" height="100%"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="100%" alt="" src="http://www.blogger.com/contactcenter/img/viewdoc_tab.gif" width="20" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" height="2"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="2" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="1" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="body_bold" style="PADDING-BOTTOM: 5px"&gt;&lt;span style="color:#000000;"&gt;VMware Converter 3.0.x&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td class="tabbar" style="PADDING-RIGHT: 5px; PADDING-LEFT: 10px; PADDING-BOTTOM: 1px; PADDING-TOP: 2px"&gt;&lt;span style="color:#000000;"&gt;Keywords&lt;br /&gt;&lt;img height="3" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="100" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;td width="20" height="100%"&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" height="2"&gt;&lt;span style="color:#000000;"&gt;&lt;img height="2" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="1" border="0" /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="body" style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px"&gt;&lt;content&gt;&lt;span style="color:#000000;"&gt;guest OS; RHEL 4 &lt;/content&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td class="tabbar" style="PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; PADDING-TOP: 4px" width="100%"&gt;&lt;span style="color:#000000;"&gt;&lt;span class="date_bold"&gt;Last Modified Date: &lt;/span&gt;&lt;span class="date"&gt;09-12-2008&lt;/span&gt;&lt;img height="1" alt="" src="http://www.blogger.com/contactcenter/img/sp.gif" width="5" border="0" /&gt;&lt;span class="date_bold"&gt;ID: &lt;/span&gt;&lt;span class="date"&gt;1002402&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;table class="print" width="100%"&gt;&lt;tbody&gt;&lt;tr width="100%"&gt;&lt;td class="print" align="middle"&gt;&lt;span style="font-size:78%;color:#000000;"&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-7725704023795175805?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/7725704023795175805/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/after-converting-physical-rhel4-system.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7725704023795175805'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/7725704023795175805'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/after-converting-physical-rhel4-system.html' title='After Converting Physical RHEL4 System to a Virtual Machine, System Cannot See Hard Disks and Kernel Panics'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-9185260253726356349</id><published>2009-01-14T14:25:00.000-08:00</published><updated>2009-01-14T14:26:42.169-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Mondorescue'/><title type='text'>Why doesn't mindi work with RHAS 2.1, RHEL 3, Fedora Core 2 or RedHat 9 ?</title><content type='html'>It seems that the version of tar used at that time is picky about simlinks, and exit with an error when it find .. in paths. Which is the case for gawk. A workaround is to issue:&lt;br /&gt;# ln -sf /bin/gawk /usr/bin&lt;br /&gt;&lt;br /&gt;Same may happen with smbmount&lt;br /&gt;# ln -sf /usr/sbin/smbmount /usr/bin&lt;br /&gt;&lt;br /&gt;and loadkeys:&lt;br /&gt;# ln -sf /bin/loadkeys /usr/bin&lt;br /&gt;&lt;br /&gt;Another possibility is to upgrade your tar version by using 1.15 instead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-9185260253726356349?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/9185260253726356349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/why-doesnt-mindi-work-with-rhas-21-rhel.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/9185260253726356349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/9185260253726356349'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/why-doesnt-mindi-work-with-rhas-21-rhel.html' title='Why doesn&apos;t mindi work with RHAS 2.1, RHEL 3, Fedora Core 2 or RedHat 9 ?'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-5232936777448271521</id><published>2009-01-14T09:55:00.000-08:00</published><updated>2009-01-14T10:10:43.477-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Install mondo archive on a 64 bit Linux</title><content type='html'>If you have all of the dependencies downloaded and installed (afio, mindi, mkisofs, gzip) but I still receive the following message when trying to install Mondo:&lt;br /&gt;&lt;br /&gt;libnewt.so.0.52 is needed by mondo-2.0.8-1.fc5.i386&lt;br /&gt;&lt;br /&gt;It complains that newt is missing but , it is installed.&lt;br /&gt;&lt;br /&gt;rpm -ivh newt-0.52.2-6.rpm&lt;br /&gt;package newt-0.52.2-6 is already installed&lt;br /&gt;&lt;br /&gt;SOLUTION:&lt;br /&gt;=========&lt;br /&gt;Dependencies between i386 pkgs and x86_64 pkges are tricky.&lt;br /&gt;Rebuild a x86_64 package from the src.rpm:&lt;br /&gt;rpmbuild --rebuild mondo-2.2.7-1.rhel3.src.rpm (the x86_64 version)&lt;br /&gt;When you checked early:&lt;br /&gt;package newt-0.52.2-6 is already installed (it means a i386 version)&lt;br /&gt;&lt;br /&gt;After installing the dependencies, install mondo:&lt;br /&gt;&lt;br /&gt;rpm -Uvh /usr/src/redhat/RPMS/x86_64/mondo-2.2.7-1.rhel3.x86_64.rpm&lt;br /&gt;rpm -Va mindi mondo mindi-busybox&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-5232936777448271521?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/5232936777448271521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/install-mondo-archive-on-64-bit-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5232936777448271521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/5232936777448271521'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/install-mondo-archive-on-64-bit-linux.html' title='Install mondo archive on a 64 bit Linux'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-2472052815342367403</id><published>2009-01-14T07:22:00.000-08:00</published><updated>2009-01-14T07:31:02.949-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><title type='text'>RHEL 3 network card DHCP not working on VMWare ESX 3.5</title><content type='html'>If you run Redhat Enterprise Linux 3 (RHEL 3) in a Virtual Machine, using VMWare ESX 3.5, network interfaces will work if you assign a static IP address to each of them, but if you use DHCP, it will not work, showing up a message like:&lt;br /&gt;&lt;br /&gt;no link present. Check Cable?&lt;br /&gt;&lt;br /&gt;Solution:&lt;br /&gt;======&lt;br /&gt;This is a known issue for VMWare, published on Knowledgebase Article 977:&lt;br /&gt;&lt;br /&gt;Edit (for eth0):&lt;br /&gt;/etc/sysconfig/network-scripts/ifcfg-eth0&lt;br /&gt;&lt;br /&gt;DEVICE=eth0&lt;br /&gt;check_link_down() {&lt;br /&gt;return 1;&lt;br /&gt;}&lt;br /&gt;BOOTPROTO=dhcp&lt;br /&gt;&lt;br /&gt;Then execute: $ifup eth0&lt;br /&gt;&lt;br /&gt;Repeat the process for every NIC you need to use DHCP&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-2472052815342367403?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/2472052815342367403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/rhel-3-network-card-dhcp-not-working-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/2472052815342367403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/2472052815342367403'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/rhel-3-network-card-dhcp-not-working-on.html' title='RHEL 3 network card DHCP not working on VMWare ESX 3.5'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-6775801219617831785</id><published>2009-01-02T13:15:00.000-08:00</published><updated>2009-01-02T13:22:12.060-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMWare'/><title type='text'>Activation of SSH on VMWare ESXi server</title><content type='html'>&lt;p&gt;How can I SSH to an ESXi hosts?&lt;br /&gt;&lt;br /&gt;By default this isn’t possible. But there’s a way to get this working, just do the following:&lt;/p&gt;&lt;p&gt;- Go to the ESXi console and press alt+F1&lt;br /&gt;- Type: unsupported&lt;br /&gt;- Enter the root password&lt;br /&gt;- At the prompt type “vi /etc/inetd.conf”&lt;br /&gt;- Look for the line that starts with “#ssh” (you can search with pressing “/”)&lt;br /&gt;- Remove the “#” (press the “x” if the cursor is on the character)&lt;br /&gt;- Save “/etc/inetd.conf” by typing “:wq!”&lt;br /&gt;- Restart the management service “/sbin/services.sh restart”&lt;/p&gt;&lt;p&gt;Done!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-6775801219617831785?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/6775801219617831785/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/activation-of-ssh-on-vmware-esxi-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6775801219617831785'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/6775801219617831785'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2009/01/activation-of-ssh-on-vmware-esxi-server.html' title='Activation of SSH on VMWare ESXi server'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-8430693174895085923</id><published>2008-12-11T13:20:00.000-08:00</published><updated>2008-12-11T13:37:06.790-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows (all)'/><title type='text'>Terminal Services Manager fails to list sessions on TS server(s) in the same domain</title><content type='html'>The symptom is that if you start Terminal Services Manager (aka. TSM) and double-click on another server of your domain in the list (to get the list of sessions on that TS server), then that server simply disappears from the server list, or just appears with a red "cancel" icon.&lt;br /&gt;&lt;br /&gt;For me the problem was solved only by starting the "Remote Registry" service (since it was stopped) on the TS server.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-8430693174895085923?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/8430693174895085923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/terminal-services-manager-fails-to-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8430693174895085923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/8430693174895085923'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/terminal-services-manager-fails-to-list.html' title='Terminal Services Manager fails to list sessions on TS server(s) in the same domain'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-4690297005828867970</id><published>2008-12-10T12:43:00.000-08:00</published><updated>2008-12-10T12:47:41.895-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Linux NFS Export / share directory to other UNIX / Linux computer</title><content type='html'>NFS (Network file system) is both a protocol and file system for accessing and sharing file systems across a computer network using UNIX and Linux. NFS v4 is used in modern Linux distributions. It offers performance improvements, mandates strong security, and introduces a stateful protocol etc.&lt;br /&gt;&lt;br /&gt;How do I export a directory with NFS?&lt;br /&gt;&lt;strong&gt;NFS server configuration&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;In order to export or share directory called /data2, you need to edit a file called /etc/exports. The file /etc/exports serves as the access control list for file systems which may be exported to NFS clients.:&lt;br /&gt;&lt;br /&gt;# vi /etc/exportsAdd config directive as follows:/data2 *(rw,sync)&lt;br /&gt;&lt;br /&gt;Each line contains an export point and a whitespace-separated list of clients allowed to mount the file system at that point. Each listed client may be immediately followed by a parenthesized, comma-separated list of export options for that client.&lt;br /&gt;&lt;br /&gt;Where,&lt;br /&gt;&lt;br /&gt;rw - Allow both read and write requests on /data2 NFS volume&lt;br /&gt;sync - Reply to requests only after the changes have been committed to stable storage&lt;br /&gt;&lt;br /&gt;Save and close the file. Restart the nfs service:# /etc/init.d/nfs restart&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NFS client configuration&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;Client computer need to mount file system using mount command or /etc/fstab file, enter:&lt;br /&gt;&lt;br /&gt;# mkdir /mnt/nfs# mount -t nfs4 nfsserver-name-or-ip:/data2 /mnt/nfs&lt;br /&gt;&lt;br /&gt;Read the man page for more configuration options:&lt;br /&gt;&lt;br /&gt;$ man exports&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-4690297005828867970?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/4690297005828867970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/linux-nfs-export-share-directory-to.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4690297005828867970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4690297005828867970'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/linux-nfs-export-share-directory-to.html' title='Linux NFS Export / share directory to other UNIX / Linux computer'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-3873730722545485379</id><published>2008-12-10T12:36:00.000-08:00</published><updated>2009-04-06T13:34:06.445-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>How to umount when the device is busy</title><content type='html'>It happens all the time doesn’t it?&lt;br /&gt;You need to unmount a CD or you want to pack away the external drive but when you try to umount it you get the dreaded “device is busy” message.&lt;br /&gt;Wouldn’t it be great if Linux actually told you what was keeping the drive busy?&lt;br /&gt;&lt;br /&gt;# umount /media/disk/&lt;br /&gt;umount: /media/disk: device is busy&lt;br /&gt;umount: /media/disk: device is busy&lt;br /&gt;&lt;br /&gt;First thing you’ll do will probably be to close down all your terminals and xterms but here’s a better way.&lt;br /&gt;You can use the fuser command to find out which process was keeping the device busy:&lt;br /&gt;&lt;br /&gt;# fuser -m /dev/sdc1/&lt;br /&gt;dev/sdc1: 538&lt;br /&gt;# ps auxw | grep 538&lt;br /&gt;johnd 538 0.4 2.7 219212 56792 ? SLl Feb11 11:25 rhythmbox&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another handy one is:&lt;br /&gt;&lt;br /&gt;umount -l /dev/sdc1&lt;br /&gt;&lt;br /&gt;This does a lazy umount which immediately detaches the drive from the filesystem, and then cleans up everything afterwards.&lt;br /&gt;This is especially handy if it’s a networked file system (NFS etc) and the network has gone down.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can also use:&lt;br /&gt;&lt;br /&gt;umount -lfr /mnt/sambamountofboxthatsshutdown&lt;br /&gt;&lt;br /&gt;l for lazyness, f for forced unmount for unreachable networked storage, r for just in case unmounting fails remount as readonly&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-3873730722545485379?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/3873730722545485379/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/how-to-umount-when-device-is-busy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3873730722545485379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/3873730722545485379'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/how-to-umount-when-device-is-busy.html' title='How to umount when the device is busy'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5009621251640435938.post-4820544155707509663</id><published>2008-12-10T12:30:00.000-08:00</published><updated>2008-12-10T12:36:20.382-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Mount an ISO file</title><content type='html'>It is convenient to mount an ISO file directly instead of burning it to a CD first.&lt;br /&gt;This recipe describes the command used to mount an ISO image on a Linux system.&lt;br /&gt;&lt;br /&gt;As a requirement, you have to be logged as root.&lt;br /&gt;&lt;br /&gt;To mount the ISO image file.iso to the mount point /mnt/test use this command:&lt;br /&gt;&lt;br /&gt;mount -o loop file.iso /mnt/test&lt;br /&gt;&lt;br /&gt;It will work for a CD or DVD ISO image.&lt;br /&gt;&lt;br /&gt;You can also specify the format of the CD:&lt;br /&gt;&lt;br /&gt;mount -o loop -t iso9660 file.iso /mnt/test&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5009621251640435938-4820544155707509663?l=tipstricksandmore.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://tipstricksandmore.blogspot.com/feeds/4820544155707509663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/mount-iso-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4820544155707509663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5009621251640435938/posts/default/4820544155707509663'/><link rel='alternate' type='text/html' href='http://tipstricksandmore.blogspot.com/2008/12/mount-iso-file.html' title='Mount an ISO file'/><author><name>Ed</name><uri>http://www.blogger.com/profile/06767545211998560057</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://3.bp.blogspot.com/_UJ9GgqoIyJ0/S4NPhmJH4eI/AAAAAAAAIcs/4HFBjL8Tp1w/S220/Edwin.jpg'/></author><thr:total>0</thr:total></entry></feed>
