Interview Prep/Linux/Migrations, performance and fleet operations

You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?

IntermediateScenarioMigrations, performance and fleet operations
Answer

Situation read → Copy most of the data while live, then a short final sync during a freeze.

What I'd do →

  1. Initial copy while the app runs (may take hours):
rsync -aHAXS --numeric-ids --info=progress2 /srv/data/ new:/srv/data/
  1. Repeat the same rsync a few times; each pass gets faster.
  2. Lower DNS TTL a day earlier.
  3. Maintenance window: stop the app, final rsync ... --delete, start the app on the new server, switch DNS/LB.
  4. Keep the old server read-only for rollback for a few days.

Why → The final pass only moves what changed since the last pass, so downtime is minutes.

Interview tip → Mention testing the cutover once end-to-end with a dry run (rsync -n) and measuring how long the final pass takes.

All Linux questions Roadmap: Linux

More on Migrations, performance and fleet operations