The embodiment of the invention discloses a method of distributed storage system, the first snapshot of the distributed storage system CEPH source, to obtain the current snapshot source volume volume; then the snapshot volume were cloned, and the clone volume is set to the current operating volume, which can be used to perform subsequent data read and write operations. A snapshot of CEPH, orderly operation mode using the snapshot and cloning of RBD, after the snapshot is created, subsequent data each write operation directly into the clone volume, only relates to a write operation to reduce the volume of the clone, a read and a write source volume snapshot of the operation, to reduce the pressure on the disk, the write operation not only improve the performance of CEPH snapshots, but also improves the read operation performance, so as to enhance the user experience in the cloud platform, the embodiment of the invention also provides a device for realizing the corresponding, further makes the method more practical, the device has the advantages of.
【技术实现步骤摘要】
一种分布式存储系统的快照方法及装置
本专利技术实施例涉及存储
,特别是涉及一种分布式存储系统的快照方法及装置。
技术介绍
CEPH为一种扩展性高、可靠性高、性能高的分布式存储系统,支持文件系统,块存储,对象存储;借助于OpenStack快速的发展和其开源特性,吸引了越来越多的开发者在生产环境实践和探索。CEPH依靠其提供的统一存储系统,被广泛应用于云数据中心建设中,其中块存储以其稳定性被生产系统所部署。CEPH提供通过内核模块或者用户态调用librbd库两种用法使用其块存储,CEPH中的块设备的表现为一个RBD(RadosBlockDevice)image,其中rbd是Linux驱动和QEMU/KVM操作RBDimage的用户态工具。快照为云数据中心的基本业务之一,它是记录虚拟机某一运行时刻的状态集合,用于后续的快照恢复操作。对于快照原理,可划分为COW(copyonwrite,写时复制)和ROW(redirectonwrite,写时重定向)两类:COW的基本原理是一次快照操作后,后续写入数据前先将要写入空间对应原始数据拷贝到新的文件中,然后才写入新数据,即 ...
【技术保护点】
一种分布式存储系统的快照方法,其特征在于,包括:对分布式存储系统CEPH的源卷进行快照,以获取当前源卷的快照卷;对所述快照卷进行克隆,并将克隆卷设置为当前操作卷,以用于对后续数据执行读写操作。
【技术特征摘要】
1.一种分布式存储系统的快照方法,其特征在于,包括:对分布式存储系统CEPH的源卷进行快照,以获取当前源卷的快照卷;对所述快照卷进行克隆,并将克隆卷设置为当前操作卷,以用于对后续数据执行读写操作。2.根据权利要求1所述的方法,其特征在于,在所述对分布式存储系统CEPH的源卷进行快照,以获取当前源卷的快照卷之后,还包括:将所述快照卷设置为保护状态。3.根据权利要求1所述的方法,其特征在于,还包括:当接收到对当前操作卷进行快照恢复的指令后,对所述当前操作卷进行快照;对快照后快照卷进行克隆,以获取克隆卷,所述克隆卷为所述当前操作卷快照恢复后对应的操作卷。4.根据权利要求3所述的方法,其特征在于,在所述当接收对当前操作卷进行快照恢复的指令后,对所述操作卷进行快照之后,还包括:将快照后快照卷...
【专利技术属性】
技术研发人员:樊云龙,赵帧龙,
申请(专利权)人:郑州云海信息技术有限公司,
类型:发明
国别省市:河南,41
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。