Se trata de instalar una nueva versión de Fedora Directory (la 1.0.4) y migrar los datos de una versión anterior (la 1.0.1).
- Bajar el binario de http://directory.fedoraproject.org/wiki/Download.
- Crear el grupo y el usuario ldap.
- Instalar el Fedora Directory.
- Verificar que la máquina tenga un java 1.4 o 1.5 (necesario para la consola) y definir la variable JAVA_HOME (si "java" no está en el path).
- Ejecutar el setup (/opt/fedora-ds/setup/setup):
[root@ldap-test_1 tmp]# /opt/fedora-ds/setup/setup
INFO Begin Setup . . .
LICENSE AGREEMENT AND LIMITED PRODUCT WARRANTY
FEDORA(TM) DIRECTORY SERVER
[.....]
Do you accept the license terms? (yes/no) yes
=======================================================================
Fedora Directory Server 1.0.4
=======================================================================
The Fedora Directory Server is subject to the terms detailed in the
license agreement file called LICENSE.txt.
Late-breaking news and information on the Fedora Directory Server is
available at the following location:
http://directory.fedora.redhat.com
Continue? (yes/no) yes
Fedora Directory Server system tuning analysis version 04-APRIL-2005.
NOTICE : System is i686-unknown-linux2.4.21-47.ELsmp (2 processors).
ERROR : There is 3766MB of physical memory but only 1023MB of swap space.
NOTICE : The net.ipv4.tcp_keepalive_time is set to 7200000 milliseconds
(120 minutes). This may cause temporary server congestion from lost
client connections.
WARNING: There are only 1024 file descriptors (hard limit) available, which
limit the number of simultaneous connections.
WARNING: There are only 1024 file descriptors (soft limit) available, which
limit the number of simultaneous connections.
NOTICE : / partition has less space available, 3833MB, than the largest
allowable core file size of 4095MB. A daemon process which dumps core could
cause the root partition to be filled.
Continue? (yes/no) yes
Please select the install mode:
1 - Express - minimal questions
2 - Typical - some customization (default)
3 - Custom - lots of customization
Please select 1, 2, or 3 (default: 2) 2
Hostname to use (default: ldap-test_1) [Enter]
Server user ID to use (default: nobody) ldap
Server group ID to use (default: nobody) ldap
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
The server ID must be a valid filename and DN component.
Press any key to continue.
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
A suffix must be a valid DN.
Press any key to continue.
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
Fedora server information is stored in the Fedora configuration
directory server, which you may have already set up. If so, you
should configure this server to be managed by the configuration
server. To do so, the following information about the configuration
server is required: the fully qualified host name of the form
.(e.g. hostname.domain.com), the port number,
the suffix, and the DN and password of a user having permission to
write the configuration information, usually the Fedora
configuration directory administrator.
If you want to install this software as a standalone server, or if you
want this instance to serve as your Fedora configuration directory
server, press Enter.
Do you want to register this software with an existing
Fedora configuration directory server? [No]: no
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
If you already have a directory server you want to use to store your
data, such as user and group information, answer Yes to the following
question. You will be prompted for the host, port, suffix, and bind
DN to use for that directory server.
If you want this directory server to store your data, answer No.
Do you want to use another directory to store your data? [No]: no
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
The standard directory server network port number is 389. However, if
you are not logged as the superuser, or port 389 is in use, the
default value will be a random unused port number greater than 1024.
If you want to use port 389, make sure that you are logged in as the
superuser, that port 389 is not in use, and that you run the admin
server as the superuser.
Directory server network port [389]: 26305
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
Each instance of a directory server requires a unique identifier.
Press Enter to accept the default, or type in another name and press
Enter.
Directory server identifier [ldap-test_2.(none)]: intranet
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
Please enter the administrator ID for the Fedora configuration
directory server. This is the ID typically used to log in to the
console. You will also be prompted for the password.
Fedora configuration directory server
administrator ID [admin]: admin
Password:xxxxxxxx
Password (again):xxxxxxxx
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
The suffix is the root of your directory tree. You may have more than
one suffix.
Suffix [dc=]: o=cXXXmaXXXX,c=es
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and typically has a
bind Distinguished Name (DN) of cn=Directory Manager. Press Enter to
accept the default value, or enter another DN. In either case, you
will be prompted for the password for this user. The password must
be at least 8 characters long.
Directory Manager DN [cn=Directory Manager]: [Enter]
Password: xxxxxxxxx
Password (again): xxxxxxxxx
Fedora Project
Directory Installation/Uninstallation
-------------------------------------------------------------------------------
The Administration Domain is a part of the configuration directory
server used to store information about Fedora software. If you are
managing multiple software releases at the same time, or managing
information about multiple domains, you may use the Administration
Domain to keep them separate.
If you are not using administrative domains, press Enter to select the
default. Otherwise, enter some descriptive, unique name for the
administration domain, such as the name of the organization responsible
for managing the domain.
Administration Domain: cm.es
Fedora Project
Administration Installation/Uninstallation
-------------------------------------------------------------------------------
The Administration Server is separate from any of your application
servers since it listens to a different port and access to it is
restricted.
Pick a port number between 1024 and 65535 to run your Administration
Server on. You should NOT use a port number which you plan to
run an application server on, rather, select a number which you
will remember and which will not be used for anything else.
The default in brackets was randomly selected from the available
ports on your system. To accept the default, press return.
Administration port [18802]: 26304
Fedora Project
Administration Installation/Uninstallation
-------------------------------------------------------------------------------
The Administration Server program runs as a certain user on your
system. This user should be different than the one which your
application servers run as. Only the user you select will be
able to write to your configuration files. If you run the
Administration Server as "root", you will be able to use the Server
Administration screen to start and stop your application servers.
Run Administration Server as [root]: [Enter]
Fedora Project
Administration Installation/Uninstallation
-------------------------------------------------------------------------------
The Administration Server runs on the Apache web server. Please provide the
directory where the Apache binary (httpd or httpd.worker) may be found. The
Administration Server needs an Apache compiled with the worker model.
Apache Directory [/usr/sbin/]: [Enter]
[slapd-intranet]: starting up server ...
[slapd-intranet]: Fedora-Directory/1.0.4 B2006.312.545
[slapd-intranet]: ldap-test_2:26305 (/opt/fedora-ds/slapd-intranet)
[slapd-intranet]:
[slapd-intranet]: [25/Jul/2007:03:25:52 +1400] - Fedora-Directory/1.0.4 B2006.312.545 starting up
[slapd-intranet]: [25/Jul/2007:03:25:52 +1400] - slapd started. Listening on All Interfaces port 26305 for LDAP requests
Your new directory server has been started.
Created new Directory Server
Start Slapd Starting Slapd server configuration.
Success Slapd Added Directory Server information to Configuration Server.
Configuring Administration Server...
Setting up Administration Server Instance...
Configuring Administration Tasks in Directory Server...
Configuring Global Parameters in Directory Server...
httpd.worker: Could not determine the server's fully qualified domain name, using 10.2.72.184 for ServerName
You can now use the console. Here is the command to use to start the console:
cd /opt/fedora-ds
./startconsole -u admin -a http://ldap-test_2:26304/
INFO Finished with setup, logfile is setup/setup.log
- Parar el servidor (/opt/fedora-ds/slapd-intranet/stop-slapd).
- Copiar los ficheros del schema (98cxxx.ldif y 99user.ldif) a /opt/fedora-ds/slapd-intranet/config/schema.
- El fichero 99user.ldif debe pertenecer al usuario y grupo ldap.
- Arrancar el servidor (/opt/fedora-ds/slapd-intranet/start-slapd).
- Arrancar la consola.
- Abrir el servidor e importar los ldif de datos.
Nota: en otro post detallaré la migración a una instancia replicada en Multi Master.
No hay comentarios.:
Publicar un comentario