注册 登录
菊子曰官方网站 返回首页

鲍永伟的菊子园 http://sns.juziyue.com/?15583 [收藏] [复制] [分享] [RSS]

日志

云计算做paas的pool脚本

已有 1131 次阅读2010-11-22 21:10

分享到:
免费下载菊子曰


[root@server-xen2 ~]# pool-join master-address=server-greenxci  master-username=                                                                             root master-password=
-bash: pool-join: command not found
[root@server-xen2 ~]# xe pool-join master-address=server-greenxci  master-userna                                                                             me=root master-password=
The server failed to handle your request, due to an internal error.  The given m                                                                             essage may give details useful for debugging the problem.
message: Stunnel.Stunnel_error("No host resolved")

[root@server-xen2 ~]# ping 10.32.52.248
PING 10.32.52.248 (10.32.52.248) 56(84) bytes of data.
From 10.32.52.251 icmp_seq=1 Destination Host Unreachable
From 10.32.52.251 icmp_seq=2 Destination Host Unreachable
From 10.32.52.251 icmp_seq=3 Destination Host Unreachable
From 10.32.52.251 icmp_seq=4 Destination Host Unreachable
From 10.32.52.251 icmp_seq=5 Destination Host Unreachable
From 10.32.52.251 icmp_seq=6 Destination Host Unreachable
From 10.32.52.251 icmp_seq=7 Destination Host Unreachable
From 10.32.52.251 icmp_seq=8 Destination Host Unreachable
From 10.32.52.251 icmp_seq=9 Destination Host Unreachable
^C
--- 10.32.52.248 ping statistics ---
11 packets transmitted, 0 received, +9 errors, 100% packet loss, time 10042ms
, pipe 3
[root@server-xen2 ~]# ping 10.32.52.249
PING 10.32.52.249 (10.32.52.249) 56(84) bytes of data.
64 bytes from 10.32.52.249: icmp_seq=1 ttl=64 time=8.23 ms
64 bytes from 10.32.52.249: icmp_seq=2 ttl=64 time=0.286 ms
64 bytes from 10.32.52.249: icmp_seq=3 ttl=64 time=0.286 ms
64 bytes from 10.32.52.249: icmp_seq=4 ttl=64 time=0.299 ms
64 bytes from 10.32.52.249: icmp_seq=5 ttl=64 time=0.297 ms
64 bytes from 10.32.52.249: icmp_seq=6 ttl=64 time=0.295 ms
64 bytes from 10.32.52.249: icmp_seq=7 ttl=64 time=0.308 ms
64 bytes from 10.32.52.249: icmp_seq=8 ttl=64 time=0.287 ms
64 bytes from 10.32.52.249: icmp_seq=9 ttl=64 time=0.297 ms
^C
--- 10.32.52.249 ping statistics ---
9 packets transmitted, 9 received, 0% packet loss, time 8017ms
rtt min/avg/max/mdev = 0.286/1.176/8.237/2.496 ms
[root@server-xen2 ~]# xe pool-join master-address=10.32.52.249  master-username=                                                                             root master-password=
Host agent will restart and attempt to join pool in 10 seconds...
[root@server-xen2 ~]# ls
support.tar.bz2
[root@server-xen2 ~]# xe pool-param-set name-label=greenCloud uuid=933353d7-d62f                                                                             -6206-17cd-9c2ec376c8c8
[root@server-xen2 ~]# xe pool-list
uuid ( RO)                : 933353d7-d62f-6206-17cd-9c2ec376c8c8
          name-label ( RW): greenCloud
    name-description ( RW):
              master ( RO): 28648754-f4ef-4f0f-baca-8c9200cfa615
          default-SR ( RW): <not in database>


