> Sólo por las moscas ... antes de cambiar el data_directory,hiciste un initdb
No eso lo he estado intentando desde hace un rato atrás usando el comando:

/usr/lib/postgresql/8.3/bin/initdb -D /databd/pgsqldata/data/

El cual me sigue arrojando errores:
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.

Hice "su" al usuario postgres:

> su - postgres

E intente todo nuevamente:

> /usr/lib/postgresql/8.3/bin/initdb -D /databd/pgsqldata/data/
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale en_US.UTF-8.
The default database encoding has accordingly been set to UTF8.
The default text search configuration will be set to "english".

fixing permissions on existing directory /databd/pgsqldata/data ... initdb: 
could not change permissions of directory "/databd/pgsqldata/data": Operation 
not permitted

Y los mensajes me siguen mostrando lo mismo problemas de permisos.

> o copiaste/moviste un cluster existente?
Te refieres a mover el  contenido del directorio /usr/lib/postgresql/8.3/main 
al directorio /datadb/pgsqldata/data?

Un saludo
Ing. Reynier Pérez Mira
Dirección Técnica IP 
--
TIP 9: visita nuestro canal de IRC #postgresql-es en irc.freenode.net

Responder a