Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 99A8E1337B4A for ; Tue, 15 Feb 2011 18:54:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 13950-01 for ; Tue, 15 Feb 2011 22:54:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iy0-f174.google.com (mail-iy0-f174.google.com [209.85.210.174]) by mail.postgresql.org (Postfix) with ESMTP id D87A51337B4E for ; Tue, 15 Feb 2011 18:54:11 -0400 (AST) Received: by iyj8 with SMTP id 8so586392iyj.19 for ; Tue, 15 Feb 2011 14:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type; bh=zzaVRiaI46DnwrPUHMspCRzSYH7Xa3PxA3fUQicTb4E=; b=cnZl13spxxoU/qx9x8xojekzBw3yX7YkrBnPbmk8FTQ3sohb8YszHr4P/5s8hCXq+z kQzH8pYH3+9Lvq/7oiZ8/yHyR1wevlyJ8Kk2StDQchuQVhlhWv+usFynWsjrnJj83Tns 1GFzpBjmK4Lj1uIn9TsKdTj45VDpdbAcSCYdg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; b=W6I9BgByufA4Ec3sFFwOfaY809U6ssi47STtptip6e6HhPPqawro6FI94nwRz3R7xv DZTsLObOlSDlQlIxL3t4GtwTi6sdCy/v6DAyrzoxRXd6zLozn3VXaoensRaOOGw0Ba8B z6MhpFi91pPMwBpN6aA5bIsj79B3LYEOzNEWI= Received: by 10.42.175.134 with SMTP id ba6mr7382600icb.427.1297810451823; Tue, 15 Feb 2011 14:54:11 -0800 (PST) Received: from [128.101.33.40] (cs-wlc-040.cs.umn.edu [128.101.33.40]) by mx.google.com with ESMTPS id 8sm3949582iba.22.2011.02.15.14.54.11 (version=SSLv3 cipher=OTHER); Tue, 15 Feb 2011 14:54:11 -0800 (PST) Message-ID: <4D5B0412.7050309@gmail.com> Date: Tue, 15 Feb 2011 16:54:10 -0600 From: Sairam Krishnamurthy User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: Scott Mead CC: pgsql-admin@postgresql.org Subject: Re: Moving the data directory References: <4D5AFF19.8030905@gmail.com> <4D5B01AC.4040101@gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030608000404090801000704" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.045 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201102/138 X-Sequence-Number: 36777 This is a multi-part message in MIME format. --------------030608000404090801000704 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Scott, I have 755 permission until "/media/extension/var/lib" and postgres owns the folder from postgresql. Thanks, Sairam Krishnamurthy +1 612 859 8161 On 02/15/2011 04:48 PM, Scott Mead wrote: > > > On Feb 15, 2011 5:44 PM, "Sairam Krishnamurthy" > wrote: > > > > Again, > > > > pg_ctl: could not open PID file > "/media/extension/var/lib/postgresql/8.4/main/postmaster.pid": > Permission denied > > > > Tried all the different ownership possible. > > What about the permissions on your mountpoint? Are they too > restrictive for the postgres user? ( or any of the higher level dirs) > > > > Thanks, > > Sairam Krishnamurthy > > +1 612 859 8161 > > > > > > On 02/15/2011 04:37 PM, Scott Mead wrote: > >> > >> > >> > >> On Tue, Feb 15, 2011 at 5:32 PM, Sairam Krishnamurthy > > wrote: > >>> > >>> Scott, > >>> > >>> I get this error. > >>> > >>> server starting > >>> krishnam@nipa-umh:/media/extension/var/lib$ postgres: invalid > argument: "config_file=/etc/postgresql/8.4/main/postgresql.conf" > >>> > >>> tried with both -o and -c arguments. > >> > >> > >> My mistake, I screwed up! > >> > >> /usr/lib/postgresql/8.4/bin/pg_ctl start -D > /media/extension/var/lib/postgresql/8.4/main/ -o "-c > config_file="/etc/postgresql/8.4/main/postgresql.conf" > >> > >> (-c inside the quotes) > >> > >> --Scott > >> > >>> Thanks, > >>> Sairam Krishnamurthy > >>> +1 612 859 8161 > >>> > >>> > >>> On 02/15/2011 04:27 PM, Scott Mead wrote: > >>>> > >>>> /usr/lib/postgresql/8.4/bin/pg_ctl start -D > /media/extension/var/lib/postgresql/8.4/main/ -o > config_file="/etc/postgresql/8.4/main/postgresql.conf > >> > >> > --------------030608000404090801000704 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Scott,

I have 755 permission until "/media/extension/var/lib" and postgres owns the folder from postgresql.
Thanks,
Sairam Krishnamurthy
+1 612 859 8161

On 02/15/2011 04:48 PM, Scott Mead wrote:


On Feb 15, 2011 5:44 PM, "Sairam Krishnamurthy" <kmsram420@gmail.com> wrote:
>
> Again,
>
> pg_ctl: could not open PID file "/media/extension/var/lib/postgresql/8.4/main/postmaster.pid": Permission denied
>
> Tried all the different ownership possible.

What about the permissions on your mountpoint?  Are they too restrictive for the postgres user?  ( or any of the higher level dirs)
>
> Thanks,
> Sairam Krishnamurthy
> +1 612 859 8161
>
>
> On 02/15/2011 04:37 PM, Scott Mead wrote:
>>
>>
>>
>> On Tue, Feb 15, 2011 at 5:32 PM, Sairam Krishnamurthy <kmsram420@gmail.com> wrote:
>>>
>>> Scott,
>>>
>>> I get this error.
>>>
>>> server starting
>>> krishnam@nipa-umh:/media/extension/var/lib$ postgres: invalid argument: "config_file=/etc/postgresql/8.4/main/postgresql.conf"
>>>
>>> tried with both -o and -c arguments.
>>
>>
>> My mistake, I screwed up!
>>
>> /usr/lib/postgresql/8.4/bin/pg_ctl start -D /media/extension/var/lib/postgresql/8.4/main/ -o "-c config_file="/etc/postgresql/8.4/main/postgresql.conf"
>>
>>  (-c inside the quotes)
>>
>> --Scott
>>
>>> Thanks,
>>> Sairam Krishnamurthy
>>> +1 612 859 8161
>>>
>>>
>>> On 02/15/2011 04:27 PM, Scott Mead wrote:
>>>>
>>>> /usr/lib/postgresql/8.4/bin/pg_ctl start -D /media/extension/var/lib/postgresql/8.4/main/ -o config_file="/etc/postgresql/8.4/main/postgresql.conf
>>
>>

--------------030608000404090801000704--