You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users-cn@cloudstack.apache.org by 谢福平 <75...@qq.com> on 2015/07/06 04:10:55 UTC

块设备作为主存储的使用问题

请教一个块设备共享使用的问题:

在为cloudstack选择主存储的时候,如果使用SAN设备提供一个LUN,直接给集群中的所偶主机共享使用。

例如,cloudstack主存储类型选择了sharemount,但是主机侧如何解决数据并发访问的问题啊,都有哪些好的方法?

之前用的是RHCS集群 + gfs2文件系统,有诸多问题,不赘述。

回复: 回复: 块设备作为主存储的使用问题

Posted by 谢福平 <75...@qq.com>.
我更关注并发的问题。

或者说,一个块设备拿过来,同时给多个主机使用。如何解决多主机访问带来的并发问题? 




------------------ 原始邮件 ------------------
发件人: "a898611548@163.com";<a8...@163.com>;
发送时间: 2015年7月6日(星期一) 中午11:39
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: 回复: 回复: 块设备作为主存储的使用问题



很简单的问题 如果你要使用共享存储 就只能通过多个共享存储的方式去解决共享存储的压力问题

要不就是分布式存储

既然你已经 有了所谓的共享存储场景 你就得使用多个共享存储区分担 存储压力 





a898611548@163.com
 
发件人: 谢福平
发送时间: 2015-07-06 11:16
收件人: users-cn
主题: 回复: 块设备作为主存储的使用问题
ceph属于分布式存储。我的场景是共享存储。
 
ceph会在后续考虑,目前先考虑共享存储的方案。有什么好的方案吗?
 
 
 
 
------------------ 原始邮件 ------------------
发件人: "Ning Wang";<mn...@gmail.com>;
发送时间: 2015年7月6日(星期一) 中午11:14
收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
主题: Re: 块设备作为主存储的使用问题
 
 
 
试试ceph呢?
 
在 2015年7月6日 上午10:10,谢福平 <75...@qq.com>写道:
 
> 请教一个块设备共享使用的问题:
>
> 在为cloudstack选择主存储的时候,如果使用SAN设备提供一个LUN,直接给集群中的所偶主机共享使用。
>
> 例如,cloudstack主存储类型选择了sharemount,但是主机侧如何解决数据并发访问的问题啊,都有哪些好的方法?
>
> 之前用的是RHCS集群 + gfs2文件系统,有诸多问题,不赘述。

回复: 回复: 块设备作为主存储的使用问题

Posted by "a898611548@163.com" <a8...@163.com>.
很简单的问题 如果你要使用共享存储 就只能通过多个共享存储的方式去解决共享存储的压力问题

要不就是分布式存储

既然你已经 有了所谓的共享存储场景 你就得使用多个共享存储区分担 存储压力 





a898611548@163.com
 
发件人: 谢福平
发送时间: 2015-07-06 11:16
收件人: users-cn
主题: 回复: 块设备作为主存储的使用问题
ceph属于分布式存储。我的场景是共享存储。
 
ceph会在后续考虑,目前先考虑共享存储的方案。有什么好的方案吗?
 
 
 
 
------------------ 原始邮件 ------------------
发件人: "Ning Wang";<mn...@gmail.com>;
发送时间: 2015年7月6日(星期一) 中午11:14
收件人: "users-cn"<us...@cloudstack.apache.org>; 
 
主题: Re: 块设备作为主存储的使用问题
 
 
 
试试ceph呢?
 
在 2015年7月6日 上午10:10,谢福平 <75...@qq.com>写道:
 
> 请教一个块设备共享使用的问题:
>
> 在为cloudstack选择主存储的时候,如果使用SAN设备提供一个LUN,直接给集群中的所偶主机共享使用。
>
> 例如,cloudstack主存储类型选择了sharemount,但是主机侧如何解决数据并发访问的问题啊,都有哪些好的方法?
>
> 之前用的是RHCS集群 + gfs2文件系统,有诸多问题,不赘述。

Re: 回复: 块设备作为主存储的使用问题

Posted by 贝为标 <be...@163.com>.
谢福平,您好!

	分布式存储本身就是共享存储

======= 2015-07-06 11:16:55 您在来信中写道:=======

>ceph属于分布式存储。我的场景是共享存储。
>
>ceph会在后续考虑,目前先考虑共享存储的方案。有什么好的方案吗?
>
>
>
>
>------------------ 原始邮件 ------------------
>发件人: "Ning Wang";<mn...@gmail.com>;
>发送时间: 2015年7月6日(星期一) 中午11:14
>收件人: "users-cn"<us...@cloudstack.apache.org>; 
>
>主题: Re: 块设备作为主存储的使用问题
>
>
>
>试试ceph呢?
>
>在 2015年7月6日 上午10:10,谢福平 <75...@qq.com>写道:
>
>> 请教一个块设备共享使用的问题:
>>
>> 在为cloudstack选择主存储的时候,如果使用SAN设备提供一个LUN,直接给集群中的所偶主机共享使用。
>>
>> 例如,cloudstack主存储类型选择了sharemount,但是主机侧如何解决数据并发访问的问题啊,都有哪些好的方法?
>>
>> 之前用的是RHCS集群 + gfs2文件系统,有诸多问题,不赘述。

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        贝为标
        beiweibiao@163.com
          2015-07-06

