Hi,
I am trying to create backup of database using slapcat. But as soon as .ldif file reaches size of 2GB, it is giving me an error of File Size Limit Exceeded and quitting the process. I am using bdb 2.3.43. Is there anything I can do about it?
Regards, Mukim Pathan
Hi,
This might happen on a 32 bit kernel, or perhaps you are using 32 bit BDB libraries..
If this is the case, you will need to upgrade your OS or recompile openldap against 64 bit libraries. i'd setup a test system, and validate which of the above is true.
i think on Linux it would be a kernel/policy issue, on solaris it would be a linking issue, as by default both the openldap and BDB configure only picks up 32 bit libraries, solaris ships both 32 and 64 bit libraries, but he 64 bit libraries are in /usr/lib/sparcv9 (not the default location).
there is some chance that it's a policy restriction also, check "ulimit -a" for max file size.
Cheers Brett
On Fri, Jun 5, 2009 at 11:46 PM, mukim pathan mukim.iitkgp@gmail.comwrote:
Hi,
I am trying to create backup of database using slapcat. But as soon as .ldif file reaches size of 2GB, it is giving me an error of File Size Limit Exceeded and quitting the process. I am using bdb 2.3.43. Is there anything I can do about it?
Regards, Mukim Pathan
Hi,
I have a 32 bit supporting OS. Actually I have other processes running on it and hence it's not possible to upgrade the whole OS. is there any other way? I mean if ldapsearch can work like slapcat or if slapcat can make many files of size 2 GB then also I don't have any problem.
Regards, Mukim Pathan
On Sun, Jun 7, 2009 at 7:21 AM, Brett @Google brett.maxfield@gmail.comwrote:
Hi,
This might happen on a 32 bit kernel, or perhaps you are using 32 bit BDB libraries..
If this is the case, you will need to upgrade your OS or recompile openldap against 64 bit libraries. i'd setup a test system, and validate which of the above is true.
i think on Linux it would be a kernel/policy issue, on solaris it would be a linking issue, as by default both the openldap and BDB configure only picks up 32 bit libraries, solaris ships both 32 and 64 bit libraries, but he 64 bit libraries are in /usr/lib/sparcv9 (not the default location).
there is some chance that it's a policy restriction also, check "ulimit -a" for max file size.
Cheers Brett
On Fri, Jun 5, 2009 at 11:46 PM, mukim pathan mukim.iitkgp@gmail.comwrote:
Hi,
I am trying to create backup of database using slapcat. But as soon as .ldif file reaches size of 2GB, it is giving me an error of File Size Limit Exceeded and quitting the process. I am using bdb 2.3.43. Is there anything I can do about it?
Regards, Mukim Pathan
mukim pathan mukim.iitkgp@gmail.com writes:
Hi,
I have a 32 bit supporting OS. Actually I have other processes running on it and hence it's not possible to upgrade the whole OS. is there any other way? I mean if ldapsearch can work like slapcat or if slapcat can make many files of size 2 GB then also I don't have any problem.
Regards, Mukim Pathan
On Sun, Jun 7, 2009 at 7:21 AM, Brett @Google brett.maxfield@gmail.com wrote:
Hi, This might happen on a 32 bit kernel, or perhaps you are using 32 bit BDB libraries.. If this is the case, you will need to upgrade your OS or recompile openldap against 64 bit libraries. i'd setup a test system, and validate which of the above is true. i think on Linux it would be a kernel/policy issue, on solaris it would be a linking issue, as by default both the openldap and BDB configure only picks up 32 bit libraries, solaris ships both 32 and 64 bit libraries, but he 64 bit libraries are in /usr/lib/sparcv9 (not the default location). there is some chance that it's a policy restriction also, check "ulimit -a" for max file size. Cheers Brett On Fri, Jun 5, 2009 at 11:46 PM, mukim pathan <mukim.iitkgp@gmail.com> wrote: Hi, I am trying to create backup of database using slapcat. But as soon as .ldif file reaches size of 2GB, it is giving me an error of File Size Limit Exceeded and quitting the process. I am using bdb 2.3.43. Is there anything I can do about it?
This seems to be a file system error, what is the output of ulimit -f-d and check the file system capabilities.
-Dieter
On Mon, Jun 8, 2009 at 3:17 PM, mukim pathan mukim.iitkgp@gmail.com wrote:
I have a 32 bit supporting OS. Actually I have other processes running on it and hence it's not possible to upgrade the whole OS. is there any other way? I mean if ldapsearch can work like slapcat or if slapcat can make many files of size 2 GB then also I don't have any problem.
If you cannot make a file >2gb yourself, then neither can openldap, so i'd try that first. ("cat /dev/urandom >somefile" and then wait for somefile to go past 2gb, watching in another window)
You still did not clarify your OS type, maybe post "uname -a" to clarify this. Maybe some 32bit Linux OS's might still address more than 2gb, say if they have PAE enabled.
If you can yourself make a file >2gb then maybe there is some hope (might be compiler options to tweak)
Cheers Brett
openldap-technical@openldap.org