CN108228108B - 一种差分虚拟磁盘链接方法 - Google Patents

一种差分虚拟磁盘链接方法 Download PDF

Info

Publication number
CN108228108B
CN108228108B CN201810007141.4A CN201810007141A CN108228108B CN 108228108 B CN108228108 B CN 108228108B CN 201810007141 A CN201810007141 A CN 201810007141A CN 108228108 B CN108228108 B CN 108228108B
Authority
CN
China
Prior art keywords
virtual disk
differential
original
access
disk
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810007141.4A
Other languages
English (en)
Other versions
CN108228108A (zh
Inventor
张文文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Leifeng Electronic Technology Co ltd
Original Assignee
Xi'an Leifeng Electronic Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xi'an Leifeng Electronic Technology Co ltd filed Critical Xi'an Leifeng Electronic Technology Co ltd
Priority to CN201810007141.4A priority Critical patent/CN108228108B/zh
Publication of CN108228108A publication Critical patent/CN108228108A/zh
Application granted granted Critical
Publication of CN108228108B publication Critical patent/CN108228108B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • G06F3/0622Securing storage systems in relation to access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0667Virtualisation aspects at data level, e.g. file, record or object virtualisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

一种差分虚拟磁盘链接方法,包括以下步骤:1)差分虚拟磁盘文件格式改进,将记录的原始虚拟磁盘路径信息,由当前的本物理机系统内的绝对路径或相对路径,修改为通过网络可以访问的URL路径信息;2)虚拟磁盘驱动改进,差分虚拟磁盘的读写,依赖虚拟磁盘驱动,需要虚拟磁盘驱动根据差分虚拟磁盘记录的网络路径信息,通过IP网络访问服务器上的原始虚拟磁盘文件;3)虚拟磁盘访问服务,存放原始虚拟磁盘文件的主机,提供原始虚拟磁盘访问的网络服务,监听来自差分虚拟磁盘主机的访问请求,根据请求完成原始虚拟磁盘的读写操作;具有差分虚拟磁盘和其原始虚拟磁盘分开部署,跨主机访问的特点,便于快速部署,数据安全和访问速率兼顾的优点。

Description

