Thứ Sáu, 14 tháng 3, 2014

Fix "connect: No buffer spaces available"

When i use traceroute, something shell display "connect: No buffer spaces available".
Edit kernel parameters to fix:
echo 200000 > /proc/sys/net/netfilter/nf_conntrack_max (most important)
echo 8000 > /proc/sys/net/core/somaxconn
echo 8000 > /proc/sys/net/core/netdev_max_backlog
echo "10000 65000" > /proc/sys/net/ipv4/ip_local_port_range
echo 1024 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
 echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh3

Thứ Hai, 23 tháng 12, 2013

RTNETLINK answers: File exists - Configure interfaces ubuntu 12.04

After configure interface in ubuntu 12.04, restart service networking:
# service networking restart
....
RTNETLINK answers: File exists

And check interface shows nothing changed.
Solution:
# ip addr flush dev eth0

Thứ Hai, 14 tháng 10, 2013

Can not log in CentOS in runlevel 3 after install Oracle Database 11g R2

I had this issue after installed Oracle Database 11g R2 in CentOS 5.9 64-bit.
I could not log in CentOS in runlevel 3, but runlevel 5 or ssh was OK.
View log : /var/log/secure, I saw:


Oct 15 08:16:58 db1 login: PAM unable to dlopen(/lib/security/pam_limits.so)
Oct 15 08:16:58 db1 login: PAM [error: /lib/security/pam_limits.so: wrong ELF class: ELFCLASS32]
Oct 15 08:16:58 db1 login: PAM adding faulty module: /lib/security/pam_limits.so
Oct 15 08:17:00 db1 login: pam_unix(login:session): session opened for user root by LOGIN(uid=0)
Oct 15 08:17:00 db1 login: Module is unknown

I remembered when installed Oracle, i edited file /etc/pam.d/login.
Appended file with line : session required /lib/security/pam_limits.so (Oracle docs said that ..... )
But my CentOS is 64-bit, so I changed it to session required /lib64/security/pam_limits.so and try logging. And now everything is OK.

Thứ Sáu, 23 tháng 8, 2013

CentOS 5.9 minimal

CentOS 5.9 không có bản iso minimal nhưng có thể sử dụng iso CentOS-5.9-x86_64-bin-1of9.iso để cài minimal. Chỉ cần trong lúc lựa chọn cài đặt các gói chỉ chọn group Base và bỏ chọn tất cả các group khác. Việc cài đặt diễn ra bình thường

http://centos-hn.viettelidc.com.vn/5.9/isos/x86_64/CentOS-5.9-x86_64-bin-1of9.iso
Manual: http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.9

Thứ Năm, 15 tháng 8, 2013

Tài liệu Solaris 10

Được giao nhiệm vụ tìm hiểu Solaris 10 + Oracle Directory Server và được giao 1 con SPARC để test ( yahuu ). Thế là vội vàng tìm tài liệu để vọc cái solaris trước. Đại loại là khá ít tài liệu hay, kể cả mấy cái có đánh giá cao trên amazon đi nữa. Còn tài liệu của oracle thì ... rất chuẩn, nhưng công nhận là nó viết chán thật.
Tóm lại là tìm được 2 cái link sau:
http://www.oracle.com/technetwork/server-storage/solaris10/documentation/index.html --> dù chê những vẫn phải đọc
http://www.c0t0d0s0.org/lksfbook/lksfbook_21022010.pdf --> khá hay
......