Move to Pantech / Moving by hand
Move to Pantech by hand
Rebuild your servers on Pantech, copy files with rsync and buckets with rclone, move a database with pg_dump and pg_restore, recreate networks and firewalls, then switch DNS, with a way back.
Everything on this page works from any cloud or hosting provider, with or without Pantech Migrate. Migrate can do much of it for you: it copies servers and disks, buckets, databases and Kubernetes workloads. Use this page for what it does not cover, such as servers on Google Cloud, Azure or Huawei Cloud, buckets outside AWS, or when you would rather rebuild than copy.
The order that keeps downtime short: build Pantech next to what you run now, copy data while the old setup keeps serving, test, then switch DNS. Nothing on the old side is turned off until the new side has been live for a while.
Before you start
- List what you run. Servers and their sizes, disks, databases, firewall rules, load balancers, DNS records and scheduled jobs. A Migrate scan of any cloud it connects makes most of this list for you.
- Lower your DNS TTLs now. Set the records you will change to 300 seconds (5 minutes), at least one old TTL before the switch. A record with a 24-hour TTL needs a day's notice. Short TTLs are what make the switch, and a rollback, fast.
- Plan a short write freeze. Files and databases are copied twice: once while you keep running, and a last time after writes stop. Pick a quiet window for the second copy.
1. Networks and firewalls
Decide how each server is reached. A single server that faces the internet is a standard VPS with a security group. Servers that talk to each other privately, or to a database, go in a VPC, with a network ACL per subnet and a static IP for whatever faces the internet. How Pantech fits together explains the difference.
Copy your firewall rules across one by one. A rule that allows another firewall group instead of an address range has no direct equivalent: write the address ranges it stood for.
If you keep infrastructure as code, write the Pantech side with the Terraform provider. Create every service shows each resource.
2. Rebuild the servers
Create one machine per server, on a plan with at least the vCPUs and memory it has now, from the same operating system where you can. Give it your SSH key. Add a volume for each extra disk, and mount it where the old one was mounted.
Then install your software the way you normally would: your configuration management, your deploy pipeline, or by hand. Rebuilding is also a good moment to upgrade an old operating system, as long as you test it.
Pantech servers are x86. An ARM server's software has to be built for x86. Windows Server is available on request: contact support to turn it on for your organization.
3. Copy files with rsync
Run rsync from the old server, over SSH, into the new one, with the new server's public address in place of <server-public-ip>. The first pass copies everything while you are still live:
$ rsync -aHAX --numeric-ids --info=progress2 \ --rsync-path="sudo rsync" \ /var/www/ ubuntu@<server-public-ip>:/var/www/- The trailing
/on both paths copies the folder's contents, not the folder into itself. -aHAX --numeric-idskeeps permissions, owners, hard links, ACLs and extended attributes.--rsync-path="sudo rsync"writes as root on the Pantech side, for files your login user cannot write.
Port 22 on the new machine has to be open to the old server's address, in its security group or network ACL.
After the write freeze, run the same command again with --delete added. It copies only what changed and removes files that were deleted since, so this pass is quick. Check --delete against a dry run first (--dry-run): it deletes on the destination.
Buckets from other clouds
Migrate copies S3 buckets from AWS for you (move buckets). For a bucket elsewhere, Google Cloud Storage, Azure Blob storage, DigitalOcean Spaces and the rest, copy it with rclone, which speaks to all of them. Set up a remote for the source as rclone's documentation says, and one for Pantech object storage, then:
$ rclone sync source:my-bucket pantech:my-bucket --checksum --progressRun it once while you are live, then again after the write freeze: it copies only what changed. sync makes the destination match the source, deleting what the source no longer has; use copy instead to never delete. Check with --dry-run first.
4. Move a database
Create a managed database with the same engine, then copy the data with the engine's own dump and restore tools. Migrate's database import does the same through its agent, and can keep a PostgreSQL copy in sync until you switch. A Pantech database has no public address, so run the tools on a Pantech machine that can reach it, and let that machine reach the old database:
- Allow the Pantech machine's outbound address on the old database's firewall. On the Pantech machine,
curl -4 https://checkip.amazonaws.comprints it. - Allow the Pantech machine on the new database's access rules. In a VPC, the default rule already allows the whole VPC.
Use client tools at least as new as the newer of the two servers. Pantech runs PostgreSQL 18, so install the version 18 client: it can dump older servers too.
$ pg_dump -Fc --no-owner --no-acl \ -h old-db.example.com -U app -d app -f app.dump$ createdb -h db-7k2q9x4m1a.af-abj-2.db.pantechdynamics.com -U dbadmin app$ pg_restore --no-owner --no-acl -j 4 \ -h db-7k2q9x4m1a.af-abj-2.db.pantechdynamics.com -U dbadmin -d app app.dump-Fc writes the custom format, which pg_restore can load in parallel with -j. --no-owner --no-acl leaves out the old server's roles and grants: create your application's login on Pantech, then grant it what it needs.
$ mysqldump --single-transaction --routines --triggers --set-gtid-purged=OFF \ -h old-db.example.com -u app -p --databases app > app.sql$ mysql -h db-7k2q9x4m1a.af-abj-2.db.pantechdynamics.com -u dbadmin -p < app.sql--single-transaction takes a consistent copy of InnoDB tables without locking them. Leave out --set-gtid-purged=OFF for MariaDB, which does not have it.
Do a full trial run first and time it: that tells you how long the write freeze has to be. Then, after the freeze, dump and restore again for the final copy.
The admin login and its password are on the database; see passwords.
5. Addresses and load balancers
Your public addresses change: every address on Pantech is a new one. Reserve static IPs for what DNS will point at, and recreate each load balancer's listeners on a Pantech load balancer. If the old load balancer held your TLS certificates, install them on your servers or on the new load balancer.
6. Test before you switch
Point a request at the new address (<server-public-ip>) without changing DNS, so you test exactly what visitors will get:
$ curl -I --resolve www.example.com:443:<server-public-ip> https://www.example.com/Or add the name to your own /etc/hosts for a while and use the site normally. Check logins, uploads, scheduled jobs, outgoing email and anything that talks to the database.
7. Switch DNS
- Start the write freeze, and stop scheduled jobs on the old side.
- Run the final rsync pass and the final database copy.
- Change the DNS records to the Pantech addresses.
- Watch both sides' logs. Traffic moves to Pantech within the old TTL; a few slow resolvers take longer, so keep the old side serving, or showing a maintenance page, for a day.
Once you are happy, raise the TTLs again (an hour or more).
Rolling back
Until DNS changes, rolling back is doing nothing: the old setup never stopped. After the switch, point the records back at the old addresses; with a 300-second TTL, most traffic returns within minutes.
The catch is data written on Pantech after the switch. If you roll back after real writes, copy them back the same way (rsync and a dump from Pantech into the old database) before reopening the old side. Decide in advance how long you will keep that option open, and keep the old servers and database until then.
Afterwards
Keep the old side, stopped, until you are sure: a week is common. Then delete it, along with its snapshots and backups if you no longer need them. If you used Migrate, disconnect the cloud and remove its setup there: each connect page says how, for example AWS.