WO2017045437A1 - Block storage service method and apparatus - Google Patents

Block storage service method and apparatus Download PDF

Info

Publication number
WO2017045437A1
WO2017045437A1 PCT/CN2016/084322 CN2016084322W WO2017045437A1 WO 2017045437 A1 WO2017045437 A1 WO 2017045437A1 CN 2016084322 W CN2016084322 W CN 2016084322W WO 2017045437 A1 WO2017045437 A1 WO 2017045437A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
block storage
cloud system
storage service
cloud
Prior art date
Application number
PCT/CN2016/084322
Other languages
French (fr)
Chinese (zh)
Inventor
张恒生
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017045437A1 publication Critical patent/WO2017045437A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Definitions

  • This document relates to, but is not limited to, the field of cloud computing technology, and more particularly to a block storage service method and apparatus.
  • IAAS Infrastructure as a Service
  • AWS Amazon Web Services
  • Shanda Cloud a Cloud
  • Services typically include providing virtual machines, block storage services, and networks.
  • the block storage service has the following two problems: First, the block device created by the block storage service provided by the operator, for example, a disk volume, at the same time It can only be mounted on a virtual machine (VM) in the cloud system. It cannot be mounted on multiple VMs at the same time. Secondly, the block storage service provided by the cloud vendor can only provide the block storage service for the VMs in the cloud system, that is, the block devices applied by the user in the cloud computing service provided by an operator can only be mounted to the same cloud system. On the VM inside, the block storage service is provided on the VM that cannot be mounted to other cloud systems.
  • VM virtual machine
  • the block storage service is limited to providing services to one VM in the same cloud system, the limitation of the block storage service mode is large, and it is not suitable for widespread use.
  • Embodiments of the present invention provide a block storage service method and apparatus, which are capable of mounting a block device for providing a block storage service on a plurality of VMs.
  • An embodiment of the present invention provides a block storage service method, including:
  • the block storage transport protocol deployed on the second VM is executed, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted on the second VM.
  • the number of the second VMs is multiple, and the running a block storage transport protocol deployed on the second VM, after acquiring the block device mounted on the first VM from the Internet, The block device is mounted on the second VM, including:
  • the second VM is a VM in the first cloud system
  • the second VM is a VM in the second cloud system
  • a part of the VMs in the second VM is a VM in the first cloud system, and another part of the VMs in the second VM is a VM in the second cloud system.
  • the determining, by the first cloud system, the first virtual machine VM includes:
  • the block storage transport protocol comprises: a small computer system interface iSCSI protocol or a network device block NBD protocol.
  • An embodiment of the present invention provides a block storage service device, including:
  • a mounting module configured to determine a first virtual machine VM in the first cloud system, and mount a block device in the first cloud system for providing a block storage service on the first VM;
  • An output module configured to output, by using a block storage transfer protocol deployed on the first VM, a block device mounted on the first VM to the Internet;
  • the mounting module is further configured to run a block storage transfer protocol deployed on the second VM, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted to the On the second VM.
  • the mounting module includes: a mounting unit configured to sequentially run a block storage transport protocol deployed on each of the second VMs, from the Internet. After acquiring the block devices mounted on the first VM, the block devices are respectively mounted on each of the second VMs.
  • the second VM is a VM in the first cloud system
  • the second VM is a VM in the second cloud system
  • a part of the VMs in the second VM is a VM in the first cloud system, and another part of the VMs in the second VM is a VM in the second cloud system.
  • the mounting module further includes at least one of a selecting unit and an application unit;
  • the selecting unit is configured to select an applied VM as the first VM in the first cloud system
  • the application unit is configured to apply for one VM as the first VM in the first cloud system.
  • the block storage transport protocol comprises: a small computer system interface iSCSI protocol or a network device block NBD protocol. .
  • the block storage service method and apparatus provided by the embodiment of the present invention, by determining the first VM in the first cloud system, and mounting the block device provided by the operator in the first cloud system to the first VM, thereby passing the The block storage transport protocol deployed on the first VM outputs the block device mounted on the first VM to the Internet, and then the block device mounted on the first VM by running the block storage transfer protocol deployed on the second VM Mounted on the second VM, the embodiment of the present invention converts the manner of mounting the block device in the related technology into the block storage transfer protocol by using the first VM, thereby implementing the mounting of the block device provided by the operator.
  • the method provided by the embodiment of the present invention solves the limitation of the block storage service mode in the cloud computing service provided by the prior art, because the block storage service is limited to providing services to one VM in the same cloud system. Larger, not suitable for widespread use.
  • FIG. 1 is a flowchart of a block storage service method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an application scenario of a block storage service method provided by the embodiment shown in FIG. 1;
  • FIG. 3 is a schematic diagram of another application scenario of the block storage service method provided by the embodiment shown in FIG. 1;
  • FIG. 4 is a flowchart of another method for storing a block storage service according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of an application scenario of a block storage service method provided by the embodiment shown in FIG. 4;
  • FIG. 6 is a schematic structural diagram of a block storage service device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another block storage service device according to an embodiment of the present invention.
  • the technical solution of the present invention is described in detail below by using a specific embodiment.
  • the first cloud system in the following multiple embodiments may be a public cloud or a private cloud
  • the second cloud system may also be a public cloud or a private cloud.
  • the first VM and the second VM are both cloud hosts in the cloud system.
  • the following specific embodiments of the present invention may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
  • FIG. 1 is a flowchart of a method for storing a block storage service according to an embodiment of the present invention.
  • the block storage service method provided in this embodiment is applicable to a case where a block storage service is provided in a cloud system, and the method may be implemented by a block storage service device, where the block storage service device is implemented by a combination of hardware and software, and the device may be implemented by Integrated in the processor of the terminal device for use by the processor.
  • the method in this embodiment may include:
  • S110 Determine a first VM in the first cloud system, and mount a block device in the first cloud system for providing a block storage service on the first VM.
  • FIG. 2 is a schematic diagram of an application scenario of the block storage service method provided in the embodiment shown in FIG.
  • the first cloud system is a cloud system that provides a block storage service.
  • the first cloud system is used as a public cloud AWS as an example, and the AWS elastic computing cloud (Elastic Compute Cloud, referred to as : EC2) Applying a VM, as the first VM, may also select an applied VM from the first cloud system as the first VM.
  • the first VM determined in this embodiment is responsible for mounting the block device created by the block storage service provided by the operator, specifically the disk volume in FIG. 2.
  • the method provided by the embodiment further includes: creating, in the first cloud system, a block device for providing a block storage service.
  • the block device is created by using AWS Elastic Block Store (EBS).
  • the first cloud system in this embodiment provides a single block device.
  • the disk volume in FIG. 2 is a block device created in the first cloud system.
  • the block device can be mounted on the first VM.
  • the embodiment does not limit the execution of determining the first VM in the first cloud system, and the sequence of executing the block device for providing the block storage service in the first cloud system, as long as it is executed before the block device is mounted. can.
  • the manner in which the block device is mounted on the first VM is the same as the method of mounting the block device in the related art, and is all mounted by an attach process. It should be noted that the technology of the attach process is described.
  • the protocol used in the implementation is a black box, that is, a specific protocol used for the user not to publicly mount; however, the role of the first VM in the first cloud system in this embodiment is different from the related technology, and related technologies will After the block device is mounted on the first VM, the block device can be mounted on the other VMs. In this embodiment, the device provided by the operator is mounted on multiple VMs in the following manner.
  • the block device name is generated in the first VM, and the name of the block device can be expressed as /dev/sdb, /dev/sdc, for example. And /dev/sdd, etc., all the embodiments of the present invention and all application scenarios are shown by the name of the block device as /dev/sdb, and the block name is used to refer to the block mounted on the first VM. device.
  • this embodiment may be implemented by deploying a block storage transfer protocol on the first VM. A block device mounted on a VM is output to the Internet for external service.
  • the block storage transfer protocol in this embodiment may be a small computer system interface (i.e., iSCSI) protocol, or may be a network block device (NBD) protocol;
  • iSCSI small computer system interface
  • NBD network block device
  • the iSCSI protocol is taken as an example to illustrate that the block device mounted on the first VM is output to the Internet through an iSCSI server (iSCSI target), and the block device transmitted to the Internet can provide external services, that is, the first The block device on the VM is exposed to the Internet, that is, the first VM is the server of the block storage service.
  • the block device outputted to the Internet through the iSCSI target may be referred to as a target, and /dev/sdb is a target. one of the.
  • the iSCSI server includes a server of a SCSI protocol installed on the first VM.
  • the device-provided block device can be mounted on the first VM, but also the iSCSI client (iSCSI initiator) deployed on the second VM can be used to obtain the above-mentioned transmission to the Internet.
  • the block device (target), and the obtained block device is mounted on the second VM, that is, the requirement to mount the block device (volume) provided by the operator on the second VM is completed.
  • the second VM is the client of the block storage service.
  • the number of the second VMs in this embodiment may be multiple.
  • the first VM is provided as a server.
  • Block storage service and converts the block device to the block device through the block storage transfer protocol by attaching the block device in the related art, and when the block device is exposed to the Internet by the block storage transfer protocol,
  • the number of VMs that the block device can be mounted is not limited, that is, the block device provided by the operator is mounted on multiple VMs.
  • the block devices provided by the operators need to be shared among multiple VMs.
  • the related technologies provide The method of the block storage service provided by the present embodiment can be implemented in the manner that the block device provided by the operator can be mounted on only one VM in the cloud system at the same time. Originally limited to block devices can only serve one VM in the cloud system, extended to be able to mount block devices concurrently to multiple On the VM, applications that share block devices can be provided for Oracle RAC and similar requirements to Oracle RAC.
  • the terminal device that performs the block storage service method provided by each embodiment of the present invention may be a client that has the right to manage the cloud system by logging in to the cloud account in the first cloud system to execute each Item operation.
  • the block storage service method provided by the embodiment, by determining the first VM in the first cloud system, and mounting the block device provided by the operator to the first VM, thereby passing the block deployed on the first VM
  • the storage transfer protocol outputs the block device mounted on the first VM to the Internet, and then mounts the block device mounted on the first VM to the second VM by running a block storage transfer protocol deployed on the second VM.
  • the manner in which the block device is mounted in the related art is converted to the block storage transfer protocol by using the first VM, thereby implementing the requirement that the block device provided by the operator is mounted on multiple VMs;
  • the method provided by the example implements mounting a block device for providing a block storage service on a plurality of VMs.
  • the second VM in the foregoing embodiment of the present invention may be a VM in the first cloud system, and the second VM in the application scenario shown in FIG. 2 is in the same cloud system as the first VM, in the application scenario.
  • the block device in the same cloud system is mounted on multiple VMs.
  • the second VM may also be a VM in the second cloud system.
  • FIG. 3 the block provided in the embodiment shown in FIG.
  • the block storage service can be provided by the device in the first cloud system.
  • the specific implementation is the same as that in the foregoing embodiment, and therefore is not described here.
  • the service for the VM to be mounted on the VM of the first cloud system may be limited to being provided by the VM in the first cloud system.
  • the block storage service is extended to provide a block storage service for the VM outside the first cloud system, that is, the range in which the block storage service in the original first cloud system can provide services is extended, and the user purchases the cloud computing computing service in one operator. After that, the requirements of any use can be increased, and the compatibility of the block storage service is correspondingly improved.
  • the block storage service provided by the first cloud system can only provide the block storage service for the VMs in the first cloud system, and cannot provide the blocks for the VMs in the second cloud system across the cloud. Storage service limitations.
  • FIG. 4 is a flowchart of another method for storing a block storage service according to an embodiment of the present invention.
  • the number of the second VMs is multiple, and the S130 in the foregoing embodiment may be replaced by: sequentially running the block storage transport protocol deployed on each second VM, and acquiring the first VM from the Internet.
  • the block device is separately mounted to each of the second VMs.
  • the manner of mounting a plurality of second VMs in this embodiment is similar to the manner in which a second VM is mounted in the foregoing embodiment.
  • the mounting may be performed by using an iSCSI client deployed on the second VM.
  • FIG. 5 is a schematic diagram of an application scenario of the block storage service method provided by the embodiment shown in FIG. 4, in which a plurality of second VMs of a block device provided by the first VM are mounted, which may be partially The second VM is in the first cloud system, and the other second VM is in the second cloud system.
  • a public storage cloud may be used to provide a block storage service for another public cloud, where the first cloud system is, for example, public.
  • Cloud AWS the second cloud system is, for example, the public cloud Facebook Cloud, which provides AWS for Facebook Cloud to provide block storage services;
  • the application scenario shown in Figure 3 can also provide a block storage service for a private cloud for a private cloud.
  • a cloud system can also be a public cloud AWS. This scenario is typically used in a hybrid cloud scenario to achieve unified management of block storage services in a hybrid cloud.
  • the hybrid cloud dispatch center needs to apply for the block storage service resources on the public cloud for the VMs in the private cloud to be mounted.
  • first cloud system as an AWS.
  • first cloud system in each embodiment of the present invention may also be Facebook Cloud, that is, the Facebook Cloud block storage service may be implemented.
  • the created block device is concurrently mounted on multiple VMs of Facebook Cloud or mounted on multiple VMs of other cloud systems.
  • any combination of block storage services between the public cloud or the private cloud can be implemented, for example, including: a public cloud service through a block storage service of the public cloud, through a public cloud
  • the block storage service is the same as the above embodiment in the case of another private cloud service, the block storage service of the private cloud to another public cloud service, and the block storage service of the private cloud to the other private cloud service. I will not repeat them here.
  • Embodiments of the present invention also provide a computer readable storage medium storing a computer executable
  • the instructions, computer executable instructions, are used to perform any of the methods described above.
  • FIG. 6 is a schematic structural diagram of a block storage service device according to an embodiment of the present invention.
  • the block storage service device provided in this embodiment is applicable to a case where a block storage service is provided in a cloud system, and the block storage service device is implemented by a combination of hardware and software, and the device may be integrated in a processor of the terminal device for The processor calls are used.
  • the block storage service device of this embodiment specifically includes: a mounting module 11 and an output module 12.
  • the mounting module 11 is configured to determine the first virtual machine VM in the first cloud system, and mount the block device in the first cloud system for providing the block storage service on the first VM.
  • This embodiment is also applicable to the application scenario shown in FIG. 2, and the device provided in this embodiment may be used in the first cloud system before the mounting module 11 mounts the block device on the first VM.
  • the output module 12 is configured to output the block device mounted on the first VM to the Internet through a block storage transfer protocol deployed on the first VM.
  • the block storage transport protocol in this embodiment may also be an iSCSI protocol, or may be an NBD protocol, and the iSCSI protocol is taken as an example.
  • the device that is output to the internet through the iSCSI target may be referred to as a target, Dev/sdb is one of the targets.
  • the mounting module 11 is further configured to run a block storage transfer protocol deployed on the second VM, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted on the second VM.
  • the number of the second VMs in this embodiment may be multiple.
  • the present embodiment uses block storage transmission.
  • the protocol mounts the block device exposed to the Internet, it does not limit the number of VMs that the block device can mount, that is, the requirement to mount the block device provided by the operator on multiple VMs.
  • the effect of the plurality of VMs in the cloud system being installed by the operator-provided block device in the manner provided by the embodiment can be applied to the application scenario of deploying the Oracle RAC to the cloud system.
  • the terminal device to which the block storage service device is provided in each embodiment of the present invention may be a client, and the client has the right to manage the cloud system by logging in to the cloud account in the first cloud system. To perform various operations.
  • the block storage service device provided by the embodiment of the present invention is used to execute the block storage service method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
  • the second VM in the foregoing embodiment of the present invention may be a VM in the first cloud system, and the second VM in the application scenario shown in FIG. 2 is in the same cloud system as the first VM, in the application scenario.
  • the mounting of the block device in the same cloud system is implemented.
  • the second VM can also be a VM in the second cloud system.
  • the block storage service device provided by the present invention can also be applied to the foregoing three application scenarios.
  • the module device of the first cloud system is mounted on the VM outside the first cloud system.
  • FIG. 7 is a schematic structural diagram of another block storage service device according to an embodiment of the present invention.
  • the mounting module 11 in this embodiment may include at least one of the selecting unit 13 and the application unit 14, and the selecting unit 13 is configured to select one of the first cloud systems.
  • the VM is used as the first VM; the application unit 14 is configured to apply a VM as the first VM in the first cloud system; the embodiment shown in FIG. 7 shows the mounting module 11 including the selecting unit 13 and the application unit 14 as an example. .
  • the number of the second VMs in this embodiment may be multiple, and the mounting module 11 in this embodiment may further include a mounting unit 15 configured to sequentially run each The block storage transport protocol deployed on the second VM acquires the block device mounted on the first VM from the Internet, and then mounts the block device to each second VM.
  • the second VM may be a VM in the first cloud system, and may also be a VM in the second cloud system.
  • a part of the VMs in the second VM are The VM in the first cloud system, and another part of the VM in the second VM is a VM in the second cloud system.
  • the block storage service device provided by the embodiment of the present invention is used to execute the block storage service method provided by the embodiment shown in FIG. 4 of the present invention, and has a corresponding function module, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
  • each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution implements mounting a block device for providing a block storage service on a plurality of VMs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Stored Programmes (AREA)
  • Computer And Data Communications (AREA)

