Archive

Archive for the ‘CentOS’ Category

Issues with FTP on CentOS 5.4

April 7th, 2010 2 comments

If you’re getting “data connection refused errors” when trying to ftp onto a CentOS box, make sure your ip_conntrack_ftp is loaded.
The default RH/CentOS iptables script includes a conntrack statement :

-A RH-Firewall-1-INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT

but does not load the ftp module.
to fix on the fly run :

modprove ip_conntrack_ftp

to make sure it happens again on boot modify your /etc/sysconfig/iptables-config modules list :

IPTABLES_MODULES=”ip_conntrack_netbios_ns ip_conntrack_ftp”

Centos : permission denied when mounting nfs share from client

January 21st, 2010 No comments

one thing to check is that /proc/nfs is there, if not , mount it.
mount -t nfsd nodev /proc/fs/nfsd

CentOS 5.4 – install oracle client

October 22nd, 2009 No comments

oracle install will need :

yum install xorg-x11-deprecated-libs

CentOS 5 – add dag repo

October 22nd, 2009 No comments

rpm -Uvh http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Linux HA – CRM commands

July 22nd, 2009 No comments

Small reminder as I always tend to forget these :

Dump the CRM cib db :

cibadmin -Q > cib.backup.xml

Modify a resource , dump the cib, modify the xml for the resources and then import using cibadmin -M

cibadmin -V -M -o resources -x modified_resources.xml

Add a resource , create the xml for the resource and them use -C

cibadmin -V -C -o resources -x new_resource.xml

Move resource from one location to another, -f to force it …

crm_resource -M -r resource -H host
crm_resource -M -r resource -H host -f