一种差分虚拟磁盘链接方法
技术领域
本发明属于虚拟磁盘链接技术领域,具体涉及一种差分虚拟磁盘链接方法。
背景技术
现有常用虚拟磁盘并且支持差分链接的有VHD,VHDX,QCOW,QCOW2,VMDK,VDI等格式,其中QCOW,QCOW2,VMDK,VDI格式的差分访问方式是在创建原始磁盘的差分文件时将原始磁盘的绝对路径信息存放到差分文件中,差分文件通过原始虚拟磁盘的路径访问原始磁盘,VHD,以及VHDX中存放了原始磁盘的绝对路径和相对路径,同样通过原始磁盘的路径信息访问原始虚拟磁盘。
差分虚拟磁盘与原始虚拟磁盘文件存储位置在不同主机,比如分别在云端和终端时,则会导致原始虚拟磁盘找不到原始虚拟磁盘而无法访问差分虚拟磁盘。出现这个问题的原因为差分虚拟磁盘在创建时写入的路径信息为基于当前主机的绝对路径或者相对路径信息。当差分虚拟磁盘和原始虚拟磁盘文件在同一个主机上时可以才可以访问,不在同一个主机上时就无法找到原始虚拟磁盘而无法访问。
发明内容
为克服上述现有技术的不足,本发明的目的是提供一种差分虚拟磁盘链接方法,针对现有技术无法解决差分虚拟磁盘跨物理主机链接访问原始虚拟磁盘的缺点,解决了差分虚拟磁盘可以跨物理主机访问原始虚拟磁盘的问题,具有差分虚拟磁盘和其原始虚拟磁盘分开部署,跨主机访问的特点,便于快速部署,达到数据安全和访问速率兼顾的优点。
为实现上述目的,本发明采用的技术方案是:一种差分虚拟磁盘链接方法,包括以下步骤:
1)差分虚拟磁盘文件格式改进
将记录的原始虚拟机磁盘路径信息,由当前的本物理机系统内的绝对路径或相对路径,修改为通过网络可以访问的URL路径信息;
2)虚拟机磁盘驱动改进
差分虚拟磁盘的读写,依赖虚拟磁盘驱动,需要虚拟磁盘驱动根据差分虚拟磁盘记录的网络路径信息,通过IP网络访问服务器上的原始虚拟磁盘文件;
3)虚拟磁盘访问服务
存放原始虚拟磁盘文件的主机,提供原始虚拟磁盘访问的网络服务,监听来自差分虚拟磁盘主机的访问请求,根据请求完成原始虚拟磁盘的读写操作。
所述的主机为服务器。
本发明的有益效果是:
本发明涉及跨物理主机,高性能差分链接访问技术,基于原始虚拟磁盘创建差分虚拟磁盘,差分虚拟磁盘的使用,可以跨主机访问原始虚拟磁盘,提高虚拟磁盘访问的灵活性和安全性。可以实现两种典型的云桌面使用场景:
1)个人桌面数据在本地,公共数据在服务器的使用方式,可以加快云桌面的部署速度,因为初始部署的桌面数据相比母盘公共数据要小很多。针对一些终端磁盘空间较小,桌面数据较少,并需要随时还原的教学等场景,可以大大加快部署速度。
2)公共数据在云终端,桌面数据不在本地,可以在服务器也可以在其他终端的场景下,运行桌面时,满足桌面数据的安全性,固定在某个终端或服务器上,同时对公共数据访问在本地,可以加快访问速度。
附图说明
图1为现有技术中差分虚拟磁盘与原始虚拟磁盘共主机访问的框图。
图2为本发明的差分虚拟磁盘与原始虚拟磁盘跨主机访问方式框图。
具体实施方式
下面结合附图和实施例对本发明作进一步详细说明。
参见图2,一种差分虚拟磁盘链接方法,包括以下步骤:
1)差分虚拟磁盘文件格式改进
修改创建虚拟磁盘的qemu工具,支持在创建差分虚拟磁盘时指定原始虚拟磁盘的路径为网络URL信息,qemu工具就可以将记录的原始虚拟机磁盘路径信息,由当前的本物理机系统内的绝对路径或相对路径,修改为通过网络可以访问的URL路径信息;
2)虚拟机磁盘驱动改进
修改虚拟磁盘驱动程序,虚拟磁盘驱动程序读取差分虚拟磁盘文件时,根据差分虚拟磁盘记录的网络路径信息,通过IP网络访问服务器上的原始虚拟磁盘文件;
3)虚拟磁盘访问服务
存放原始虚拟磁盘文件的服务器主机,提供原始虚拟磁盘访问的网络服务,接收来自差分虚拟磁盘主机的访问请求,根据请求完成原始虚拟磁盘的读写操作。
实施例
1)云教室使用场景,满足快速切换课程的要求。
在某云教室的运行中,需要支持在两节课间快速的切换当前计算机安装的软件,因为不同课程的软件、系统要求不一样,因此必须更换为不同的系统,比如Windows切换到Linux,因此需要有预先制作好的虚拟磁盘镜像。而且通常每个虚拟磁盘镜像都比较大,至少10G以上,有的达到50G,甚至更多,因此课程切换时需要同时加载几十台,对网络要求高,出错概率很大。
当使用本发明后,只需要下载初始的虚拟差分盘(通常只有几百KB),启动后根据需要自动缓存原始虚拟磁盘的内容,可以大大减缓网络要求,提高启动速度,同时原始虚拟磁盘上保存的教学课件等保存在服务器端,可以最大限度保证课件的安全性。
2)个人办公场景下,桌面的快速移动。
在IDV的虚拟桌面解决方案中,虚拟桌面时运行在客户机本地的,相比传统的VDI桌面(虚拟磁盘都在服务器上,通过瘦客户机接入)有体验更好的优势,虚拟桌面的运行包括原始差分磁盘和虚拟差分磁盘,在办公地点变化时,需要快速进行个人办公桌面的转移,则只需要对个人数据相关的虚拟差分磁盘进行同步,即可完成个人桌面在不同客户机之间完成切换并正常使用,可以加快桌面的切换速度。
虚拟磁盘:一种虚拟化技术,在特定驱动程序支持下,一个文件模拟一个虚拟磁盘,在虚拟机操作系统当做物理磁盘进行系统安装,数据存储的技术。
原始虚拟磁盘:用于创建多个虚拟机差分磁盘的基础盘,保存公共数据的虚拟磁盘。为了多个虚拟机能共享部分磁盘存储空间,比如安装相同操作系统虚拟机,则操作系统相关就可以作为公共数据安装到一个虚拟磁盘中,每个虚拟机基于该虚拟磁盘创建出新的虚拟磁盘,对于相同内容直接读取原始磁盘,只有虚拟机特有数据则保存在自己的差分虚拟磁盘中。
差分虚拟磁盘:基于公共的原始虚拟磁盘创建的虚拟机专用存储的虚拟磁盘。