[root@server-xen2 ~]# chkconfig --list portmap
portmap         0:off   1:off   2:off   3:on    4:on    5:on    6:off
[root@server-xen2 ~]# chkconfig portmap on
[root@server-xen2 ~]# chkconfig --list nfs
nfs             0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@server-xen2 ~]# chkconfig nfs on
[root@server-xen2 ~]# mkdir /shareVm
[root@server-xen2 ~]# vi /etc/exports
[root@server-xen2 ~]# ls
support.tar.bz2
[root@server-xen2 ~]# service portmap restart
Stopping portmap:                                          [  OK  ]
Starting portmap:                                          [  OK  ]
[root@server-xen2 ~]# service nfs restart
Shutting down NFS mountd:                                  [FAILED]
Shutting down NFS daemon:                                  [FAILED]
Shutting down NFS services:                                [FAILED]
Starting NFS services:                                     [  OK  ]
Starting NFS daemon:                                       [  OK  ]
Starting NFS mountd:                                       [  OK  ]
[root@server-xen2 ~]# chkconfig --list nfs
nfs             0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr                                                                              shared=true device-config:server=server-xen2 device-config:serverpath=/shareVm
Error code: SR_BACKEND_FAILURE_140
Error parameters: , Incorrect DNS name, unable to resolve.,
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr                                                                              shared=true device-config:server=10.32.52.251  device-config:serverpath=/shareV                                                                             m
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr                                                                              shared=true device-config:server=10.32.52.249  device-config:serverpath=/shareV                                                                             m
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,
[root@server-xen2 ~]# service nfs status
rpc.mountd (pid 7368) is running...
nfsd (pid 7365 7364 7363 7362 7361 7360 7359 7358) is running...
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr                                                                              shared=true device-config:server=10.32.52.249  device-config:serverpath=shareVm                                                                            
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr                                                                              shared=true device-config:server=10.32.52.251  device-config:serverpath=shareVm                                                                            
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,
[root@server-xen2 ~]# more /etc/exports
/shareVm *(rw,no_root_squash,sync)
[root@server-xen2 ~]# ls

[root@server-xen2 /]# xe sr-create content-type=user type=nfs name-label=greenSr                                                                              shared=true device-config:server=10.32.52.251  device-config:serverpath=shareVm
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,
[root@server-xen2 ~]# showmount -e
showmount: can't get address for server-xen2
[root@server-xen2 ~]# xsoncosle
-bash: xsoncosle: command not found
[root@server-xen2 ~]# xsconsole
Quitting...
[root@server-xen2 ~]# showmount -e
^C
[root@server-xen2 ~]# showmount -e 10.32.52.251
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr shared=true device-config:server=10.32.52.251  device-config:serverpath=shareVm
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr shared=true device-config:server=server-xen2  device-config:serverpath=shareVm
Error code: SR_BACKEND_FAILURE_140
Error parameters: , Incorrect DNS name, unable to resolve.,
[root@server-xen2 ~]# [root@server-xen2 ~]# showmount -e
showmount: can't get address for server-xen2
[root@server-xen2 ~]# xsoncosle
-bash: xsoncosle: command not found
[root@server-xen2 ~]# xsconsole
Quitting...
[root@server-xen2 ~]# showmount -e
^C
[root@server-xen2 ~]# showmount -e 10.32.52.251
mount clntudp_create: RPC: Port mapper failure - RPC: Unable to receive
[root@server-xen2 ~]# xe sr-create content-type=user type=nfs name-label=greenSr shared=true device-config:server=10.32.52.251  device-config:serverpath=shareVm
Error code: SR_BACKEND_FAILURE_108
Error parameters: , Unable to detect an NFS service on this target.,

--wait for more

免费下载菊子曰

路过

鸡蛋

鲜花

握手

雷人

愤怒

悲哀

评论 (0 个评论)

facelist doodle 涂鸦板

您需要登录后才可以评论 登录 | 注册

关闭

站长推荐

再见了,菊子曰的朋友们
再见了,菊子曰的朋友们
由于经营不善,我们决定解散菊子曰开发团队,并且从即日起不再更新菊子曰了

查看 »

菊子曰 ( 闽ICP备12013319号 )

GMT+8, 2021-4-16 15:21 , Processed in 0.014240 second(s), 8 queries , Apc On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

回顶部