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 →
- Initial copy while the app runs (may take hours):
rsync -aHAXS --numeric-ids --info=progress2 /srv/data/ new:/srv/data/
- Repeat the same rsync a few times; each pass gets faster.
- Lower DNS TTL a day earlier.
- Maintenance window: stop the app, final
rsync ... --delete, start the app on the new server, switch DNS/LB. - 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.
More on Migrations, performance and fleet operations
The new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?BeginnerYou need to set up central logging for 200 Linux servers. Design it.Intermediate