incubator-cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "linuxbqj@gmail.com" <linux...@gmail.com>
Subject Re: 请问,cloudstack4.0删除了主存储后再新建报错如何解决
Date Wed, 05 Dec 2012 05:45:31 GMT
创建主存储时,可能会发生创建存储pool失败(SR已经被使用,重装CloudStack
management后可能发生此问题),错误提示如下:
 Can not create storage pool through host 1 due to Catch Exception
com.cloud.utils.exception.CloudRuntimeException, create StoragePool failed
due to com.cloud.utils.exception.CloudRuntimeException: There is a SR using
the same configuration server:10.217.5.192, serverpath:/home/export/primary
for pool c9c0319f-33f0-3494-9ada-4d7a2f1dafd4on
host:09b3515e-447e-406f-869a-239386d5fe90 on
host:09b3515e-447e-406f-869a-239386d5fe90 pool:
10.217.5.192/home/export/primary
失败原因通常是因为已经在host里创建过CS,到重装之前UUID为09b3515e-447e-406f-869a-239386d5fe90的host
里删除c9c0319f-33f0-3494-9ada-4d7a2f1dafd4的SR,然后再创建主存储就没有问题了。
在XenServer里删除SR方法如下
1. 首先得到SR的UUID
xe sr-list name-label=c9c0319f-33f0-3494-9ada-4d7a2f1dafd4

 2. 使用UUID获得物理块设备列表,可能有多个。

xe pbd-list sr-uuid= SR-uuid-from-step-1
3. 卸载物理块设备,如有多个,需要执行多次
xe pbd-unplug uuid=PBD-uuid-from-step-2
4. 销毁物理块设备,如有多个,需要执行多次
xe pbd-destroy uuid=PBD-uuid-from-step-2
5. 删除SR
xe sr-forget uuid=SR-uuid-from-step-1

 另外,此问题可以在重新安装前,查询出storage_pool里的SR(select uuid
from storage_pool;),然后到相应
host(通常是SSVM所在的host里)里删除相关SR。

2012/12/5 Shuiping Xie <shuiping.xie@dilatoit.com>

> 我以前碰到过这个问题,你把你Hypervisor Host 挂上的server 172.16.1.80的primary
storage
> umount掉就可以。
>
> Thanks,
> Shuiping
>
> From: 王晟 [mailto:wangsheng@lneport.gov.cn]
> Sent: 2012年12月5日 12:47
> To: cloudstack-users-cn@incubator.apache.org
> Subject: 请问,cloudstack4.0删除了主存储后再新建报错如何解决
>
> Can not create storage pool through host 10 due to Catch Exception
> com.cloud.utils.exception.CloudRuntimeException, create StoragePool failed
> due to com.cloud.utils.exception.CloudRuntimeException: There is a SR using
> the same configuration server:172.16.1.80, serverpath:/mnt/c/primary for
> pool 9a37c30c-41d5-334c-9cd5-987b56137501on
> host:751cdabd-ebac-4332-bfc3-18f36a62863e on
> host:751cdabd-ebac-4332-bfc3-18f36a62863e pool: 172.16.1.80/mnt/c/primary
>
>
>
> 研发部运维经理  王晟
>
>
> [文档用副本]
> 辽宁电子口岸   LIAONING ELECTRONIC PORT
> 地址:中国辽宁.大连保税区国贸中心E座7F  邮编:116600
> 电话:+86 411 87301333-208
> 传真:+86 411 87328838
> 网址:http://www.lneport.gov.cn<http://www.lneport.gov.cn/>
>
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
> This e-mail is confidential, may be legally privileged, and is intended
> strictly for the designated recipient(s). If you are not the intended
> recipient(s) of this email message, you should immediately notify the
> sender by responding to this message, and delete the message from your
> system. Please do not copy it or use it for any purposes, or disclose its
> contents to any other person: to do so could be a breach of confidence.
>
> Warning: Although the company has taken reasonable precautions to ensure
> no viruses are present in this email, the company cannot accept
> responsibility for any loss or damage arising from the use of this email or
> attachments.
>
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
> Thank you for your co-operation.
>
>


-- 
白清杰 (Born Bai)

Beijing Open Vision Information Technology Co.,Ltd

Mail: linuxbqj@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message