•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

How to clone one drive to another?

  • Home
  • Client
  • Qa Forum
  • How to clone one drive to another?

Posted By: Donald | 2 Replies | Last Reply On: Nov 19, 2019 06:56:00

What is the fastest way to close one drive to another without taking the server offline?  We need to migrate from 1 TB to 2 TB drive. 

Hua

Votes: 0Posted On: Nov 19, 2019 06:56:00
 

I would like to add my inputs to the above response. It is true that avoiding downtime is nearly impossible. However, you can ensure minimum downtime by following the technique that I would like to share. The above method is safe and simple, but you can add one more simple step which can reduce the downtime by almost 90%. All you need to do is set up another machine with a similar configuration as your first machine. Once the cloning process is complete you just need to remove the clone drive (2 TB drive in the above case) and move it to the second machine. Once you boot the new machine, all you need to do is simply configure the network (IP address) similar to your 1st server. This should take control of your 1st server and assign it to your second server and all your traffic will start moving to the second one. The switchover will take only a few seconds and you will not even notice your server going offline. 

Was this reply helpful?
Cruz

Votes: 0Posted On: Nov 18, 2019 12:37:52
 

Practically, it is impossible to restore a machine (after cloning the drive) without taking it offline for a few minutes. But it can be achieved with minimum downtime using some basic tricks. The downtime is inevitable because you need to switch the server configurations from using the initial drive to the upgraded one.

There are several ways to clone a Linux system drive using internal as well as third-party tools. But it wouldn’t be incorrect of you to think of using CAT command over other available options including the DD command. DD comes with a lot more options when it comes to copying the files however, CAT is much faster than DD when it comes to speed and performance. DD comes with a large number of options and is very useful in dealing with bigger backups such as Tape drives. But anyone with good experience with Linux environment would recommend CAT because it gets the job done quite successfully in copying the content of a partition to a new unformatted partition.

Let us now take a look at the steps involved in cloning and migrate a Linux  drive to another server using CAT command

Step 1

Install a secondary drive of 2 TB size as the primary (one that will take over the previous one) drive in the machine. Once you have inserted the drive you may need to boot the machine just to verify if the drive has been successfully accepted by the system. If the server allows hot-swap of drive, you do not need to boot the machine.

Run the following command to check the newly added disc

# df

You can notice the label of the newly added disc "sdb1"

Step 2

We will now initiate the cloning process using the 'cat' command

# cat /dev/sda1 > /dev/sdb1

where, /dev/sda1 is the input drive, and, /dev/sdb1 is the output drive.

Step 3

Remove the old drive now and boot the new server and configure the network via IPMI. This may take a few minutes and that's only time you will need to take your server offline.

 

You are now good to go with your server with more storage space but the same old configuration.

Was this reply helpful?

Related topics

  • How to clone and migrate a Linux hard drive to another server?
  • Best Open Source Cloning Software
  • Dedicated Quote for 72 GB RAM and Windows OS
  • How to transfer/copy files between local and server using a remote desktop connection?
  • 6TB drive, over 300mbps bandwith server in Asia or near Asia?
  • Dedicated Database Server
  • Linux Command Line Tutorial For Git
  • Which dedicated server to use for API? (Hardware Recommendation)
  • European Dedicated Server Hosting
  • Things To Consider When Selecting an Encryption Solution
  • SSD vs HDD Reliability
  • How to setup a dedicated server for Unturned
  • How to host your own RUST server
  • Top Encryption Software For Windows
  • Top Five Open Source Backup Software for Linux
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company