Openfiler service fails to start

At some point, a static IP address was assigned to my lab Openfiler system. The iSCSI target stopped working, and the web interface was no longer reachable on TCP port 446. Several reboots did not resolve the problem.
Check the network configuration
The network interface configuration had changed. One of the eth configuration files had been changed from DHCP to a static IP address.
| |
| |
| |
| |
If you check the services with # service --status-all, the Openfiler service is shown as failed. The problem is that the Openfiler service checks the FQDN in the hosts file in the etc directory.
[root@net-nas-01 ~]# service openfiler --full-restart
Stopping openfiler: [FAILED]
Starting openfiler: [FAILED]
[root@net-nas-01 ~]# service openfiler -configtest
Usage: openfiler {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}
[root@net-nas-01 ~]# service openfiler configtest
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
[root@net-nas-01 ~]# cd /etc
[root@net-nas-01 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
Correct the hosts file
Run the following command to edit the hosts file. Make sure the FQDNs for 127.0.0.1 and the static IP address are set correctly.
| |
[root@net-nas-01 etc]# service openfiler --full-restart
Stopping openfiler: [FAILED]
Starting openfiler: [ OK ]
[root@net-nas-01 etc]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 net-nas-01.networknet.nl
192.168.100.12 net-nas-01.networknet.nl
[root@net-nas-01 etc]#
For more information, see the Openfiler website.