Abstract

A block storage service method and apparatus. The method comprises: determining a first virtual machine (VM) on a first cloud system, and mounting a block device used for providing a block storage service in the first cloud system on the first VM; outputting the block device mounted on the first VM, to the Internet by using a block storage transmission protocol deployed on the first VM; and running a block storage transmission protocol deployed on a second VM, and mounting, after obtaining the block device mounted on the first VM from the Internet, the block device on the second VM.

Description

一种块存储服务方法和装置Block storage service method and device 技术领域Technical field
本文涉及但不限于云计算技术领域,尤指一种块存储服务方法和装置。This document relates to, but is not limited to, the field of cloud computing technology, and more particularly to a block storage service method and apparatus.
背景技术Background technique
随着云计算技术的发展,基础设施即服务(Infrastructure as a Service,简称为:IAAS)逐步成为向用户提供云计算服务的重要方式。目前国内外可以提供IAAS服务的云计算运营商例如为:国外的亚马逊云计算服务(Amazon Web Services,简称为:AWS)、国内的阿里云、盛大云等,这些运营商对用户提供云基计算服务通常包括提供虚拟机、块存储服务和网络等。With the development of cloud computing technology, Infrastructure as a Service (IAAS) has gradually become an important way to provide cloud computing services to users. At present, cloud computing operators that can provide IAAS services at home and abroad are, for example, Amazon Web Services (AWS), domestic Alibaba Cloud, Shanda Cloud, etc., which provide cloud-based computing to users. Services typically include providing virtual machines, block storage services, and networks.
当前的运营商提供的云计算服务中,块存储服务存在以下两个问题:第一,通过运营商提供的块存储服务所创建的块设备,例如为磁盘卷(volume),该块设备同一时刻只能挂载到云系统中的一个虚拟机(Virtual machine,简称为:VM)上,不能同时挂载到多个VM上。其二,云厂商提供的块存储服务,只能为云系统内的VM提供块存储服务,即用户在某个运营商提供的云计算服务中申请的块设备,只能挂载到同一云系统内的VM上,无法挂载到其它云系统的VM上提供块存储服务。Among the cloud computing services provided by the current operators, the block storage service has the following two problems: First, the block device created by the block storage service provided by the operator, for example, a disk volume, at the same time It can only be mounted on a virtual machine (VM) in the cloud system. It cannot be mounted on multiple VMs at the same time. Secondly, the block storage service provided by the cloud vendor can only provide the block storage service for the VMs in the cloud system, that is, the block devices applied by the user in the cloud computing service provided by an operator can only be mounted to the same cloud system. On the VM inside, the block storage service is provided on the VM that cannot be mounted to other cloud systems.
综上所述,相关技术提供的云计算服务中,由于块存储服务仅限于在同一云系统内对一个VM提供服务,而导致块存储服务方式的限制较大,不适于广泛使用的问题。In summary, in the cloud computing service provided by the related art, since the block storage service is limited to providing services to one VM in the same cloud system, the limitation of the block storage service mode is large, and it is not suitable for widespread use.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种块存储服务方法和装置,能够将用于提供块存储服务的块设备挂载在多个VM上。Embodiments of the present invention provide a block storage service method and apparatus, which are capable of mounting a block device for providing a block storage service on a plurality of VMs.
本发明实施例提供一种块存储服务方法,包括:An embodiment of the present invention provides a block storage service method, including:
在第一云系统中确定第一虚拟机VM,并将第一云系统中用于提供块存 储服务的块设备挂载在所述第一VM上;Determining the first virtual machine VM in the first cloud system, and using the first cloud system for providing the block storage a block device of the storage service is mounted on the first VM;
通过所述第一VM上部署的块存储传输协议将挂载在所述第一VM上的块设备输出到互联网上;Outputting the block device mounted on the first VM to the Internet by using a block storage transfer protocol deployed on the first VM;
运行第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备挂载到所述第二VM上。The block storage transport protocol deployed on the second VM is executed, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted on the second VM.
可选的,所述第二VM的数量为多个,所述运行第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备挂载到所述第二VM上,包括:Optionally, the number of the second VMs is multiple, and the running a block storage transport protocol deployed on the second VM, after acquiring the block device mounted on the first VM from the Internet, The block device is mounted on the second VM, including:
依次运行每个所述第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备分别挂载到每个所述第二VM上。Running the block storage transfer protocol deployed on each of the second VMs in sequence, and acquiring the block devices mounted on the first VM from the Internet, respectively, and mounting the block devices to each of the first On the second VM.
可选的,所述第二VM为所述第一云系统中的VM;或者,Optionally, the second VM is a VM in the first cloud system; or
所述第二VM为所述第二云系统中的VM;或者,The second VM is a VM in the second cloud system; or
所述第二VM中的一部分VM为所述第一云系统中的VM,所述第二VM中的另一部分VM为所述第二云系统中的VM。A part of the VMs in the second VM is a VM in the first cloud system, and another part of the VMs in the second VM is a VM in the second cloud system.
可选的,所述在第一云系统中确定第一虚拟机VM,包括:Optionally, the determining, by the first cloud system, the first virtual machine VM includes:
在所述第一云系统中选取一个已申请的VM作为所述第一VM;或者,Selecting an applied VM as the first VM in the first cloud system; or
在所述第一云系统中申请一个VM作为所述第一VM。Applying a VM as the first VM in the first cloud system.
可选的,所述块存储传输协议包括:小型计算机系统接口iSCSI协议或网络设备块NBD协议。Optionally, the block storage transport protocol comprises: a small computer system interface iSCSI protocol or a network device block NBD protocol.
本发明实施例提供一种块存储服务装置,包括:An embodiment of the present invention provides a block storage service device, including:
挂载模块,设置为在第一云系统中确定第一虚拟机VM,并将第一云系统中用于提供块存储服务的块设备挂载在所述第一VM上;a mounting module, configured to determine a first virtual machine VM in the first cloud system, and mount a block device in the first cloud system for providing a block storage service on the first VM;
输出模块,设置为通过所述第一VM上部署的块存储传输协议将挂载在所述第一VM上的块设备输出到互联网上;An output module, configured to output, by using a block storage transfer protocol deployed on the first VM, a block device mounted on the first VM to the Internet;
所述挂载模块,还设置为运行第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备挂载到所述 第二VM上。The mounting module is further configured to run a block storage transfer protocol deployed on the second VM, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted to the On the second VM.
可选的,所述第二VM的数量为多个,所述挂载模块包括:挂载单元,设置为依次运行每个所述第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备分别挂载到每个所述第二VM上。Optionally, the number of the second VMs is multiple, and the mounting module includes: a mounting unit configured to sequentially run a block storage transport protocol deployed on each of the second VMs, from the Internet. After acquiring the block devices mounted on the first VM, the block devices are respectively mounted on each of the second VMs.
可选的,所述第二VM为所述第一云系统中的VM;或者,Optionally, the second VM is a VM in the first cloud system; or
所述第二VM为所述第二云系统中的VM;或者,The second VM is a VM in the second cloud system; or
所述第二VM中的一部分VM为所述第一云系统中的VM,所述第二VM中的另一部分VM为所述第二云系统中的VM。A part of the VMs in the second VM is a VM in the first cloud system, and another part of the VMs in the second VM is a VM in the second cloud system.
可选的,所述挂载模块还包括选取单元和申请单元中的至少一个;Optionally, the mounting module further includes at least one of a selecting unit and an application unit;
其中,所述选取单元,设置为在所述第一云系统中选取一个已申请的VM作为所述第一VM;The selecting unit is configured to select an applied VM as the first VM in the first cloud system;
所述申请单元,设置为在所述第一云系统中申请一个VM作为所述第一VM。The application unit is configured to apply for one VM as the first VM in the first cloud system.
可选的,所述块存储传输协议包括:小型计算机系统接口iSCSI协议或网络设备块NBD协议。。Optionally, the block storage transport protocol comprises: a small computer system interface iSCSI protocol or a network device block NBD protocol. .
本发明实施例提供的块存储服务方法和装置,通过在第一云系统中确定第一VM,并将第一云系统中运营商提供的块设备挂载到该第一VM上,从而通过该第一VM上部署的块存储传输协议将挂载在第一VM上的块设备输出到互联网上,进而通过运行第二VM上部署的块存储传输协议,将第一VM上挂载的块设备挂载到第二VM上,本发明实施例通过第一VM将相关技术中挂载块设备的方式转换为通过块存储传输协议来执行,从而实现了将运营商提供的块设备挂载于多个VM上的需求;本发明实施例提供的方法解决了现有技术提供的云计算服务中,由于块存储服务仅限于在同一云系统内对一个VM提供服务,而导致块存储服务方式的限制较大,不适于广泛使用的问题。The block storage service method and apparatus provided by the embodiment of the present invention, by determining the first VM in the first cloud system, and mounting the block device provided by the operator in the first cloud system to the first VM, thereby passing the The block storage transport protocol deployed on the first VM outputs the block device mounted on the first VM to the Internet, and then the block device mounted on the first VM by running the block storage transfer protocol deployed on the second VM Mounted on the second VM, the embodiment of the present invention converts the manner of mounting the block device in the related technology into the block storage transfer protocol by using the first VM, thereby implementing the mounting of the block device provided by the operator. The method provided by the embodiment of the present invention solves the limitation of the block storage service mode in the cloud computing service provided by the prior art, because the block storage service is limited to providing services to one VM in the same cloud system. Larger, not suitable for widespread use.
在阅读并理解了附图和详细描述后,可以明白其他方面。 Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种块存储服务方法的流程图;FIG. 1 is a flowchart of a block storage service method according to an embodiment of the present invention;
图2为图1所示实施例提供的块存储服务方法的一种应用场景示意图;2 is a schematic diagram of an application scenario of a block storage service method provided by the embodiment shown in FIG. 1;
图3为图1所示实施例提供的块存储服务方法的另一种应用场景示意图;FIG. 3 is a schematic diagram of another application scenario of the block storage service method provided by the embodiment shown in FIG. 1;
图4为本发明实施例提供的另一种块存储服务方法的流程图;4 is a flowchart of another method for storing a block storage service according to an embodiment of the present invention;
图5为图4所示实施例提供的块存储服务方法的一种应用场景示意图;FIG. 5 is a schematic diagram of an application scenario of a block storage service method provided by the embodiment shown in FIG. 4;
图6为本发明实施例提供的一种块存储服务装置的结构示意图;FIG. 6 is a schematic structural diagram of a block storage service device according to an embodiment of the present disclosure;
图7为本发明实施例提供的另一种块存储服务装置的结构示意图。FIG. 7 is a schematic structural diagram of another block storage service device according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
下面通过具体的实施例对本发明的技术方案进行详细说明,本发明以下多个实施例中的第一云系统为可以为公有云或私有云,第二云系统同样可以为公有云或私有云,第一VM和第二VM均为云系统中的云主机。本发明提供以下几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solution of the present invention is described in detail below by using a specific embodiment. The first cloud system in the following multiple embodiments may be a public cloud or a private cloud, and the second cloud system may also be a public cloud or a private cloud. The first VM and the second VM are both cloud hosts in the cloud system. The following specific embodiments of the present invention may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图1为本发明实施例提供的一种块存储服务方法的流程图。本实施例提供的块存储服务方法适用于在云系统中提供块存储服务的情况,该方法可以由块存储服务装置执行,该块存储服务装置通过硬件和软件结合的方式来实现,该装置可以集成在终端设备的处理器中,供处理器调用使用。如图1所示,本实施例的方法可以包括:FIG. 1 is a flowchart of a method for storing a block storage service according to an embodiment of the present invention. The block storage service method provided in this embodiment is applicable to a case where a block storage service is provided in a cloud system, and the method may be implemented by a block storage service device, where the block storage service device is implemented by a combination of hardware and software, and the device may be implemented by Integrated in the processor of the terminal device for use by the processor. As shown in FIG. 1, the method in this embodiment may include:
S110,在第一云系统中确定第一VM,并将第一云系统中用于提供块存储服务的块设备挂载在该第一VM上。 S110. Determine a first VM in the first cloud system, and mount a block device in the first cloud system for providing a block storage service on the first VM.
如图2所述,为图1所示实施例提供的块存储服务方法的一种应用场景示意图。在本实施例中,第一云系统为提供块存储服务的云系统,本实施例以第一云系统为公有云AWS为例予以说明,可以通过该AWS弹性计算云(Elastic Compute Cloud,简称为:EC2)申请一个VM,作为第一VM,还可以从第一云系统中选取一个已申请的VM作为第一VM。本实施例中确定出的第一VM负责挂载通过运营商提供的块存储服务所创建的块设备,具体为图2中的磁盘卷(volume)。FIG. 2 is a schematic diagram of an application scenario of the block storage service method provided in the embodiment shown in FIG. In this embodiment, the first cloud system is a cloud system that provides a block storage service. In this embodiment, the first cloud system is used as a public cloud AWS as an example, and the AWS elastic computing cloud (Elastic Compute Cloud, referred to as : EC2) Applying a VM, as the first VM, may also select an applied VM from the first cloud system as the first VM. The first VM determined in this embodiment is responsible for mounting the block device created by the block storage service provided by the operator, specifically the disk volume in FIG. 2.
可选的,本实施例提供的方法在将块设备挂载在该第一VM上之前,还包括:在第一云系统中创建用于提供块存储服务的块设备。Optionally, before the method of mounting the block device on the first VM, the method provided by the embodiment further includes: creating, in the first cloud system, a block device for providing a block storage service.
可选的,通过AWS弹性块存储(Elastic Block Store,简称为:EBS)创建块设备,本实施例中的第一云系统提供单一块设备。图2中的磁盘卷即是在该第一云系统中创建的块设备,在确定第一VM和创建该块设备后,可以将该块设备挂载在上述第一VM上。本实施例不限制执行在第一云系统中确定第一VM,与执行在第一云系统中创建用于提供块存储服务的块设备的先后顺序,只要是在挂载块设备之前执行的均可。Optionally, the block device is created by using AWS Elastic Block Store (EBS). The first cloud system in this embodiment provides a single block device. The disk volume in FIG. 2 is a block device created in the first cloud system. After determining the first VM and creating the block device, the block device can be mounted on the first VM. The embodiment does not limit the execution of determining the first VM in the first cloud system, and the sequence of executing the block device for providing the block storage service in the first cloud system, as long as it is executed before the block device is mounted. can.
需要说明的是,该块设备挂载在第一VM上的方式与相关技术中挂载块设备的方式相同,都是通过附着(attach)过程挂载的,需要说明的是,attach过程的技术实现采用的协议为黑盒子,即对使用者不公开挂载所使用的具体协议;然而,本实施例中的第一VM在第一云系统中的作用则与相关技术不同,相关技术中将块设备挂载到第一VM上后,则不能再将该块设备挂载于其他VM上,本实施例通过以下方式实现将运营商提供的块设备挂载于多个VM上。It should be noted that the manner in which the block device is mounted on the first VM is the same as the method of mounting the block device in the related art, and is all mounted by an attach process. It should be noted that the technology of the attach process is described. The protocol used in the implementation is a black box, that is, a specific protocol used for the user not to publicly mount; however, the role of the first VM in the first cloud system in this embodiment is different from the related technology, and related technologies will After the block device is mounted on the first VM, the block device can be mounted on the other VMs. In this embodiment, the device provided by the operator is mounted on multiple VMs in the following manner.
S120,通过第一VM上部署的块存储传输协议将挂载在第一VM上的块设备输出到互联网上。S120. Output, by using a block storage transport protocol deployed on the first VM, the block device mounted on the first VM to the Internet.
在本实施例中,在第一VM上挂载了运营商提供的块设备之后,该第一VM中会产生块设备名称,块设备的名称例如可以表示为/dev/sdb、/dev/sdc、/dev/sdd等,本发明所有实施例和所有应用场景示意图中均以块设备的名称为/dev/sdb予以示出,通过该块设备名称来指代挂载于第一VM上的块设备。另外,本实施例可以通过在第一VM上部署块存储传输协议将第 一VM上挂载的块设备输出到互联网上,以便对外提供服务。具体地,本实施例中的块存储传输协议可以为小型计算机系统接口(Internet Small Computer System Interface,简称为:iSCSI)协议,还可以为网络设备块(Network Block Device,简称为:NBD)协议;本实施例以iSCSI协议为例予以说明,通过iSCSI服务端(iSCSI target)将第一VM上挂载的块设备输出到互联网上,该传输到互联网上的块设备可以提供对外服务,即将第一VM上的块设备暴露于互联网中,也就是说,第一VM为块存储服务的服务端,本实施例中通过iSCSI target输出到互联网络上块设备可以称为target,/dev/sdb为target中的一个。In this embodiment, after the block device provided by the operator is mounted on the first VM, the block device name is generated in the first VM, and the name of the block device can be expressed as /dev/sdb, /dev/sdc, for example. And /dev/sdd, etc., all the embodiments of the present invention and all application scenarios are shown by the name of the block device as /dev/sdb, and the block name is used to refer to the block mounted on the first VM. device. In addition, this embodiment may be implemented by deploying a block storage transfer protocol on the first VM. A block device mounted on a VM is output to the Internet for external service. Specifically, the block storage transfer protocol in this embodiment may be a small computer system interface (i.e., iSCSI) protocol, or may be a network block device (NBD) protocol; In this embodiment, the iSCSI protocol is taken as an example to illustrate that the block device mounted on the first VM is output to the Internet through an iSCSI server (iSCSI target), and the block device transmitted to the Internet can provide external services, that is, the first The block device on the VM is exposed to the Internet, that is, the first VM is the server of the block storage service. In this embodiment, the block device outputted to the Internet through the iSCSI target may be referred to as a target, and /dev/sdb is a target. one of the.
其中,iSCSI服务端包括安装于第一VM上的SCSI协议的服务端。The iSCSI server includes a server of a SCSI protocol installed on the first VM.
S130,运行第二VM上部署的块存储传输协议,从互联网中获取第一VM上挂载的块设备后,将该块设备挂载到所述第二VM上。S130. Run the block storage transport protocol deployed on the second VM, and obtain the block device mounted on the first VM from the Internet, and then mount the block device to the second VM.
在本实施例中,不仅可以将运营商提供的块设备(volume)挂载于第一VM上,还可以通过运行第二VM上部署的iSCSI客户端(iSCSI initiator),获取上述传输到互联网上的块设备(target),并将获取的块设备挂载到第二VM上,即完成了将运营商提供的块设备(volume)挂载于第二VM上的需求,本实施例中的第二VM为块存储服务的客户端。In this embodiment, not only the device-provided block device can be mounted on the first VM, but also the iSCSI client (iSCSI initiator) deployed on the second VM can be used to obtain the above-mentioned transmission to the Internet. The block device (target), and the obtained block device is mounted on the second VM, that is, the requirement to mount the block device (volume) provided by the operator on the second VM is completed. The second VM is the client of the block storage service.
需要说的是,本实施例中的第二VM的数量通常可以为多个,通过本实施例中第一VM和第二VM在云系统中的关系可以看出,第一VM作为服务端提供块存储服务,并将相关技术中通过attach过程挂载块设备的方式,转换为通过块存储传输协议挂载块设备,通过块存储传输协议挂载暴露于互联网中的块设备(target)时,则不限制块设备(target)可以挂载的VM的数量,即实现了将运营商提供的块设备挂载在多个VM上。It should be noted that the number of the second VMs in this embodiment may be multiple. According to the relationship between the first VM and the second VM in the cloud system in this embodiment, the first VM is provided as a server. Block storage service, and converts the block device to the block device through the block storage transfer protocol by attaching the block device in the related art, and when the block device is exposed to the Internet by the block storage transfer protocol, The number of VMs that the block device can be mounted is not limited, that is, the block device provided by the operator is mounted on multiple VMs.
还需要说明的是,若需要在云系统上部署实时应用集群(Oracle Real Application Clusters,简称为:Oracle RAC),则需要在多个VM共享运营商提供的块设备,然而,通过相关技术提供的方式,即运营商提供的块设备在同一时刻只能挂载到云系统内的一个VM上,则无法实现在云系统上部署Oracle RAC的需求;本实施例提供的块存储服务方法,可以将原先局限于块设备只能为云系统内的一个VM服务,扩展为能够将块设备并发挂载到多个 VM上,则可以为Oracle RAC,以及与Oracle RAC相似的需求提供了共享块设备的应用。另外,执行本发明每一个实施例提供的块存储服务方法的终端设备可以为一客户端,该客户端通过登录第一云系统中的云账号,具有管理云系统的权项,以执行每一项操作。It should also be noted that if real-time application clusters (Oracle Real Application Clusters, Oracle RAC) need to be deployed on the cloud system, the block devices provided by the operators need to be shared among multiple VMs. However, the related technologies provide The method of the block storage service provided by the present embodiment can be implemented in the manner that the block device provided by the operator can be mounted on only one VM in the cloud system at the same time. Originally limited to block devices can only serve one VM in the cloud system, extended to be able to mount block devices concurrently to multiple On the VM, applications that share block devices can be provided for Oracle RAC and similar requirements to Oracle RAC. In addition, the terminal device that performs the block storage service method provided by each embodiment of the present invention may be a client that has the right to manage the cloud system by logging in to the cloud account in the first cloud system to execute each Item operation.
本实施例所提供的块存储服务方法,通过在第一云系统中确定第一VM,并将运营商提供的块设备挂载到该第一VM上,从而通过该第一VM上部署的块存储传输协议将挂载在第一VM上的块设备输出到互联网上,进而通过运行第二VM上部署的块存储传输协议,将第一VM上挂载的块设备挂载到第二VM上,本实施例通过第一VM将相关技术中挂载块设备的方式转换为通过块存储传输协议来执行,从而实现了将运营商提供的块设备挂载于多个VM上的需求;本实施例提供的方法实现了将用于提供块存储服务的块设备挂载在多个VM上。The block storage service method provided by the embodiment, by determining the first VM in the first cloud system, and mounting the block device provided by the operator to the first VM, thereby passing the block deployed on the first VM The storage transfer protocol outputs the block device mounted on the first VM to the Internet, and then mounts the block device mounted on the first VM to the second VM by running a block storage transfer protocol deployed on the second VM. In this embodiment, the manner in which the block device is mounted in the related art is converted to the block storage transfer protocol by using the first VM, thereby implementing the requirement that the block device provided by the operator is mounted on multiple VMs; The method provided by the example implements mounting a block device for providing a block storage service on a plurality of VMs.
可选地,本发明上述实施例中的第二VM可以为第一云系统内的VM,图2所示应用场景中的第二VM与第一VM在同一云系统中,在该应用场景中实现了同一云系统内的块设备挂载在多个VM上;另外,该第二VM还可以为第二云系统中的VM,如图3所示,为图1所示实施例提供的块存储服务方法的另一种应用场景示意图,在该应用场景中实现了将第一云系统的块设备挂载于第一云系统外的VM上,在第二云系统中的块设备资源紧张时,可以通过挂载第一云系统中的块设备来提供块存储服务,具体实现方式与上述实施例相同,故在此不再赘述。Optionally, the second VM in the foregoing embodiment of the present invention may be a VM in the first cloud system, and the second VM in the application scenario shown in FIG. 2 is in the same cloud system as the first VM, in the application scenario. The block device in the same cloud system is mounted on multiple VMs. In addition, the second VM may also be a VM in the second cloud system. As shown in FIG. 3, the block provided in the embodiment shown in FIG. A schematic diagram of another application scenario of the storage service method, in which the block device of the first cloud system is mounted on the VM outside the first cloud system, and when the block device resources in the second cloud system are tight The block storage service can be provided by the device in the first cloud system. The specific implementation is the same as that in the foregoing embodiment, and therefore is not described here.
需要说明的是,通过将本实施例提供的方法应用于图3所示应用场景,为第一云系统外VM提供挂载块设备的服务,可以将原先局限于为第一云系统内VM提供的块存储服务,扩展成可以为第一云系统外VM提供块存储服务,即扩展了原先第一云系统中块存储服务可以提供服务的范围,满足了用户在一家运营商购买云计算计算服务后,可以任意使用的需求,相应地提高了块存储服务的兼容性。解决了相关技术提供的云计算服务中,第一云系统提供的块存储服务,仅能为第一云系统内的VM提供块存储服务,而不能跨云为第二云系统内的VM提供块存储服务的限制。It should be noted that, by applying the method provided in this embodiment to the application scenario shown in FIG. 3, the service for the VM to be mounted on the VM of the first cloud system may be limited to being provided by the VM in the first cloud system. The block storage service is extended to provide a block storage service for the VM outside the first cloud system, that is, the range in which the block storage service in the original first cloud system can provide services is extended, and the user purchases the cloud computing computing service in one operator. After that, the requirements of any use can be increased, and the compatibility of the block storage service is correspondingly improved. In the cloud computing service provided by the related technology, the block storage service provided by the first cloud system can only provide the block storage service for the VMs in the first cloud system, and cannot provide the blocks for the VMs in the second cloud system across the cloud. Storage service limitations.
可选地,图4为本发明实施例提供的另一种块存储服务方法的流程图。 本实施例中的第二VM的数量为多个,则上述实施例中的S130可以替换为:依次运行每个第二VM上部署的块存储传输协议,从互联网中获取第一VM上挂载的块设备后,将该块设备分别挂载到每个第二VM上。本实施例中挂载多个第二VM的方式与上述实施例中挂载一个第二VM的方式类似,例如同样可以是通过部署于第二VM上的iSCSI客户端实现挂载。Optionally, FIG. 4 is a flowchart of another method for storing a block storage service according to an embodiment of the present invention. In this embodiment, the number of the second VMs is multiple, and the S130 in the foregoing embodiment may be replaced by: sequentially running the block storage transport protocol deployed on each second VM, and acquiring the first VM from the Internet. After the block device, the block device is separately mounted to each of the second VMs. The manner of mounting a plurality of second VMs in this embodiment is similar to the manner in which a second VM is mounted in the foregoing embodiment. For example, the mounting may be performed by using an iSCSI client deployed on the second VM.
在具体实现中,同样可以应用于图2和图3所示应用场景,即图2和图3中均存在多个第二VM。另外,图5为图4所示实施例提供的块存储服务方法的一种应用场景示意图,在该应用场景中,挂载第一VM提供的块设备的多个第二VM中,可以部分第二VM在第一云系统中,其它第二VM在第二云系统中。In a specific implementation, the application scenario shown in FIG. 2 and FIG. 3 can also be applied, that is, multiple second VMs exist in both FIG. 2 and FIG. 3. In addition, FIG. 5 is a schematic diagram of an application scenario of the block storage service method provided by the embodiment shown in FIG. 4, in which a plurality of second VMs of a block device provided by the first VM are mounted, which may be partially The second VM is in the first cloud system, and the other second VM is in the second cloud system.
需要说明的是,本发明提供的上述块存储服务方法中,在图3所示应用场景的具体实现中,可以为一公有云为另一公有云提供块存储服务,第一云系统例如为公有云AWS,第二云系统例如为公有云阿里云,即为AWS为阿里云提供块存储服务;另外,图3所示应用场景,还可以为一公有云为一私有云提供块存储服务,第一云系统同样可以为公有云AWS,这个场景典型运用在混合云场景下,在混合云中实现对块存储服务的统一管理,举例来说,在私有云块存储服务的资源不足时,若私有云上的VM再需要额外的块存储服务时,混合云调度中心需要在公有云上申请块存储服务的资源,以供私有云中VM的挂载使用。It should be noted that, in the above-mentioned block storage service method provided by the present invention, in a specific implementation of the application scenario shown in FIG. 3, a public storage cloud may be used to provide a block storage service for another public cloud, where the first cloud system is, for example, public. Cloud AWS, the second cloud system is, for example, the public cloud Alibaba Cloud, which provides AWS for Alibaba Cloud to provide block storage services; in addition, the application scenario shown in Figure 3 can also provide a block storage service for a private cloud for a private cloud. A cloud system can also be a public cloud AWS. This scenario is typically used in a hybrid cloud scenario to achieve unified management of block storage services in a hybrid cloud. For example, if the resources of the private cloud storage service are insufficient, if private When the VM on the cloud needs additional block storage services, the hybrid cloud dispatch center needs to apply for the block storage service resources on the public cloud for the VMs in the private cloud to be mounted.
上述每一实施例具体以第一云系统为AWS为例的实现方式,类似地,本发明每一实施例中的第一云系统同样可以为阿里云,即可以实现将阿里云的块存储服务所创建的块设备,并发的挂载到阿里云的多个VM上,或者挂载到其它云系统的多个VM上。Each of the foregoing embodiments is specifically implemented by using the first cloud system as an AWS. Similarly, the first cloud system in each embodiment of the present invention may also be Alibaba Cloud, that is, the Alibaba Cloud block storage service may be implemented. The created block device is concurrently mounted on multiple VMs of Alibaba Cloud or mounted on multiple VMs of other cloud systems.
类似地,采用本发明提供的块存储服务方法,可实现公有云或私有云之间块存储服务的任意组合,例如包含:通过公有云的块存储服务对另一个公有云服务,通过公有云的块存储服务对另一个私有云服务,通过私有云的块存储服务对另一个公有云服务,通过私有云的块存储服务对另一个私有云服务,具体实现方式和步骤均上述实施例相同,故在此不再赘述。Similarly, with the block storage service method provided by the present invention, any combination of block storage services between the public cloud or the private cloud can be implemented, for example, including: a public cloud service through a block storage service of the public cloud, through a public cloud The block storage service is the same as the above embodiment in the case of another private cloud service, the block storage service of the private cloud to another public cloud service, and the block storage service of the private cloud to the other private cloud service. I will not repeat them here.
本发明实施例还提出了一种计算机可读存储介质,存储有计算机可执行 指令,计算机可执行指令用于执行上述描述的任意一个方法。Embodiments of the present invention also provide a computer readable storage medium storing a computer executable The instructions, computer executable instructions, are used to perform any of the methods described above.
图6为本发明实施例提供的一种块存储服务装置的结构示意图。本实施例提供的块存储服务装置适用于在云系统中提供块存储服务的情况,该块存储服务装置通过硬件和软件结合的方式来实现,该装置可以集成在终端设备的处理器中,供处理器调用使用。如图6所示,本实施例的块存储服务装置具体包括:挂载模块11和输出模块12。FIG. 6 is a schematic structural diagram of a block storage service device according to an embodiment of the present invention. The block storage service device provided in this embodiment is applicable to a case where a block storage service is provided in a cloud system, and the block storage service device is implemented by a combination of hardware and software, and the device may be integrated in a processor of the terminal device for The processor calls are used. As shown in FIG. 6, the block storage service device of this embodiment specifically includes: a mounting module 11 and an output module 12.
其中,挂载模块11,设置为在第一云系统中确定第一虚拟机VM,并将第一云系统中用于提供块存储服务的块设备挂载在该第一VM上。The mounting module 11 is configured to determine the first virtual machine VM in the first cloud system, and mount the block device in the first cloud system for providing the block storage service on the first VM.
本实施例同样可以应用与图2所示应用场景中,本实施例提供的装置在挂载模块11将块设备挂载在该第一VM上之前,还可以在第一云系统中创建用于提供块存储服务的块设备,即图2中的磁盘卷(volume)。This embodiment is also applicable to the application scenario shown in FIG. 2, and the device provided in this embodiment may be used in the first cloud system before the mounting module 11 mounts the block device on the first VM. A block device that provides a block storage service, that is, a disk volume in FIG.
输出模块12,设置为通过第一VM上部署的块存储传输协议将挂载在第一VM上的块设备输出到互联网上。The output module 12 is configured to output the block device mounted on the first VM to the Internet through a block storage transfer protocol deployed on the first VM.
需要说明的是,本实施例中的块存储传输协议同样可以为iSCSI协议,还可以为NBD协议,以iSCSI协议为例予以说明,通过iSCSI target输出到互联网络上块设备可以称为target,/dev/sdb为target中的一个。It should be noted that the block storage transport protocol in this embodiment may also be an iSCSI protocol, or may be an NBD protocol, and the iSCSI protocol is taken as an example. The device that is output to the internet through the iSCSI target may be referred to as a target, Dev/sdb is one of the targets.
挂载模块11,还设置为运行第二VM上部署的块存储传输协议,从互联网中获取第一VM上挂载的块设备后,将该块设备挂载到该第二VM上。The mounting module 11 is further configured to run a block storage transfer protocol deployed on the second VM, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted on the second VM.
需要说的是,本实施例中的第二VM的数量通常可以为多个,通过本实施例中第一VM和第二VM在云系统中的关系可以看出,本实施例通过块存储传输协议挂载暴露于互联网中的块设备(target)时,则不限制块设备(target)可以挂载的VM的数量,即实现了将运营商提供的块设备挂载于多个VM上的需求。另外,通过本实施例提供的方式将运营商提供的块设备挂载云系统中的多个VM的效果,可以应用于对云系统部署Oracle RAC的应用场景中。It should be noted that the number of the second VMs in this embodiment may be multiple. According to the relationship between the first VM and the second VM in the cloud system in this embodiment, the present embodiment uses block storage transmission. When the protocol mounts the block device exposed to the Internet, it does not limit the number of VMs that the block device can mount, that is, the requirement to mount the block device provided by the operator on multiple VMs. . In addition, the effect of the plurality of VMs in the cloud system being installed by the operator-provided block device in the manner provided by the embodiment can be applied to the application scenario of deploying the Oracle RAC to the cloud system.
还需要说明的是,本发明每一实施例提供的块存储服务装置所属的终端设备可以为一客户端,该客户端通过登录第一云系统中的云账号,具有管理云系统的权项,以执行各项操作。 It should be noted that the terminal device to which the block storage service device is provided in each embodiment of the present invention may be a client, and the client has the right to manage the cloud system by logging in to the cloud account in the first cloud system. To perform various operations.
本发明实施例提供的块存储服务装置用于执行本发明图1所示实施例提供的块存储服务方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The block storage service device provided by the embodiment of the present invention is used to execute the block storage service method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
可选地,本发明上述实施例中的第二VM可以为第一云系统内的VM,图2所示应用场景中的第二VM与第一VM在同一云系统中,在该应用场景中实现了同一云系统内的块设备的挂载;另外,该第二VM还可以为第二云系统中的VM,本发明提供的块存储服务装置同样可以应用于上述3应用场景示中,以实现将第一云系统的块设备挂载于第一云系统外的VM上。Optionally, the second VM in the foregoing embodiment of the present invention may be a VM in the first cloud system, and the second VM in the application scenario shown in FIG. 2 is in the same cloud system as the first VM, in the application scenario. The mounting of the block device in the same cloud system is implemented. In addition, the second VM can also be a VM in the second cloud system. The block storage service device provided by the present invention can also be applied to the foregoing three application scenarios. The module device of the first cloud system is mounted on the VM outside the first cloud system.
可选地,图7为本发明实施例提供的另一种块存储服务装置的结构示意图。在上述图6所示实施例的基础上,本实施例中的挂载模块11可以包括选取单元13和申请单元14中的至少一个,选取单元13设置为在第一云系统中选取一个已申请的VM作为第一VM;申请单元14设置为在第一云系统中申请一个VM作为第一VM;图7所示实施例以挂载模块11包括选取单元13和申请单元14为例予以示出。Optionally, FIG. 7 is a schematic structural diagram of another block storage service device according to an embodiment of the present invention. On the basis of the foregoing embodiment shown in FIG. 6, the mounting module 11 in this embodiment may include at least one of the selecting unit 13 and the application unit 14, and the selecting unit 13 is configured to select one of the first cloud systems. The VM is used as the first VM; the application unit 14 is configured to apply a VM as the first VM in the first cloud system; the embodiment shown in FIG. 7 shows the mounting module 11 including the selecting unit 13 and the application unit 14 as an example. .
在图7所示实施例的基础上,本实施例中的第二VM的数量可以为多个,则本实施例中的挂载模块11还可以包括挂载单元15,设置为依次运行每个第二VM上部署的块存储传输协议,从互联网中获取第一VM上挂载的块设备后,将该块设备分别挂载到每个第二VM上。本实施例中第二VM可以为第一云系统中的VM,还可以为第二云系统中的VM;在另一种实现方式中,如图5所示,第二VM中的一部分VM为第一云系统中的VM,第二VM中的另一部分VM为第二云系统中的VM。On the basis of the embodiment shown in FIG. 7, the number of the second VMs in this embodiment may be multiple, and the mounting module 11 in this embodiment may further include a mounting unit 15 configured to sequentially run each The block storage transport protocol deployed on the second VM acquires the block device mounted on the first VM from the Internet, and then mounts the block device to each second VM. In this embodiment, the second VM may be a VM in the first cloud system, and may also be a VM in the second cloud system. In another implementation manner, as shown in FIG. 5, a part of the VMs in the second VM are The VM in the first cloud system, and another part of the VM in the second VM is a VM in the second cloud system.
本发明实施例提供的块存储服务装置用于执行本发明图4所示实施例提供的块存储服务方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The block storage service device provided by the embodiment of the present invention is used to execute the block storage service method provided by the embodiment shown in FIG. 4 of the present invention, and has a corresponding function module, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储 介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储与存储器中的程序/指令来实现其相应功能。本发明不限于任何特定形式的硬件和软件的结合。One of ordinary skill in the art will appreciate that all or part of the steps in the above methods may be performed by a program to instruct related hardware, such as a processor, which may be stored in computer readable storage. In media, such as read-only memory, disk or optical disk. Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program in a storage and a memory by a processor. / instruction to achieve its corresponding function. The invention is not limited to any specific form of combination of hardware and software.
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。While the embodiments of the present invention have been described above, the described embodiments are merely for the purpose of understanding the invention and are not intended to limit the invention. Any modification and variation in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
上述技术方案实现了将用于提供块存储服务的块设备挂载在多个VM上。 The above technical solution implements mounting a block device for providing a block storage service on a plurality of VMs.

