Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UcHTt-0003sl-Jz for pgsql-bugs@arkaria.postgresql.org; Tue, 14 May 2013 15:49:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UcHTs-0002xK-Vz for pgsql-bugs@arkaria.postgresql.org; Tue, 14 May 2013 15:49:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UcHTr-0002tx-RZ for pgsql-bugs@postgresql.org; Tue, 14 May 2013 15:49:35 +0000 Received: from smtp-outbound-1.vmware.com ([208.91.2.12]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UcHTi-0000U9-98 for pgsql-bugs@postgresql.org; Tue, 14 May 2013 15:49:31 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id 3D8D2282AF; Tue, 14 May 2013 08:49:22 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id 3A51C1845B; Tue, 14 May 2013 08:49:22 -0700 (PDT) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 74D2812002A; Tue, 14 May 2013 08:54:33 -0700 (PDT) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Tue, 14 May 2013 08:54:30 -0700 (PDT) Message-ID: <51925CF9.5000809@vmware.com> Date: Tue, 14 May 2013 18:49:13 +0300 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Devrim Gunduz CC: bnicholson@hp.com, pgsql-bugs@postgresql.org Subject: Re: BUG #8160: 9.3 Beta 1 Initdb doesn't work References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.5 (-------) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 14.05.2013 16:48, bnicholson@hp.com wrote: > I've installed the 9.3 beta 1 packages (via pgdg repo and yum) and when I > try to do an initdb it fails. /var/lib/pgsql/9.3/data has nothing in it when > I attempt the initdb : > > #service postgresql-9.3 initdb > Initializing database:[FAILED] > > # cat /var/lib/pgsql/9.3/pgstartup.log > 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". > Data page checksums are disabled. > > fixing permissions on existing directory /var/lib/pgsql/9.3/data ... ok > creating directory /var/lib/pgsql/9.3/data/pg_xlog ... ok > initdb: could not create symbolic link "/var/lib/pgsql/9.3/data/pg_xlog": > File exists There seems to be a bug in the init script. If you don't give a location for pg_xlog on the command line, it uses $PGDATA/pg_xlog, which confuses initdb: > # If the xlog directory is specified just after the locale parameter, use it: > if [ -z $INITDBXLOGDIR ] > then > INITDBXLOGSTRING=`echo $PGDATA/pg_xlog` > else > INITDBXLOGSTRING=`echo $INITDBXLOGDIR` > fi > ... > # Initialize the database > $SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --xlogdir=$INITDBXLOGSTRING --auth='ident' $LOCALESTRING" >> "$PGLOG" 2>&1 < /dev/null Seems that if INITDBXLOGDIR is not given, it should just leave out --xlogdir. Devrim? - Heikki -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs