A legacy server nobody understands must be documented before it is migrated. How do you discover what it does?
IntermediateScenarioMigrations, performance and fleet operations
Answer
Situation read → Inventory services, connections, jobs and data.
What I'd do →
systemctl list-units --type=service --state=running
ss -tulpn # listening
ss -tnp state established # who it talks to
crontab -l; ls /etc/cron.d; systemctl list-timers
df -h; lsblk; cat /etc/fstab; showmount -e 2>/dev/null
rpm -qa --last | head -50 || ls -lt /var/lib/dpkg/info | head
ls -la /opt /srv /usr/local/bin
Watch connections over days (or flow logs) to catch weekly/monthly traffic.
Why → Hidden cron jobs and rare inbound clients are what break after a migration.
Interview tip → Mention leaving it powered off but intact for a while after cutover ("scream test").
More on 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?IntermediateThe 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?Beginner