我在虚拟机上运行CentOS。我的/ etc / hosts文件如下:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.50.17 192-168-50-17.openstacklocal 192-168-50-17
192.168.50.13 slave5
/etc/resolv.conf中:
; generated by /sbin/dhclient-script
search openstacklocal
nameserver 192.168.50.3
nameserver 8.8.8.8
nameserver 8.8.4.4
所有ping工作正常。但是,当我尝试运行以下命令时 -
/usr/lib64/lustre/tests/llmount.sh,这就是我得到的:
Loading modules from /usr/lib64/lustre/tests/..
detected 1 online CPUs by sysfs
libcfs will create CPU partition based on online CPUs
debug=vfstrace rpctrace dlmtrace neterror ha config ioctl super lfsck
subsystem_debug=all -lnet -lnd -pinger
Formatting mgs, mds, osts
Format mds1: /tmp/lustre-mdt1
Format ost1: /tmp/lustre-ost1
mkfs.lustre: Cannot resolve hostname '192-168-50-17@tcp'.
mkfs.lustre: exiting with 1 (Operation not permitted)
我以root用户身份运行它。任何帮助解决这个问题将不胜感激。谢谢!
答案 0 :(得分:0)
为什么你的/ etc / hosts文件看起来像带有破折号( - )而不是点(。)的IP地址?您可能只需要从(或整个)/ etc / hosts文件中删除这些行。