prod mode) — для переноса с действующего сервера, сохраняет существующие диапазоны UID/GID и SID;
stage mode) — для тестовых сред; генерирует новые диапазоны UID/GID и SID.
# ipa-migrate prod-mode ipa.example.test
где ipa.example.test — FQDN сервера, с которого будет производиться миграция (удалённый сервер).
Enter the password for cn=directory manager:
Warning - the migration process is irreversible! Make sure you have a backup of the local IPA server before doing the migration To proceed type "yes": yes
Initializing ... Connecting to local server ... IPA to IPA migration starting ... Migrating schema ... Migrating configuration ... Migrating database ... (this make take a while) Processed 554 entries. Running ipa-server-upgrade ... (this make take a while) Running SIDGEN task ... Migration complete! …
Action Items (4 items)
----------------------
- You will have to manually migrate IDM related configuration files. Here are some, but not all, of the configuration files to look into:
- /etc/ipa/*
- /etc/sssd/sssd.conf
- /etc/named.conf
- /etc/named/*
- ...
- SSSD should be restarted after a successful migration
- The local server is in migration mode. Once all migration tasks are done you will have to take the server out of migration mode.
- The admin password is not migrated from the remote server. Reset it manually if needed.
===============================================================================
/etc/ipa/* — основные файлы FreeIPA;
/etc/sssd/sssd.conf — конфигурация SSSD;
/etc/named.conf — конфигурация BIND;
/etc/named/* — зоны и ключи DNS.
# systemctl restart sssd
$kinit admin$ipa passwd admin
# ipa-server-upgrade
Примечание
ipa-client-install). Сертификаты, выданные старым CA, недействительны — их необходимо перевыпустить. Keytab, созданные вручную, следует воссоздать с помощью команды ipa-getkeytab