Today, I ran into an odd issue where NFS mounts were not being mounted at boot, despite having all of the proper settings in the /etc/fstab entry. There were no errors of note in server logs but I was able to determine that the issue was related to the fact that the server was trying to mount the nfs mount prior to networking coming up. To resolve this, I found the two entries in the /etc/rc3.d/ directory that corresponded to networking and network filesystems:
[[email protected] rc3.d]# ll | grep netfs lrwxrwxrwx 1 root root 15 May 21 14:00 K75netfs -> ../init.d/netfs [[email protected] rc3.d]# ll | grep network lrwxrwxrwx 1 root root 17 May 21 09:10 S10network -> ../init.d/network
Once I located those two files, it was clear that the problem lay in the fact the server was running K75netfs prior to S10network due to rc.d’s habit of starting services in alphabetical order. To resolve the problem, I located an empty “slot” after S10 to move the K75netfs symlink to:
[[email protected] rc3.d]# mv K75netfs S86netfs
By doing this, the network and netfs rc.d scripts are now in the proper order:
[[email protected] rc3.d]# ll | grep network lrwxrwxrwx 1 root root 17 May 21 09:10 S10network -> ../init.d/network [[email protected] rc3.d]# ll | grep netfs lrwxrwxrwx 1 root root 15 May 21 14:00 S86netfs -> ../init.d/netfs
I did a test reboot to confirm and sure enough, when the server was accessible via networking, the nfs mount was in place and accessible as expected. I thought I’d make a post on this for anyone else having the same issue, as google was not too helpful for me.
I ran into an interesting issue with a “minimal” CentOS installation and had to help a colleague install Yum on a server where only rpm existed. Here’s the final RPM line I used:
rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-3.2.22-39.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-elementtree-1.2.6-5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-sqlite-1.1.7-1.2.1.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-python-22.214.171.124-27.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/python-urlgrabber-3.1.0-6.el5.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-fastestmirror-1.1.16-21.el5.centos.noarch.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/yum-metadata-parser-1.1.2-3.el5.centos.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-126.96.36.199-27.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/rpm-libs-188.8.131.52-27.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/popt-184.108.40.206-27.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/m2crypto-0.16-8.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/libxml2-2.6.26-2.1.12.el5_7.2.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/logrotate-3.7.4-12.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/expat-1.95.8-8.3.el5_5.3.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/nss-3.12.10-8.el5.x86_64.rpm http://mirror.centos.org/centos/5/os/x86_64/CentOS/nspr-4.8.8-2.el5.x86_64.rpm
This should install Yum and all the required depedancies for CentOS 5 x86_64 (at the time of this writing). Once this is ran, yum should be available to install any other software needed.