Re: fallido reinicio postgresql - Disco Duro 100% lleno-base datos corrupta

From: Antonio Tellez Flores <atellezf(at)yahoo(dot)com(dot)mx>
To: tgutierrez(at)unipamplona(dot)edu(dot)co
Cc: pgsql-es-ayuda(at)postgresql(dot)org
Subject: Re: fallido reinicio postgresql - Disco Duro 100% lleno-base datos corrupta
Date: 2004-11-02 01:20:13
Message-ID: 1099358412.12644.6.camel@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Saludos

Si no tienes datos y quieres iniciar la base de datos puedes hacer lo
siguiente:

Como root:

1. rm -rf /var/lib/pgsql/data
2. mkdir -p /var/lib/pgsql/data
3. chown postgres /var/lib/pgsql/data
4. su - postgres
5. initdb -D /var/lib/pgsql/data
6. postmaster -D /var/lib/pgsql/data > logfile 2>& 1&
7. createdb test
8. /sbin/chkconfig postgresql on

El Punto 8 es para que se inicie cuando prendas la m'aquina, puede
variar dependiendo de tu distribuci'on.

Hasta la vista.
> realizandolo de otra forma el iniciao del motor:
>
> [root(at)distup-01 log]# initdb -D /var/database/pgsql
> initdb: cannot be run as root
> Please log in (using, e.g., "su") as the (unprivileged) user that will
> own the server process.
> [root(at)distup-01 log]# su postgres
> bash-2.05b$ initdb -D /var/lib/pgsql/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 es_ES.UTF-8.
>
> initdb: directory "/var/lib/pgsql/data" exists but is not empty
> If you want to create a new database system, either remove or empty
> the directory "/var/lib/pgsql/data" or run initdb with an argument other than
> "/var/lib/pgsql/data".

--
Antonio Téllez Flores
Ciencias de la Computación
Facultad de Ciencias - UNAM
Home Page: http://ada.fciencias.unam.mx/~atellez

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Jose Joaquin Lorente Garcia 2004-11-02 10:11:26 Re: Sistema de Archivos para PostgreSQL / Ejecutable en Windows
Previous Message tgutierrez 2004-11-02 00:54:47 Re: fallido reinicio postgresql - Disco Duro 100% lleno-base datos corrupta