我看Openstack的临时(Ephemeral)存储和块(Block)存储
背景
临时存储
- 使用Ephemeral Storage的虚拟机不能支持迁移,以及和虚拟机迁移相关的特性,包括 1) HA 2) 动态调度 等等。
- 存放在Ephemeral Storage上的数据是高度不可靠的,任何虚拟机和主机的故障都可能会导致数据丢失。
块存储
- 高可靠的存储(基于阵列的RAID, 或者是分布式存储的多副本机制;甚至还可以充分利用设备的备份,远程复制能力)
- 共享存储 (意味着可以支持HA, 虚拟机迁移等等)
临时存储的妙用
- 无状态虚拟机,为系统提供Cache服务
- 为虚拟机操作系统提供交换分区,或者用来存放其它类型的临时文件
- 改进EBS的性能,比如买4个EBS盘,再配置2个免费的Ephermal盘,组建一个RAID 10系统
总结
Ephemeral storage | Block storage | Object storage | |
---|---|---|---|
Used to… | Run operating system and scratch space | Add additional persistent storage to a virtual machine (VM) | Store data, including VM images |
Accessed through… | A file system | A block device that can be partitioned, formatted and mounted (such as, /dev/vdc) | REST API |
Accessible from… | Within a VM | Within a VM | Anywhere |
Managed by… | OpenStack Compute (Nova) | OpenStack Block Storage (Cinder) | OpenStack Object Storage (Swift) |
Persists until… | VM is terminated | Deleted by user | Deleted by user |
Sizing determined by… | Administrator configures size settings, known asflavors | Specified by user in initial request | Amount of available physical storage |
Example of typical usage… | 10 GB first disk, 30GB second disk | 1 TB disk | 10s of TBs of dataset storage |
相关阅读: