如何迁移 Fedora 目录服务器

如何迁移 Fedora 目录服务器

我正在尝试将旧的 Fedora Core 8 机器迁移到 CentOS 7。它运行 Samba 和 Fedora Directory 服务器。它用于对 Windows 用户进行身份验证。我想迁移到 Samba4。最好的方法是什么?

我尝试使用 db2ldif 从旧实例导出 userRoot 和 NetscapeRoot,然后将它们导入到新系统上的新 389-ds-base 安装中。但是,当我尝试导入时似乎什么也没发生:

[root@localhost ~]# ldif2db -n userRoot -i /tmp/master-fds-vm-userRoot-2019_09_24_143444.ldif -V
importing data ...
[02/Oct/2019:13:10:29.522831117 +1300] - INFO - ldbm_instance_config_cachememsize_set - force a minimal value 512000
[02/Oct/2019:13:10:29.586587024 +1300] - INFO - dblayer_instance_start - Import is running with nsslapd-db-private-import-mem on; No other process is allowed to access the database
[02/Oct/2019:13:10:29.597389252 +1300] - INFO - check_and_set_import_cache - pagesize: 4096, available bytes 1218830336, process usage 22802432
[02/Oct/2019:13:10:29.606072307 +1300] - INFO - check_and_set_import_cache - Import allocates 476105KB import cache.
[02/Oct/2019:13:10:29.764355975 +1300] - INFO - import_main_offline - import userRoot: Beginning import job...
[02/Oct/2019:13:10:29.773533042 +1300] - INFO - import_main_offline - import userRoot: Index buffering enabled with bucket size 100
[02/Oct/2019:13:10:29.979991685 +1300] - INFO - import_producer - import userRoot: Processing file "/tmp/master-fds-vm-userRoot-2019_09_24_143444.ldif"
[02/Oct/2019:13:10:30.267741538 +1300] - INFO - import_producer - import userRoot: Finished scanning file "/tmp/master-fds-vm-userRoot-2019_09_24_143444.ldif" (0 entries)
[02/Oct/2019:13:10:30.285382560 +1300] - INFO - import_monitor_threads - import userRoot: Workers finished; cleaning up...
[02/Oct/2019:13:10:30.390121280 +1300] - INFO - import_monitor_threads - import userRoot: Workers cleaned up.
[02/Oct/2019:13:10:30.400309535 +1300] - INFO - import_main_offline - import userRoot: Cleaning up producer thread...
[02/Oct/2019:13:10:30.405254121 +1300] - INFO - import_main_offline - import userRoot: Indexing complete.  Post-processing...
[02/Oct/2019:13:10:30.409632455 +1300] - INFO - import_main_offline - import userRoot: Generating numsubordinates (this may take several minutes to complete)...
[02/Oct/2019:13:10:30.418819816 +1300] - INFO - import_main_offline - import userRoot: Generating numSubordinates complete.
[02/Oct/2019:13:10:30.423092666 +1300] - INFO - ldbm_get_nonleaf_ids - import userRoot: Gathering ancestorid non-leaf IDs...
[02/Oct/2019:13:10:30.426980126 +1300] - INFO - ldbm_get_nonleaf_ids - import userRoot: Finished gathering ancestorid non-leaf IDs.
[02/Oct/2019:13:10:30.434793064 +1300] - ERR - ldbm_ancestorid_new_idl_create_index - Nothing to do to build ancestorid index
[02/Oct/2019:13:10:30.439823864 +1300] - INFO - ldbm_ancestorid_new_idl_create_index - import userRoot: Created ancestorid index (new idl).
[02/Oct/2019:13:10:30.444923191 +1300] - INFO - import_main_offline - import userRoot: Flushing caches...
[02/Oct/2019:13:10:30.449721205 +1300] - INFO - import_main_offline - import userRoot: Closing files...
[02/Oct/2019:13:10:30.458245882 +1300] - INFO - dblayer_pre_close - All database threads now stopped
[02/Oct/2019:13:10:30.462837420 +1300] - INFO - import_main_offline - import userRoot: Import complete.  Processed 0 entries in 1 seconds. (0.00 entries/sec)

我如何找出所需的模式等?

答案1

389 关于升级等基础知识的文档相当稀少,因为它们依赖于 Red Hat Directory Server。后者的版本号不同。即使存在所有这些混乱,有关从早期版本(7?)升级的 Red Hat DS 文档可能还是有用的。

关于模式,迁移前的任务包括复制架构文件

如果你已经安装yum upgradesetup-ds-admin.pl -u 应该足够了。但是,Fedora 8 上的 Fedora DS 与 CentOS 7 上的 389 之间的差异很大。导出和导入应该是能够处理版本差异的最兼容选项。复制可能不是此升级的选项。

相关内容