System Status
Buy Now
  • Email & Apps
  • Office 365
Login
  • MyRackspace Portal
  • Cloud Control Panel
  • Rackspace Webmail Login
  • Cloud Office Control Panel
  • Support Home
  • How-To
  • Developer Documentation
  •  Blogs 
    • Expert Insights Tech Blog
    • Rackspace Blog
    • Solve: Thought Leadership

Support Network

End-to-End Multicloud Solutions.   Solving Together.™   Learn more at Rackspace.com

How–To Home

Cloud Servers

  • Introduction
  • FAQ
  • All Articles

Prepare to migrate a Linux server

Last updated on:  2020-10-01

Authored by:  Jered Heeschen


This article provides recommended actions from Rackspace support technicians that you can perform before you migrate your Linux® server to mitigate occurrences and optimize your server for a faster transition. Some of these recommendations can cause significant downtime, so schedule them accordingly.

For Windows® migration preparation, see Prepare to migrate a Windows server.

Back up your data

Before you perform any migration, create a backup of important data. You can use Rackspace Cloud Backup to automate storing and retrieving backup data from Cloud Files or rsync to copy your data to another server.

  • Rackspace Cloud Backup - Install the agent on Linux
  • Backing up your files with rsync

Prepare for a system reboot

Shut down your server during the final stages of a migration to safely copy dynamic content to the new host. During a Rackspace-automated migration, the server shuts down.

Ensure that your server reboots quickly and safely when the migration completes.

General preparation

The following tasks prevent issues with server time and the size of the disk space on the server.

Set accurate time via NTP

Set up and configure Network Time Protocol (NTP) on your server to avoid migration issues related to the server date or file timestamps. Some older cloud servers pull time from their host machine and don’t keep time independently from the host. This might lead to inaccuracies.

For details on setting up NTP on your server, see Using NTP to sync time.

Reduce the number and size of files

You can reduce the time required for migration and improve the reliability of a resulting image by limiting the number and size of files that might change during the migration operation.

Lock databases

If a database changes during migration, the database in the image could be corrupted, or data could be lost.

Note: We recommend that you bring the database down entirely for the migration and set your tables to read-only to protect them from accidental data loss during the operation.

To lock your tables in MySQL®, run the following command on the command line:

mysql -u root -p --execute="FLUSH TABLES WITH READ LOCK"

Postmigration tasks

After the migration finishes and your new server starts, test your websites and applications. Ensure that applications are responsive and that they can write information to their databases.

If you have any services that need to communicate with other servers, explicitly test their connectivity to ensure that they still talk to each other.

Share this information:

©2020 Rackspace US, Inc.

Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License

See license specifics and DISCLAIMER

About Rackspace
  • About
  • Customer Stories
  • Events
  • Programs
Blogs
  • The Rackspace Blog
  • Expert Insights Tech Blog
  • Solve: Thought Leadership
  • News
  • Contact Information
  • Legal
  • Careers
Site Information
  • Style Guide for Technical Content
  • Trademarks
  • Privacy Statement
  • Website Terms
Support Network
  • Support Network Home
  • Rackspace How-To
  • API Documentation
  • Developer Center
  • ©2020 Rackspace US, Inc.