Claims (2)

1.一种差分虚拟磁盘链接方法,其特征在于,包括以下步骤:
1)差分虚拟磁盘文件格式改进
将记录的原始虚拟机磁盘路径信息,由当前的本物理机系统内的绝对路径或相对路径,修改为通过网络可以访问的URL路径信息;
2)虚拟机磁盘驱动改进
差分虚拟磁盘的读写,依赖虚拟磁盘驱动,需要虚拟磁盘驱动根据差分虚拟磁盘记录的网络路径信息,通过IP网络访问服务器上的原始虚拟磁盘文件;
3)虚拟磁盘访问服务
存放原始虚拟磁盘文件的主机,提供原始虚拟磁盘访问的网络服务,接收来自差分虚拟磁盘主机的访问请求,根据请求完成原始虚拟磁盘的读写操作。
2.根据权利要求1所述的一种差分虚拟磁盘链接方法,其特征在于,所述的主机为服务器。
CN201810007141.4A 2018-01-04 2018-01-04 一种差分虚拟磁盘链接方法 Active CN108228108B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810007141.4A CN108228108B (zh) 2018-01-04 2018-01-04 一种差分虚拟磁盘链接方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810007141.4A CN108228108B (zh) 2018-01-04 2018-01-04 一种差分虚拟磁盘链接方法

Publications (2)

Publication Number Publication Date
CN108228108A CN108228108A (zh) 2018-06-29
CN108228108B true CN108228108B (zh) 2021-04-02

Family

ID=62642835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810007141.4A Active CN108228108B (zh) 2018-01-04 2018-01-04 一种差分虚拟磁盘链接方法

Country Status (1)