Claims (10)

  1. 一种块存储服务方法,包括:A block storage service method, comprising:
    在第一云系统中确定第一虚拟机VM,并将第一云系统中用于提供块存储服务的块设备挂载在所述第一VM上;Determining, in the first cloud system, the first virtual machine VM, and mounting the block device in the first cloud system for providing the block storage service on the first VM;
    通过所述第一VM上部署的块存储传输协议将挂载在所述第一VM上的块设备输出到互联网上;Outputting the block device mounted on the first VM to the Internet by using a block storage transfer protocol deployed on the first VM;
    运行第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备挂载到所述第二VM上。The block storage transport protocol deployed on the second VM is executed, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted on the second VM.
  2. 根据权利要求1所述的块存储服务方法,其中,所述第二VM的数量为多个,所述运行第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备挂载到所述第二VM上,包括:The block storage service method according to claim 1, wherein the number of the second VMs is plural, the running a block storage transport protocol deployed on the second VM, acquiring the first VM from the Internet After the block device is mounted, the block device is mounted on the second VM, including:
    依次运行每个所述第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备分别挂载到每个所述第二VM上。Running the block storage transfer protocol deployed on each of the second VMs in sequence, and acquiring the block devices mounted on the first VM from the Internet, respectively, and mounting the block devices to each of the first On the second VM.
  3. 根据权利要求1所述的块存储服务方法,其中,所述第二VM为所述第一云系统中的VM;或者,The block storage service method according to claim 1, wherein the second VM is a VM in the first cloud system; or
    所述第二VM为所述第二云系统中的VM;或者,The second VM is a VM in the second cloud system; or
    所述第二VM中的一部分VM为所述第一云系统中的VM,所述第二VM中的另一部分VM为所述第二云系统中的VM。A part of the VMs in the second VM is a VM in the first cloud system, and another part of the VMs in the second VM is a VM in the second cloud system.
  4. 根据权利要求1~3中任一项所述的块存储服务方法,其中,所述在第一云系统中确定第一虚拟机VM,包括:The block storage service method according to any one of claims 1 to 3, wherein the determining the first virtual machine VM in the first cloud system comprises:
    在所述第一云系统中选取一个已申请的VM作为所述第一VM;或者,Selecting an applied VM as the first VM in the first cloud system; or
    在所述第一云系统中申请一个VM作为所述第一VM。Applying a VM as the first VM in the first cloud system.
  5. 根据权利要求1~3中任一项所述的块存储服务方法,其中,所述块存储传输协议包括:小型计算机系统接口iSCSI协议或网络设备块NBD协议。The block storage service method according to any one of claims 1 to 3, wherein the block storage transfer protocol comprises: a small computer system interface iSCSI protocol or a network device block NBD protocol.
  6. 一种块存储服务装置,包括: A block storage service device comprising:
    挂载模块,设置为在第一云系统中确定第一虚拟机VM,并将第一云系统中用于提供块存储服务的块设备挂载在所述第一VM上;a mounting module, configured to determine a first virtual machine VM in the first cloud system, and mount a block device in the first cloud system for providing a block storage service on the first VM;
    输出模块,设置为通过所述第一VM上部署的块存储传输协议将挂载在所述第一VM上的块设备输出到互联网上;An output module, configured to output, by using a block storage transfer protocol deployed on the first VM, a block device mounted on the first VM to the Internet;
    所述挂载模块,还设置为运行第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备挂载到所述第二VM上。The mounting module is further configured to run a block storage transfer protocol deployed on the second VM, and after the block device mounted on the first VM is obtained from the Internet, the block device is mounted to the On the second VM.
  7. 根据权利要求6所述的块存储服务装置,其中,所述第二VM的数量为多个,所述挂载模块包括:挂载单元,设置为依次运行每个所述第二VM上部署的块存储传输协议,从所述互联网中获取所述第一VM上挂载的块设备后,将所述块设备分别挂载到每个所述第二VM上。The block storage service device according to claim 6, wherein the number of the second VMs is plural, and the mounting module comprises: a mounting unit configured to sequentially run the deployment on each of the second VMs. a block storage transfer protocol, after acquiring the block device mounted on the first VM from the Internet, respectively mounting the block device to each of the second VMs.
  8. 根据权利要求7所述的块存储服务装置,其中,所述第二VM为所述第一云系统中的VM;或者,The block storage service device of claim 7, wherein the second VM is a VM in the first cloud system; or
    所述第二VM为所述第二云系统中的VM;或者,The second VM is a VM in the second cloud system; or
    所述第二VM中的一部分VM为所述第一云系统中的VM,所述第二VM中的另一部分VM为所述第二云系统中的VM。A part of the VMs in the second VM is a VM in the first cloud system, and another part of the VMs in the second VM is a VM in the second cloud system.
  9. 根据权利要求7或8中任一项所述的块存储服务装置,所述挂载模块还包括选取单元和申请单元中的至少一个;The block storage service device according to any one of claims 7 or 8, wherein the mounting module further comprises at least one of a selection unit and an application unit;
    其中,所述选取单元,设置为在所述第一云系统中选取一个已申请的VM作为所述第一VM;The selecting unit is configured to select an applied VM as the first VM in the first cloud system;
    所述申请单元,设置为在所述第一云系统中申请一个VM作为所述第一VM。The application unit is configured to apply for one VM as the first VM in the first cloud system.
  10. 根据权利要求6~8中任一项所述的块存储服务装置,其中,所述块存储传输协议包括:小型计算机系统接口iSCSI协议或网络设备块NBD协议。 The block storage service device according to any one of claims 6 to 8, wherein the block storage transfer protocol comprises: a small computer system interface iSCSI protocol or a network device block NBD protocol.
