Discussion:
[xcat-user] Error while executing makehosts command
Ahmed Essam
2017-07-09 10:30:02 UTC
Permalink
Hi all,

I am using xCAT 2.13.4 version and the OS on my management node is Centos 6


When I try to execute "makehosts" command the foolowing error appears:

flock() on closed filehandle $lockh at /opt/xcat/lib/perl/xCAT_plugin/hosts.pm line 451.
flock() on closed filehandle $lockh at /opt/xcat/lib/perl/xCAT_plugin/hosts.pm line 565.

Other error appears when I try to use "switchdiscover"

switchdiscover --range 192.168.1.0/24 -w
Command failed: lsdef. Error message: Could not find an object named 'switch-192-168-1-50' of type 'node'..

Given that there isn't a problem in our switch configuration since we've implemented an xCAT cluster before using the same switch with Centos7 management node.

Hope you can help.

Sincerely,
Ahmed Essam
Yuan Y Bai
2017-07-10 06:12:24 UTC
Permalink
Hi Ahmed£¬

I cannot reproduce the makehosts error, could provide more information
about makehosts ?
1) Could you check if /tmp/xcat is rw? could you use non-root user?
2) when executing makehosts, is there a file "/tmp/xcat/hostsfile.lock" ?
3) Could you provide output of "lsxcatd -v", "XCATBYPASS=1 makehosts", "rpm
-qa|grep -i xcat" ?


Best Regards
--------------------------------------------------
Yuan Bai (°×æÂ)

CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: ***@cn.ibm.com
Address: IBM ZGC Campus. Ring Building 28,
ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian
District,
Beijing P.R.China 100193

IBM»·ÓîŽóÏÃ
±±Ÿ©Êк£µíÇø¶«±±ÍúÎ÷·8ºÅ£¬Öй؎åÈíŒþÔ°28ºÅÂ¥
Óʱà:100193



From: Ahmed Essam <***@hotmail.com>
To: "xCAT-***@lists.sourceforge.net"
<xCAT-***@lists.sourceforge.net>
Date: 07/09/2017 06:31 PM
Subject: [xcat-user] Error while executing makehosts command



Hi all,
I am using xCAT 2.13.4 version and the OS on my management node is Centos 6

When I try to execute "makehosts" command the foolowing error appears:


flock() on closed filehandle $lockh
at /opt/xcat/lib/perl/xCAT_plugin/hosts.pm line 451.
flock() on closed filehandle $lockh
at /opt/xcat/lib/perl/xCAT_plugin/hosts.pm line 565.

Other error appears when I try to use "switchdiscover"

switchdiscover --range 192.168.1.0/24 -w
Command failed: lsdef. Error message: Could not find an object named
'switch-192-168-1-50' of type 'node'..

Given that there isn't a problem in our switch configuration since we've
implemented an xCAT cluster before using the same switch with Centos7
management node.

Hope you can help.

Sincerely,
Ahmed Essam



------------------------------------------------------------------------------

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
Ahmed Essam
2017-07-10 09:01:11 UTC
Permalink
Hi Yuan,


Thank you for your help. I found that /tmp/xcat directory was not created by default so xCAT could not create and modify the lock file.

The error no longer appears when the directory is created.

So the first problem was solved and I'm still trying to solve the "switchdiscover" one.

Thanks again for your help.


Best regards,

Ahmed Essam


________________________________
From: Yuan Y Bai <***@cn.ibm.com>
Sent: Monday, July 10, 2017 8:12 AM
To: xCAT Users Mailing list
Subject: Re: [xcat-user] Error while executing makehosts command


Hi Ahmed£¬

I cannot reproduce the makehosts error, could provide more information about makehosts ?
1) Could you check if /tmp/xcat is rw? could you use non-root user?
2) when executing makehosts, is there a file "/tmp/xcat/hostsfile.lock" ?
3) Could you provide output of "lsxcatd -v", "XCATBYPASS=1 makehosts", "rpm -qa|grep -i xcat" ?


Best Regards
--------------------------------------------------
Yuan Bai (°×æÂ)

CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: ***@cn.ibm.com
Address: IBM ZGC Campus. Ring Building 28,
ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,
Beijing P.R.China 100193

IBM»·ÓîŽóÏÃ
±±Ÿ©Êк£µíÇø¶«±±ÍúÎ÷·8ºÅ£¬Öй؎åÈíŒþÔ°28ºÅÂ¥
Óʱà:100193

[Inactive hide details for Ahmed Essam ---07/09/2017 06:31:31 PM---Hi all, I am using xCAT 2.13.4 version and the OS on my manag]Ahmed Essam ---07/09/2017 06:31:31 PM---Hi all, I am using xCAT 2.13.4 version and the OS on my management node is Centos 6

From: Ahmed Essam <***@hotmail.com>
To: "xCAT-***@lists.sourceforge.net" <xCAT-***@lists.sourceforge.net>
Date: 07/09/2017 06:31 PM
Subject: [xcat-user] Error while executing makehosts command

________________________________



Hi all,
I am using xCAT 2.13.4 version and the OS on my management node is Centos 6

When I try to execute "makehosts" command the foolowing error appears:

flock() on closed filehandle $lockh at /opt/xcat/lib/perl/xCAT_plugin/hosts.pm line 451.
flock() on closed filehandle $lockh at /opt/xcat/lib/perl/xCAT_plugin/hosts.pm line 565.

Other error appears when I try to use "switchdiscover"

switchdiscover --range 192.168.1.0/24 -w
Command failed: lsdef. Error message: Could not find an object named 'switch-192-168-1-50' of type 'node'..

Given that there isn't a problem in our switch configuration since we've implemented an xCAT cluster before using the same switch with Centos7 management node.

Hope you can help.

Sincerely,
Ahmed Essam



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot_______________________________________________
xCAT-user mailing list
xCAT-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

xCAT-user Info Page - SourceForge<https://lists.sourceforge.net/lists/listinfo/xcat-user>
lists.sourceforge.net
xCAT, Linux clusters, and other stuff. To see the collection of prior postings to the list, visit the xCAT-user Archives. Using xCAT-user
Loading...