回复: 块设备作为主存储的使用问题

Posted by 谢福平 <75...@qq.com>.
ceph属于分布式存储。我的场景是共享存储。

ceph会在后续考虑,目前先考虑共享存储的方案。有什么好的方案吗?




------------------ 原始邮件 ------------------
发件人: "Ning Wang";<mn...@gmail.com>;
发送时间: 2015年7月6日(星期一) 中午11:14
收件人: "users-cn"<us...@cloudstack.apache.org>; 

主题: Re: 块设备作为主存储的使用问题



试试ceph呢?

在 2015年7月6日 上午10:10,谢福平 <75...@qq.com>写道:

> 请教一个块设备共享使用的问题:
>
> 在为cloudstack选择主存储的时候,如果使用SAN设备提供一个LUN,直接给集群中的所偶主机共享使用。
>
> 例如,cloudstack主存储类型选择了sharemount,但是主机侧如何解决数据并发访问的问题啊,都有哪些好的方法?
>
> 之前用的是RHCS集群 + gfs2文件系统,有诸多问题,不赘述。

Re: 块设备作为主存储的使用问题

Posted by Ning Wang <mn...@gmail.com>.
试试ceph呢?

在 2015年7月6日 上午10:10,谢福平 <75...@qq.com>写道:

> 请教一个块设备共享使用的问题:
>
> 在为cloudstack选择主存储的时候,如果使用SAN设备提供一个LUN,直接给集群中的所偶主机共享使用。
>
> 例如,cloudstack主存储类型选择了sharemount,但是主机侧如何解决数据并发访问的问题啊,都有哪些好的方法?
>
> 之前用的是RHCS集群 + gfs2文件系统,有诸多问题,不赘述。

Re: Re:cloudmonkey执行报错

Posted by Darren Tang <da...@gmail.com>.
我想说,我有2台rhel 6.3机器,两套cs4.3  在一台里面cloudmonkey
可以用,但是认证失败,在另一台里面cloudmonkey可以用,并且可以通过认证。和奇怪。
4.1版本,只需填写apikey和secrtkey就可以,貌似5.1还需要用户名和密码才能正常用。



2014-06-12 10:33 GMT+08:00 wanghaicheng2004@gmail.com <
wanghaicheng2004@gmail.com>:

> hi,all
>
> 感谢,找到了问题的原因。在CentOS6.4上就没有问题,在CentOS6.3上出现了问题。具体导致错误的原因是6.3系统中的python-setuptool版本过低导致,pip升级该软件即可
>
>
>
>
> wanghaicheng2004@gmail.com
>
> 发件人: QJS
> 发送时间: 2014-06-11 15:14
> 收件人: users-cn
> 主题: Re:cloudmonkey执行报错
> 没用过cloudmonkey,我猜想是python版本的问题
>
>
>
>
> ------------------ Original ------------------
> From:  "wanghaicheng2004@gmail.com";<wa...@gmail.com>;
> Date:  Wed, Jun 11, 2014 03:12 PM
> To:  "users-cn"<us...@cloudstack.apache.org>;
>
> Subject:  cloudmonkey执行报错
>
>
>
> hi,all
>
> CS4.3安装在CentOS6.3上,在安装cloudmonkey后运行命令报错:
>
> [root@cs-1 ~]# cloudmonkey
> Traceback (most recent call last):
>   File "/usr/bin/cloudmonkey", line 5, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
> <module>
>     working_set.require(__requires__)
>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in
> require
>     needed = self.resolve(parse_requirements(requirements))
>   File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in
> resolve
>     raise DistributionNotFound(req)
> pkg_resources.DistributionNotFound: requests
> [root@cs-1 ~]#
>
> 可能是什么原因呢?
>
>
>
> wanghaicheng2004@gmail.com
>

Re: Re:cloudmonkey执行报错

Posted by "wanghaicheng2004@gmail.com" <wa...@gmail.com>.
hi,all
感谢,找到了问题的原因。在CentOS6.4上就没有问题,在CentOS6.3上出现了问题。具体导致错误的原因是6.3系统中的python-setuptool版本过低导致,pip升级该软件即可




wanghaicheng2004@gmail.com

发件人: QJS
发送时间: 2014-06-11 15:14
收件人: users-cn
主题: Re:cloudmonkey执行报错
没用过cloudmonkey,我猜想是python版本的问题




