Difference between revisions of "Centos"
Jump to navigation
Jump to search
m |
|||
Line 29: | Line 29: | ||
fs.file-max = 6815744</pre> | fs.file-max = 6815744</pre> | ||
+ | |||
+ | See more [http://download.oracle.com/docs/cd/B19306_01/install.102/b15660/pre_install.htm#sthref264 here] | ||
+ | |||
==Changing hard & soft file limits== | ==Changing hard & soft file limits== | ||
* Edit /etc/security/limits.conf | * Edit /etc/security/limits.conf |
Revision as of 12:31, 31 January 2011
bugs
NFS mount permission denied
Error:
[root@traderdirect ~]# mount 10.93.138.18:/nfs-shares /mounts/tdstorage/ mount: 10.93.138.18:/nfs-shares failed, reason given by server: Permission denied
Solution: /bin/mount -t nfsd nfsd /proc/fs/nfsd See: this bug report
General
Add Swap
TO add a 4 gig swap:
- dd if=/dev/zero of=/swapfile bs=1M count=4096
- mkswap /swapfile
- swapon /swapfile
Then add the following to /etc/fstab:
- /swapfile swap swap defaults 0 0
Kernel Parameters for Oralce
- Put in /etc/sysctl.conf
kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 - 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 fs.file-max = 6815744
See more here
Changing hard & soft file limits
- Edit /etc/security/limits.conf