Networknet archive Blog

Openfiler service fails to start

Originally published

image

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.

Code1 line
1
vi /etc/sysconfig/network
Code4 lines
1
2
3
4
[root@net-nas-01 sysconfig]# cat network
NETWORKING=yes
HOSTNAME=net-nas-01.networknet.nl
GATEWAY=192.168.100.254
Code1 line
1
vi /etc/sysconfig/network-scripts/ifcfg-eth0
Code9 lines
1
2
3
4
5
6
7
8
9
[root@net-nas-01 network-scripts]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
IPADDR=192.168.100.12
BOOTPROTO=static
NETMASK=255.255.255.0
NETWORK=192.168.100.0
GATEWAY=192.168.100.254
BROADCAST=192.168.100.255
ONBOOT=yes

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.

Code1 line
1
vi /etc/hosts

[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.