Openfiler service fails to start

My lab Openfiler system lost both its iSCSI target and web interface on TCP port 446 after a static IP address was assigned. Several reboots did not restore either service.
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.