PCT/CN2016/084322 2015-09-17 2016-06-01 Block storage service method and apparatus WO2017045437A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510594046.5 2015-09-17
CN201510594046.5A CN106549986A (en) 2015-09-17 2015-09-17 A kind of block storage method and device

Publications (1)

Publication Number Publication Date
WO2017045437A1 true WO2017045437A1 (en) 2017-03-23

Family

ID=58288111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084322 WO2017045437A1 (en) 2015-09-17 2016-06-01 Block storage service method and apparatus

Country Status (2)

Country Link
CN (1) CN106549986A (en)
WO (1) WO2017045437A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632353A (en) * 2018-03-29 2018-10-09 浙江慧优科技有限公司 The method that high-performance Oracle RAC clusters are disposed in public cloud
CN110221902A (en) * 2019-06-12 2019-09-10 腾讯科技(深圳)有限公司 A kind of data transmission method and relevant apparatus based on virtual machine

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108170513A (en) * 2017-12-28 2018-06-15 上海优刻得信息科技有限公司 Method, apparatus, system and the storage medium of carry are carried out to network disk
CN112799790B (en) * 2021-04-15 2022-03-11 北京首都在线科技股份有限公司 Scheduling method, scheduling device, electronic equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544047A (en) * 2013-10-25 2014-01-29 华为技术有限公司 Cloud system data management method
CN103731508A (en) * 2014-01-23 2014-04-16 易桂先 Cloud-storage-based network hard disk device and management method thereof
WO2014197289A1 (en) * 2013-06-03 2014-12-11 Microsoft Corporation Sharing a virtual hard disk across multiple virtual machines
CN104410680A (en) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 Method, client terminal, server and system of sharing file/file folder
CN104657200A (en) * 2015-03-03 2015-05-27 浪潮电子信息产业股份有限公司 Method for establishing shared disks in virtual machine
CN104685488A (en) * 2012-10-04 2015-06-03 阿沃森特亨茨维尔公司 System and method for creating virtual disk images for use with remote computer

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8904376B2 (en) * 2009-01-09 2014-12-02 Dell Products L.P. Virtualization system provision
CN102185897B (en) * 2011-04-14 2013-08-21 上海交通大学 Safe distributed virtual storage pool system
CN103118073B (en) * 2013-01-08 2015-07-22 华中科技大学 Virtual machine data persistence storage system and method in cloud environment
CN104683400A (en) * 2013-11-29 2015-06-03 英业达科技有限公司 Cloud system and cloud resource configuration method
CN103607471A (en) * 2013-12-02 2014-02-26 中标软件有限公司 File exchange method and system between desktop systems

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104685488A (en) * 2012-10-04 2015-06-03 阿沃森特亨茨维尔公司 System and method for creating virtual disk images for use with remote computer
WO2014197289A1 (en) * 2013-06-03 2014-12-11 Microsoft Corporation Sharing a virtual hard disk across multiple virtual machines
CN103544047A (en) * 2013-10-25 2014-01-29 华为技术有限公司 Cloud system data management method
CN103731508A (en) * 2014-01-23 2014-04-16 易桂先 Cloud-storage-based network hard disk device and management method thereof
CN104410680A (en) * 2014-11-20 2015-03-11 北京奇虎科技有限公司 Method, client terminal, server and system of sharing file/file folder
CN104657200A (en) * 2015-03-03 2015-05-27 浪潮电子信息产业股份有限公司 Method for establishing shared disks in virtual machine

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632353A (en) * 2018-03-29 2018-10-09 浙江慧优科技有限公司 The method that high-performance Oracle RAC clusters are disposed in public cloud
CN108632353B (en) * 2018-03-29 2021-01-08 浙江慧优科技有限公司 Method for deploying high-performance Oracle RAC cluster on public cloud
CN110221902A (en) * 2019-06-12 2019-09-10 腾讯科技(深圳)有限公司 A kind of data transmission method and relevant apparatus based on virtual machine
CN110221902B (en) * 2019-06-12 2023-09-29 腾讯科技(深圳)有限公司 Data transmission method and related device based on virtual machine

