<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0">
<channel>
  <title>Linux Format forums</title>
  <link>http://www.linuxformat.com/forums/index.php</link>
  <description>Help, discussion, magazine feedback and more</description>
  <language>english</language>
  <copyright>(c) Copyright Wed May 22, 2013 10:04 pm by Linux Format forums</copyright>
  <managingEditor>webmaster@linuxformat.com</managingEditor>
  <webMaster>webmaster@linuxformat.com</webMaster>
  <pubDate>Wed May 22, 2013 10:04 pm</pubDate>
  <lastBuildDate>Wed May 22, 2013 10:04 pm</lastBuildDate>
  <docs>http://backend.userland.com/rss</docs>
  <generator>phpBB2 RSS Syndication Mod by Lucas</generator>
  <ttl>1</ttl>

  <image>
    <title>Linux Format forums</title>
    <url></url>
    <link>http://www.linuxformat.com/forums/</link>
    <description>Help, discussion, magazine feedback and more</description>
  </image>

                                      <item>
                                        <title>Re: Transfer Ubuntu server to new hardware</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108632#108632</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Thu Nov 08, 2012 2:09 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Plan for next Friday, then you have a week fall-back time to fix errors. The initial rsync is the largest, perhaps use tar to compress the lot? &lt;span style=&quot;font-weight: bold&quot;&gt;But!&lt;/span&gt; You have a backup (of the old system), why not use that to roll data in instead? No chances to compromise the old system, &lt;span style=&quot;font-style: italic&quot;&gt;and&lt;/span&gt; you get to check your backup roll-back strategy is working &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
As for the tape drive: unless your client is emotionally very attached (sic &lt;img src=&quot;images/smiles/icon_razz.gif&quot; alt=&quot;Razz&quot; border=&quot;0&quot; /&gt;) to that ancient device, advise them to switch to Blu-Ray instead &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108632#108632</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Thu Nov 08, 2012 2:09 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108632#108632</guid>
                                      </item>
                                      <item>
                                        <title>Re: Transfer Ubuntu server to new hardware</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108631#108631</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2326'&gt;ollie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Nov 07, 2012 9:55 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks DM.&lt;br /&gt;
&lt;br /&gt;
Now I'm wondering if I shut down the Apache &amp;amp; MySQL servers on the target system, as well as any other servers other than OpenSSH, and then do the rsync if that would be more successful.&lt;br /&gt;
&lt;br /&gt;
I'm making sure I don't wipe anything on the old system until the new server is totally functional. It is also backed up to tape drive, just in case.&lt;br /&gt;
&lt;br /&gt;
I'm not sure if I'll be trying on Friday, when I can take the old system &amp;quot;offline&amp;quot; for a while, or waiting until December when the system can be offline for a week during a shut down period.</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108631#108631</comments>
                                        <author>ollie</author>
                                        <pubDate>Wed Nov 07, 2012 9:55 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108631#108631</guid>
                                      </item>
                                      <item>
                                        <title>Re: Transfer Ubuntu server to new hardware</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108628#108628</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Nov 07, 2012 7:23 pm&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Can't help on MySQL Ollie, but welcome back anyway &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt; It's generally not a good idea to replace critical/essential files on a running system, perhaps a live-cd/usbstick would be a better idea. Make sure you copy the to-be replaced files for easy restoring if things go haywire!</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108628#108628</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Wed Nov 07, 2012 7:23 pm</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108628#108628</guid>
                                      </item>
                                      <item>
                                        <title>Re: Transfer Ubuntu server to new hardware</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108626#108626</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2326'&gt;ollie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Nov 07, 2012 3:27 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Thanks DM - you've confirmed the process that I'm doing for the environment. I'm just waiting to install the &amp;quot;extra&amp;quot; software I've added to /etc/apt/sources.list like Webmin &amp;amp; MondoRescue. I actually used dpkg and apt-get because it's only 4 commands including the fetching on the new server:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;wget http&amp;#58;//oldserver/installed-software.txt&lt;br /&gt;
sudo dpkg --set-selections &amp;lt; installed-software.txt&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
Then it will be doing the MySQL dump, which I know works, and then trying to rsync everything else in one go. &lt;br /&gt;
&lt;br /&gt;
I'm just worried about the final rsync being able to write all of the files to a running system, which will get all of the IP address and name settings of the old server. Will rsync overwrite /etc/passwd and /etc/shadow successfully?&lt;br /&gt;
&lt;br /&gt;
I can't go the RAID route, the old server has 2 x SCSI 3.5&amp;quot; hard drives in RAID1, whilst the &amp;quot;new&amp;quot; server has 8 x 2.5&amp;quot; SAS drives that I've broken up into 2 x RAID1 (/boot, /, swap), 3 x RAID5 (/var) and another 3 x RAID5 (/home).</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108626#108626</comments>
                                        <author>ollie</author>
                                        <pubDate>Wed Nov 07, 2012 3:27 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108626#108626</guid>
                                      </item>
                                      <item>
                                        <title>Re: Transfer Ubuntu server to new hardware</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108625#108625</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=14187'&gt;Dutch_Master&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Nov 07, 2012 2:03 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      You can copy the package list with:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;dpkg --get-selections &amp;gt; selections.txt&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;Copy the lot over (including the sources.list) then, after you've put the sources.list back in place, execute the following one-liner (as root, obviously):&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;aptitude update &amp;amp;&amp;amp; aptitude install dselect &amp;amp;&amp;amp; dpkg --set-selections &amp;lt; selections.txt &amp;amp;&amp;amp; dselect install&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;Make sure you have the correct path to the selections.txt file! (right, Ubuntu doesn't use root, it insists on sudo  &lt;img src=&quot;images/smiles/icon_rolleyes.gif&quot; alt=&quot;Rolling Eyes&quot; border=&quot;0&quot; /&gt; Oh well, you know what to do then &lt;img src=&quot;images/smiles/icon_wink.gif&quot; alt=&quot;Wink&quot; border=&quot;0&quot; /&gt;)&lt;br /&gt;
