7. [Snapshot&Cinder]简单配置向导及说明

云硬盘 volume=cinder

创建volume:

7. [Snapshot&Cinder]简单配置向导及说明

 7. [Snapshot&Cinder]简单配置向导及说明

 

新建成功之后,这个volume还没有被使用,如何使用?

还没有和实例关联,仍然是默认的一个vda1

osp=openstack上查看创建了新的cinder volume

7. [Snapshot&Cinder]简单配置向导及说明

实例VM上查看没有新的硬盘,仍旧是默认的一个vda一块硬盘:

7. [Snapshot&Cinder]简单配置向导及说明

 

关联volume:

7. [Snapshot&Cinder]简单配置向导及说明

 7. [Snapshot&Cinder]简单配置向导及说明

VM多了第二个硬盘vdb:

7. [Snapshot&Cinder]简单配置向导及说明

 

现在可以使用新加的volume硬盘:

比如:

格式化,赋予文件系统,并挂载

7. [Snapshot&Cinder]简单配置向导及说明

 7. [Snapshot&Cinder]简单配置向导及说明

7. [Snapshot&Cinder]简单配置向导及说明

 

 

如何卸载:

7. [Snapshot&Cinder]简单配置向导及说明

 

如何创建云硬盘cinder-volume的快照:

7. [Snapshot&Cinder]简单配置向导及说明

 

快照文件存储位置:

查看命令lvscan:

7. [Snapshot&Cinder]简单配置向导及说明

VM快照:

7. [Snapshot&Cinder]简单配置向导及说明

 

有了快照之后,可以选择从快照启动VM,比如:

7. [Snapshot&Cinder]简单配置向导及说明

 

如何绑定接口:

绑定接口interface,指的就是增加新的网卡vNIC

7. [Snapshot&Cinder]简单配置向导及说明

 7. [Snapshot&Cinder]简单配置向导及说明

新增加的eth1如下:

7. [Snapshot&Cinder]简单配置向导及说明

 

然后修改eth1的配置文件:

7. [Snapshot&Cinder]简单配置向导及说明

重启网络:

7. [Snapshot&Cinder]简单配置向导及说明

新加的那个IP就分给了eth1:

7. [Snapshot&Cinder]简单配置向导及说明