Jak przywróci

Konfiguracja serwerów, usług, itp.
northwest
Posty: 37
Rejestracja: 04 lutego 2008, 13:26

Jak przywrócić działanie PostgreSQL?

Post autor: northwest »

Witam.
Po restarcie komputera nawaliła mi baza danych (PostgreSQL). Próbowałem ją ręcznie zrestartować i otrzymałem taki komunikat błędu:
Reloading PostgreSQL 8.3 database server: mainpg_ctl: PID file "/var/lib/postgresql/8.3/main/postmaster.pid" does not exist Is server running? failed!
failed!
Jak przywrócić ten plik? Czy stracę dane w bazie danych?

Z góry dzięki za pomoc.
Pozdrawiam.
Ister
Junior Member
Posty: 566
Rejestracja: 05 marca 2009, 12:42

Post autor: Ister »

Pliki .pid przechowują informację o numerze procesu wykorzystywanego przez dany program (w tym wypadku PostgreSQL). Zamiast restartu wykonaj osobno stop (też powinien taki błąd zgłosić) i start.
Jeśli nie pomoże - wrzuć logi.

Natomiast na zawartość bazy nie powinno to mieć żadnego wpływu.
northwest
Posty: 37
Rejestracja: 04 lutego 2008, 13:26

Post autor: northwest »

Zrobiłem tak jak mówisz. Stop->Start i wyświetliło mi się coś takiego:
Starting PostgreSQL 8.3 database server: mainThe PostgreSQL server failed to start. Please check the log output: 2009-03-24 10:57:14 CET DZIENNIK: could not load root certificate file "root.crt": no SSL error reported 2009-03-24 10:57:14 CET SZCZEGÓ£Y:Will not verify client certificates. 2009-03-24 10:57:14 CET KATASTROFALNY: could not create shared memory segment: Zły argument 2009-03-24 10:57:14 CET SZCZEGÓ£Y:Failed system call was shmget(key=5432001, size=55894016, 03600). 2009-03-24 10:57:14 CET PODPOWIED¬:This error usually means that PostgreSQL's request for a shared memory segment exceeded your kernel's SHMMAX parameter. You can either reduce the request size or reconfigure the kernel with larger SHMMAX. To reduce the request size (currently 55894016 bytes), reduce PostgreSQL's shared_buffers parameter (currently 6144) and/or its max_connections parameter (currently 153). If the request size is already small, it's possible that it is less than your kernel's SHMMIN parameter, in which case raising the request size or reconfiguring SHMMIN is called for. The PostgreSQL documentation contains more information about shared memory configuration. failed!
failed!
ODPOWIEDZ