From: | David Noel <david(dot)i(dot)noel(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Amitabh Kant <amitabhkant(at)gmail(dot)com>, Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>, PGSQL Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: initdb error |
Date: | 2012-12-15 05:02:39 |
Message-ID: | CAHAXwYBmmxQK4YkRrx3xbS3Riz4b9m-dAZxU-_npJmWTGaL9uA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
> You need to talk to some FreeBSD kernel hackers about why link()
> might be failing here. Since you see it on UFS too, we can probably
> exonerate the ZFS filesystem-specific code.
>
> I did some googling and found that EPERM can be issued if the filesystem
> doesn't support hard links (which shouldn't apply to ZFS I trust).
> Also, Linux has a "protected_hardlinks" option that causes certain
> attempts at creating hard links to fail --- but our use-case here
> doesn't fall foul of any of those restrictions AFAICS, and of course
> FreeBSD isn't Linux. Still, I wonder if you're running into some
> misdesigned or misimplemented security restriction. You might want
> to look at your kernel parameters and see if any of them look like
> they might have to do with restricting hard-link operations.
>
> Also, since Amitabh failed to duplicate the failure on both earlier
> and later FreeBSD kernels, and we've not heard reports of this from
> anybody else either, it seems more than possible that it's a plain
> old bug in the specific kernel version you're using.
>
> As a short-term workaround, I'd suggest rebuilding with
> HAVE_WORKING_LINK disabled. (Just remove that #define from
> src/include/pg_config_manual.h and rebuild.)
OK, thanks. I've gotten in touch with the freebsd-hackers mailing
list. Hopefully we'll be able to get this one figured out.
I compiled a GENERIC kernel and tried it again. Still no luck. But at
least we know now it wasn't a configuration error.
From | Date | Subject | |
---|---|---|---|
Next Message | Amitabh Kant | 2012-12-15 11:24:31 | Re: initdb error |
Previous Message | Tom Lane | 2012-12-14 22:40:27 | Re: Problems with a custom LOCALE |