Re: started playing with jails




Bill Moran wrote:
In response to Greg Barniskis <nalists@xxxxxxxxxxxxxx>:

Bill Moran wrote:

I've had trouble getting programs that use shared memory (such as Postgres)
to run inside a jail, but it's been a while since I've tried.
Postgres needs this in the host rc.conf:

jail_sysvipc_allow="YES"

My experiments with Postgres in jail predate the existence of that setting.
When I was working with it, you had to frob a sysctl via /etc/sysctl.conf

But even then, I couldn't seem to get it to work -- the Postgres in the
jail would corrupt the shared memory of the postgres outside the jail.
It was ugly. Imagine big, wet tears rolling down my cheeks.

I haven't had the need to try it in a while, so it might work OK now, I
just don't know.


Ah, now that you mention it I do recall discussions of multiple
instances peeing in each others pools so to speak. I also thought
there was discussion of how to fix it, but have no idea where that
went if anywhere...

A single instance inside a jail does work quite happily if the knob
above is set.

--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
<gregb at scls.lib.wi.us>, (608) 266-6348

what is the best method for backup? just back up the whole thing as if it were
"files" on my host?

thanks,
jonathan

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: started playing with jails
    ... I couldn't seem to get it to work -- the Postgres in the ... jail would corrupt the shared memory of the postgres outside the jail. ... the TCP port number it binds to as its SYSV IPC ID... ... different port numbers (and consequentially they will get separate SYSV ...
    (freebsd-questions)
  • Re: [HACKERS] semaphore usage "port based"?
    ... operation occuring within a coordinated set of server processes, ... The issue here, though, is that Marc is trying to start multiple postgres servers in different jails, and in that context the different postgres servers aren't "coordinated" in any real sense. ... We'd prefer that they didn't interact at all, but they are interacting because the SysV code isn't restricting IPC to occur only within a jail. ... This is true of any potential communication mechanism used by multi-instance applications -- be it a command line argument to specify an alternative configuration file, or a configuration file that specifies alternative ports, working directories, mail spool directories, etc. ...
    (freebsd-stable)
  • Re: started playing with jails
    ... Postgres needs this in the host rc.conf: ... My experiments with Postgres in jail predate the existence of that setting. ...
    (freebsd-questions)
  • Re: [HACKERS] semaphore usage "port based"?
    ... If you're in a jail, ... The problem here is that SysV IPC isn't ... This confuses postgres because it can ... per-jail-specific port #?). ...
    (freebsd-stable)
  • Re: started playing with jails
    ... I couldn't seem to get it to work -- the Postgres in the ... jail would corrupt the shared memory of the postgres outside the jail. ... now that you mention it I do recall discussions of multiple instances peeing in each others pools so to speak. ... Greg Barniskis, Computer Systems Integrator ...
    (freebsd-questions)