Country Link
CN (1) CN108228108B (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109324792B (zh) * 2018-10-09 2022-03-11 深圳点猫科技有限公司 一种基于编程语言的路由构建自动化方法及电子设备
CN110990089B (zh) * 2019-10-25 2023-08-04 西安雷风电子科技有限公司 一种基于idv的双屏双桌面智能系统及方法
CN110928494B (zh) * 2019-11-01 2024-02-02 西安雷风电子科技有限公司 一种虚拟磁盘数据同步服务器、客户端及系统
CN116775223B (zh) * 2023-08-18 2023-11-10 西安雷风电子科技有限公司 一种idv和vdi虚拟桌面融合使用的方法

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239231A (zh) * 2017-05-03 2017-10-10 深圳市同泰怡信息技术有限公司 一种固定磁盘槽位号和磁盘标识符映射关系的方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7634614B2 (en) * 2003-01-13 2009-12-15 Sierra Logic Integrated-circuit implementation of a storage-shelf router and a path controller card for combined use in high-availability mass-storage-device shelves and that support virtual disk formatting
CN102447723B (zh) * 2010-10-12 2015-09-09 运软网络科技(上海)有限公司 客户端虚拟化架构
CN104202332B (zh) * 2014-10-11 2017-07-28 中南大学 基于Linux内核的移动设备虚拟化系统及即时安装方法
US10101913B2 (en) * 2015-09-02 2018-10-16 Commvault Systems, Inc. Migrating data to disk without interrupting running backup operations
CN105511938A (zh) * 2015-11-23 2016-04-20 国云科技股份有限公司 一种虚拟磁盘构建方法
CN106933872A (zh) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 一种通过传统文件系统接口访问云存储服务的方法及装置

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239231A (zh) * 2017-05-03 2017-10-10 深圳市同泰怡信息技术有限公司 一种固定磁盘槽位号和磁盘标识符映射关系的方法

Also Published As

Publication number Publication date
CN108228108A (zh) 2018-06-29

Similar Documents

Publication Publication Date Title
CN108228108B (zh) 一种差分虚拟磁盘链接方法
US8407182B1 (en) Systems and methods for facilitating long-distance live migrations of virtual machines
US9128765B2 (en) Assigning restored virtual machine based on past application usage of requesting user
CN102033786B (zh) 一种对象存储系统中修复副本一致性的方法
CN109408115B (zh) 一种基于容器环境中迁移对象的方法及计算系统
CN102521138B (zh) 数据迁移触发方法和装置
US11036393B2 (en) Migrating data between volumes using virtual copy operation
CN103810058A (zh) 虚拟机备份方法、设备及系统
JP2012155768A (ja) マシンから仮想マシンへの変換
CN105450759A (zh) 一种系统镜像的管理方法和装置
CN108595119B (zh) 一种数据同步方法及分布式系统
CN105052111A (zh) 跨群集边界的服务迁移
CN105740052A (zh) 非共享存储的虚拟机在线迁移的方法、装置及系统
CN115098299B (zh) 一种虚拟机的备份方法、容灾方法、装置及设备
CN103516549A (zh) 一种基于共享对象存储的文件系统元数据日志机制
US20140082275A1 (en) Server, host and method for reading base image through storage area network
CN112148219A (zh) 一种ceph类型的分布式存储集群设计方法及装置
CN112804375B (zh) 一种单网卡多ip的配置方法
CN109246198B (zh) 一种基于分布式存储集群的云主机启动控制方法和系统
CN114465877A (zh) 一种适合无线自组织网络环境的边缘云迁移方法和系统
CN105162833A (zh) 应用于无盘工作站的客户机管理系统及方法
CN104717175A (zh) 虚拟桌面的处理方法和系统
CN113254091B (zh) 一种基于ceph块设备的无盘系统启动方法
CN115408103A (zh) 虚拟机热迁移方法、系统、设备及存储介质
CN113660123B (zh) 虚拟交换机升级方法、装置、电子设备以及存储介质

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A differential virtual disk linking method

Effective date of registration: 20220328

Granted publication date: 20210402

Pledgee: Xi'an Science and Technology Financial Service Center Co.,Ltd.

Pledgor: XI'AN LEIFENG ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2022990000175

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20230301

Granted publication date: 20210402

Pledgee: Xi'an Science and Technology Financial Service Center Co.,Ltd.

Pledgor: XI'AN LEIFENG ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2022990000175

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Differential Virtual Disk Linking Method

Effective date of registration: 20230323

Granted publication date: 20210402

Pledgee: Bank of China Limited Xi'an High tech Development Zone Sub branch

Pledgor: XI'AN LEIFENG ELECTRONIC TECHNOLOGY Co.,Ltd.

Registration number: Y2023980035917