Results 1 to 5 of 5

Thread: Creating a clone server in linux

  1. #1
    Join Date
    Nov 2008
    Posts
    46

    Creating a clone server in linux

    I have a server of REDHAT Linux 5 and I want another server to continue the working of clients whenever the main server gets failed to work. Whole work would be assigned to the second server and the main server will be recovered at that moment.So how could I do this.Please go through the steps to create the new server and what are tools would be necessary for this task .

    Thanks for your Support.

  2. #2
    Join Date
    Apr 2008
    Posts
    3,522

    Creating a clone server in linux

    If you are using the Linux Red Hat Linux and need to create a clone server to access when the main server would be failed to run.

    Actually,you would not make so much changes but some physical things are necessary to have with you.The process includes exact as taking the backup of database.For each drive on the server,you have to make each clone disk.

    The Image copy of the whole server is transferred to the clone disks that you have configured and you need to maintain the host name and IP Address of the server otherwise the clients got difficulties to access the clone server.

  3. #3
    Join Date
    Apr 2008
    Posts
    3,295

    Creating a duplicate drive

    Creating a duplicate drive :

    The Drives which is using with server,you are going to make the clone of that drives so you need to care about the users,privileges and all.

    Calvin said earlier,You need to maintain the host name and IP address of the server to continue the work of end users.Now the dd command would be used to create the clone drive :

    dd if=/dev/sda of=/dev/sdb
    dd if=/dev/sda of=/backup_img/disk.img
    //Creating the image of the main server on its own disk

    These statements are used to create the exact clone and it can take more time depends upon the size of the server.Divert the cloned drive into the target server and covert the host name and IP Address into different because both can not contact with each other.

  4. #4
    Join Date
    Nov 2005
    Posts
    3,026

    Synchronizing required Directories

    If you get successful to create the clone disk and located to the proper disk then you need to do some files and directories configurations for synchronization

    The rsync command would be executed with ssh to commit a reliable and secure connection with transportation of data. This is simplest method can be performed on small and Local network.

    I am going to synchronize the /var Directory which would be as follows:

    Code:
    rsync -avhe ssh /var/ root@192.168.5.49:/var/


    In this way,you have to synchronize the required directories like HOME and ETC would be as follows.

  5. #5
    Join Date
    May 2008
    Posts
    2,680

    Create Passwordless Transfers for cloning

    It is necessary to create an account on the server machine so that you don't worry to have a password needed to type after each update.

    This task would be performed in the following manner :

    Generate Key Pairs :

    Key pairs are automatically created in the ~/.ssh home directory of particular user.The ~ symbol is used to locate the home directory of a user in linux.Now
    Open a terminal and type: ssh-keygen -t dsa

    1- Share Public Key
    2- Copy Public Key

Similar Threads

  1. Creating M3U playlist in linux
    By Franny in forum Operating Systems
    Replies: 5
    Last Post: 26-05-2011, 07:57 PM
  2. How To Clone a disk with ddrescue in Linux
    By unlimitedtech in forum Tips & Tweaks
    Replies: 3
    Last Post: 22-10-2010, 03:00 PM
  3. Active directory integrated DNS after NetApp clone - Server 2003
    By Sirens in forum Networking & Security
    Replies: 6
    Last Post: 28-08-2010, 05:57 AM
  4. Clone Server-A to Server-B
    By 2ndChance in forum Networking & Security
    Replies: 4
    Last Post: 18-06-2010, 05:45 PM
  5. Creating a Linux installer
    By Jensen Ackles in forum Operating Systems
    Replies: 5
    Last Post: 30-03-2010, 11:26 AM

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
  •  
Page generated in 1,714,328,682.41748 seconds with 17 queries