------------------ Original ------------------
From:  "wanghaicheng2004@gmail.com";<wa...@gmail.com>;
Date:  Wed, Jun 11, 2014 03:12 PM
To:  "users-cn"<us...@cloudstack.apache.org>; 

Subject:  cloudmonkey执行报错



hi,all

CS4.3安装在CentOS6.3上,在安装cloudmonkey后运行命令报错:

[root@cs-1 ~]# cloudmonkey 
Traceback (most recent call last):
  File "/usr/bin/cloudmonkey", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: requests
[root@cs-1 ~]# 

可能是什么原因呢?



wanghaicheng2004@gmail.com

回复: 回复:求助:cluster node IP should be valid local address where the server is running, please check your configuration

Posted by "shi.ll" <sh...@neusoft.com>.
就是这个问题,如你所说方法修改,好用,非常感谢




shi.ll

From: Adagio 
Date: 2014-06-11 16:57
To: users-cn
Subject: 回复:求助:cluster node IP should be valid local address where the server is running, please check your configuration
服务没有重启吗?


cs4.3,
在/etc/cloudstack/management/db.properties里
cluster.node.IP=*.*.*.*
看看是不是这里要改?




------------------ 原始邮件 ------------------
发件人: "shi.ll";<sh...@neusoft.com>;
发送时间: 2014年6月11日(星期三) 下午4:50
收件人: "users-cn@cloudstack.apache.org"<us...@cloudstack.apache.org>; 

主题: 求助:cluster node IP should be valid local address where the server is running, please check your configuration



由于cs的服务器ip地址修改了,数据库和cs服务都在一台机器上,重新配置ip后系统无法登陆,


cs启动时报如下错误: 192.168.131.141 这个是原ip地址,请问下这个要在哪里修改呢。。。


2014-06-11 16:40:43,153 INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:null) Start configuring cluster manager : ClusterManagerImpl_EnhancerByCloudStack_5f13503d
2014-06-11 16:40:43,203 INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:null) Cluster node IP : 192.168.131.141
2014-06-11 16:40:43,205 ERROR [utils.component.ComponentContext] (Timer-2:null) Unhandled exception
javax.naming.ConfigurationException: cluster node IP should be valid local address where the server is running, please check your configuration
at com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1319)
at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

回复:求助:cluster node IP should be valid local address where the server is running, please check your configuration

Posted by Adagio <68...@qq.com>.
服务没有重启吗?


cs4.3,
在/etc/cloudstack/management/db.properties里
cluster.node.IP=*.*.*.*
看看是不是这里要改?




------------------ 原始邮件 ------------------
发件人: "shi.ll";<sh...@neusoft.com>;
发送时间: 2014年6月11日(星期三) 下午4:50
收件人: "users-cn@cloudstack.apache.org"<us...@cloudstack.apache.org>; 

主题: 求助:cluster node IP should be valid local address where the server is running, please check your configuration



由于cs的服务器ip地址修改了,数据库和cs服务都在一台机器上,重新配置ip后系统无法登陆,


cs启动时报如下错误: 192.168.131.141 这个是原ip地址,请问下这个要在哪里修改呢。。。


2014-06-11 16:40:43,153 INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:null) Start configuring cluster manager : ClusterManagerImpl_EnhancerByCloudStack_5f13503d
2014-06-11 16:40:43,203 INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:null) Cluster node IP : 192.168.131.141
2014-06-11 16:40:43,205 ERROR [utils.component.ComponentContext] (Timer-2:null) Unhandled exception
javax.naming.ConfigurationException: cluster node IP should be valid local address where the server is running, please check your configuration
at com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1319)
at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------

求助:cluster node IP should be valid local address where the server is running, please check your configuration

Posted by "shi.ll" <sh...@neusoft.com>.
由于cs的服务器ip地址修改了,数据库和cs服务都在一台机器上,重新配置ip后系统无法登陆,


cs启动时报如下错误: 192.168.131.141 这个是原ip地址,请问下这个要在哪里修改呢。。。


2014-06-11 16:40:43,153 INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:null) Start configuring cluster manager : ClusterManagerImpl_EnhancerByCloudStack_5f13503d
2014-06-11 16:40:43,203 INFO  [cloud.cluster.ClusterManagerImpl] (Timer-2:null) Cluster node IP : 192.168.131.141
2014-06-11 16:40:43,205 ERROR [utils.component.ComponentContext] (Timer-2:null) Unhandled exception
javax.naming.ConfigurationException: cluster node IP should be valid local address where the server is running, please check your configuration
at com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1319)
at com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111)
at com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:54)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) 
is intended only for the use of the intended recipient and may be confidential and/or privileged of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please 
immediately notify the sender by return e-mail, and delete the original message and all copies from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------