Unix Technical Forum

Trying to use initlocation

This is a discussion on Trying to use initlocation within the pgsql Admins forums, part of the PostgreSQL category; --> I have problem using initlocation on my debian-server I have a debian server and a postgresql 7.4 on it. ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 01:39 AM
lista@ernstson.nu
 
Posts: n/a
Default Trying to use initlocation



I have problem using initlocation on my debian-server

I have a debian server and a postgresql 7.4 on it. When I try to set up a new
alternative location on it, I got some problem first

I do not know if I have made right when added the variables

PGDATA2=/images-data
in the file /etc/init.d/postgresql
export PGDATA2

(also tryed setting the variables in /etc/postgresql/postgresql.env)

And after that I have tryed to run initlocation PGDATA2 i get the error
Command not found.


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 01:39 AM
Jonathan Daugherty
 
Posts: n/a
Default Re: Trying to use initlocation

# And after that I have tryed to run initlocation PGDATA2 i get the
# error Command not found.

It's probably not in your path:

/usr/lib/postgresql/bin/initlocation

--
Jonathan Daugherty
http://www.parsed.org

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 01:39 AM
lista@ernstson.nu
 
Posts: n/a
Default Re: Trying to use initlocation

Ok, if it's not in my path /usr/lib/postgresql/bin/initlocation how do I do
then
to use initlocation?
Must it bee in that path?

(what exactly do initlocation?) sets some parameter in some set-up files?

Citerar Jonathan Daugherty <cygnus@cprogrammer.org>:

> # And after that I have tryed to run initlocation PGDATA2 i get the
> # error Command not found.
>
> It's probably not in your path:
>
> /usr/lib/postgresql/bin/initlocation
>
> --
> Jonathan Daugherty
> http://www.parsed.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 7: don't forget to increase your free space map settings
>




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-10-2008, 01:39 AM
lista@ernstson.nu
 
Posts: n/a
Default Re: Trying to use initlocation

Ok I now I understand what you say, I have set /usr/lib/postgresql/bin to my
path but it does not help? some other suggestion.

I assume that I have done error in seting the data PGDATA2=/database_image or
some thing ?

or have I done some other thing error when i try to say
initlocation PGDATA2

Even if I stands in .../bin/ it wount work.

Citerar lista@ernstson.nu:

> Ok, if it's not in my path /usr/lib/postgresql/bin/initlocation how do I do
> then
> to use initlocation?
> Must it bee in that path?
>
> (what exactly do initlocation?) sets some parameter in some set-up files?
>
> Citerar Jonathan Daugherty <cygnus@cprogrammer.org>:
>
> > # And after that I have tryed to run initlocation PGDATA2 i get the
> > # error Command not found.
> >
> > It's probably not in your path:
> >
> > /usr/lib/postgresql/bin/initlocation
> >
> > --
> > Jonathan Daugherty
> > http://www.parsed.org
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 7: don't forget to increase your free space map settings
> >

>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>




---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-10-2008, 01:41 AM
Thomas F.O'Connell
 
Posts: n/a
Default Re: Trying to use initlocation

For an explanation of the purpose and behavior of initlocation, look
here:

http://www.postgresql.org/docs/7.4/s...tlocation.html

You can call it with an explicit path (e.g.,
/usr/lib/postgresql/bin/initlocation), or you can add it to your path.

-tfo

--
Thomas F. O'Connell
Co-Founder, Information Architect
Sitening, LLC

Strategic Open Source: Open Your i™

http://www.sitening.com/
110 30th Avenue North, Suite 6
Nashville, TN 37203-6320
615-260-0005

On Apr 4, 2005, at 4:47 PM, Henric Ernstson wrote:

> Ok, if it's not in my path /usr/lib/postgresql/bin/initlocation how do
> I do then
> to use initlocation?
> Must it bee in that path?
>
> (what exactly do initlocation?) sets some parameter in some set-up
> files?
>
>
> Citerar Jonathan Daugherty <cygnus@cprogrammer.org>:
>
>> # And after that I have tryed to run initlocation PGDATA2 i get the
>> # error Command not found.
>>
>> It's probably not in your path:
>>
>> /usr/lib/postgresql/bin/initlocation
>>
>> --
>> Jonathan Daugherty
>> http://www.parsed.org
>>
>> ---------------------------(end of
>> broadcast)---------------------------
>> TIP 7: don't forget to increase your free space map settings
>>

>
>
> Henric Ernstson
> www.ernstson.nu
> 070-577 95 91
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org



---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:36 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com