Pamiętniki z upgradeów

Michal Kochanowicz michal w michal.waw.pl
Wto, 5 Mar 2002, 19:32:44 CET


Cześć

Przy upgd pakietów (przedtem były upgdowane ze dwa tygodnie temu wyskoczyło
trochę błędów. Szczególnie ostatni fragment z postgresem jest dla mnie
niezrozumiały.

Fragmenty logu z rpm -Fv <dużo różnych pakietów>:
portsentry-1.1-1
/usr/local/psionic/portsentry/portsentry.ignore.tmp: Nie ma takiego pliku ani katalogu.
Zatrzymywanie uslugi portsentry....................................[ ZROBIONE ]
Uruchamianie uslugi portsentry-atcp................................[ ZROBIONE ]
Uruchamianie uslugi portsentry-audp................................[ ZROBIONE ]
[ciach]
fortune-mod-1.0-12
błąd: cannot remove /usr/share/games/fortunes - directory not empty
fortune-mod-bofh-excuses-1.1-2
[ciach]
FHS-2.1-17
błąd: cannot remove /usr/X11R6/share/applnk - directory not empty
MAKEDEV-2.6-4
[ciach]

Teraz o upg postgresa:
[root w woland RPMS]# pg_dumpall -U postgres > ~/sql.pg_dumpall-2002-03-05
connected to template1...
[ciach]
[root w woland RPMS]# cd /var/lib/
[root w woland lib]# rm -rf pgsql/*
[root w woland lib]# cd -
/mnt/PLD/RPMS
[root w woland RPMS]# rpm -Fv postgresql-7.2-6.i586.rpm
Preparing packages for installation...
postgresql-7.2-6
Usluga PostgreSQL nie jest uruchomiona.
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

Fixing permissions on existing directory /var/lib/pgsql... ok
creating directory /var/lib/pgsql/base... ok
creating directory /var/lib/pgsql/global... ok
creating directory /var/lib/pgsql/pg_xlog... ok
creating directory /var/lib/pgsql/pg_clog... ok
creating template1 database in /var/lib/pgsql/base/1... ok
creating configuration files... ok
initializing pg_shadow... ok
enabling unlimited row size for system tables... ok
creating system views... ok
loading pg_description... ok
vacuuming database template1... ok
copying template1 to template0... ok

Success. You can now start the database server using:

    /usr/bin/postmaster -D /var/lib/pgsql
or
    /usr/bin/pg_ctl -D /var/lib/pgsql -l logfile start

Uruchamianie uslugi PostgreSQL.....................................[  ZAJETY  ]pg_ctl: postmaster does not start
                                                                   [ ZROBIONE ]

A tego już całkiem nie rozumiem:
[root w woland RPMS]# psql < ~/sql.pg_dumpall-2002-03-05
psql: FATAL 1:  The data directory was initialized by PostgreSQL version 7.2, which is not compatible with this version 7.1.3.
[root w woland RPMS]# rpm -qa | g postg
postgresql-libs-7.2-6
postgresql-clients-7.2-6
postgresql-7.2-6
-- 
--= Michal Kochanowicz==--==--==BOFH==--==--==michal w michal.waw.pl =--
--= finger me for PGP public key or visit http://michal.waw.pl/PGP =--
--==--==--==--==--==-- Vodka. Connecting people.--==--==--==--==--==--
A chodzenie po górach SSIE!!!



Więcej informacji o liście dyskusyjnej pld-devel-pl