GreenYork

云计算做paas的pool脚本


[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

posted on 2010-11-22 21:10  GreenYork  阅读(289)  评论(0编辑  收藏  举报

导航