Also Published As

Publication number Publication date
CN106549986A (en) 2017-03-29

Similar Documents

Publication Publication Date Title
US10057112B2 (en) Fault detection of service chains in a SDN/NFV network environment
US9747093B2 (en) Device driver aggregation in operating system deployment
US9229759B2 (en) Virtual machine provisioning using replicated containers
US9251040B2 (en) Remote debugging in a cloud computing environment
CN107179879B (en) Method and apparatus for data migration of storage device
US9197489B1 (en) Live migration of virtual machines in a hybrid network environment
US20240176672A1 (en) Systems and methods providing serverless dns integration
US9658934B2 (en) Dynamic mechanism for fault injection for testing distributed systems
WO2017045437A1 (en) Block storage service method and apparatus
US8739175B2 (en) System and method for rerouting a request between virtualization services
US9934060B2 (en) Hybrid service fleet management for cloud providers
US9983813B2 (en) Maintenance of a fabric priority during synchronous copy operations
US11102278B2 (en) Method for managing a software-defined data center implementing redundant cloud management stacks with duplicate API calls processed in parallel
US8566847B2 (en) Out-of-band host management via a management controller
US10338940B2 (en) Adjusting adminstrative access based on workload migration
US11012325B2 (en) Method, device and computer program product for configuring service instance
US20200137029A1 (en) Secure channel for cloud deployment unit
WO2016079633A1 (en) Traffic-aware data center vm placement considering job dynamic and server heterogeneity
WO2020024978A1 (en) Device, method, apparatus, and readable storage medium for virtual machine migration
US20170257263A1 (en) Method and appartus to allow dynamic changes of a replica network configuration in distrubted systems
EP3908928B1 (en) Low-latency events across a virtual machine boundary
US20230115261A1 (en) Migrating stateful workloads between container clusters with different storage backends
US9736241B2 (en) Maintenance of a fabric priority among operations within a fibre channel exchange
CN113342457A (en) Kubernetes scheduling method based on registration and discovery of Eureka service
WO2018036310A1 (en) Method and apparatus for managing network function virtualization and orchestration entity

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16845551

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16845551

Country of ref document: EP

Kind code of ref document: A1