Results 1 to 8 of 8

Thread: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

  1. #1
    Join Date
    Oct 2014
    Beans
    6

    Unhappy Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Urgent! Urgent!

    Hello Experts,

    I am newbie in Linux. During Server migration with all services from Ubuntu Linux 10.04.3 to 14.04, I have placed a command like this on old server:

    sudo rsync -azvv -e ssh / root@hostname.com:/

    But things got creepy. New Server became unreachable over the network. It's pingable with previous IP but SSH or webmin module of that server is not available. Webmin says, Module proc not found. Also it's showing OS version not 14.04

    Capture.jpg

    Please forgive my immaturity and suggest me what is to be done to get my new server up and running.

    Thanks in advance

    Manir

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Quote Originally Posted by Manirul_Islam View Post
    Urgent! Urgent!
    How much does this pay? urgent = paid to me.

    Quote Originally Posted by Manirul_Islam View Post
    Hello Experts,
    I am newbie in Linux. During Server migration with all services from Ubuntu Linux 10.04.3 to 14.04, I have placed a command like this on old server:
    sudo rsync -azvv -e ssh / root@hostname.com:/
    Not a good way to migrate running systems, even if they are identical. You can boot off different media and do rsync on two uninterested drives, but something like fsarchive or ddrescue or even gparted 'clone' would probably be better.

    Or .... the way that I migrate systems is: http://blog.jdpfu.com/2013/12/11/how...-data-overview

    Quote Originally Posted by Manirul_Islam View Post
    But things got creepy. New Server became unreachable over the network. It's pingable with previous IP but SSH or webmin module of that server is not available. Webmin says, Module proc not found. Also it's showing OS version not 14.04

    Capture.jpg
    I've never used webmin. Suspect the rsync failed in the middle somewhere, but can't tell from the data provided.

    Quote Originally Posted by Manirul_Islam View Post
    Please forgive my immaturity and suggest me what is to be done to get my new server up and running.
    I'd start over using one of the saner methods listed above. It is very important that the source system NOT be active during the copy. Use an alternate boot method so the source OS isn't active. Also - if the HDDs sector size is different, be very careful and pre-create any partitions on the new media to ensure sector alignment. There is an option for fdisk (not the defaults) - or use parted/gparted - which just do the right thing.

    I completely understand the stress. Most of my systems were migrated to newer OSes over the summer, but a few still remain. Fortunately for me, most are VMs and fairly trivial to test the migration in a lab before ever touching any production instances. Highly recommended to test this stuff before touching production.

  3. #3
    Join Date
    Aug 2009
    Location
    Makati City, Philippines
    Beans
    2,269
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Quote Originally Posted by Manirul_Islam View Post

    sudo rsync -azvv -e ssh / root@hostname.com:/
    Not good...not good at all. Are you the administrator of this server? Are you aware what would this command do? Why would you copy the / partition of a server to another server?

    Seems to me somebody did not prepared (or tested first) for the migration. Just entering commands like this can destroy a server and did you even bother to test it first?

    Server migration is a complicated process as each server has their own unique services. You should first list and study them all and prepare a plan to migrate each server. A direct copy of / partition won't work (this is not windows).

    As for the new server, I think it would be better to reinstall it, and restart the whole migration process.
    List you services here and if you are having problems migrating each we can give you some advice. (And don't experiment on any production server please).

  4. #4
    Join Date
    Oct 2014
    Beans
    6

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Thanks a million for the link. It wasn't a production server. As I am Newbie in this: I've tested immaturely. The time of testing was very late night. maybe that's why I've lost my common sense.

  5. #5
    Join Date
    Oct 2014
    Beans
    6

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Quote Originally Posted by nerdtron View Post
    Not good...not good at all. Are you the administrator of this server? Are you aware what would this command do? Why would you copy the / partition of a server to another server?
    Yeah. But after placing that command, I realised.


    Quote Originally Posted by nerdtron View Post
    As for the new server, I think it would be better to reinstall it, and restart the whole migration process.
    List you services here and if you are having problems migrating each we can give you some advice. (And don't experiment on any production server please).
    Thanks a lot. I am trying to reinstall. After that I will start testing again. And I'll share the result with you guys. Please stay tuned.

  6. #6
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Code:
    sudo rsync -azvv -e ssh / root@hostname.com:/
    I've done this (couple of years ago) to see if it would work, and it does. Even between live systems. They where VM's so practically identical, and that probably helped.

    The key is to make rsync exclude certain directories, namely the ones that are not real files.
    /proc is one of them, other candidates are all the ones that the 'mount' command shows as not pointing to disks or partitions : de tempfs mounts etc.

    and of course you end up with duplicate names and ip adresses on the network, so that 'll need fixing afterwards as well.

    So it's not impossible, but there probably are better ways.

  7. #7
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Quote Originally Posted by koenn View Post
    Code:
    sudo rsync -azvv -e ssh / root@hostname.com:/
    I've done this (couple of years ago) to see if it would work, and it does. Even between live systems. They where VM's so practically identical, and that probably helped.
    Boot sector? That would be missing, definitely.
    BTW - -e ssh is redundant these days. ssh is the default for long-time-now - like 10 yrs.

  8. #8
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Server migration with all services from Ubuntu Linux 10.04.3 to 14.04

    Quote Originally Posted by TheFu View Post
    Boot sector? That would be missing, definitely..
    I was cloning running systems : the rync source would be / at a model system, the target / on another machine. What I did was install a minimal system on the target machine, enough to execute rsync on it. So it had a bootsector, and I wasn't interested in anything below filesystem level anyway. The point of the exercise was more of a "can i replicate a configuration" rather than "can I setup an OS from scratch by way of rsync"

    The idea I was playing with at the time was finding mechanisms to deploy identical systems, or to set a system to a known state, by overwriting any changes by rsyncing a known good system, or to deploy config changes by applying them to 1 "model" system and rsync that system to a number of targets, that sort of stuff.

    BTW - -e ssh is redundant these days. ssh is the default for long-time-now - like 10 yrs.
    the actual command i used was something like
    Code:
    rsync 	-rpoglHtuq  \
    		--exclude=/proc --exclude=/tmp --exclude=/sys  --exclude=/home --exclude=/root \
    		remotemodel:/   /

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •