Selasa, April 08, 2008

Migrating FDS 1.0.4 to 1.1

[root@sys03 replikasi]# /usr/sbin/migrate-ds-admin.pl
Beginning migration of Directory and Administration servers from /opt/fedora-ds . . .
The password for the configuration directory server admin is required.
This is usually the password for the user you use to login to the
console. You can provide this value in one of two ways:

In a .inf file - you can provide migration with a .inf file
containing this and other data like so:
[General]
...
ConfigDirectoryAdminPwd = thepasswordvalue
...
then run migration with -f yourfile.inf
On the command line like so:
command .... General.ConfigDirectoryAdminPwd=thepasswordvalue
Exiting . . .
Log file is '/tmp/migratee8E4eC.log'

[root@sys03 replikasi]# /usr/sbin/migrate-ds-admin.pl General.ConfigDirectoryAdminPwd=password
Beginning migration of Directory and Administration servers from /opt/fedora-ds . . .
Beginning migration of directory server instances in /opt/fedora-ds . . .
The target directory server instance already exists at /etc/dirsrv/slapd-sys03/dse.ldif. Skipping migration. Note that if you want to migrate the old instance you will have to first remove the new one of the same name.

Beginning migration of Administration server from /opt/fedora-ds . . .
Creating Admin Server files and directories . . .
The server 'ldap://sys03.pt.co.id:389/o%3DNetscapeRoot' is not reachable. Error: unknown error

Exiting . . .
Log file is '/tmp/migratenWZXqE.log'

[root@sys03 replikasi]# rm -rf /etc/dirsrv/slapd-sys03/
cert8.db dse.ldif dse.ldif.startOK key3.db secmod.db
certmap.conf dse.ldif.bak dse_original.ldif schema/ slapd-collations.conf
[root@sys03 replikasi]# rm -rf /etc/dirsrv/slapd-sys03/
[root@sys03 replikasi]# /usr/sbin/migrate-ds-admin.pl General.ConfigDirectoryAdminPwd=password
Beginning migration of Directory and Administration servers from /opt/fedora-ds . . .
Beginning migration of directory server instances in /opt/fedora-ds . . .
Your new DS instance 'slapd-sys03' was successfully created.
Server failed to start !!! Please check errors log for problems


[root@sys03 replikasi]# p ax|grep slap
bash: p: command not found
[root@sys03 replikasi]# ps ax|grep slap
21233 pts/4 S+ 0:00 grep slap
[root@sys03 replikasi]# /opt/fedora-ds/slapd-sys03/start-slapd
/opt/fedora-ds/slapd-sys03/start-slapd: line 33: ./ns-slapd: No such file or directory
[root@sys03 replikasi]# /sbin/service dirsrv start
Starting dirsrv:
sys03... [FAILED]
*** Warning: 1 instance(s) failed to start

0 comments: