<?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:blogger='http://schemas.google.com/blogger/2008' 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-4677591546455886157</id><updated>2024-10-03T17:44:17.182-04:00</updated><category term="mysql"/><category term="mount"/><category term="LVM"/><category term="Full Recovery"/><category term="Hyper-V"/><category term="PID"/><category term="Redhat"/><category term="USB"/><category term="Windows 7"/><category term="backup"/><category term="drive"/><category term="fdisk"/><category term="lvscan"/><category term="pvcreate"/><category term="shadow copy"/><category term="ssh"/><category term="GPT"/><category term="Google"/><category term="Linux Integration Services"/><category term="MX record"/><category term="Microsoft"/><category term="Network"/><category term="PDQ Deploy"/><category term="Percona"/><category term="Printers"/><category term="Putty"/><category term="Restore"/><category term="SSO"/><category term="UAC"/><category term="Volume"/><category term="Windows 2008"/><category term="access denied"/><category term="backups"/><category term="batch"/><category term="cdrom"/><category term="centrify"/><category term="centrifydc.conf"/><category term="chcon"/><category term="copy"/><category term="database"/><category term="delete"/><category term="disaster recovery"/><category term="diskpart"/><category term="dl4term"/><category term="domain controller"/><category term="elevated privileges"/><category term="email"/><category term="error"/><category term="exchange server"/><category term="file"/><category term="file-share"/><category term="firewall"/><category term="format"/><category term="hosts"/><category term="how to"/><category term="iSCSI"/><category term="incrementals"/><category term="innobackupex"/><category term="interactive"/><category term="kerberos"/><category term="keys"/><category term="linux"/><category term="log"/><category term="login"/><category term="ls -Z"/><category term="lvchange"/><category term="lvcreate"/><category term="mail"/><category term="monitoring"/><category term="mountvol"/><category term="mysqlbackup"/><category term="mysqldump"/><category term="pause"/><category term="pvscan"/><category term="record"/><category term="remote"/><category term="remove"/><category term="replace"/><category term="rsa"/><category term="samba"/><category term="script"/><category term="secure"/><category term="selinux"/><category term="semodule"/><category term="session"/><category term="single sign on"/><category term="snapshot"/><category term="tables"/><category term="troubleshooting"/><category term="vhd"/><category term="windows"/><category term="xtrabackup"/><title type='text'>Things I know and want to share</title><subtitle type='html'>Just a place for me to put down some thoughts or things I may want to recall later.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>36</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-564263466670572753</id><published>2012-09-17T10:53:00.000-04:00</published><updated>2012-09-26T13:45:47.116-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backups"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="Full Recovery"/><category scheme="http://www.blogger.com/atom/ns#" term="incrementals"/><category scheme="http://www.blogger.com/atom/ns#" term="innobackupex"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysqldump"/><category scheme="http://www.blogger.com/atom/ns#" term="Percona"/><category scheme="http://www.blogger.com/atom/ns#" term="Redhat"/><category scheme="http://www.blogger.com/atom/ns#" term="tables"/><category scheme="http://www.blogger.com/atom/ns#" term="xtrabackup"/><title type='text'>Backing up with Percona&#39;s Xtrabackup</title><content type='html'>&amp;nbsp;Percona&#39;s backup allows for full and incremental backups and it is open source. &amp;nbsp;I tried it on a Redhat 6.2 server called Redhat62 and it worked great. &amp;nbsp; I installed a new version of MySQL and did a restore using files I had backed up using MySQL Enterprise backup and to my surprise innobackupex restored the data and it worked. &amp;nbsp;The only thing I had to do was change permissions before I started MySQL.
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Here is what I did:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Create a backup user for MySQL backups.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;mysql&amp;gt;;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;CREATE USER ’bkpuser’@’localhost’ IDENTIFIED BY ’password’;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;mysql&amp;gt;;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;REVOKE ALL PRIVILEGES, GRANT OPTION FROM ’bkpuser’@&#39;localhost&#39;;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;mysql&amp;gt;;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;GRANT RELOAD, LOCK TABLES, REPLICATION CLIENT ON&amp;nbsp;*.*&amp;nbsp;TO ’bkpuser’@’localhost’;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;mysql&amp;gt;;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;FLUSH PRIVILEGES;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
To do a full backup of MySQL run this command:&lt;br /&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;b&gt;innobackupex --user=bkpuser --password=password --parallel=4 --use-memory=4G /path/to/BACKUP-DIR&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
My backup directory on Redhat62 is /storage/backups&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
innobackupex reads the my.cnf file so it knows where the MySQL data is located. &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
By Default innobackupex uses only 100MB for running the backup. &amp;nbsp;To increase the speed of the backup &amp;nbsp;you need to allocate more memory. &amp;nbsp;Set the &quot;--use-memory=&quot; to most that &amp;nbsp;you have free.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
You can increase the number of threads by using the parallel parameter.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
YOU NEED TO PREPARE THE DATA FOR RESTORE&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
After the backup is completed you need to run the &quot;--apply-log&quot; before you can restore the data. &amp;nbsp;The &quot;--apply-log&quot; replays&amp;nbsp;committed&amp;nbsp;transaction in the log files and rolls back uncommitted transactions.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;innobackupex&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;&amp;nbsp;--apply-log /path/to/BACKUP-DIR/time_stamp&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
To restore you need to run this command: &amp;nbsp;&lt;b&gt;&lt;span style=&quot;color: #1c3387;&quot;&gt;MYSQL NEEDS TO BE SHUTDOWN DURING THE RESTORE&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;b&gt;innobackupex&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #e30000;&quot;&gt;&amp;nbsp;--copy-back /path/to/BACKUP-DIR&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
I had previously had databases in the /var/lib/mysql directory with the same name. &amp;nbsp;innobackupex failed with a message. &amp;nbsp;I deleted all of the files under /var/lib/mysql and ran it again. &amp;nbsp;It completed successfully. &amp;nbsp; I guess since it is doing a full restore it doesn&#39;t write over the files that are there. &amp;nbsp;You will need to clear our all of the files in the directory to which it is restoring.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
After the restore is done run this command:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;b&gt;chown -R mysql:mysql /var/lib/mysql&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
You can do incremental backups with innobackupex. &amp;nbsp;First you need to do a Full backup and then you can run incrementals. &amp;nbsp; If you are going to use incremental backups then your Full backups you will need to have the --redo-only option added to it. &amp;nbsp;This is explained in Pecona&#39;s manual:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
Preparing an Incremental Backup with innobackupex Preparing incremental backups is a bit different than full&lt;br /&gt;
ones. This is, perhaps, the stage where more attention is needed:&lt;br /&gt;
• First, only the committed transactions must be replayed on each backup. This will put the base full backup&lt;br /&gt;
and the incremental ones altogether.&lt;br /&gt;
• Then, the uncommitted transaction must be rolled back in order to have a ready-to-use backup.&lt;br /&gt;
If you replay the commit ed transactions and rollback the uncommitted ones on the base backup, you will not be able&lt;br /&gt;
to add the incremental ones. If you do this on an incremental one, you won’t be able to add data from that moment&lt;br /&gt;
and the remaining increments.&lt;br /&gt;
Having this in mind, the procedure is very straight-forward using the --redo-only option, starting with the base&lt;br /&gt;
backup:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;b&gt;innobackupex --user=bkpuser --password=password --redo-only /storage/backups&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
To run an incremental you need to issue this command:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;b&gt;innobackupex &amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;color: #e30000;&quot;&gt;--user=bkpuser --password=password&amp;nbsp;&lt;/b&gt;&lt;b style=&quot;color: #e30000;&quot;&gt;--incremental /storage/backups --incremental-basedir&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b style=&quot;color: #e30000;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
What if you only want to restore 1 database or 1 table instead of the whole backup? &amp;nbsp;Here is what you need to do.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
Start up a second session of MySQL on the same server, but point it to your backup directory that is holding the data you want to restore.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
To start a second session:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;mysqld --basedir=/usr --user=mysql --log-error=/path/to/BACKUP-DIR --open-files-limit=4096 --pid-file=/path/to/BACKUPDIR/Time_Stamp/mysql.pid --port 3307 --datadir=/path/to/BACKUPDIR/Time_Stamp&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
Here is an example:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;mysqld --basedir=/usr &amp;nbsp;--user=mysql --log-error=/storage/backups/mysql/mysql.log --open-files-limit=4096 --pid-file=/storage/backups/mysql/2012-09-14_10-01-55/mysql.pid --port 3307 --datadir=/storage/backups/mysql/2012-09-14_10-01-55&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
After you start your second session of MySQL you can now do a MySQLdump the database or table that you want to restore.&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
To restore a database, type this:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;mysqldump -P 3307 -u bkpuser -p password databasename &amp;gt; databasename.sql&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
To restore a table, type this:&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;mysqldump -P 3307 -u bkpuser -p password databasename tablename &amp;gt; tablename.sql&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
I put this information from the following sources: Percona&#39;s xtrabackup pdf file found on their website,&lt;a href=&quot;http://www.tekovic.com/mysql-hot-backup-with-xtrabackup-on-centos&quot;&gt;http://www.tekovic.com/mysql-hot-backup-with-xtrabackup-on-centos&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://steveswanson.wordpress.com/2009/04/21/exporting-and-importing-an-individual-mysql-table/&quot; style=&quot;text-align: -webkit-auto;&quot;&gt;http://steveswanson.wordpress.com/2009/04/21/exporting-and-importing-an-individual-mysql-table/&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;font-family: Tahoma; text-align: -webkit-auto;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/564263466670572753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/564263466670572753' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/564263466670572753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/564263466670572753'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/09/backup-allows-for-full-and-incremental.html' title='Backing up with Percona&#39;s Xtrabackup'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-2218848233547923936</id><published>2012-06-15T11:34:00.002-04:00</published><updated>2013-11-21T13:35:31.914-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="access denied"/><category scheme="http://www.blogger.com/atom/ns#" term="batch"/><category scheme="http://www.blogger.com/atom/ns#" term="copy"/><category scheme="http://www.blogger.com/atom/ns#" term="file"/><category scheme="http://www.blogger.com/atom/ns#" term="hosts"/><category scheme="http://www.blogger.com/atom/ns#" term="PDQ Deploy"/><category scheme="http://www.blogger.com/atom/ns#" term="remote"/><category scheme="http://www.blogger.com/atom/ns#" term="replace"/><category scheme="http://www.blogger.com/atom/ns#" term="UAC"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>Remotely copy hosts file to Windows 7</title><content type='html'>&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;I have users that use laptops to work remote. &amp;nbsp;Unfortunately, when they VPN into to our server they can route, but they have problems with DNS. &amp;nbsp; So for these users I have a hosts file setup with the servers that they need. &amp;nbsp; Normally, I would just go to their C drive&amp;nbsp;&lt;a href=&quot;file://computername/c$&quot;&gt;\\computername\c$&lt;/a&gt;&amp;nbsp; and drill down and manually replace it. &amp;nbsp; That works fine, but since I started using&amp;nbsp;&lt;a href=&quot;http://http//www.adminarsenal.com/&quot;&gt;PDQ Deploy&lt;/a&gt;&amp;nbsp;- From Admin Arsenal (This is a super Great application - I strongly recommend it) I wanted to see if I could deploy the hosts file to my Windows 7 Professional laptops using a batch file.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I ran into all kinds of access denied problems. &amp;nbsp;Everywhere I searched on the&amp;nbsp;Internet&amp;nbsp;for help I ran into you can&#39;t it is a security feature in Windows 7. &amp;nbsp; I tried many things that I found online, but with no success. &amp;nbsp;That was until I ran into this post:&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/10724591/how-to-remote-execute-an-elevated-remote-script-in-powershell&quot;&gt;http://stackoverflow.com/questions/10724591/how-to-remote-execute-an-elevated-remote-script-in-powershell&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
To be honest, I didn&#39;t know what &quot;start-process&quot; was, but since I have googled it. &amp;nbsp;After putting together my script, I know there more&amp;nbsp;efficient&amp;nbsp;ways to write this script, but for a quick batch file that is easy to follow this is what I wrote.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;start-process cmd.exe -verb runas /env /user:username@domainname.com&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo y |copy &quot;\\servername\apps\misc\Windows 7 hosts file\hosts&quot; C:\windows\temp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo y |copy &quot;\\servername\apps\misc\Windows 7 hosts file\hosts.orig&quot; C:\windows\temp&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo y |copy C:\windows\temp\hosts C:\windows\system32\drivers\etc\hosts&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;echo y |copy C:\windows\temp\hosts.orig&amp;nbsp;&lt;a href=&quot;file:///C:/windows/system32/drivers/etc/hosts.orig&quot;&gt;C:\windows\system32\drivers\etc\hosts.orig&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Let me explain the script a little bit. &amp;nbsp; I didn&#39;t test, but maybe I could have copied from the network share to&amp;nbsp;&lt;a href=&quot;file:///C:/windows/system32/drivers/etc&quot;&gt;C:\windows\system32\drivers\etc&lt;/a&gt;&amp;nbsp;directly, but I remember getting an error about copying from a network location, so I decided to copy to the temp directory on the computer and then copy over the original hosts file under the etc folder. &amp;nbsp; Please experiment or write better code or show me how you would have done this. &amp;nbsp; &amp;nbsp;Also, I have a copy of an original windows 7 hosts file that I copy into place (the etc folder) so that if I ever need to change it or the user needs to change it while on the road it is there. &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
The &quot;echo y&quot; just answers the questions that I do want to overwrite the original file. &amp;nbsp;I named my batch file copyhost.bat&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Now that I have the script written Let&#39;s turn to PDQ Deploy and set it up to depoly the hosts file.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgknffcgq0EmG2c9yEB5AlhNJTHhbc4B_yDq4XeRR2n206hcswNZfCH_EcTPZa2_qLqDO3bx9RM2N5cBc0vkhmHxes-ySuek5H9FUEyxpeIIbxX6vheXoJynyZwO0uFEe0Th1RUZEeePkSp/s1600/PDQ+Deploy+screenshot.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgknffcgq0EmG2c9yEB5AlhNJTHhbc4B_yDq4XeRR2n206hcswNZfCH_EcTPZa2_qLqDO3bx9RM2N5cBc0vkhmHxes-ySuek5H9FUEyxpeIIbxX6vheXoJynyZwO0uFEe0Th1RUZEeePkSp/s400/PDQ+Deploy+screenshot.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
If you are already familiar with PDQ Deploy you know how easy it is to setup deploying files. &amp;nbsp; I just choose my batch file and include the entire directory which includes &quot;copyhost.bat&quot;, &quot;hosts&quot;, &quot;hosts.orig&quot; &amp;nbsp;and that it. &amp;nbsp;I save it and the I just deploy it by choosing deploy and then choosing which computers I want to deploy this to. &amp;nbsp;Within seconds I&#39;m done and I have a status report saying &quot;successful&quot;.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Let me know if you figured out another way to do this.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/2218848233547923936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/2218848233547923936' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/2218848233547923936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/2218848233547923936'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/06/i-have-users-that-use-laptops-to-work.html' title='Remotely copy hosts file to Windows 7'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgknffcgq0EmG2c9yEB5AlhNJTHhbc4B_yDq4XeRR2n206hcswNZfCH_EcTPZa2_qLqDO3bx9RM2N5cBc0vkhmHxes-ySuek5H9FUEyxpeIIbxX6vheXoJynyZwO0uFEe0Th1RUZEeePkSp/s72-c/PDQ+Deploy+screenshot.jpg" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-3543409051042057505</id><published>2012-06-05T16:57:00.000-04:00</published><updated>2012-06-06T09:02:38.136-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="error"/><category scheme="http://www.blogger.com/atom/ns#" term="Full Recovery"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysqlbackup"/><category scheme="http://www.blogger.com/atom/ns#" term="PID"/><category scheme="http://www.blogger.com/atom/ns#" term="Restore"/><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>Backup and Restore using mysqlbackup from MySQL Enterprise</title><content type='html'>&lt;br /&gt;
&lt;div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;All this was done in a lab. &amp;nbsp;Don&#39;t do this on a production server. &amp;nbsp;There is my warning and disclaimer.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;I did a full backup of my MySQL instance which resides under /var/lib/mysql. &amp;nbsp; I then delete all the data, all the ib* files, and mysql. &amp;nbsp; After deleting those files I ran a full recovers. &amp;nbsp;Here is how I did it.&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;b&gt;&lt;u&gt;Full Backup&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Run the following command to do a full backup. &amp;nbsp; What this will do is backup everything in /var/lib/mysql and with the backup-and-apply-log it will go back and grab anything that has changed during the backup. &amp;nbsp; Also, that argument prepares the backup for a restore.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;./mysqlbackup --user=root --password&amp;nbsp; --backup-dir=/storage/backups backup-and-apply-log&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;You need to specify a backup directory that is empty of mysqlbackup will complain.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;When the backup completes you will have a message at the end telling you that it was successful.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;I cd to the location of my backup and everything looked like it was there. &amp;nbsp; I ran a du -sh * and results looked the same.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;b&gt;&lt;u&gt;Full Restore&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;./mysqlbackup --defaults-file=/storage/backups/backup-my.cnf --datadir=/var/lib/mysql --backup-dir=/storage/backups copy-back&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Under &quot;--default-file=&quot; I originally put /etc/my.cnf thinking that I should use the my.cnf file I created. &amp;nbsp;However, part of the backup creates a &quot;backup-my.cnf&quot; with a few lines in it. &amp;nbsp;You should use this file for the restore or you could put these lines in your restore command. &amp;nbsp;It is much easier to just use the file that was created.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;I started mysql /etc/init.d/mysql start, but it failed with the PID error. &amp;nbsp; I looked at my restored directory and noticed many of the files was owned by root, so I ran this command on the mysql directory.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;chown -R mysql:mysql mysql&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Now MySQL starts and every thing looks great. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/3543409051042057505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/3543409051042057505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/3543409051042057505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/3543409051042057505'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/06/backup-and-restore-using-mysqlbackup.html' title='Backup and Restore using mysqlbackup from MySQL Enterprise'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-5697498001128997756</id><published>2012-05-24T15:02:00.002-04:00</published><updated>2012-06-13T13:03:18.200-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centrify"/><category scheme="http://www.blogger.com/atom/ns#" term="centrifydc.conf"/><category scheme="http://www.blogger.com/atom/ns#" term="file-share"/><category scheme="http://www.blogger.com/atom/ns#" term="kerberos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="samba"/><category scheme="http://www.blogger.com/atom/ns#" term="single sign on"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="SSO"/><category scheme="http://www.blogger.com/atom/ns#" term="windows"/><title type='text'>Instead of Samba use Centrify</title><content type='html'>I&#39;ve used samba for a long time and love it, but I ran into a product called Centrify that is so easy to setup and use for kerberos authentication against a Windows Active Directory that I don&#39;t think I&#39;m going back to samba.&lt;br /&gt;
&lt;br /&gt;
Here is a very brief explanation of how I set it up on my Linux Server.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Download Centrify Suite and the centrify samba package.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;1. Uninstall your current ssh and samba.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;2. Login as &quot;root&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;3. Extract the files.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;4. Run &quot;install-express.sh&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;5. Answer all the questions.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;6. &amp;nbsp;Reboot.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;7. &amp;nbsp;Install the samba packages.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Make the following changes in /etc/centrify/centrifydc.conf file.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Change the shell from /bin/bash to /bin/ksh&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Change the auto.schema.primary.gid: 100&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Change the&amp;nbsp;auto.schema.private.group: false&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Create a group.ovr file in /etc/centrify/ &amp;nbsp;Add the following line:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;+domain users:users:::&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/5697498001128997756/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/5697498001128997756' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/5697498001128997756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/5697498001128997756'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/05/instead-of-samba-use-centrify.html' title='Instead of Samba use Centrify'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-1912131135327271739</id><published>2012-05-24T14:55:00.001-04:00</published><updated>2012-05-24T14:55:30.961-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chcon"/><category scheme="http://www.blogger.com/atom/ns#" term="firewall"/><category scheme="http://www.blogger.com/atom/ns#" term="ls -Z"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="PID"/><category scheme="http://www.blogger.com/atom/ns#" term="selinux"/><category scheme="http://www.blogger.com/atom/ns#" term="semodule"/><title type='text'>Move MySQL to a different Directory</title><content type='html'>&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Steps I use to install MySQL to a different directory. &amp;nbsp; The truth is I just use the rpm and let it install in the default /var/lib/mysql on Redhat and then I do the following to move it to another directory.&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;After the install I setup my my.cnf file and then start MySQL. &amp;nbsp; I don&#39;t think it is necessary to start it, but I do so that the ib files can be created. &amp;nbsp;I then stop MySQL. &amp;nbsp; I cd to /var/lib and move the mysql directory to wherever I want. &amp;nbsp;In my case I move it to my /data directory which is on a different filesystem.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;So I issued this command mv mysql /data&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Then I create a symbolic link to my new mysql location by using this command:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;ln -s /data/mysql mysql&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Now under /var/lib/ I have a symbolic link that points to /data/mysql. &amp;nbsp; If I cd to /var/lib/mysql I will be in /data/mysql.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;One reason I do this is I don&#39;t like to have data in my root partition in case I fill it up. &amp;nbsp;Also, in my setup I don&#39;t have enough room in my root partition to host mysql.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;After making this change I started to get this error:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;starting mysql.the server quit without updating pid file failed. &amp;nbsp; I&#39;ve seen this error before and it is usually a permission issue. &amp;nbsp; I checked my permissions and the permissions were fine. &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;The problem is selinux the iptables or firewall.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;To check run this command:&lt;br /&gt;
semodule -l&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Check and see if mysql is in the list?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Now temporarily disable selinux with this command:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;echo &amp;gt; 0 /selinux/enforce&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;or&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;service iptables stop&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Now try to start MySQL. &amp;nbsp;Did it start? &amp;nbsp;Mine Did.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Now you know the problem is with selinux. &amp;nbsp;You have a few chooses:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;1. you can disable selinux by adding SELINUX=disabled in /etc/selinux/config. &amp;nbsp;The lease secure, but fastest fix.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;2. You can disable the mysql module in selinux. &amp;nbsp;To disable mysql run this command:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;semodule -v -d mysql &amp;nbsp;or semodule --disable=mysql&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;To re-enable module run this command:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;semodule -v -e mysql or semodule --enable=mysql&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;The &quot;-v&quot; is verbose and is not necessary.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;3. You can keep it enabled, but follow the information in this link:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;a href=&quot;http://serverfault.com/questions/177061/how-do-i-assign-an-selinux-label-to-a-symlink-with-semanage-so-it-persists-after&quot;&gt;http://serverfault.com/questions/177061/how-do-i-assign-an-selinux-label-to-a-symlink-with-semanage-so-it-persists-after&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/1912131135327271739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/1912131135327271739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1912131135327271739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1912131135327271739'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/05/move-mysql-to-different-directory.html' title='Move MySQL to a different Directory'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-4389715427044381836</id><published>2012-05-22T12:43:00.001-04:00</published><updated>2012-05-23T09:34:32.290-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iSCSI"/><category scheme="http://www.blogger.com/atom/ns#" term="lvchange"/><category scheme="http://www.blogger.com/atom/ns#" term="LVM"/><category scheme="http://www.blogger.com/atom/ns#" term="lvscan"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><title type='text'>LVM INACTIVE</title><content type='html'>After a reboot I noticed that my iSCSI LVM was missing. &amp;nbsp; I did an lvscan and it was listed, but as INACTIVE. &lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I ran lvchange -a y /dev/vg_nobakcup/lg_nobackup and the logical volume became active again.&lt;/div&gt;
&lt;div&gt;
I ran a lvscan to verify it was active. &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
I then mounted the volume.&lt;/div&gt;
&lt;div&gt;
Upon reboot I had the same problem, so I added lvchange -a y /dev/vg_nobackup/lg_nobackup and rebooted again. &amp;nbsp; This time the volume was active and mounted. &amp;nbsp;PROBLEM SOLVED.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
I believe the issue is this is an iSCSI Volume connecting to Microsoft&#39;s iSCSI Storage server. &amp;nbsp;I believe the connection just times out before connecting. &amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/4389715427044381836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/4389715427044381836' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4389715427044381836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4389715427044381836'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/05/after-reboot-i-noticed-that-my-iscsi.html' title='LVM INACTIVE'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-1615065680353183132</id><published>2012-05-22T09:34:00.001-04:00</published><updated>2012-05-22T09:51:53.290-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cdrom"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux Integration Services"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="Redhat"/><title type='text'>Installing Redhat 6.2 &amp; Linux Integration Services on Hyper-V</title><content type='html'>&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;I installed Redhat 6.2 today. &amp;nbsp;I added Linux integration services 3.2 and after I added the service I no longer had a cdrom drive or my networks. &amp;nbsp; So this time I&#39;m trying a little different approach. &amp;nbsp;I believe this is what I did the first time and it worked.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Before you install Redhat 6.2 add a legacy network card to your settings. &amp;nbsp; Redhat will recognized the legacy network adapter, but not the normal network adapter.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Once you have configured Redhat and it has rebooted you will have a desktop, but you won&#39;t be able to do anything with the desktop because you don&#39;t have mouse or keyboard control. &amp;nbsp;You need to install the Linux Integration Services. &amp;nbsp; Press &quot;CTRL+ALT+F2&quot; at the same time. &amp;nbsp; This will will give you a terminal window. &amp;nbsp;Login as root.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;In Hyper-V go to Media under Virtual Machine Connection and attach the iso file as a DVD drive.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Once it is attached use the mount command on Linux to mount the DVD.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;mount /dev/cdrom /media&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;cd to /media&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;run install.sh&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;reboot&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;After the reboot the clock will work, the mouse will work, the keyboard will work, the network adapter will work. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;Now you ready to use your new Redhat 6.2.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;After Installing Linux Integration Services 3.2 you will no longer have a cdrom.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;You will need to run this command:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;span style=&quot;border-collapse: separate; border-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Arial, Verdana, Tahoma, sans-serif; font-size: 11px; line-height: 16px;&quot;&gt;insmod /lib/modules/$(uname -r)/kernel/drivers/ata/ata_piix.ko&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Segoe UI&#39;, Arial, Verdana, Tahoma, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 11px; line-height: 16px;&quot;&gt;for the cdrom to mount.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/1615065680353183132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/1615065680353183132' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1615065680353183132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1615065680353183132'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/05/installing-redhat-62-linux-integration.html' title='Installing Redhat 6.2 &amp; Linux Integration Services on Hyper-V'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-5171382636958201783</id><published>2012-05-16T16:40:00.001-04:00</published><updated>2012-05-22T09:53:24.431-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="fdisk"/><category scheme="http://www.blogger.com/atom/ns#" term="lvcreate"/><category scheme="http://www.blogger.com/atom/ns#" term="LVM"/><category scheme="http://www.blogger.com/atom/ns#" term="lvscan"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="pvcreate"/><category scheme="http://www.blogger.com/atom/ns#" term="pvscan"/><title type='text'>Adding LVM from command line</title><content type='html'>&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;This is how you setup a Physical Disk, Volume Group and a Logical Volume using the command line in Linux.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;This example will be from a Redhat Enterprise 6.2 Installation.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;So we will create a Physical Disk, Physical Volume, then a Volume Group, then a Logical Volume and then mount the volume. &amp;nbsp;Type only what is in&amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;&quot;red&quot;&lt;/span&gt;.&lt;br /&gt;
&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Step #1 - Find out what device your new hard drive is assigned.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;fdisk -l&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You should see all your disk including the one that you just added. &amp;nbsp;Here is the one that I just added. &amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Disk /dev/sdb: 343.6 GB, 343597383680 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 41773 cylinders&lt;br /&gt;
Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
Sector size (logical/physical): 512 bytes / 512 bytes&lt;br /&gt;
I/O size (minimum/optimal): 512 bytes / 512 bytes&lt;br /&gt;
Disk identifier: 0x00000000&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; Device Boot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Start&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Blocks&amp;nbsp;&amp;nbsp; Id&amp;nbsp; System&lt;br /&gt;
/dev/sdb1&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; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 41774&amp;nbsp;&amp;nbsp; 335544319+&amp;nbsp; 8e&amp;nbsp; Linux LVM&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Our new device is called &quot;/dev/sdb1&quot;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Step #2 - Partition the disk with fdisk. (Create Physical Disk)&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;fdisk /dev/sdb1&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;m&lt;/span&gt;&amp;nbsp;- to see all the command options&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;n&lt;/span&gt;&amp;nbsp;- to add the new partition&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;p&lt;/span&gt;&amp;nbsp;- to make it a primary partition&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;1&lt;/span&gt;&amp;nbsp;- to make it the 1st partition&lt;/div&gt;
&lt;div&gt;
First cylinder (1-41773, default 1): &amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;PRESS ENTER&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
Last cylinder, +cylinders or +size{K,M,G} (1-41773, default 41773):&amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;PRESS ENTER&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
***NOW WE NEED change the partition&#39;s system id&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;t&lt;/span&gt;&amp;nbsp;- to change the partition&#39;s system type&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;L&lt;/span&gt;&amp;nbsp;- to list all the system type&lt;/div&gt;
&lt;div&gt;
FOR LVM type 8e&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;8e&lt;/span&gt;&amp;nbsp;- for LVM&amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;PRESS ENTER&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;w&lt;/span&gt;&amp;nbsp;- to write table to disk and exit.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STEP #3 - Create a Physical Volume with pvcreate.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;pvscan&lt;/span&gt;&amp;nbsp;- will show you the physical volumes.&lt;/div&gt;
&lt;div&gt;
PV /dev/sda2&amp;nbsp;&amp;nbsp; VG vg_redhat62&amp;nbsp;&amp;nbsp; lvm2 [69.51 GiB / 0&amp;nbsp;&amp;nbsp;&amp;nbsp; free]&lt;br /&gt;
&amp;nbsp; Total: 1 [69.51 GiB] / in use: 1 [69.51 GiB] / in no VG: 0 [0&amp;nbsp;&amp;nbsp; ]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
As you can see our new physical disk does not show up. &amp;nbsp;It will show up after we create a physical volume.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;pvcreate /dev/sdb1&lt;/span&gt;&amp;nbsp;- creates the physical volume.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;Writing physical volume data to disk &quot;/dev/sdb1&quot;&lt;br /&gt;
&amp;nbsp; Physical volume &quot;/dev/sdb1&quot; successfully created&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;pvscan&lt;/span&gt;&amp;nbsp;- will now show our new physical volume&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;PV /dev/sda2&amp;nbsp;&amp;nbsp; VG vg_redhat62&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lvm2 [69.51 GiB / 0&amp;nbsp;&amp;nbsp;&amp;nbsp; free]&lt;br /&gt;
&amp;nbsp; PV /dev/sdb1&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lvm2 [320.00 GiB]&lt;br /&gt;
&amp;nbsp; Total: 2 [389.51 GiB] / in use: 1 [69.51 GiB] / in no VG: 1 [320.00 GiB]&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STEP #4 - Create the Volume Group&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;vgcreate vg_data /dev/sdb1&lt;/span&gt;&amp;nbsp;- This creates the Volume Group. &amp;nbsp;give it a name and point it to your physical disk.&lt;br /&gt;
&amp;nbsp; Volume group &quot;vg_data&quot; successfully created&lt;/div&gt;
&lt;div&gt;
You can run either vgscan or vgdisplay to see your new Volume Group.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STEP #5 - Create a Logical Volume&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;lvcreate -l 100%FREE -n lg_data vg_data&lt;/span&gt;&amp;nbsp;- This creates the Logical Volume.&lt;br /&gt;
&amp;nbsp; Logical volume &quot;lg_data&quot; created&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;border-collapse: separate; border-spacing: 0px; font-family: Tahoma;&quot;&gt;The &quot;-l 100%FREE&quot; mean to use 100% of available space and &quot;-n&quot; is for naming. &amp;nbsp;So I called the new Logical Volume &quot;lg_data&quot; and pointed it to my new Volume Group &quot;vg_data&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
To check on the new Logical Volume run either lvscan or lvdisplay.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;lvscan&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; ACTIVE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/dev/vg_data/lg_data&#39; [320.00 GiB] inherit&lt;br /&gt;
&amp;nbsp; ACTIVE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/dev/vg_redhat62/lv_root&#39; [33.14 GiB] inherit&lt;br /&gt;
&amp;nbsp; ACTIVE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/dev/vg_redhat62/lv_home&#39; [28.67 GiB] inherit&lt;br /&gt;
&amp;nbsp; ACTIVE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &#39;/dev/vg_redhat62/lv_swap&#39; [7.70 GiB] inherit&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STEP #6 - Format the new Logical Volume&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;mkfs.ext4 -m 0 /dev/vg_data/lg_data&amp;nbsp;&lt;/span&gt;- File type is ext4 the &quot;-m 0&quot; don&#39;t reserve disk space for superuser. It save 5%&lt;br /&gt;
mke2fs 1.41.12 (17-May-2010)&lt;br /&gt;
Filesystem label=&lt;br /&gt;
OS type: Linux&lt;br /&gt;
Block size=4096 (log=2)&lt;br /&gt;
Fragment size=4096 (log=2)&lt;br /&gt;
Stride=0 blocks, Stripe width=0 blocks&lt;br /&gt;
20971520 inodes, 83885056 blocks&lt;br /&gt;
0 blocks (0.00%) reserved for the super user&lt;br /&gt;
First data block=0&lt;br /&gt;
Maximum filesystem blocks=4294967296&lt;br /&gt;
2560 block groups&lt;br /&gt;
32768 blocks per group, 32768 fragments per group&lt;br /&gt;
8192 inodes per group&lt;br /&gt;
Superblock backups stored on blocks:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968&lt;br /&gt;
&lt;br /&gt;
Writing inode tables: done&lt;br /&gt;
Creating journal (32768 blocks): done&lt;br /&gt;
Writing superblocks and filesystem accounting information: done&lt;br /&gt;
&lt;br /&gt;
This filesystem will be automatically checked every 32 mounts or&lt;br /&gt;
180 days, whichever comes first.&amp;nbsp; Use tune2fs -c or -i to override.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
STEP #7 - Mount the Logical Volume&lt;/div&gt;
&lt;div&gt;
Create a directory that you want to mount the volume to.&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;mkdir data&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;mount /dev/vg_data/lg_data /data&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #e30000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
These steps created a physical disk, a physical volume, a Volume group, a Logical volume, formatted the volume and mounted it.&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;&lt;span style=&quot;color: #e30000;&quot;&gt;df -h&lt;/span&gt;&lt;br /&gt;
Filesystem&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Size&amp;nbsp; Used Avail Use% Mounted on&lt;br /&gt;
/dev/mapper/vg_redhat62-lv_root&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33G&amp;nbsp; 2.5G&amp;nbsp;&amp;nbsp; 29G&amp;nbsp;&amp;nbsp; 9% /&lt;br /&gt;
tmpfs&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;&amp;nbsp; 2.8G&amp;nbsp; 272K&amp;nbsp; 2.8G&amp;nbsp;&amp;nbsp; 1% /dev/shm&lt;br /&gt;
/dev/sda1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 485M&amp;nbsp;&amp;nbsp; 53M&amp;nbsp; 407M&amp;nbsp; 12% /boot&lt;br /&gt;
/dev/mapper/vg_redhat62-lv_home&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 29G&amp;nbsp; 174M&amp;nbsp;&amp;nbsp; 27G&amp;nbsp;&amp;nbsp; 1% /home&lt;br /&gt;
/dev/mapper/vg_data-lg_data&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 315G&amp;nbsp; 195M&amp;nbsp; 299G&amp;nbsp;&amp;nbsp; 1% /data&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
As you can see are new LVM is listed last and is mounted. &amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/5171382636958201783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/5171382636958201783' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/5171382636958201783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/5171382636958201783'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/05/adding-lvm-from-command-line.html' title='Adding LVM from command line'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-8448401258935468376</id><published>2012-04-26T18:42:00.004-04:00</published><updated>2012-05-22T10:00:55.325-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dl4term"/><category scheme="http://www.blogger.com/atom/ns#" term="keys"/><category scheme="http://www.blogger.com/atom/ns#" term="login"/><category scheme="http://www.blogger.com/atom/ns#" term="Putty"/><category scheme="http://www.blogger.com/atom/ns#" term="rsa"/><category scheme="http://www.blogger.com/atom/ns#" term="secure"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><title type='text'>Use secure keys to login automatically from windows</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Using Putty login as the user you want to create the key.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;type ssh-keygen –t rsa.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP5na0R7vm82LS1JLykE4AtP5Xjbnd9i8i_q81kQsP8tcmzhgcElGkb-nXLmWWflQ9N_KgBv3kyT-IkyI9gQpaNp_g0ihK8zjVpZcvF-2MUMQ0kQ66SI_v1gpf8eYDHDNkWMGbafxW-grg/s1600/ssh-keygen.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;289&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP5na0R7vm82LS1JLykE4AtP5Xjbnd9i8i_q81kQsP8tcmzhgcElGkb-nXLmWWflQ9N_KgBv3kyT-IkyI9gQpaNp_g0ihK8zjVpZcvF-2MUMQ0kQ66SI_v1gpf8eYDHDNkWMGbafxW-grg/s640/ssh-keygen.jpg&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;3.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Now this will create two files id_rsa and id_rsa.pub under ~/.ssh&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;4.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Now copy the id_rsa file (Private Key) to your document directory on your windows computer.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;5.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Use the Putty Key Generator program (right click on putty) that comes with Putty to import this file. (See step 6).&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXbwkQM25GcUmGp58woSX4BRBOzuPDbZuFHhN2y_jUb0aoarplSoZ8_oYKlZg9wMPRs71nggqQa5gpbQXJZpumS62jD1sK1YcmhHOjPs26jLlzF5tiPI5PGjU2iKED9uvWk_FqEMP1aJq0/s1600/rightclick-putty.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXbwkQM25GcUmGp58woSX4BRBOzuPDbZuFHhN2y_jUb0aoarplSoZ8_oYKlZg9wMPRs71nggqQa5gpbQXJZpumS62jD1sK1YcmhHOjPs26jLlzF5tiPI5PGjU2iKED9uvWk_FqEMP1aJq0/s1600/rightclick-putty.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;6.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;In the Putty Key Generator program click “Conversions”, then “import key” and choose the file id_rsa that &amp;nbsp;is in your document directory from step 4.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;7.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;This is what it will look like.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaV_20Vpn6TqGu9d8Q1iHeL8PTf0cGAT30KmjxTqPyVfSi8FDADwBjNzOj1pevFPiIBNxBhj2Xpb1EcFZj6PRFJMKZB0shg69PvxBCsySAEGvwmYHxce2p-v9x2xj2OzeM1FdjouEDyzPH/s1600/Putty+Key+Generator.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;386&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhaV_20Vpn6TqGu9d8Q1iHeL8PTf0cGAT30KmjxTqPyVfSi8FDADwBjNzOj1pevFPiIBNxBhj2Xpb1EcFZj6PRFJMKZB0shg69PvxBCsySAEGvwmYHxce2p-v9x2xj2OzeM1FdjouEDyzPH/s400/Putty+Key+Generator.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;8.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; Now copy the entire content of the big red box and paste it into a file in notepad, then save the file as “PuttyKey.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;9.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Copy the new file “PuttyKey” to the user’s home/.ssh directory on the Linux Server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;10.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;From the user’s home/.ssh directory on the Linux Server run this command. &amp;nbsp;“cat PuttyKey &amp;gt; authorized_keys”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;11.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Change permission on authorized_keys to 644. &amp;nbsp;“chmod 644 authorized_keys”&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;Now let’s get dl4term to use the Identity keys.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;1.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Open up dl4term.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;2.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Go to scripting and create a new script with these settings:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitRbcIBH-bNVXgVbbsGPXLH8Aj0hgym4H11EZl50ljM1WbBogWYYp9maDawjRwTQur173kR-sj_FewkHy_PxlIPXVGw5dWGmIzSjyX2q0ICKjTXqXROzamaiRMN5xsrRASsiJ6QgAqwlXK/s1600/dl4term+script.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitRbcIBH-bNVXgVbbsGPXLH8Aj0hgym4H11EZl50ljM1WbBogWYYp9maDawjRwTQur173kR-sj_FewkHy_PxlIPXVGw5dWGmIzSjyX2q0ICKjTXqXROzamaiRMN5xsrRASsiJ6QgAqwlXK/s400/dl4term+script.jpg&quot; width=&quot;388&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;3.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; Now click on SSH Options and browse to the id_rsa file that you saved on your computer in step 4&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU7aHRLdvFurlq0mTnIays6suFwzM-J3YFUjheaXJ1lTzH4thm-NfP63AzPIGXi0l7WM8dDjxUJiMl8CUi54NURH7ffmLJs9jLVnpw8J_aKeA-hiaKraD-7KW1wWiLhm0v5fPuizxhVSpA/s1600/SSH+Option.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU7aHRLdvFurlq0mTnIays6suFwzM-J3YFUjheaXJ1lTzH4thm-NfP63AzPIGXi0l7WM8dDjxUJiMl8CUi54NURH7ffmLJs9jLVnpw8J_aKeA-hiaKraD-7KW1wWiLhm0v5fPuizxhVSpA/s400/SSH+Option.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;4.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Give the script a name. &amp;nbsp;I called mine Login-SSH, now click “Save Script”.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;5.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Right click on the dl4term icon and choose properties.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;6.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Next to the last double quotes type in the name of the script you created.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikio4ORM8CnhA4W6XZYfz_uqxUFybWSsSwCx6waeLYKQf0ochXP1LTClPyfNRw06FCogBj3ijzOe_f44oJ1edj8mgrSI3HydCuDQCLzepAI-AUBIWhGKHocBcDfg6ovX6bdqVTUFqhs9bj/s1600/dl4term+properties.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikio4ORM8CnhA4W6XZYfz_uqxUFybWSsSwCx6waeLYKQf0ochXP1LTClPyfNRw06FCogBj3ijzOe_f44oJ1edj8mgrSI3HydCuDQCLzepAI-AUBIWhGKHocBcDfg6ovX6bdqVTUFqhs9bj/s400/dl4term+properties.jpg&quot; width=&quot;276&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;7.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Now when you double click on dl4term it will automatically log you in.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;-Jeff&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #1f497d;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/8448401258935468376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/8448401258935468376' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/8448401258935468376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/8448401258935468376'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/04/use-secure-keys-to-login-automatically.html' title='Use secure keys to login automatically from windows'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjP5na0R7vm82LS1JLykE4AtP5Xjbnd9i8i_q81kQsP8tcmzhgcElGkb-nXLmWWflQ9N_KgBv3kyT-IkyI9gQpaNp_g0ihK8zjVpZcvF-2MUMQ0kQ66SI_v1gpf8eYDHDNkWMGbafxW-grg/s72-c/ssh-keygen.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-1516466232739342319</id><published>2012-02-24T11:19:00.001-05:00</published><updated>2012-02-24T11:19:21.041-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="delete"/><category scheme="http://www.blogger.com/atom/ns#" term="elevated privileges"/><category scheme="http://www.blogger.com/atom/ns#" term="Network"/><category scheme="http://www.blogger.com/atom/ns#" term="Printers"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 7"/><title type='text'>Delete Network printer</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
I finally found out how to delete network printers in
windows 7.&amp;nbsp; One way is to login as
administrator’s privileges’.&amp;nbsp; That is too
easy.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
I wanted to be able to do it from the command prompt and
logged in as a normal user.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here is how you do it:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
1&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;Open up a command prompt with elevated
privileges.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;mso-list: l0 level1 lfo1; text-indent: -.25in;&quot;&gt;
2&lt;span style=&quot;font-size: 7pt;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;From the command prompt enter this command and
put the name of the printer you want to delete.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&quot;rundll32 printui.dll PrintUIEntry /dn
/n\\printerservername\printername&quot; &lt;br /&gt;
remove the quotes&lt;br /&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/1516466232739342319/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/1516466232739342319' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1516466232739342319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1516466232739342319'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2012/02/delete-network-printer.html' title='Delete Network printer'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-7624247279483411490</id><published>2011-08-12T10:13:00.001-04:00</published><updated>2012-05-22T09:58:05.712-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="disaster recovery"/><category scheme="http://www.blogger.com/atom/ns#" term="email"/><category scheme="http://www.blogger.com/atom/ns#" term="exchange server"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="mail"/><category scheme="http://www.blogger.com/atom/ns#" term="MX record"/><title type='text'>Use Google Apps for dual Deployment and Disaster Recover.</title><content type='html'>I have setup our Exchange Server, DNS Servers and Google Apps to Dual Deploy our email and to act as a secondary mail server. &amp;nbsp; In my opinion the best solution possible.&lt;br /&gt;
&lt;br /&gt;
I looked at Google Apps before and didn&#39;t really see the potential.&amp;nbsp; Then my son in-law told me that you could use it and use your own domain with it and that got be thinking about the potential.&amp;nbsp; This is incredible.&amp;nbsp; You can have up to 50 users and each user can have 7 Gigs of space for emails.&amp;nbsp; That is more than I allow on our Exchange server.&lt;br /&gt;
&lt;br /&gt;
Although I&#39;m a big fan of MS Exchange I thought that maybe I could use Google Apps as a backup email in case Exchange fails.&amp;nbsp; I already have 1 Disaster Recovery solution in place.&amp;nbsp; I&#39;m using Double-Take at a remote site to replicate our Exchange server.&amp;nbsp; Some would fill this is enough, but with Google Apps I have a complete solutions.&lt;br /&gt;
&lt;br /&gt;
Here is what Google Apps offers me:&lt;br /&gt;
&lt;br /&gt;
When our Exchange Server goes down and it does.&amp;nbsp; I don&#39;t have to fail over to the Disaster Recovery Site immediately.&amp;nbsp; Google Apps gives me time since the email will continue to flow to Google Apps we can continue to do business as usual.&amp;nbsp; I then have time to determine how serious the problem is, how long the Exchange server will be down and if we should fail over to our Exchange server at the Disaster Recovery Site.&lt;br /&gt;
&lt;br /&gt;
I have a place for all the users email to be autoachive.&amp;nbsp; If they delete something on the Exchange server they can retrieve it on Google Server.&lt;br /&gt;
&lt;br /&gt;
Here is how you setup Google Apps to Act as a Secondary email server and as an archive server.&lt;br /&gt;
&lt;br /&gt;
1. You need to setup a Google Apps Account.&amp;nbsp; Choose the Standard Account if you have less than 50 users.&amp;nbsp; http://www.google.com/apps/intl/en/group/index.html&lt;br /&gt;
2. Once you enter your domain name or purchase the domain name then you need to verify that you are the administrator.&amp;nbsp; This can be a little tricky if you are using a production domain name.&lt;br /&gt;
3. Fortunately for me I have my own DNS servers so I was able to make the changes.&amp;nbsp; I used the html method to authenticate. &amp;nbsp; I setup my CNAME so that I could type docs.domain.com and it would go to the google docs website and I added the google MX host information to my MX records.&amp;nbsp; Now, you can either put them first and remove your current entry or you can get them the same values as your current email servers.&amp;nbsp; You will not be able to verify until Google see them as the top MX records. &amp;nbsp; I moved my current MX record to a higher value to verify my domain.&amp;nbsp; After my domain was verified I gave my current MX records a lower value so they were first. &amp;nbsp; For my sub-domain authentication I gave the google MX record the same value as my current MX records and google verified my sub-domain.&lt;br /&gt;
4.&amp;nbsp; Now I did the same thing to my internal DNS so that from my PC I could resolve the MX records from within my company.&lt;br /&gt;
5.&amp;nbsp; So in my CNAME I use that to give shorter URL to connect to my google sight.&amp;nbsp; The way I don&#39;t have to type the www.google.com/a/domainname.&amp;nbsp; Instead I can type email.domainname.com or docs.domainname.com.&amp;nbsp;&amp;nbsp; In my MX records I have my subdomain that I setup at Google Apps with the same value as my MX records for my Exchange servers.&amp;nbsp; Ex:&lt;br /&gt;
@ mail.domainname.com. 10&lt;br /&gt;
gmailalias ASPMX.L.GOOGLE.COM.&lt;br /&gt;
@ mail2.domainname.com 20&lt;br /&gt;
gmailalias ALT1.ASPMX.L.GOOGLE.COM. 20&lt;br /&gt;
&lt;br /&gt;
Don&#39;t forget your &quot;.&quot; after FQDN&lt;br /&gt;
&lt;br /&gt;
This provides the ability to use DUAL - Deployment by way of the Alias &quot;gmailalias&quot;.&amp;nbsp; There are more steps to getting this to work.&amp;nbsp; I&#39;ll explain those below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6. To get emails to go to my Google Apps email if exchange goes down you need to add Google to your MX record as secondary email servers.&amp;nbsp; Below the enters above I have the Google Apps MX records.&amp;nbsp; In other words, if Exchange goes down the next MX record will be used to delivery mail for &quot;domainname.&amp;nbsp; I&#39;m not talking about the alias emails.&amp;nbsp; I don&#39;t get emails coming to me with the alias domain, that is used to forward emails to my Google emails.&amp;nbsp; So in my case the next MX record for my &quot;domainname&quot; is &quot;mail-Dr&quot; with a value of 20.&amp;nbsp; Well, my &quot;mail-DR&quot; isn&#39;t setup to receive email only to receive replication and I would need to manually failover and start the services before I would receive any emails.&amp;nbsp; So then the next MX record would be the google account.&amp;nbsp; So here are the Google MX records.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
http://www.google.com/support/a/bin/static.py?page=guide.cs&amp;amp;guide=22229&amp;amp;topic=22230</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/7624247279483411490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/7624247279483411490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/7624247279483411490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/7624247279483411490'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2011/08/use-google-apps-for-dual-deployment-and.html' title='Use Google Apps for dual Deployment and Disaster Recover.'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-8610171760366308447</id><published>2011-08-12T10:13:00.000-04:00</published><updated>2012-05-22T09:56:28.099-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="monitoring"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>Monitor MySQL queries in Real Time</title><content type='html'>&lt;div class=&quot;serendipity_entry_body&quot;&gt;
Just a quick tip on monitoring the queries that mysql is handling on a production site. You can use the mysqladmin tool to return a list of the processes currently being handled. Combining this with the UNIX watch command allows a real-time monitoring of what&#39;s going on. &lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;text-align: left;&quot;&gt;
watch -n &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt; mysqladmin processlist&lt;/div&gt;
The &quot;-n 1&quot; specifies that mysqladmin executes every second. Depending on your set-up, you may need to specify a mysql user and password:&lt;br /&gt;
&lt;div class=&quot;bash&quot; style=&quot;text-align: left;&quot;&gt;
watch -n &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt; mysqladmin --&lt;span style=&quot;color: blue;&quot;&gt;user=&lt;/span&gt;&lt;user&gt; --&lt;span style=&quot;color: blue;&quot;&gt;password=&lt;/span&gt;&lt;password&gt; processlist&lt;/password&gt;&lt;/user&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/8610171760366308447/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/8610171760366308447' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/8610171760366308447'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/8610171760366308447'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2009/06/monitor-mysql-queries-in-real-time.html' title='Monitor MySQL queries in Real Time'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-92247206536258882</id><published>2011-08-12T10:10:00.000-04:00</published><updated>2012-05-22T09:59:56.758-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="backup"/><category scheme="http://www.blogger.com/atom/ns#" term="fdisk"/><category scheme="http://www.blogger.com/atom/ns#" term="how to"/><category scheme="http://www.blogger.com/atom/ns#" term="LVM"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="pause"/><category scheme="http://www.blogger.com/atom/ns#" term="pvcreate"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="snapshot"/><category scheme="http://www.blogger.com/atom/ns#" term="Volume"/><title type='text'>LVM Snapshot script</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;LVM Snapshot script&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Used for copying a MySQL schema to a test environment&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
There are so many ways to do this, but our need was to not have any production down time* and have the test database available ASAP. &amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
I wrote up a little how to and I thought I might share it so others could use it. &amp;nbsp;Like I said there are many ways to do this so just take a look and use the logic that works for you.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center; text-decoration: underline;&quot;&gt;
A Method to copy Data
to a test environment&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center; text-decoration: underline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div align=&quot;center&quot; class=&quot;MsoNormal&quot; style=&quot;text-align: center; text-decoration: underline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This method will copy all data in a volume and MySQL a test
environment with no downtime.&amp;nbsp; The method
used could also be used for backing up data or replication.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Here are the steps needed to accomplish the copy to test.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
1.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Add an additional hard drive for Storage.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
2.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Configure the disk using fdisk and then create a
Physical Volume with the pvcreate command.*&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
3.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Add the Physical Volume to the VolGroup with the
vgextend command.*&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
4.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Setup MySQL to run a second instance.*&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
5.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Run the this script.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#! /bin/sh&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
user=username&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
pwd=password&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
olddb=originalname&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
newdb=newname&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
socket=/tmp/mysql.sock2&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#This will remove LVM and stop the second instance of
MySQL .&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
mysqladmin -u$user -p$pwd --socket=$socket shutdown&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
sleep 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
umount /dev/VolGroup01/databackup &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
lvremove -f /dev/VolGroup01/databackup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;display: inline !important;&quot;&gt;
#This will flush mysql and Lock Tables and LVM snapshot (see
below)**&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
mysql -u$user -p$pwd &amp;lt; lvm_snapshot &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#&lt;b&gt;&lt;span style=&quot;font-size: 12pt;&quot;&gt;At this point the volume and MySQL files have
been copied&lt;/span&gt;&lt;/b&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot; style=&quot;display: inline !important;&quot;&gt;
#This will will mount the LVM snapshot to /mnt/databackup&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;mount -t ext3
/dev/VolGroup01/databackup&amp;nbsp;
/mnt/databackup&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#This will start the second instance of MySQL on port
3305 &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
mysqld_multi start 2&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#This is needed to allow enough time for MySQL to start
and create the mysql.sock2 file &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
sleep 4&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#This will login to the second instance of MySQL and
rename the schema to dl4test.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
mysqlconn=&quot;mysql -u$user -p$pwd -S $socket -h
localhost&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
$mysqlconn -e &quot;CREATE DATABASE $newdb&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
params=$($mysqlconn -N -e &quot;SELECT TABLE_NAME FROM
INFORMATION_SCHEMA.TABLES WHERE table_schema=&#39;$olddb&#39;&quot;)&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
for name in $params; do&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $mysqlconn -e
&quot;RENAME TABLE $olddb.$name to $newdb.$name&quot;; done;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
$mysqlconn -e &quot;DROP DATABASE $olddb&quot;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
#This will grant user saitest access to the newdatabase schema &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
$mysqlconn -e &quot;GRANT ALL PRIVILEGES ON newdatabase.* TO
&#39;username&#39;@&#39;%&#39; IDENTIFIED BY &#39;saitest&#39;&quot;;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoPlainText&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
This script takes about 10 seconds to run and requires no
down time in production.&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Note: the schema name change does not change
any stored procedures so a script or logic would need to be added in order to
create those after renaming the schema.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
*More Information on Setup:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
1. &amp;nbsp;Use fdisk to setup
the disk.&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Type fdisk /dev/sdb1 (or whatever device your new hard drive
is) and press Enter.&amp;nbsp; Then press,
m,n,e(choose the defaults), p, and w to save the changes.&amp;nbsp;&amp;nbsp; &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
2.&amp;nbsp; Create a Physical
Volume.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Type “pvcreate /dev/sdb1” &lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
3. Extend the Volume Group.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Type “vgextend VolGroup01 /dev/sdb1”&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
4. Add a second instance of MySQL.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Modify the /etc/my.cnf with the following changes.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpFirst&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
a.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Add a [mysqld_multi] section that looks like
this:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
[mysqld_multi]&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
mysqld&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = /usr/bin/mysqld_safe&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
mysqladmin&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = /usr/bin/mysqladmin&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
b.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Rename [mysqld] to [mysqld1]&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot; style=&quot;text-indent: -0.25in;&quot;&gt;
c.&lt;span style=&quot;font-family: &#39;Times New Roman&#39;; font-size: 7pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;Add a [mysqld2] section with the following
parameters:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
[mysqld2]&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
port&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 3305&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
datadir&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = /mnt/databackup/mysql&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
socket&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = /tmp/mysql.sock2&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpMiddle&quot;&gt;
pid-file&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =
/mnt/databackup/mysql/mars-snapshot-test.pid2&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraphCxSpLast&quot;&gt;
log_error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = /mnt/databackup/mysql/error2.log&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
To start the second instance of mysql use the following
command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
“mysqld_multi start 2”&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
To stop the second instance of mysql use the following
command:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mysqladmin –uusername –ppassword –socket=/tmp/mysql.sock2
shutdown.&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
To login to the second instance of mysql you will need to
login using the socket:&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
Mysql –uusername –ppassword –S /tmp/mysql.sock2 –hlocation&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;DownTime - we run this at night when there are a minimal of users.&amp;nbsp;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;Long queries at the time of the LVM snapshot will call some downtime.&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;o:p&gt;&lt;br /&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
** Here is the content of the lvm_snapshot file&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
FLUSH TABLES WITH READ LOCK;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
system lvcreate -L 220G -s -n databackup
/dev/VolGroup01/LogVol01;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
UNLOCK TABLES;&lt;o:p&gt;&lt;/o:p&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
QUIT&lt;u&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-decoration: underline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;text-decoration: underline;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;/u&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;u&gt;
&lt;/u&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/92247206536258882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/92247206536258882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/92247206536258882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/92247206536258882'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2011/08/lvm-snapshot-script.html' title='LVM Snapshot script'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-4618449971651154316</id><published>2010-06-03T13:33:00.000-04:00</published><updated>2010-06-03T13:33:33.284-04:00</updated><title type='text'>Error 126, 1068, 70020 unable to VPN</title><content type='html'>I had an employee with the following problem.&amp;nbsp; They were unable to VPN and were receiving the errors in the Title.&amp;nbsp; They were also unable to connect to some wireless AP at customer&#39;s site.&amp;nbsp;&amp;nbsp; Here is what I did.&amp;nbsp; One i stopped Eset from Scanning the C:\windows\system32 directory.&amp;nbsp;&amp;nbsp; This allowed the Windows Remote Management Access service to start.&amp;nbsp;&amp;nbsp; I then looked at HKEY_LOCAL_MACHINE\System\Services\RASMAN\PPP\EAP and noticed that Symantec had entry in 13,25, but not 26.&amp;nbsp;&amp;nbsp; I read somewhere to delete all entries except these 3 because they are windows default entries.&amp;nbsp; Since Symnatec (Symantec was installed on this computer, but removed) had entries in I decided to delete 13 and 25.&amp;nbsp; I deleted them and then rebooted hoping they would self populate, but they did not.&lt;br /&gt;
&lt;br /&gt;
I then exported these registry entries from another Vista computer and then imported them.&amp;nbsp; The problem was now fixed.&lt;br /&gt;
&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/4618449971651154316/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/4618449971651154316' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4618449971651154316'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4618449971651154316'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2010/06/error-126-1068-70020-unable-to-vpn.html' title='Error 126, 1068, 70020 unable to VPN'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-4332711337922698651</id><published>2010-02-16T11:30:00.000-05:00</published><updated>2010-02-16T11:30:53.016-05:00</updated><title type='text'>I was struggling trying to get Outlook 2007 to connect to my Exchange 2003 server...</title><content type='html'>Here is what I did.&lt;br /&gt;
&lt;br /&gt;
I was trying to add a new user, but I continued to get a message that Exchange was unavailable or offline.&amp;nbsp; Yet, no one else was complaining and I could connect using OWA.&amp;nbsp;&amp;nbsp; So I figured it was a problem with the client computer.&amp;nbsp;&lt;br /&gt;
&lt;br /&gt;
Where it prompts to put in the Exchange Server name I put in the Domain Controller name instead.&amp;nbsp; This quickly resolved to the name of the exchange server and then I was connected.&amp;nbsp;&amp;nbsp; I was able to finish setting up the new user.&amp;nbsp;&amp;nbsp; So I could resolve the name by going to the DC instead of the exchange server.&amp;nbsp; Time to look at the services on the exchange server.&amp;nbsp; I noticed that the Microsoft Exchange System Attendant had stop running.&amp;nbsp; This is needed to resolve Active Directory information.&amp;nbsp;&amp;nbsp;&amp;nbsp; So if you run into this problem make sure this services is running.&amp;nbsp;&amp;nbsp;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/4332711337922698651/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/4332711337922698651' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4332711337922698651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4332711337922698651'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2010/02/i-was-struggling-trying-to-get-outlook.html' title='I was struggling trying to get Outlook 2007 to connect to my Exchange 2003 server...'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-1262789419362482303</id><published>2009-09-08T13:54:00.001-04:00</published><updated>2009-09-08T13:54:25.857-04:00</updated><title type='text'>4sysops - Expand Resize virtual Hyper-V disk VHD</title><content type='html'>&lt;a href=&quot;http://4sysops.com/archives/free-vhd-resizer-shrink-or-expand-a-hyper-v-vhd/&quot;&gt;4sysops - Expand Resize virtual Hyper-V disk VHD&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Shared via &lt;a href=&quot;http://addthis.com&quot;&gt;AddThis&lt;/a&gt;&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/1262789419362482303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/1262789419362482303' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1262789419362482303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1262789419362482303'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2009/09/4sysops-expand-resize-virtual-hyper-v.html' title='4sysops - Expand Resize virtual Hyper-V disk VHD'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-83478191368809860</id><published>2009-06-18T12:06:00.000-04:00</published><updated>2012-05-22T10:01:58.760-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="diskpart"/><category scheme="http://www.blogger.com/atom/ns#" term="drive"/><category scheme="http://www.blogger.com/atom/ns#" term="format"/><category scheme="http://www.blogger.com/atom/ns#" term="GPT"/><category scheme="http://www.blogger.com/atom/ns#" term="USB"/><title type='text'>How to remove a GPT Partition</title><content type='html'>I bought a USB hard drive and it was formatted for apple with the GPT partion.&amp;nbsp; My windows XP machine recognized the hard drive, but not the partition.&amp;nbsp; I had to format the drive, but was unable to through the Disk management console or in the usual way.&lt;br /&gt;
&lt;br /&gt;
Here is what you will need to do:&lt;br /&gt;
&lt;br /&gt;
type the following command at the command prompt.&lt;br /&gt;
&lt;br /&gt;
1. cmd&lt;br /&gt;
2. diskpart&lt;br /&gt;
3. list disk &lt;br /&gt;
4. select disk x (choose the disk you want to format)&lt;br /&gt;
5. clean&lt;br /&gt;
6. exit&lt;br /&gt;
&lt;br /&gt;
You are now ready to format the disk in windows.</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/83478191368809860/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/83478191368809860' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/83478191368809860'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/83478191368809860'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2009/06/how-to-remove-gpt-partition.html' title='How to remove a GPT Partition'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-3855185270679644987</id><published>2009-06-11T15:17:00.000-04:00</published><updated>2009-06-11T15:17:42.105-04:00</updated><title type='text'>How to change the IP Address in SCO Unix</title><content type='html'>cd to /var/spool/lp/admins/lp/interfaces&lt;br /&gt;
vi the printer that you want to change the IP Address.&lt;br /&gt;
Look for the line: PERIPH=xxx.xxx.xxx.xxx (example PERIPH=192.168.1.24)&lt;br /&gt;
Change the IP Address to whatever you want.&lt;br /&gt;
&lt;br /&gt;
****If your printer was on a HP JetDirect then check to make sure the PORTNO=9100****&lt;br /&gt;
&lt;br /&gt;
After you make the change, then save the file.&lt;br /&gt;
&lt;br /&gt;
disable the printer with this command:&lt;br /&gt;
disable printername&lt;br /&gt;
Then enable the printer with this command&lt;br /&gt;
enable printername&lt;br /&gt;
&lt;br /&gt;
You should be able to print to the printer with the new IP Address.</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/3855185270679644987/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/3855185270679644987' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/3855185270679644987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/3855185270679644987'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2009/06/how-to-change-ip-address-in-sco-unix.html' title='How to change the IP Address in SCO Unix'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-3263445920566239709</id><published>2009-06-10T15:01:00.003-04:00</published><updated>2012-05-22T10:07:14.718-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="interactive"/><category scheme="http://www.blogger.com/atom/ns#" term="log"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="record"/><category scheme="http://www.blogger.com/atom/ns#" term="session"/><title type='text'>Log interactive session in MySQL</title><content type='html'>There are two ways to start recording your interactive session in MySql.&lt;br /&gt;
&lt;br /&gt;
1. From the Command line:&lt;br /&gt;
(I&#39;m only typing the command &quot;mysql&quot; and will assume that your username and password is saved in your home directory in &quot;.my.cnf&quot; file. &lt;br /&gt;
&lt;br /&gt;
mysql --tee=filename database&lt;br /&gt;
ex: myssql --tee=tmp.txt dl4demo09&lt;br /&gt;
&lt;br /&gt;
2. From within Mysql:&lt;br /&gt;
mysql&amp;gt; \T output.file&lt;br /&gt;
Logging to file &#39;output.file&#39;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/3263445920566239709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/3263445920566239709' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/3263445920566239709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/3263445920566239709'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2009/06/log-interactive-session-in-mysql.html' title='Log interactive session in MySQL'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-1592430564231038614</id><published>2008-08-07T09:34:00.000-04:00</published><updated>2008-08-07T09:41:47.272-04:00</updated><title type='text'>How to confiure an IPhone to use Exchange</title><content type='html'>I struggle to get the president of our company Iphone to work with our windows 2003 server.&amp;nbsp;&lt;br /&gt;
I used this document to setup the IPhone.&lt;br /&gt;
http://support.apple.com/kb/HT2480&lt;br /&gt;
The phone validated and appeared to be working fine, but no email, calendars or contacts would appear in the phone.&amp;nbsp; Although phone would report that it was updated.&lt;br /&gt;
&lt;br /&gt;
I realized that I was getting an error when I tried from a browser to hit https://registerdomainname/oma&lt;br /&gt;
I found this article below that I tried first.&amp;nbsp; I was able to connect to the server just fine.&amp;nbsp; However, I realized that I was not requiring SSL connections.&lt;br /&gt;
http://support.microsoft.com/?id=883380&lt;br /&gt;
Once I enable require ssl connections I had the same error.&amp;nbsp; I looked a little further and found this document that solved the problem. &lt;br /&gt;
http://support.microsoft.com/kb/817379</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/1592430564231038614/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/1592430564231038614' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1592430564231038614'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1592430564231038614'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2008/08/how-to-confiure-iphone-to-use-exchange.html' title='How to confiure an IPhone to use Exchange'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-6393849644812012727</id><published>2008-07-07T22:46:00.001-04:00</published><updated>2008-07-07T22:46:38.296-04:00</updated><title type='text'>Hydrogen</title><content type='html'>&lt;div&gt;&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; id=&quot;embedded&quot; width=&quot;600&quot; height=&quot;375&quot; codebase=&quot;http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab&quot;&gt;
  &lt;param name=&quot;flashvars&quot; value=&quot;autoPlay=true&amp;speed=1&amp;theme=black&quot; /&gt;
  &lt;param name=&quot;movie&quot; value=&quot;http://e.searchme.com/embed?a=sm&amp;v=1&amp;stack=3823&quot; /&gt;
  &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
  &lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;
  &lt;param name=&quot;allowScriptAccess&quot; value=&quot;always&quot; /&gt;
  &lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;
  &lt;embed src=&quot;http://e.searchme.com/embed?a=sm&amp;v=1&amp;stack=3823&quot; quality=&quot;high&quot; bgcolor=&quot;#FFFFFF&quot; width=&quot;600&quot; height=&quot;375&quot; name=&quot;embedded&quot; align=&quot;middle&quot; play=&quot;true&quot; loop=&quot;false&quot; allowScriptAccess=&quot;always&quot; type=&quot;application/x-shockwave-flash&quot; allowFullScreen=&quot;true&quot; pluginspage=&quot;http://www.adobe.com/go/getflashplayer&quot; flashvars=&quot;autoPlay=true&amp;speed=1&amp;theme=black&quot;&gt;&lt;/embed&gt;
&lt;/object&gt;&lt;table width=&quot;600&quot;&gt;&lt;tr width=&quot;100%&quot;&gt;&lt;td align=&quot;left&quot;&gt;&lt;a href=&quot;http://www.searchme.com/&quot;&gt;Searchme&lt;/a&gt;&lt;/td&gt;&lt;td align=&quot;right&quot;&gt;&lt;a href=&quot;http://www.searchme.com/stack/3823&quot;&gt;Maximize stack view&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/6393849644812012727/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/6393849644812012727' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/6393849644812012727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/6393849644812012727'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2008/07/hydrogen.html' title='Hydrogen'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-4637258047875138877</id><published>2008-06-27T10:01:00.002-04:00</published><updated>2008-06-27T10:05:02.067-04:00</updated><title type='text'>Upgrading Hyper-v to the final release wasn&#39;t as smooth as I thought it would be.</title><content type='html'>I was a little surprise that the upgrade wasn&#39;t as seamless.   I followed the instruction from http://support.microsoft.com/kb/950050, but still had issues.  After the upgrade, I couldn&#39;t start any of my VMs.  I had to delete and create new ones.  Then my network adapter was removed, so I had to create a new network adapter.   My VM finally came up, but the mouse didn&#39;t work, so I had to install the new integration services.   I just finished that.  My system is rebooting, so I&#39;ll see what other problems I&#39;ll run into.</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/4637258047875138877/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/4637258047875138877' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4637258047875138877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/4637258047875138877'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2008/06/upgrading-hyper-v-to-final-release.html' title='Upgrading Hyper-v to the final release wasn&#39;t as smooth as I thought it would be.'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-7355050069757067973</id><published>2008-06-05T15:24:00.004-04:00</published><updated>2008-06-05T15:44:29.513-04:00</updated><title type='text'>How to mount a vhd file to the host</title><content type='html'>Why would you want to do that?  Well there are many reasons, but most important is to get to the data.&lt;br /&gt;&lt;br /&gt;Here is how I do it.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;%3Ca%20href=%22http://blogs.msdn.com/virtual_pc_guy/archive/2008/02/01/mounting-a-virtual-hard-disk-with-hyper-v.aspx%22%3E%3C/a%3E&quot;&gt;I use Ben&#39;s script&lt;/a&gt;&lt;br /&gt;http://blogs.msdn.com/virtual_pc_guy/archive/2008/02/01/mounting-a-virtual-hard-disk-with-hyper-v.aspx&lt;br /&gt;&lt;a href=&quot;http://blogs.msdn.com/virtual_pc_guy/archive/2008/02/01/mounting-a-virtual-hard-disk-with-hyper-v.aspx&quot;&gt;&lt;/a&gt;&lt;br /&gt;I just edit the script and put in the drive, path and filename of the vhd that I want to mount.   After editing and saving I double-click on my vbs file and it is mounted.  I have one called mount vhd.vbs and one called unmount vhd.vbs.   The only difference is the two scripts is the last line VHDService.Mount(VHD) to mount andVHDService.unMount(VHD) to unmount.&lt;br /&gt;&lt;br /&gt;I then open up Disk Management under computer management.  You should see a volume that is offline.  Right click on choice &quot;online&quot;.  The disk will come on line and be assigned a drive letter.  That&#39;s it.  Now just go into explore and take a look at the disk.</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/7355050069757067973/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/7355050069757067973' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/7355050069757067973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/7355050069757067973'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2008/06/how-to-mount-vhd-file-to-host.html' title='How to mount a vhd file to the host'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-2999721519417223032</id><published>2008-06-05T10:08:00.003-04:00</published><updated>2008-10-13T09:37:14.326-04:00</updated><title type='text'>Update - How to backup Virtual Server in Windows 2008</title><content type='html'>I&#39;ve made some changes to how I backup my Virtual servers.  The other way I wasn&#39;t able to copy over the previous backup so I wasn&#39;t get the lastest backup.  Here is what I am doing now.&lt;br /&gt;
&lt;br /&gt;
I have 3 files that I use.&lt;br /&gt;
1. script.dsh&lt;br /&gt;
Here&#39;s the content of it.&lt;br /&gt;
#DiskShadow script file&lt;br /&gt;
set context persistent nowriters&lt;br /&gt;
set metadata c:\diskshadowdata\example.cab&lt;br /&gt;
set verbose on&lt;br /&gt;
begin backup&lt;br /&gt;
#add volume c: alias SystemVolumeShadow&lt;br /&gt;
add volume d: alias DataVolumeShadow&lt;br /&gt;
&lt;br /&gt;
create&lt;br /&gt;
&lt;br /&gt;
#expose %SystemVolumeShadow% r:&lt;br /&gt;
expose %DataVolumeShadow% p:&lt;br /&gt;
exec c:\diskshadowdata\backupscript.cmd&lt;br /&gt;
end backup&lt;br /&gt;
#End of script&lt;br /&gt;
&lt;br /&gt;
As mentioned in the previous post I explained where I got this and what changes I made.  The only difference from the previous post is that I&#39;m using the P drive instead of the Q drive.&lt;br /&gt;
&lt;br /&gt;
File #2 - backupscript.cmd&lt;br /&gt;
I:&lt;br /&gt;
rmdir /S /Q backup&lt;br /&gt;
mkdir backup&lt;br /&gt;
cd \backup&lt;br /&gt;
P:&lt;br /&gt;
xcopy /E /Y &quot;virtual servers&quot; I:\backup\&lt;br /&gt;
mountvol P:\ /D&lt;br /&gt;
&lt;br /&gt;
After the first file creates the shadow copy of my D drive and mounts it on the P drive, I use this file to remove the previous backup (because I don&#39;t have room and for some reason it was not overwriting the previous backup) and then copy the virtual servers.&lt;br /&gt;
There are definitely better ways to do this, but here is what this script does.&lt;br /&gt;
I change to the I drive which is the drive my USB hard drive is mount to.  I then remove the directory that contains the previous nights backup.  I don&#39;t have room on the USB drive to house more than one backup.  I then create the same directory to put the backup virtual files in.  Then I switch to the P drive which has the latest mount shadow copies in and start copying just the directory that contains the virtual server files.  That directory is called &quot;virtual servers&quot;.  After the copy is done then I unmount the P drive.  If you don&#39;t then you will not be able to successfully run the first script the next time you run it.&lt;br /&gt;
&lt;br /&gt;
File #3 - Backup.bat&lt;br /&gt;
C:&lt;br /&gt;
cd \diskshadowdata&lt;br /&gt;
diskshadow /s script.dsh&lt;br /&gt;
&lt;br /&gt;
This file is the one that I have the task scheduler setup to use for the nightly backup.   Because I don&#39;t have my pathing setup I just cd to the diskshadow directory  which has all three files in and run the &quot;diskshadow /s script.dsh&quot; command.   &lt;br /&gt;
&lt;br /&gt;
I hope I didn&#39;t confuse you.  &lt;br /&gt;
&lt;br /&gt;
Ask if you have any questions and I will try to explain better.</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/2999721519417223032/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/2999721519417223032' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/2999721519417223032'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/2999721519417223032'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2008/06/update-how-to-backup-virtual-server-in.html' title='Update - How to backup Virtual Server in Windows 2008'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4677591546455886157.post-1658559602758557087</id><published>2008-05-23T16:32:00.006-04:00</published><updated>2012-05-22T10:06:17.160-04:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="drive"/><category scheme="http://www.blogger.com/atom/ns#" term="Hyper-V"/><category scheme="http://www.blogger.com/atom/ns#" term="mount"/><category scheme="http://www.blogger.com/atom/ns#" term="mountvol"/><category scheme="http://www.blogger.com/atom/ns#" term="shadow copy"/><category scheme="http://www.blogger.com/atom/ns#" term="USB"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows 2008"/><title type='text'>Backing up volume shadow copies  in Windows 2008 (Hyper-v) Virturals using Diskshadow</title><content type='html'>The script I had for backing up my Windows 2005 Virtual server does not work in Windows 2008 using Hyper-v.   So I started looking for another solution.  Here is what I&#39;m doing to backup my Virutal servers in Windows 2008.   In Windows 2008 there is a new tool called &quot;diskshadow&quot;.   This link below shows how to use it and they have a script to get your started.&lt;br /&gt;
&lt;a href=&quot;http://technet2.microsoft.com/windowsserver2008/en/library/e962537d-b759-4368-b6f1-e8391cf7b2211033.mspx?mfr=true&quot;&gt;http://technet2.microsoft.com/windowsserver2008/en/library/e962537d-b759-4368-b6f1-e8391cf7b2211033.mspx?mfr=true&lt;/a&gt;&lt;br /&gt;
I don&#39;t need to create a shadow copy of my system drive nor to mount it, so I just commented out the two lines:&lt;br /&gt;
#add volume c: alias SystemVolumeShadow&lt;br /&gt;
#expose %SystemVolumeShadow% p:&lt;br /&gt;
&lt;br /&gt;
For testing I run this command from the command prompt: DISKSHADOW /s script.dsh&lt;br /&gt;
If all is well I set up a task schedule to run this.&lt;br /&gt;
&lt;br /&gt;
So what this script does is create a shadow copy and mounts it to the P and Q drives.  I don&#39;t need the mount to P so my script will only mount my shadow copy of my D drive to Q.   I then have a script that runs an xcopy command to backup my &quot;virtual servers&quot; folder to my USB hard drive which is mounted to the I: drive.&lt;br /&gt;
&lt;br /&gt;
The last line of my backup script is to remove the Q: drive mount.  If you don&#39;t remove the mount before you run the script you will get an error.  So unmount the shadow copies that are mount before running the script.  To unmount use this command.  &quot;mountvol driveletter:\ /D&quot;&lt;br /&gt;
&lt;br /&gt;
So the last line in my backup script I have &quot;mountvol P:\ /D&quot;   so that the P: drive is available the next time I run the script.dsh the P: drive is available to mount to.</content><link rel='replies' type='application/atom+xml' href='http://jviola.blogspot.com/feeds/1658559602758557087/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/4677591546455886157/1658559602758557087' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1658559602758557087'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4677591546455886157/posts/default/1658559602758557087'/><link rel='alternate' type='text/html' href='http://jviola.blogspot.com/2008/05/backing-up-volume-shadow-copies-in.html' title='Backing up volume shadow copies  in Windows 2008 (Hyper-v) Virturals using Diskshadow'/><author><name>Jeff Viola</name><uri>http://www.blogger.com/profile/08458804594112900075</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlWIivHz3TxSoojigzW-JC8dzYK68JdFPvW5A2_74L0NqGVBow-Or3UA59A4WcUm_ylVepPrwUSXWYHIrzFhp9j0wzBVnXYGXYWW9qjJApMFALUWzlkDv-ih2Eg-IgU3o/s75/Viola_J-4.jpg'/></author><thr:total>0</thr:total></entry></feed>