Hello! I have quite similar problem with upgrade package 'postgresql-common' from version 111 to 112. I have cluster - 2 nodes with drbd and heartbeat. The drbd partition is mounted only on node-A (/mnt/drbd0). In postgresql.conf I have set: data_directory = '/mnt/drbd0/postgres/8.4/main' (on both nodes). While I try to upgrade this package on node-B (where postgres is stoped) I have:
r...@node-b:~# aptitude dist-upgrade -P The following packages will be upgraded: postgresql-common 1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/127 kB of archives. After unpacking 0 B will be used. Do you want to continue? [Y/n/?] Preconfiguring packages ... (Reading database ... 21414 files and directories currently installed.) Preparing to replace postgresql-common 111 (using .../postgresql-common_112_all.deb) ... Stopping PostgreSQL 8.4 database server: mainError: /mnt/drbd0/postgres/8.4/main is not accessible or does not exist ... failed! failed! invoke-rc.d: initscript postgresql, action "stop" failed. dpkg: warning: subprocess old pre-removal script returned error exit status 1 dpkg - trying script from the new package instead ... Stopping PostgreSQL 8.4 database server: mainError: /mnt/drbd0/postgres/8.4/main is not accessible or does not exist ... failed! failed! invoke-rc.d: initscript postgresql, action "stop" failed. dpkg: error processing /var/cache/apt/archives/postgresql-common_112_all.deb (--unpack): subprocess new pre-removal script returned error exit status 1 configured to not write apport reports Starting PostgreSQL 8.4 database server: mainError: /mnt/drbd0/postgres/8.4/main is not accessible or does not exist ... failed! failed! invoke-rc.d: initscript postgresql, action "start" failed. dpkg: error while cleaning up: subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: /var/cache/apt/archives/postgresql-common_112_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: dpkg: error processing postgresql-common (--configure): Package is in a very bad inconsistent state - you should reinstall it before attempting configuration. Errors were encountered while processing: postgresql-common On the other node (node-A) the problem does not occur. -- Przemek Sciborek <prze...@sciborek.pl> -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org