Article ID:
5236
Reviewed:
\2017-03-17
Product Version:
AhsayCBS: 7.9.0.0 to 7.x
OS: Linux
ATTENTION
1st January, 2022: v7 officially End-of-Life [details]
Problem Description:
After a reboot of a Linux AhsayCBS server the AhsayCBS NFS service is not automatically starting up. It has to be started up manually using the
%CBS_INSTALL%/nfs/bin/startup.sh
script.
To resolve this issue, please re-install the AhsayCBS NFS service.
Assumption:
AhsayCBS Install Home = /usr/local/cbs on CentOS 6.4 (Final)
Note:
The following example is based on a CentOS 6.4 (Final) installation.
-
Login to AhsayCBS server as root.
-
cd /usr/local/cbs/nfs/bin
-
Run the following script to uninstall the NFS service:
sh uninstall.sh
# sh uninstall.sh
Log Time: Wed Mar 15 15:54:29 HKT 2017
Verifying current user privilege ...
Current user has enough privilege to "uninstall".
Try to shutdown [ NFS Service (Ahsay Systems Corporation) ]
Stopping NFS Service (Ahsay Systems Corporation)
Wait 5 seconds before [ NFS Service (Ahsay Systems Corporation) ] is down
Remove [ NFS Service (Ahsay Systems Corporation) ] (cbsnfs) from service
Uninstall Service for NIX type OS
Using init script path /etc/init.d
Using run level script path /etc/rc.d
Removing symbolic link from run levels
Removing script file cbsnfs from /etc/init.d
[ NFS Service (Ahsay Systems Corporation) ] uninstall service is complete!
Run the following script to install the NFS service:
sh install.sh
# sh install.sh
Log Time: Thu Mar 16 18:45:34 HKT 2017
Verifying current user privilege ...
Current user has enough privilege to "install".
Start configuration on Generic Linux Platform (Linux)
Installing [ NFS Service (Ahsay Systems Corporation) ]
[ NFS Service (Ahsay Systems Corporation) ] Service Script created at /usr/local/cbs/nfs/bin/cbsnfs
Install Service for NIX type OS
Using init script path /etc/init.d
Using run level script path /etc/rc.d
Copying script cbsnfs to /etc/init.d
Creating symbolic link to run levels
You may start this service by:
sh "/etc/init.d/cbsnfs" start
[ NFS Service (Ahsay Systems Corporation) ] setup completed!
Startup [ NFS Service (Ahsay Systems Corporation) ]
Starting NFS Service (Ahsay Systems Corporation)
Started [ NFS Service (Ahsay Systems Corporation) ]
Verify the symlinks have been created for runlevel 2 to 5.
# ls -la /etc/rc.d/rc[2-5].d/*cbsnfs*
lrwxrwxrwx 1 root root 18 Mar 15 15:28 /etc/rc.d/rc2.d/S99cbsnfs -> /etc/init.d/cbsnfs
lrwxrwxrwx 1 root root 18 Mar 15 15:28 /etc/rc.d/rc3.d/S99cbsnfs -> /etc/init.d/cbsnfs
lrwxrwxrwx 1 root root 18 Mar 15 15:28 /etc/rc.d/rc4.d/S99cbsnfs -> /etc/init.d/cbsnfs
lrwxrwxrwx 1 root root 18 Mar 15 15:28 /etc/rc.d/rc5.d/S99cbsnfs -> /etc/init.d/cbsnfs
#
Verify the AhsayCBS NFS service is running and listening to port 111
# ps -ef|grep nfs
root 1723 2 0 14:30 ? 00:00:00 [nfsiod]
root 2636 2 0 15:05 ? 00:00:00 [nfsd4]
root 2637 2 0 15:05 ? 00:00:00 [nfsd4_callbacks]
root 2643 2 0 15:05 ? 00:00:00 [nfsd]
root 2644 2 0 15:05 ? 00:00:00 [nfsd]
root 2645 2 0 15:05 ? 00:00:00 [nfsd]
root 3367 1 0 15:28 pts/0 00:00:00 /usr/local/cbs/nfs/bin/NfsLinX64 -logfile /usr/local/cbs/nfs/log/debug.log -pidfile /var/run/cbsnfs.pid
root 3464 2356 0 15:36 pts/0 00:00:00 grep nfs
#
# netstat -pan|more
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:38533 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:59270 0.0.0.0:* LISTEN 2630/rpc.mountd
tcp 0 0 0.0.0.0:875 0.0.0.0:* LISTEN 2626/rpc.rquotad
tcp 0 0 0.0.0.0:35373 0.0.0.0:* LISTEN 2685/rpc.statd
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1596/rpcbind
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3312/java
tcp 0 0 0.0.0.0:37620 0.0.0.0:* LISTEN 2630/rpc.mountd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 1923/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1757/cupsd
symlinks, runlevel, NFS service, Linux, CBS, port 111