OpenStack云计算(十三)——OpenStack存储管理,使用命令行创建和管理卷,命令行界面的卷管理基本操作。验证Cinder和Swift服务,通过查看Cinder和Swift了解它们的子服务

项目实训一

【实训题目】

使用命令行创建和管理卷

【实训目的】

掌握命令行界面的卷管理基本操作。

【实训准备】

复习openstack命令的卷操作基本用法。

【实训内容】

(1)加载demo用户的环境脚本。

(2)查看当前的卷列表。

openstack volume list

 (3)新建一个卷(本例卷大小5GB,卷命名为myVol)。

openstack volume create  --size 5 --availability-zone nova myVol

(4)对该卷进行扩展(本例卷大小扩展至10GB)

openstack volume set  myVol  --size 10

(5)将该卷连接到一个实例

(本例将卷myVol连接到fedoraVM实例,并将该卷作为该实例内部的/dev/vdb设备)。(可以新建一个实例虚拟机)

openstack server add volume  --device /dev/vdb  fedora-VM2  myVol

(6)将该卷从实例上分离出来

openstack server remove volume  fedoraVM2  myVol

项目实训二

【实训题目】

验证Cinder和Swift服务

【实训目的】

通过查看Cinder和Swift服务来了解它们的子服务

【实训准备】

(1)复习Cinder服务的子服务相关知识。

(2)复习Swift服务的子服务相关知识。

【实训内容】

(1)使用systemctl命令查看Cinder服务的当前状态。

systemctl status *cinder*.service

(2)列出Cinder各子服务的功能。

source keystonerc_demo

systemctl status openstack-cinder-scheduler.service——调度服务

systemctl status openstack-cinder-volume.service——卷服务

systemctl status openstack-cinder-backup.service——备份服务

systemctl status openstack-cinder-api.service——API前端服务。

(3)使用systemctl命令查看Swift服务的当前状态。

systemctl status *swift*.service

(4)列出Swift各子服务的功能。

systemctl status openstack-swift-proxy.service——代理服务器

systemctl status openstack-swift-object-expirer.service——对象过期处理器

systemctl status openstack-swift-container-replicator.service——对象复制器

systemctl status openstack-swift-account-replicator.service——账户复制器。

systemctl status openstack-swift-account.service——账户服务器

systemctl status openstack-swift-container-updater.service——容器更新器

systemctl status openstack-swift-object-reconstructor.service——对象重构器

systemctl status openstack-swift-object.service——对象服务器

systemctl status openstack-swift-account-reaper.service——账户收割器

systemctl status openstack-swift-container.service——容器服务器

systemctl status openstack-swift-object-replicator.service——对象复制器

systemctl status openstack-swift-container-sync.service——容器同步器

systemctl status openstack-swift-container-auditor.service——容器审计器

systemctl status openstack-swift-object-auditor.service——对象审计器

systemctl status openstack-swift-object-updater.service——对象更新器

systemctl status openstack-swift-account-auditor.service——账户审计器

 

  • 21
    点赞
  • 27
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 5
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

杪商柒

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值