On 19-02-2013 15:57, Tarcisio Martins wrote:
Descobrí que a paição sda que tenho para ele estourou, está 100% alocada, pode ser esse o motivo de ter caído.

2013/2/19 Tarcisio Martins <[email protected] <mailto:[email protected]>>


    Pessoal, boa tarde. Estou tentando reiniciar o server Postgres e
    tenho o seguinte cenário:

     1. Como root verifiquei se o serviço estava executando => shell$
        service postgres status => service: no such service postgres,
        procurei pelo service postmaster e tive a mesma resposta do
        shell.
     2. shell$ su - postgres
     3. shell$  initdb --pgdata=/var/lib/pgsql/data => resposta shell:
        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".

        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".
     4. Entendí que preciso apagar o diretório"/var/lib/pgsql/data"
        mas não sei se estarei fazendo a coisa certa, ou seja, existe
        algo nesse diretório que não deve ser apagado? Ou eu devo
        logar com um usuário do sistema operacional cujo alias é
        postgres?

         Enfim eu só quero reiniciar o servidor, o que devo fazer?
    Obrigado pela atenção de todos, estou usando Postgres 9.x no S.O.
    linux Suse.



-- Tarcísio Martins Ferreira -
     Analista Desenvolvedor de Sistemas Sênior -
     Bacharel em Ciência da Computação -
     UFU - Universidade Federal de Uberlândia <http://www.ufu.br>




--
 Tarcísio Martins Ferreira -
 Analista Desenvolvedor de Sistemas Sênior -
 Bacharel em Ciência da Computação -
 UFU - Universidade Federal de Uberlândia <http://www.ufu.br>



_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
primeiramente: Não exclua o diretorio data. É nele que estão os dados.

Sim, provavelmente o espaço em disco que não deixa o serviço iniciar.

Não entendo muito do suse mas verifique em /etc/init.d/ se tem algum serviço do postgres. No ubuntu tem /etc/init.d/Postgesql9.2, daí prá iniciar :
/etc/init.d/Postgesql9.2 start
e
/etc/init.d/Postgesql9.2 stop

[]s

--

.~.*Prof. Cleverson B. Klettenberg* / v \ [email protected]
/(   )\
 ^^-^^   Seja Livre!

_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a