&lt;br /&gt;
This way you &lt;span style=&quot;font-style: italic&quot;&gt;should&lt;/span&gt; have the entire environment you were working on back on the new server.&lt;br /&gt;
&lt;br /&gt;
Another option to move the lot is making use of RAID: add a few disks to the existing machine, then mirror the new disks (as RAID1) to the old RAID. The kernel will then rebuild the new RAID (i.e. make a 1:1 copy of the old system), which then can be transferred to the new server. Takes time (few hours for a 500 GB disk) so best done overnight. &lt;span style=&quot;font-style: italic&quot;&gt;Theoretically&lt;/span&gt; it works...</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108625#108625</comments>
                                        <author>Dutch_Master</author>
                                        <pubDate>Wed Nov 07, 2012 2:03 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108625#108625</guid>
                                      </item>
                                      <item>
                                        <title>Transfer Ubuntu server to new hardware</title>
                                        <link>http://www.linuxformat.com/forums/viewtopic.php?p=108624#108624</link>
                                        <description>&lt;br /&gt;
                                      Author: &lt;a href='http://www.linuxformat.com/forums/profile.php?mode=viewprofile&amp;u=2326'&gt;ollie&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
                                      Posted: Wed Nov 07, 2012 12:25 am&lt;br /&gt;&lt;br /&gt;
                                      &lt;br /&gt;&lt;br /&gt;
                                      Hi all,&lt;br /&gt;
&lt;br /&gt;
I've been away from the forums for a long time because of work pressures and illness &lt;img src=&quot;images/smiles/icon_sad.gif&quot; alt=&quot;Sad&quot; border=&quot;0&quot; /&gt; but I'm back for some advice.&lt;br /&gt;
&lt;br /&gt;
I'm moving an existing Ubuntu Server 10.04.4 LTS amd64 server to new hardware. I have tried installing Ubuntu Server 12.04.1 LTS onto the new hardware and started using rsync to copy over home directories, web server files and some configuration files. I used mysqldump via ssh to copy all of my databses over successfully, including all all of the MySQL users and permissions.&lt;br /&gt;
&lt;br /&gt;
However, I'm having problems restarting the Apache web server with missing configuration files. I'm also not sure if I've got all of the required PHP5 configuration files. There seems to be some differences between the configuration of Apache on 12.04 and 10.04.&lt;br /&gt;
&lt;br /&gt;
I'm starting to realise that moving the server onto a different server version may not be a good idea &lt;img src=&quot;images/smiles/icon_redface.gif&quot; alt=&quot;Embarassed&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;
&lt;br /&gt;
So here's the big question, if I install Ubuntu 10.04.4 LTS onto the new server and run:&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;#mysqlpdump --user=root --password=&amp;quot;securePassword&amp;quot; --all-databases | ssh &lt;a href=&quot;mailto:root@192.168.0.35&quot;&gt;root@192.168.0.35&lt;/a&gt; 'mysql --user=root --password=&amp;quot;securePassword&amp;quot;'&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
then&lt;br /&gt;
&lt;/span&gt;&lt;table width=&quot;90%&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot; align=&quot;center&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;#rsync -avz / --exclude '/var/mysql/*' | ssh &lt;a href=&quot;mailto:root@192.168.0.35&quot;&gt;root@192.168.0.35&lt;/a&gt;&amp;#58;/&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
Would I be copying an entire system and overwriting the default files and settings entirely, including passwd and shadow files?&lt;br /&gt;
&lt;br /&gt;
I could then do a running system upgrade to Ubuntu Server 12.04.1 LTS and be happy on the new hardware &lt;img src=&quot;images/smiles/icon_biggrin.gif&quot; alt=&quot;Very Happy&quot; border=&quot;0&quot; /&gt;</description>
                                        <comments>http://www.linuxformat.com/forums/viewtopic.php?p=108624#108624</comments>
                                        <author>ollie</author>
                                        <pubDate>Wed Nov 07, 2012 12:25 am</pubDate>
                                        <guid isPermaLink="true">http://www.linuxformat.com/forums/viewtopic.php?p=108624#108624</guid>
                                      </item></channel></rss>