Как я могу переместить VPS от одного поставщика другому при хранении конфигураций? Я могу просто использовать 'rsync / destination: /'?

Я решил проблему. Так или иначе все мои установки переадресации DNS для нашего нового домена (на новом сервере DC/DNS) указывали на неправильный IP-адрес. После того как я изменил эти настройки и перезагрузил сервер (не уверенный, если это было необходимо, но я полагал, что это не причинило вреда), я смог связать машину Windows 7 успешно с доменом.

4
задан 13 April 2017 в 15:14
1 ответ

I went through that exact task a few days ago. The steps I performed was essentially this:

  1. Create a bind mount of the root file system in a separate location on the source VPS. For example mount --bind / /mnt/servername
  2. Create a tar file containing all of /mnt/servername. For example tar -C /mnt -c servername | ssh user@newserver dd of=copy.tar
  3. Extract the tar file. At this point it is important to use the --numeric-owner flag for tar.
  4. Replace the network configuration in the extracted image with one suitable for the destination VPS.
  5. Move the files into their final position (this is the tricky part).

Step 5 becomes a lot simpler if the destination VPS offers management features such as netboot, virtual console, etc. The VPS I was migrating to offered both of the above. The virtual console was utilizing a VNC client connecting to the hypervisor for access to the virtual display.

If you don't have such management features, you need to get that step right in the first try. And updating the boot loader is challenging.

3
ответ дан 3 December 2019 в 03:43

Теги

Похожие вопросы