{"id":383,"date":"2008-02-28T23:21:34","date_gmt":"2008-02-28T22:21:34","guid":{"rendered":"https:\/\/www.networknet.nl\/apps\/wp\/archives\/383"},"modified":"2008-02-28T23:21:34","modified_gmt":"2008-02-28T22:21:34","slug":"openfiler-service-fails-to-start","status":"publish","type":"post","link":"https:\/\/www.networknet.nl\/apps\/wp\/archives\/383","title":{"rendered":"Openfiler service fails to start"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" style=\"border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px\" height=\"68\" alt=\"image\" src=\"https:\/\/www.networknet.nl\/apps\/wp\/wp-content\/uploads\/b8efbd9a4d64_DD5D\/image.png\" width=\"224\" align=\"left\" border=\"0\" \/> At some point my lab Openfiler was assigned static ip address and the iSCSI target stopped to function; also it was not reachable by the web interface at tcp port id 446 anymore. Several reboots did not help to solve the problem.<\/p>\n<p>What happened? The network interface configuration was changed. One of the eth config files was changed from DHCP to a static ip address.<\/p>\n<p>vi \/etc\/sysconfig\/network<\/p>\n<blockquote>\n<p>[root@net-nas-01 sysconfig]# cat network      <br \/>NETWORKING=yes       <br \/>HOSTNAME=net-nas-01.networknet.nl       <br \/>GATEWAY=192.168.100.254<\/p>\n<\/blockquote>\n<p>vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/p>\n<blockquote>\n<p>[root@net-nas-01 network-scripts]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0      <br \/>DEVICE=eth0       <br \/>IPADDR=192.168.100.12       <br \/>BOOTPROTO=static       <br \/>NETMASK=255.255.255.0       <br \/>NETWORK=192.168.100.0       <br \/>GATEWAY=192.168.100.254       <br \/>BROADCAST=192.168.100.255       <br \/>ONBOOT=yes<\/p>\n<\/blockquote>\n<p>Openfiler service failed if you checked the services (# service &#8211;status-all). The problem is Openfiler service checks the FQDN in the hosts file located in the etc directory.<\/p>\n<blockquote>\n<p>[root@net-nas-01 ~]# service openfiler &#8211;full-restart      <br \/>Stopping openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [FAILED]       <br \/>Starting openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [FAILED]       <br \/>[root@net-nas-01 ~]# service openfiler -configtest       <br \/>Usage: openfiler {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}       <br \/>[root@net-nas-01 ~]# service openfiler configtest       <br \/>httpd: Could not determine the server&#8217;s fully qualified domain name, using 127.0.0.1 for ServerName       <br \/>Syntax OK       <br \/>[root@net-nas-01 ~]# cd \/etc       <br \/>[root@net-nas-01 etc]# cat hosts       <br \/># Do not remove the following line, or various programs       <br \/># that require network functionality will fail.       <br \/>127.0.0.1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; localhost.localdomain localhost<\/p>\n<\/blockquote>\n<p>Go and modify the hosts file. To modify the hosts file run this command &#8211;&gt; vi \/etc\/hosts and make sure the FQDN names for 127.0.0.1 and the static ip address are set correct.<\/p>\n<p>&#160;<\/p>\n<blockquote>\n<p>[root@net-nas-01 etc]# service openfiler &#8211;full-restart      <br \/>Stopping openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [FAILED]       <br \/>Starting openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [&#160; OK&#160; ]       <br \/>[root@net-nas-01 etc]# cat hosts       <br \/># Do not remove the following line, or various programs       <br \/># that require network functionality will fail.       <br \/>127.0.0.1&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; net-nas-01.networknet.nl       <br \/>192.168.100.12&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; net-nas-01.networknet.nl       <br \/>[root@net-nas-01 etc]#<\/p>\n<\/blockquote>\n<p>For more information go to Openfiler <a href=\"http:\/\/www.openfiler.com\/about\/\">website<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At some point my lab Openfiler was assigned static ip address and the iSCSI target stopped to function; also it was not reachable by the web interface at tcp port id 446 anymore. Several reboots did not help to solve the problem. What happened? The network interface configuration was changed. One of the eth config files was changed from DHCP to a static ip address. vi \/etc\/sysconfig\/network [root@net-nas-01 sysconfig]# cat network NETWORKING=yes HOSTNAME=net-nas-01.networknet.nl GATEWAY=192.168.100.254 vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 [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 Openfiler service failed if you checked the services (# service &#8211;status-all). The problem is Openfiler service checks the FQDN in the hosts file located in the etc directory. [root@net-nas-01 ~]# service openfiler &#8211;full-restart Stopping openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [FAILED] Starting openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [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&#8217;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&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; localhost.localdomain localhost Go and modify the hosts file. To modify the hosts file run this command &#8211;&gt; vi \/etc\/hosts and make sure the FQDN names for 127.0.0.1 and the static ip address are set correct. &#160; [root@net-nas-01 etc]# service openfiler &#8211;full-restart Stopping openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [FAILED] Starting openfiler:&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; [&#160; OK&#160; ] [root@net-nas-01 etc]# cat hosts # Do not remove the following line, or various programs # that require network functionality [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[204],"tags":[209,152,210,147,207,211,793,205,208,206],"class_list":["post-383","post","type-post","status-publish","format-standard","hentry","category-openfiler","tag-configtest","tag-failed","tag-hosts","tag-howto","tag-ip-address","tag-iscsi","tag-openfiler","tag-san","tag-service","tag-static"],"_links":{"self":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/comments?post=383"}],"version-history":[{"count":0,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/posts\/383\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/media?parent=383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/categories?post=383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.networknet.nl\/apps\/wp\/wp-json\/wp\/v2\/tags?post=383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}