I have LINUX Redhat5.1 server using to SAMBA server. It has a error the following : GethostbyaddrERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? Tell me do what ?
Nguyen Cao Dat wrote:> > I have LINUX Redhat5.1 server using to SAMBA server. > It has a error the following : > GethostbyaddrERROR! Out of file structures - perhaps increase > MAX_OPEN_FILES? > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > Tell me do what ?This is *NOT* an error message from samba - BUT FROM LINUX !!! You have to increase the value of the kernel variable MAX_OPEN_FILES and then recompile your Linux-Kernel and reboot with your now kernel. Unfortunately I have no idea where the find/edit the kernel variables in Linux. But some Linux-Guru might help you here! best regards juergen
> Nguyen Cao Dat wrote: > > > > I have LINUX Redhat5.1 server using to SAMBA server. > > It has a error the following : > > GethostbyaddrERROR! Out of file structures - perhaps increase > > MAX_OPEN_FILES? > > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > ERROR! Out of file structures - perhaps increase MAX_OPEN_FILES? > > > > Tell me do what ? > > This is *NOT* an error message from samba - BUT FROM LINUX !!! > > You have to increase the value of the kernel variable MAX_OPEN_FILES and > then recompile your Linux-Kernel and reboot with your now kernel. > > Unfortunately I have no idea where the find/edit the kernel variables in > Linux. But some Linux-Guru might help you here!Just grep through the sources - something like find /usr/src/linux | xargs grep -i "MAX_OPEN_FILES" | grep -i "define" Greetings, FLorian Pflug
You can increase the max number of files in Linux by putting something like this in rc.local: echo "10240" > /proc/sys/kernel/file-max echo "30720" > /proc/sys/kernel/inode-max Rob Naccarato "Civilized men are more discourteous than savages Sys Admin because they know they can be impolite without Sheridan College having their skulls split, as a general thing." Oakville, Ont. Canada - Robert E. Howard
On Sun, Jan 17, 1999 at 02:58:51PM +1100, Rob Naccarato wrote:> You can increase the max number of files in Linux by putting something > like this in rc.local: > > echo "10240" > /proc/sys/kernel/file-max > echo "30720" > /proc/sys/kernel/inode-maxHi I guess this only works for Linux 2.1.x (soon 2.2.x). For 2.0.x I think you have to modify the sources (no I big thing though) Greetings, FLorian Pflug