ds a81016s 添加存储池 命令执行失败

ds a81016s 添加存储池 命令执行失败,第1张

ds a81016s 添加存储池 命令执行失败如下:

1.CloudStack创建主存储失败(SR已经被使用),删除SR后成功 由于最近工程需要用到这个东西,于是乎,在网上找了些资料解决了CloudStack创建主存储失败(SR已经被使用),删除SR后成功,的问题,这里就记录下: 创建.

2.SAN方案必须提供自管理能力,尤其在错误恢复、数据可用性以及性能管理方面,纠错和失败恢复也是企业存储的关键问题,RAID使存储管理员从由于硬盘失败而引起的数据丢失的担心中解脱出来。自动的负载平衡减轻了对存储。

目录:[ - ]

一、前期准备

1、配置网卡,确保主机能上网

2、设置主机名称

3、配置时间同步

4、修改Linux安全设置

二、更新 yum 仓库

三、安装管理节点

四、配置数据库

五、登陆WEB-UI

六、安装网络存储

七、导入系统虚拟机模板

八、添加“基础架构”

附,可能遇到的问题:

1、管理节点的webui 无法访问

2、登陆时提示用户名密码不正确。

3、CloudStack不能添加主存储或二级存储

4、CloudStack无法导入IOS或虚拟机模板

5、CloudStack如何重装

6、CloudStack的区域、提供点等无法用中文命名

CloudStack是一个功能强大、UI友好的开源云(IaaS)计算解决方案。自Ctrix将CloudStack捐献给 apache 后,一直持续高速发展,其社区活跃度已经渐渐赶上风头一时无两的另一开源云OpenStack平台。

CloudStack拥有所有开源云平台中最为友善的管理界面,而且其天生的多语种支持会使中文用户感觉很爽。

今天我们来详细介绍一下CloudStack最新版本 4.1.0 在 CentOS 6.4 下的安装部署的步骤。鉴于网上文章一大抄,很多内容都是装来装去一大堆东西,看观们一会就晕了,根本不了解为什么装这些程序,装来是干什么的。这回呢,我会把每一步说明尽可能详细一些,外加我的经验和理解(不少心得是重装了10次以上后得出的),希望能让后来者可以少走些弯路。

CloudStack可分为管理节点安装和受控节点安装。

管理节点安装无特殊要求,完全可以安装到虚拟机环境下。

受控节点因要创建虚拟机,故需要硬件虚拟化支持,推荐使用独立主机安装。CloudStack支持多种虚拟化方案,包括:KVM、Xen、XenServer、VMware。因XenServer、VMware已包含有强大的虚拟机管理功能,CloudStack可以直接与其通信调用其管理接口,因此这两种受控机环境下,无需安装任何软件。但KVM、Xen的受控机必须安装 CloudStack-Agent 之后,才能被CloudStack管理。

第一步:CloudStack数据库的重新初始化

1)、停止CloudStack服务。service cloud-management stop.

2)、到mysql里查询select uuid from storage_pool 删除存储的SR。

[root@aa ~]# mysql -u root -ptcloud

mysql>use cloud

Database changed

mysql>select uuid from storage_pool

+————————————–+

| uuid |

+————————————–+

| 6550eb15-daed-363e-be38-7e76bcd973ec |

| 7abfabe4-7081-3b1e-8ab3-4dcbc9633636 |

| db8002d3-1c41-383c-bab3-a561b9583547 |

+————————————–+

3 rows in set (0.00 sec)

3)、删除CloudStack数据库,drop database clouddrop database cloud_usage

[root@aa ~]# mysql -u root -ptcloud

Welcome to the MySQL monitor. Commands end with or \g.

Your MySQL connection id is 11958

Server version: 5.0.77 Source distribution

Type ‘help’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql>drop database clouddrop database cloud_usage

4)、重新部署CloudStack数据库 cloud-setup-databases cloud:password@localhost –deploy-as=root:password

[root@aa ~]# cloud-setup-databases cloud:password@localhost –deploy-as=root:password

Testing specified deployment credentials on server localhost:3306

Setting up user credentials in:

->/etc/cloud/management/db.properties … done.

Applying file /usr/share/cloud/setup/create-database.sql to the database on server localhost:3306

Applying file /usr/share/cloud/setup/create-schema.sql to the database on server localhost:3306

Applying file /usr/share/cloud/setup/create-database-premium.sql to the database on server localhost:3306

Applying file /usr/share/cloud/setup/create-schema-premium.sql to the database on server localhost:3306

Applying file /usr/share/cloud/setup/server-setup.sql to the database on server localhost:3306

Applying file /usr/share/cloud/setup/templates.sql to the database on server localhost:3306

Applying file /usr/share/cloud/setup/create-index-fk.sql to the database on server localhost:3306

5)、cloud-setup-management

[root@aa ~]# cloud-setup-management

Starting to configure ElasterStack Management Server:

Configure sudoers … [OK]

Configure Firewall … [OK]

Configure CloudStack Management Server …[OK]

ElasterStack Management Server setup is Done!

第二步:初始化主存储和二级存储

1)、删除主存储和二级存储中的所有文件

第三步:准备二级存储

1)、在管理节点上挂载二级储存NFS目录:/export/secondary。

# mkdir -p /mnt/secondary

# mount -t nfs 172.16.204.111:/export/secondary /mnt/secondary/

2)、下载SystemVm文件

3)、解压SystemVm文件

#/usr/lib64/cloud/agent/scripts/storage/secondary/cloud-install-sys-tmplt -m /mnt/secondary -f systemvm.vhd.bz2 -h xenserver -F

4)、完成以后,卸载二级储存

#umount /mnt/secondary/

第四步:重新安装主机上的Hypervistor。

如果要是不想重新安装主机上的Hypervistor,参考第一步的第2项,删除存储的Sr。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/bake/11637007.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-17
下一篇 2023-05-17

发表评论

登录后才能评论

评论列表(0条)

保存