您的位置:首页 > 其它

无可用资源0000 / 0000

2011-10-11 17:46 176 查看
问题:无法创建eucalyptu实例,使用euca2命令查看资源如下:

[root@localhost node]# euca-describe-availability-zones verbose
AVAILABILITYZONE        hell_euca       192.168.0.8
AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
AVAILABILITYZONE        |- m1.small     0000 / 0000   1    128     2
AVAILABILITYZONE        |- c1.medium    0000 / 0000   1    256     5
AVAILABILITYZONE        |- m1.large     0000 / 0000   2    512    10
AVAILABILITYZONE        |- m1.xlarge    0000 / 0000   2   1024    20
AVAILABILITYZONE        |- c1.xlarge    0000 / 0000   4   2048    20

原因:cc指向的nc错误,可能是指向的cc本身

解决方法:重新注册cc节点和nc节点

[root@lvyinglong eucalyptus]# euca_conf --deregister-nodes 192.168.0.8
SUCCESS: removed node '192.168.0.8' from '/opt/eucalyptus/etc/eucalyptus/eucalyptus.conf'
[root@lvyinglong eucalyptus]# euca_conf --deregister-nodes 192.168.0.24
SUCCESS: removed node '192.168.0.24' from '/opt/eucalyptus/etc/eucalyptus/eucalyptus.conf'
[root@lvyinglong eucalyptus]# euca_conf --deregister-cluster nfsnfs

SUCCESS: cluster 'nfsnfs' successfully deregistered.
[root@lvyinglong eucalyptus]# euca_conf --list-nodes

[root@lvyinglong eucalyptus]# euca-describe-availability-zones verbose
[root@lvyinglong eucalyptus]# euca_conf --register-cluster nfsnfs 192.168.0.8

Trying rsync to sync keys with "192.168.0.8"...root@192.168.0.8's password:
done.

SUCCESS: new cluster 'nfsnfs' on host '192.168.0.8' successfully registered.
[root@lvyinglong eucalyptus]# euca_conf --register-nodes 192.168.0.24

INFO: We expect all nodes to have eucalyptus installed in /opt/eucalyptus for key synchronization.

Trying rsync to sync keys with "192.168.0.24"...root@192.168.0.24's password:
done.
[root@lvyinglong eucalyptus]#
[root@lvyinglong eucalyptus]# euca_conf --list-nodes
registered nodes:
192.168.0.24  nfsnfs
192.168.0.8  nfsnfs
[root@lvyinglong eucalyptus]# euca-describe-availability-zones verbose
AVAILABILITYZONE        nfsnfs  192.168.0.8
AVAILABILITYZONE        |- vm types     free / max   cpu   ram  disk
AVAILABILITYZONE        |- m1.small     0002 / 0002   1    128     2
AVAILABILITYZONE        |- c1.medium    0002 / 0002   1    256     5
AVAILABILITYZONE        |- m1.large     0001 / 0001   2    512    10
AVAILABILITYZONE        |- m1.xlarge    0001 / 0001   2   1024    20
AVAILABILITYZONE        |- c1.xlarge    0000 / 0000   4   2048    20
本文出自 “深刻理解” 博客,请务必保留此出处http://yinglong.blog.51cto.com/3559512/685443
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