CN107463338A - A kind for the treatment of method and apparatus of logical volume - Google Patents
A kind for the treatment of method and apparatus of logical volume Download PDFInfo
- Publication number
- CN107463338A CN107463338A CN201710697689.1A CN201710697689A CN107463338A CN 107463338 A CN107463338 A CN 107463338A CN 201710697689 A CN201710697689 A CN 201710697689A CN 107463338 A CN107463338 A CN 107463338A
- Authority
- CN
- China
- Prior art keywords
- logical volume
- service
- logical
- creation
- group
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0605—Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0662—Virtualisation aspects
- G06F3/0665—Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及存储系统技术领域,更具体的说是涉及一种逻辑卷的处理方法和装置。The present invention relates to the technical field of storage systems, in particular to a logical volume processing method and device.
背景技术Background technique
随着存储技术的不断发展,存储系统的容量逐渐增加,为了实现存储资源的动态调节,一般采用逻辑卷来管理存储系统的磁盘分区。逻辑卷基于存储池创建而来,为了便于查找逻辑卷,一般需要对逻辑卷进行分类。With the continuous development of storage technology, the capacity of the storage system is gradually increasing. In order to realize the dynamic adjustment of storage resources, logical volumes are generally used to manage the disk partitions of the storage system. Logical volumes are created based on storage pools. To facilitate finding logical volumes, logical volumes generally need to be classified.
目前针对逻辑卷的常见分类方式包括按池划分的逻辑卷以及按主机划分的逻辑卷两种。由于分类方式均没有与实际业务相关联,因此不便于查找与业务关联的逻辑卷,当用户想要查找与某一业务的逻辑卷时,只能根据逻辑卷的名称进行查找,导致查找效率低,且查找到的逻辑卷也不能直观的反映有哪些业务与其关联。Currently, common classification methods for logical volumes include logical volumes divided by pools and logical volumes divided by hosts. Since the classification methods are not associated with the actual business, it is not convenient to find the logical volume associated with the business. When the user wants to find the logical volume related to a certain business, he can only search according to the name of the logical volume, resulting in low search efficiency , and the found logical volumes cannot intuitively reflect which services are associated with them.
发明内容Contents of the invention
有鉴于此,本发明提供一种逻辑卷的处理方法和装置,以解决现有的针对逻辑卷的管理方式存在查找效率低且查找到的逻辑卷也不能直观的反映有哪些业务与其关联的技术问题。In view of this, the present invention provides a logical volume processing method and device to solve the problem that the existing logical volume management method has low search efficiency and the found logical volume cannot intuitively reflect which services are associated with it. question.
为实现上述目的,本发明提供如下技术方案:To achieve the above object, the present invention provides the following technical solutions:
一种逻辑卷的处理方法,包括:A method for processing a logical volume, comprising:
创建与不同的业务标识对应的逻辑卷组;Create logical volume groups corresponding to different business identifiers;
将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内。The logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifier used to characterize the same service.
优选的,所述将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内,包括:Preferably, dividing the logical volumes associated with the same business into logical volume groups corresponding to the business identifier used to characterize the same business includes:
在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;In the logical volume group corresponding to the first service identifier, create a first logical volume associated with the first service;
和/或,将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内;And/or, dividing the first logical volume associated with the first service in the storage pool into a logical volume group corresponding to the first service identifier;
其中,所述第一业务标识用于表征所述第一业务。Wherein, the first service identifier is used to characterize the first service.
优选的,所述在与第一业务标识对应的逻辑卷组内,创建与所述第一业务相关联的第一逻辑卷,包括:Preferably, creating the first logical volume associated with the first service in the logical volume group corresponding to the first service identifier includes:
获取初始化参数;Get initialization parameters;
基于所述初始化参数在与第一业务标识对应的逻辑卷组内创建与所述第一业务相关联的第一逻辑卷;creating a first logical volume associated with the first service in a logical volume group corresponding to the first service identifier based on the initialization parameter;
记录所述第一逻辑卷的属性信息。Record the attribute information of the first logical volume.
优选的,所述创建与第一业务相关联的第一逻辑卷之后,还包括:Preferably, after creating the first logical volume associated with the first business, it further includes:
将所述第一逻辑卷映射到使用所述第一逻辑卷的主机。Map the first logical volume to a host using the first logical volume.
优选的,还包括:Preferably, it also includes:
接收第二逻辑卷的创建操作,获取用户输入的创建信息;receiving the creation operation of the second logical volume, and obtaining creation information input by the user;
获取所述第二逻辑卷所属的逻辑卷组的逻辑卷创建模板;Obtain a logical volume creation template of the logical volume group to which the second logical volume belongs;
使用所述逻辑卷创建模板创建与所述创建信息对应的第二逻辑卷;其中,所述逻辑卷创建模板基于所述第一逻辑卷的属性信息确定;Using the logical volume creation template to create a second logical volume corresponding to the creation information; wherein the logical volume creation template is determined based on the attribute information of the first logical volume;
将所述第二逻辑卷映射到与所述第二逻辑卷属于同一逻辑卷组的第一逻辑卷的主机。Mapping the second logical volume to the host of the first logical volume belonging to the same logical volume group as the second logical volume.
优选的,还包括:Preferably, it also includes:
接收到针对第一逻辑卷的预定操作时,在所述第一逻辑卷所属逻辑卷组内创建与所述第一逻辑卷的属性信息相同的第三逻辑卷;When a predetermined operation for the first logical volume is received, a third logical volume having the same attribute information as the first logical volume is created in the logical volume group to which the first logical volume belongs;
将所述第三逻辑卷映射到所述第一逻辑卷的主机。A host that maps the third logical volume to the first logical volume.
一种逻辑卷的处理装置,包括:A logical volume processing device, comprising:
创建卷组单元,用于创建与不同的业务标识对应的逻辑卷组;Create a volume group unit for creating logical volume groups corresponding to different business identifiers;
第一划分单元,用于将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内。The first dividing unit is configured to divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service.
优选的,所述第一划分单元,包括:Preferably, the first division unit includes:
创建逻辑卷单元,用于在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;Create a logical volume unit for creating a first logical volume associated with the first service in the logical volume group corresponding to the first service identifier;
和/或,划分逻辑卷单元,用于将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内;And/or, divide the logical volume unit, for dividing the first logical volume associated with the first service in the storage pool into the logical volume group corresponding to the first service identifier;
其中,所述第一业务标识用于表征所述第一业务。Wherein, the first service identifier is used to characterize the first service.
优选的,创建逻辑卷单元,包括:Preferably, a logical volume unit is created, including:
获取参数模块,用于获取初始化参数;Obtain a parameter module, which is used to obtain initialization parameters;
第一创建模块,用于基于所述初始化参数在与第一业务标识对应的逻辑卷组内创建与所述第一业务相关联的第一逻辑卷;A first creating module, configured to create a first logical volume associated with the first service in a logical volume group corresponding to the first service identifier based on the initialization parameter;
记录信息模块,用于记录所述第一逻辑卷的属性信息。The recording information module is configured to record the attribute information of the first logical volume.
优选的,还包括:Preferably, it also includes:
第一映射单元,用于将所述第一逻辑卷映射到使用所述第一逻辑卷的主机。A first mapping unit, configured to map the first logical volume to a host using the first logical volume.
优选的,还包括:Preferably, it also includes:
获取信息单元,用于接收第二逻辑卷的创建操作,获取用户输入的创建信息;an information acquisition unit, configured to receive a creation operation of the second logical volume, and acquire creation information input by a user;
获取模板单元,用于获取所述第二逻辑卷所属的逻辑卷组的逻辑卷创建模板;obtaining a template unit, configured to obtain a logical volume creation template of the logical volume group to which the second logical volume belongs;
第一创建单元,用于使用所述逻辑卷创建模板创建与所述创建信息对应的第二逻辑卷;其中,所述逻辑卷创建模板基于所述第一逻辑卷的属性信息确定;A first creating unit, configured to use the logical volume creation template to create a second logical volume corresponding to the creation information; wherein, the logical volume creation template is determined based on attribute information of the first logical volume;
第二映射单元,用于将所述第二逻辑卷映射到与所述第二逻辑卷属于同一逻辑卷组的第一逻辑卷的主机。The second mapping unit is configured to map the second logical volume to the host of the first logical volume belonging to the same logical volume group as the second logical volume.
优选的,还包括:Preferably, it also includes:
第二创建单元,用于接收到针对第一逻辑卷的预定操作时,在所述第一逻辑卷所属逻辑卷组内创建与所述第一逻辑卷的属性信息相同的第三逻辑卷;The second creating unit is configured to create a third logical volume having the same attribute information as the first logical volume in the logical volume group to which the first logical volume belongs when receiving a predetermined operation for the first logical volume;
第三映射单元,用于将所述第三逻辑卷映射到所述第一逻辑卷的主机。The third mapping unit is configured to map the third logical volume to the host of the first logical volume.
经由上述的技术方案可知,与现有技术相比,本发明公开提供了一种逻辑卷的处理方法,包括:创建与不同的业务标识对应的逻辑卷组,将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,由此可见,本发明能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率。It can be known from the above technical solutions that, compared with the prior art, the present invention discloses a logical volume processing method, including: creating logical volume groups corresponding to different business identifiers, and dividing logical volumes associated with the same business It can be seen that the present invention can divide the logical volume based on the service identifier used to represent the business, that is, establish the correlation between the logical volume and the actual business, so that It can intuitively reflect the business associated with the logical volume, and can view the logical volume belonging to the same business based on the logical volume group, which improves the search efficiency.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present invention, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本发明一个实施例公开的一种逻辑卷的处理方法的流程示意图;FIG. 1 is a schematic flowchart of a logical volume processing method disclosed by an embodiment of the present invention;
图2为本发明一个实施例公开的一种分组结构示意图;Fig. 2 is a schematic diagram of a grouping structure disclosed by an embodiment of the present invention;
图3为本发明另一实施例公开的一种逻辑卷的处理方法的流程示意图;FIG. 3 is a schematic flowchart of a logical volume processing method disclosed in another embodiment of the present invention;
图4为本发明又一实施例公开的一种逻辑卷的处理方法的流程示意图;FIG. 4 is a schematic flowchart of a logical volume processing method disclosed in another embodiment of the present invention;
图5为本发明又一实施例公开的一种逻辑卷的处理方法的流程示意图;FIG. 5 is a schematic flowchart of a logical volume processing method disclosed in another embodiment of the present invention;
图6为本发明一个实施例公开的一种逻辑卷的处理装置的结构示意图;FIG. 6 is a schematic structural diagram of a logical volume processing device disclosed by an embodiment of the present invention;
图7为本发明另一实施例公开的一种逻辑卷的处理装置的结构示意图;FIG. 7 is a schematic structural diagram of a logical volume processing device disclosed in another embodiment of the present invention;
图8为本发明又一实施例公开的一种逻辑卷的处理装置的结构示意图;FIG. 8 is a schematic structural diagram of a logical volume processing device disclosed in another embodiment of the present invention;
图9为本发明又一实施例公开的一种逻辑卷的处理装置的结构示意图。FIG. 9 is a schematic structural diagram of an apparatus for processing a logical volume disclosed in yet another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明一个实施例公开了一种逻辑卷的处理方法,如图1所示,该方法以下步骤:One embodiment of the present invention discloses a processing method of a logical volume, as shown in Figure 1, the method has the following steps:
步骤101:创建与不同的业务标识对应的逻辑卷组;Step 101: Create logical volume groups corresponding to different service identifiers;
在存储系统中创建不同的逻辑卷组,每一逻辑卷组对应一业务标识,该业务标识用于表征业务。Different logical volume groups are created in the storage system, each logical volume group corresponds to a service identifier, and the service identifier is used to represent a service.
需说明的是,本发明中的创建逻辑卷组的方式为虚拟分组方式,虚拟分组方式为为了便于管理逻辑卷而记录信息,在存储系统中并不存在真正的实体。具体的,该虚拟分组方式可以记录或显示在存储系统的管理界面上。It should be noted that the method of creating a logical volume group in the present invention is a virtual grouping method, and the virtual grouping method is to record information for the convenience of managing logical volumes, and there is no real entity in the storage system. Specifically, the virtual grouping manner may be recorded or displayed on a management interface of the storage system.
在实际应用中,用户可以在存储系统的管理界面上输入用于创建逻辑卷组的业务标识,以使得系统基于该业务标识创建相应的逻辑卷组。In practical applications, the user may input a service identifier for creating a logical volume group on a management interface of the storage system, so that the system creates a corresponding logical volume group based on the service identifier.
步骤102:将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内。Step 102: Divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service.
与同一业务关联的逻辑卷划分到同一逻辑卷组内,具体的,可以将具有相同业务属性的逻辑卷划分到同一逻辑卷组内。针对一个逻辑卷组而言,其对应的业务标识所表征的业务,与划分到该逻辑卷组内的逻辑卷所关联的业务为同一业务。Logical volumes associated with the same service are divided into the same logical volume group. Specifically, logical volumes with the same business attribute can be divided into the same logical volume group. For a logical volume group, the service represented by its corresponding service identifier is the same service as the service associated with the logical volumes classified into the logical volume group.
当用户需要创建一个逻辑卷时,可以基于所确定的逻辑卷组进行创建,可选的,作为步骤102的一种实现方式,将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内,包括:When the user needs to create a logical volume, it can be created based on the determined logical volume group. Optionally, as an implementation of step 102, the logical volume associated with the same service is divided into the same In the logical volume group corresponding to the business ID of the business, it includes:
在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷。In the logical volume group corresponding to the first service identifier, a first logical volume associated with the first service is created.
第一业务标识用于表征第一业务,具体的,可以基于第一业务的业务属性创建第一逻辑卷。The first service identifier is used to represent the first service. Specifically, the first logical volume may be created based on the service attributes of the first service.
当然,存储池内也会存储有已创建到的逻辑卷,可选的,作为步骤102的另一种实现方式,将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内,包括:将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内。Of course, the created logical volumes will also be stored in the storage pool. Optionally, as another implementation of step 102, the logical volumes associated with the same business are divided into the same business ID used to represent the same business. The corresponding logical volume group includes: dividing the first logical volume associated with the first service in the storage pool into the logical volume group corresponding to the first service identifier.
第一业务标识用于表征第一业务,具体的,可以基于存储池内的逻辑卷的属性信息确定出具有第一业务的业务属性的第一逻辑卷,并将其划分到与第一业务标识对应的逻辑卷组内。The first service identifier is used to characterize the first service. Specifically, the first logical volume with the service attribute of the first service can be determined based on the attribute information of the logical volume in the storage pool, and divided into the corresponding to the first service identifier. within the logical volume group.
需说明的是,在本发明中,第一业务、与第一业务对应的第一业务标识、第一逻辑卷以及后文会提及的第二逻辑卷、第三逻辑卷等仅是为了方便区分而进行的简单命名,并不特指为某一业务或者某一逻辑卷。It should be noted that in the present invention, the first service, the first service identifier corresponding to the first service, the first logical volume, the second logical volume, the third logical volume, etc. mentioned later are only for convenience The simple naming for distinction does not specifically refer to a certain business or a certain logical volume.
需说明的是,上述两种实现方式可以为并列实施,也可以单独实施,即可以为“和/或”的关系。It should be noted that the above two implementation manners may be implemented in parallel, or implemented separately, that is, they may be in an "and/or" relationship.
图2示出了一种具体的分组结构示意图,如图2所示,存储池中创建有逻辑卷组1、逻辑卷组2、…逻辑卷组N,而逻辑卷组1内具有逻辑卷1、逻辑卷2以及逻辑卷3;逻辑卷组2内具有逻辑卷4和逻辑卷5;逻辑卷组3内具有逻辑卷6和逻辑卷7。Figure 2 shows a schematic diagram of a specific grouping structure. As shown in Figure 2, logical volume group 1, logical volume group 2, ... logical volume group N are created in the storage pool, and logical volume group 1 has logical volume 1 , Logical Volume 2, and Logical Volume 3; Logical Volume Group 2 has Logical Volume 4 and Logical Volume 5; Logical Volume Group 3 has Logical Volume 6 and Logical Volume 7.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率。In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. Improved search efficiency.
本发明另一实施例公开了一种逻辑卷的处理方法,如图3所示,该方法包括以下步骤:Another embodiment of the present invention discloses a logical volume processing method, as shown in Figure 3, the method includes the following steps:
步骤301:创建与不同的业务标识对应的逻辑卷组;Step 301: Create logical volume groups corresponding to different service identifiers;
步骤302:在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;Step 302: Create a first logical volume associated with the first service in the logical volume group corresponding to the first service identifier;
其中,所述第一业务标识用于表征所述第一业务。Wherein, the first service identifier is used to characterize the first service.
可选的,在与第一业务标识对应的逻辑卷组内,创建与所述第一业务相关联的第一逻辑卷,包括以下过程:Optionally, in the logical volume group corresponding to the first service identifier, creating the first logical volume associated with the first service includes the following process:
(1)获取初始化参数;(1) Obtain initialization parameters;
该初始化参数可以由用户输入,也可以由系统将预先存储的初始化参数提供给用户,由用户进行选择。可选的,用户可以在存储系统的管理界面上输入或选择初始化参数。The initialization parameters may be input by the user, or the system may provide the user with pre-stored initialization parameters for selection by the user. Optionally, the user may input or select initialization parameters on the management interface of the storage system.
(2)基于所述初始化参数在与第一业务标识对应的逻辑卷组内创建与所述第一业务相关联的第一逻辑卷;(2) Create a first logical volume associated with the first service in a logical volume group corresponding to the first service identifier based on the initialization parameter;
(3)记录所述第一逻辑卷的属性信息。(3) Record the attribute information of the first logical volume.
该第一逻辑卷的属性信息即为与初始化参数对应的信息,包括以下信息的一种或多种:逻辑卷类型、逻辑卷所在存储池、逻辑卷的颗粒度。The attribute information of the first logical volume is the information corresponding to the initialization parameters, including one or more of the following information: logical volume type, storage pool where the logical volume is located, and granularity of the logical volume.
其中,逻辑卷类型包括精简卷、压缩卷以及普通卷。Wherein, the types of logical volumes include thin volumes, compressed volumes and common volumes.
所记录的第一逻辑卷的属性信息用于后续创建与第一逻辑卷属于同一逻辑卷组的其他逻辑卷。The recorded attribute information of the first logical volume is used to subsequently create other logical volumes belonging to the same logical volume group as the first logical volume.
步骤303:将所述第一逻辑卷映射到使用所述第一逻辑卷的主机。Step 303: Map the first logical volume to a host using the first logical volume.
该初始化参数包括第一逻辑卷的映射主机,因此能够基于初始化参数在创建第一逻辑卷后,将第一逻辑卷映射到相应的主机上。The initialization parameter includes a mapping host of the first logical volume, so after the first logical volume is created based on the initialization parameter, the first logical volume can be mapped to a corresponding host.
在此基础上,第一逻辑卷的属性信息还可以包括第一逻辑卷的映射主机。On this basis, the attribute information of the first logical volume may further include a mapping host of the first logical volume.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率;并且能够自动将第一逻辑卷映射到使用第一逻辑卷的主机上,无需用户手动操作,提高了处理效率。In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. The search efficiency is improved; and the first logical volume can be automatically mapped to the host using the first logical volume without manual operation by the user, thereby improving the processing efficiency.
针对现有技术中关于逻辑卷的管理方式,发明人还发现,在每次创建逻辑卷的过程中,都需要用户手动输入大量初始化参数,对于后期扩容的维护操作,基本都是前期同类型的逻辑卷操作的重复操作,操作繁琐且效率低。Regarding the management method of logical volumes in the prior art, the inventor also found that in the process of creating a logical volume each time, the user needs to manually input a large number of initialization parameters, and the maintenance operations for later expansion are basically of the same type in the previous period. Repeated operations of logical volume operations are cumbersome and inefficient.
针对该技术问题,在上述实施例的基础上,本发明又一实施例还公开了一种逻辑卷的处理方法,如图4所示,该方法包括以下步骤:To solve this technical problem, on the basis of the above-mentioned embodiments, another embodiment of the present invention also discloses a logical volume processing method, as shown in FIG. 4 , the method includes the following steps:
步骤401:创建与不同的业务标识对应的逻辑卷组;Step 401: Create logical volume groups corresponding to different service identifiers;
步骤402:将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内;Step 402: Divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service;
可选的,所述将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内,包括:在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;和/或,将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内。其中,所述第一业务标识用于表征所述第一业务。Optionally, the dividing the logical volume associated with the same service into a logical volume group corresponding to the service identifier used to characterize the same service includes: in the logical volume group corresponding to the first service identifier, creating A first logical volume associated with the first service; and/or, dividing the first logical volume associated with the first service in the storage pool into a logical volume group corresponding to the first service identifier. Wherein, the first service identifier is used to characterize the first service.
步骤403:接收第二逻辑卷的创建操作,获取用户输入的创建信息;Step 403: receiving the creation operation of the second logical volume, and obtaining the creation information input by the user;
其中,创建信息包括待创建的第二逻辑卷的数量,可选的,还可以包括第二逻辑卷的容量。也就是说,用户通过输入创建信息可以批量创建逻辑卷。Wherein, the creation information includes the quantity of the second logical volume to be created, and optionally, may also include the capacity of the second logical volume. That is to say, users can create logical volumes in batches by inputting creation information.
步骤404:获取所述第二逻辑卷所属的逻辑卷组的逻辑卷创建模板;Step 404: Obtain a logical volume creation template of the logical volume group to which the second logical volume belongs;
需说明的是,基于第二逻辑卷的创建操作能够确定第二逻辑卷所属逻辑卷组,可选的,用户可以在发送第二逻辑卷的创建操作时指定第二逻辑卷所属的逻辑卷组。It should be noted that the logical volume group to which the second logical volume belongs can be determined based on the creation operation of the second logical volume. Optionally, the user can specify the logical volume group to which the second logical volume belongs when sending the creation operation of the second logical volume .
在本实施例中,可以直接以逻辑卷组内的第一逻辑卷作为逻辑卷创建模板;当然,也可以预先生成一逻辑卷创建模板。无论哪种方式,该逻辑卷创建模板均是基于第一逻辑卷的属性信息确定,即将第一逻辑卷的属性信息作为逻辑卷创建的模板信息。In this embodiment, the first logical volume in the logical volume group may be directly used as a logical volume creation template; of course, a logical volume creation template may also be generated in advance. Either way, the logical volume creation template is determined based on the attribute information of the first logical volume, that is, the attribute information of the first logical volume is used as template information for logical volume creation.
步骤405:使用逻辑卷创建模板创建与所述创建信息对应的第二逻辑卷;Step 405: Create a second logical volume corresponding to the creation information by using the logical volume creation template;
创建信息可以包括待创建的逻辑卷数量,那么,使用逻辑卷创建模块能够创新出相应数量的第二逻辑卷;创建信息还可以包括待创建的逻辑卷容量,所创建的第二逻辑卷的容量与创建信息中的容量一致。可选的,创建信息可以不包括待创建的逻辑卷容量,而是由逻辑卷创建模板提供容量参数,所创建的第二逻辑卷的容量与逻辑卷创建模板中的容量参数一致。Creation information can include the number of logical volumes to be created, then, using the logical volume creation module can create a corresponding number of second logical volumes; the creation information can also include the capacity of the logical volume to be created, the capacity of the created second logical volume Consistent with the capacity in the creation information. Optionally, the creation information may not include the capacity of the logical volume to be created, but the capacity parameter is provided by the logical volume creation template, and the capacity of the created second logical volume is consistent with the capacity parameter in the logical volume creation template.
需说明的是,所创建的第二逻辑卷位于其所属逻辑卷组内,第二逻辑卷与其所属的逻辑卷组的第一逻辑卷均与同一业务相关联,且属性信息基本相同。It should be noted that the created second logical volume is located in the logical volume group to which it belongs, and the second logical volume and the first logical volume of the logical volume group to which it belongs are both associated with the same service and have basically the same attribute information.
步骤406:将所述第二逻辑卷映射到与所述第二逻辑卷属于同一逻辑卷组的第一逻辑卷的主机。Step 406: Map the second logical volume to the host of the first logical volume belonging to the same logical volume group as the second logical volume.
当创建到第二逻辑卷后,自动将第二逻辑卷映射到与其所属同一逻辑卷组的第一逻辑卷的主机。After the second logical volume is created, the second logical volume is automatically mapped to the host of the first logical volume of the same logical volume group to which it belongs.
在实际应用中,存储系统可以在管理界面上提供快速创建菜单,用户在该快速创建菜单上输入创建信息,如输入待创建逻辑卷的数量、容量等,从而实现快速批量的创建逻辑卷。当然,用户还可以在该快速创建菜单上选择待创建的第二逻辑卷所属逻辑卷组,或者直接在某一逻辑卷组下输入创建信息,以便系统确定第二逻辑卷所属逻辑卷组。In practical applications, the storage system can provide a quick creation menu on the management interface, and the user can input creation information on the quick creation menu, such as inputting the number and capacity of logical volumes to be created, so as to realize rapid batch creation of logical volumes. Of course, the user can also select the logical volume group to which the second logical volume to be created belongs on the quick creation menu, or directly input creation information under a certain logical volume group, so that the system can determine the logical volume group to which the second logical volume belongs.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率;In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. Improved search efficiency;
进一步的,能够通过逻辑卷创建模板来创建逻辑卷,并进行相应主机的映射,从而简化创建逻辑卷的操作流程,提高操作效率。Furthermore, logical volumes can be created through logical volume creation templates, and corresponding hosts can be mapped, thereby simplifying the operation process of creating logical volumes and improving operational efficiency.
本发明又一实施例还公开了一种逻辑卷的处理方法,如图5所示,该方法包括以下步骤:Yet another embodiment of the present invention also discloses a method for processing a logical volume, as shown in FIG. 5 , the method includes the following steps:
步骤501:创建与不同的业务标识对应的逻辑卷组;Step 501: Create logical volume groups corresponding to different service identifiers;
步骤502:将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内;Step 502: Divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service;
可选的,所述将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内,包括:在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;和/或,将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内。Optionally, the dividing the logical volume associated with the same service into a logical volume group corresponding to the service identifier used to characterize the same service includes: in the logical volume group corresponding to the first service identifier, creating A first logical volume associated with the first service; and/or, dividing the first logical volume associated with the first service in the storage pool into a logical volume group corresponding to the first service identifier.
其中,所述第一业务标识用于表征所述第一业务。Wherein, the first service identifier is used to characterize the first service.
步骤503:接收到针对第一逻辑卷的预定操作时,在所述第一逻辑卷所属逻辑卷组内创建与所述第一逻辑卷的属性信息相同的第三逻辑卷;Step 503: When receiving a predetermined operation for the first logical volume, create a third logical volume with the same attribute information as the first logical volume in the logical volume group to which the first logical volume belongs;
该预定操作为触发系统创建与第一逻辑卷具有相同属性信息的第三逻辑卷的操作,可选的,该预定操作可以包括多步操作,如包括针对第一逻辑卷的复制操作,以及在第一逻辑卷所属逻辑卷组的粘贴操作;或者,该预定操作也可以仅为一步操作,例如,直接在第一逻辑卷上进行某一预定操作。The predetermined operation is an operation that triggers the system to create a third logical volume that has the same attribute information as the first logical volume. Optionally, the predetermined operation may include multi-step operations, such as including a copy operation for the first logical volume, and A pasting operation of the logical volume group to which the first logical volume belongs; or, the predetermined operation may be only one-step operation, for example, a certain predetermined operation is directly performed on the first logical volume.
第三逻辑卷与预定操作所针对的第一逻辑卷属于同一逻辑卷组,且具有相同的属性信息。The third logical volume belongs to the same logical volume group as the first logical volume targeted by the predetermined operation, and has the same attribute information.
步骤504:将所述第三逻辑卷映射到所述第一逻辑卷的主机。Step 504: Map the third logical volume to the host of the first logical volume.
具体的,将第三逻辑卷映射到与第三逻辑卷属于同一逻辑卷组的第一逻辑卷的主机上。Specifically, the third logical volume is mapped to the host of the first logical volume belonging to the same logical volume group as the third logical volume.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率;In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. Improved search efficiency;
进一步的,能够通过针对第一逻辑卷的预定操作来创建逻辑卷,并进行相应主机的映射,从而简化创建逻辑卷的操作流程,提高操作效率。Furthermore, a logical volume can be created through a predetermined operation on the first logical volume, and corresponding hosts can be mapped, thereby simplifying the operation process of creating a logical volume and improving operation efficiency.
与本发明实施例提供的一种逻辑卷的处理方法相对应的,本发明还公开了一种逻辑卷的处理装置,以下分别通过实施例进行说明:Corresponding to the logical volume processing method provided by the embodiment of the present invention, the present invention also discloses a logical volume processing device, which are described below through the embodiments:
本发明一个实施例公开了一种逻辑卷的处理装置,如图6所示,该装置包括:创建卷组单元601以及第一划分单元602;其中:An embodiment of the present invention discloses a device for processing logical volumes. As shown in FIG. 6 , the device includes: a volume group creation unit 601 and a first division unit 602; wherein:
创建卷组单元601,用于创建与不同的业务标识对应的逻辑卷组;Creating a volume group unit 601, configured to create logical volume groups corresponding to different business identifiers;
在存储系统中创建不同的逻辑卷组,每一逻辑卷组对应一业务标识,该业务标识用于表征业务。Different logical volume groups are created in the storage system, each logical volume group corresponds to a service identifier, and the service identifier is used to represent a service.
需说明的是,本发明中的创建逻辑卷组的方式为虚拟分组方式,虚拟分组方式为为了便于管理逻辑卷而记录信息,在存储系统中并不存在真正的实体。具体的,该虚拟分组方式可以记录或显示在存储系统的管理界面上。It should be noted that the method of creating a logical volume group in the present invention is a virtual grouping method, and the virtual grouping method is to record information for the convenience of managing logical volumes, and there is no real entity in the storage system. Specifically, the virtual grouping manner may be recorded or displayed on a management interface of the storage system.
在实际应用中,用户可以在存储系统的管理界面上输入用于创建逻辑卷组的业务标识,以使得系统基于该业务标识创建相应的逻辑卷组。In practical applications, the user may input a service identifier for creating a logical volume group on a management interface of the storage system, so that the system creates a corresponding logical volume group based on the service identifier.
第一划分单元602,用于将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内。The first dividing unit 602 is configured to divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service.
与同一业务关联的逻辑卷划分到同一逻辑卷组内,具体的,可以将具有相同业务属性的逻辑卷划分到同一逻辑卷组内。针对一个逻辑卷组而言,其对应的业务标识所表征的业务,与划分到该逻辑卷组内的逻辑卷所关联的业务为同一业务。Logical volumes associated with the same service are divided into the same logical volume group. Specifically, logical volumes with the same business attribute can be divided into the same logical volume group. For a logical volume group, the service represented by its corresponding service identifier is the same service as the service associated with the logical volumes classified into the logical volume group.
可选的,第一划分单元602包括:创建逻辑卷单元,和/或,划分逻辑卷单元;其中:Optionally, the first dividing unit 602 includes: creating a logical volume unit, and/or dividing the logical volume unit; wherein:
创建逻辑卷单元,用于在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;Create a logical volume unit for creating a first logical volume associated with the first service in the logical volume group corresponding to the first service identifier;
划分逻辑卷单元,用于将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内;dividing the logical volume unit, for dividing the first logical volume associated with the first service in the storage pool into the logical volume group corresponding to the first service identifier;
所述第一业务标识用于表征所述第一业务。The first service identifier is used to characterize the first service.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率。In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. Improved search efficiency.
本发明另一实施例公开了一种逻辑卷的处理装置,如图7所示,该装置包括:创建卷组单元701、第一划分单元702以及第一映射单元703;其中:Another embodiment of the present invention discloses a logical volume processing device. As shown in FIG. 7, the device includes: a volume group creation unit 701, a first division unit 702, and a first mapping unit 703; wherein:
创建卷组单元701,用于创建与不同的业务标识对应的逻辑卷组;Creating a volume group unit 701, configured to create logical volume groups corresponding to different business identifiers;
第一划分单元702,用于将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内;The first dividing unit 702 is configured to divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service;
可选的,在本实施例中,第一划分单元702包括:创建逻辑卷单元,用于在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;相应的,创建逻辑卷单元,包括:获取参数模块、第一创建模块以及记录信息模块;其中:Optionally, in this embodiment, the first dividing unit 702 includes: creating a logical volume unit, configured to create a first logical volume associated with the first service in the logical volume group corresponding to the first service identifier; Correspondingly, creating a logical volume unit includes: obtaining a parameter module, a first creating module, and a recording information module; wherein:
获取参数模块,用于获取初始化参数;Obtain a parameter module, which is used to obtain initialization parameters;
该初始化参数可以由用户输入,也可以由系统将预先存储的初始化参数提供给用户,由用户进行选择。可选的,用户可以在存储系统的管理界面上输入或选择初始化参数。The initialization parameters may be input by the user, or the system may provide the user with pre-stored initialization parameters for selection by the user. Optionally, the user may input or select initialization parameters on the management interface of the storage system.
第一创建模块,用于基于所述初始化参数在与第一业务标识对应的逻辑卷组内创建与所述第一业务相关联的第一逻辑卷;A first creating module, configured to create a first logical volume associated with the first service in a logical volume group corresponding to the first service identifier based on the initialization parameter;
记录信息模块,用于记录所述第一逻辑卷的属性信息。The recording information module is configured to record the attribute information of the first logical volume.
该第一逻辑卷的属性信息即为与初始化参数对应的信息,包括以下信息的一种或多种:逻辑卷类型、逻辑卷所在存储池、逻辑卷的颗粒度。The attribute information of the first logical volume is the information corresponding to the initialization parameters, including one or more of the following information: logical volume type, storage pool where the logical volume is located, and granularity of the logical volume.
其中,逻辑卷类型包括精简卷、压缩卷以及普通卷。Wherein, the types of logical volumes include thin volumes, compressed volumes and normal volumes.
第一映射单元703,用于将所述第一逻辑卷映射到使用所述第一逻辑卷的主机。The first mapping unit 703 is configured to map the first logical volume to a host using the first logical volume.
该初始化参数包括第一逻辑卷的映射主机,因此能够基于初始化参数在创建第一逻辑卷后,将第一逻辑卷映射到相应的主机上。The initialization parameter includes a mapping host of the first logical volume, so after the first logical volume is created based on the initialization parameter, the first logical volume can be mapped to a corresponding host.
在此基础上,第一逻辑卷的属性信息还可以包括第一逻辑卷的映射主机。On this basis, the attribute information of the first logical volume may further include a mapping host of the first logical volume.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率;并且能够自动将第一逻辑卷映射到使用第一逻辑卷的主机上,无需用户手动操作,提高了处理效率。In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. The search efficiency is improved; and the first logical volume can be automatically mapped to the host using the first logical volume without manual operation by the user, thereby improving the processing efficiency.
本发明又一实施例公开了一种逻辑卷的处理装置,如图8所示,该装置包括:创建卷组单元801、第一划分单元802、获取信息单元803、获取模板单元804、第一创建单元805以及第二映射单元806;其中:Yet another embodiment of the present invention discloses a device for processing logical volumes. As shown in FIG. A creation unit 805 and a second mapping unit 806; wherein:
创建卷组单元801,用于创建与不同的业务标识对应的逻辑卷组;Creating a volume group unit 801, configured to create logical volume groups corresponding to different business identifiers;
第一划分单元802,用于将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内。The first dividing unit 802 is configured to divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service.
可选的,在本实施例中,第一划分单元802包括:创建逻辑卷单元,和/或,划分逻辑卷单元;其中:Optionally, in this embodiment, the first dividing unit 802 includes: creating a logical volume unit, and/or dividing a logical volume unit; wherein:
创建逻辑卷单元,用于在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;Create a logical volume unit for creating a first logical volume associated with the first service in the logical volume group corresponding to the first service identifier;
划分逻辑卷单元,用于将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内;dividing the logical volume unit, for dividing the first logical volume associated with the first service in the storage pool into the logical volume group corresponding to the first service identifier;
所述第一业务标识用于表征所述第一业务。The first service identifier is used to characterize the first service.
获取信息单元803,用于接收第二逻辑卷的创建操作,获取用户输入的创建信息;An information acquisition unit 803, configured to receive a creation operation of the second logical volume, and acquire creation information input by the user;
其中,创建信息包括待创建的第二逻辑卷的数量,可选的,还可以包括第二逻辑卷的容量。也就是说,用户通过输入创建信息可以批量创建逻辑卷。Wherein, the creation information includes the quantity of the second logical volume to be created, and optionally, may also include the capacity of the second logical volume. That is to say, users can create logical volumes in batches by inputting creation information.
获取模板单元804,用于获取所述第二逻辑卷所属的逻辑卷组的逻辑卷创建模板;An acquiring template unit 804, configured to acquire a logical volume creation template of the logical volume group to which the second logical volume belongs;
需说明的是,基于第二逻辑卷的创建操作能够确定第二逻辑卷所属逻辑卷组,可选的,用户可以在发送第二逻辑卷的创建操作时指定第二逻辑卷所属的逻辑卷组。It should be noted that the logical volume group to which the second logical volume belongs can be determined based on the creation operation of the second logical volume. Optionally, the user can specify the logical volume group to which the second logical volume belongs when sending the creation operation of the second logical volume .
在本实施例中,可以直接以逻辑卷组内的第一逻辑卷作为逻辑卷创建模板;当然,也可以预先生成一逻辑卷创建模板。无论哪种方式,该逻辑卷创建模板均是基于第一逻辑卷的属性信息确定,即将第一逻辑卷的属性信息作为逻辑卷创建的模板信息。In this embodiment, the first logical volume in the logical volume group may be directly used as a logical volume creation template; of course, a logical volume creation template may also be generated in advance. Either way, the logical volume creation template is determined based on the attribute information of the first logical volume, that is, the attribute information of the first logical volume is used as template information for logical volume creation.
第一创建单元805,用于使用所述逻辑卷创建模板创建与所述创建信息对应的第二逻辑卷;其中,所述逻辑卷创建模板基于所述第一逻辑卷的属性信息确定;The first creating unit 805 is configured to use the logical volume creation template to create a second logical volume corresponding to the creation information; wherein, the logical volume creation template is determined based on the attribute information of the first logical volume;
创建信息可以包括待创建的逻辑卷数量,那么,使用逻辑卷创建模块能够创新出相应数量的第二逻辑卷;创建信息还可以包括待创建的逻辑卷容量,所创建的第二逻辑卷的容量与创建信息中的容量一致。可选的,创建信息可以不包括待创建的逻辑卷容量,而是由逻辑卷创建模板提供容量参数,所创建的第二逻辑卷的容量与逻辑卷创建模板中的容量参数一致。Creation information can include the number of logical volumes to be created, then, using the logical volume creation module can create a corresponding number of second logical volumes; the creation information can also include the capacity of the logical volume to be created, the capacity of the created second logical volume Consistent with the capacity in the creation information. Optionally, the creation information may not include the capacity of the logical volume to be created, but the capacity parameter is provided by the logical volume creation template, and the capacity of the created second logical volume is consistent with the capacity parameter in the logical volume creation template.
需说明的是,所创建的第二逻辑卷位于其所属逻辑卷组内,第二逻辑卷与其所属的逻辑卷组的第一逻辑卷均与同一业务相关联,且属性信息基本相同。It should be noted that the created second logical volume is located in the logical volume group to which it belongs, and the second logical volume and the first logical volume of the logical volume group to which it belongs are both associated with the same service and have basically the same attribute information.
第二映射单元806,用于将所述第二逻辑卷映射到与所述第二逻辑卷属于同一逻辑卷组的第一逻辑卷的主机。The second mapping unit 806 is configured to map the second logical volume to the host of the first logical volume belonging to the same logical volume group as the second logical volume.
当创建到第二逻辑卷后,自动将第二逻辑卷映射到与其所属同一逻辑卷组的第一逻辑卷的主机。After the second logical volume is created, the second logical volume is automatically mapped to the host of the first logical volume of the same logical volume group to which it belongs.
在实际应用中,存储系统可以在管理界面上提供快速创建菜单,用户在该快速创建菜单上输入创建信息,如输入待创建逻辑卷的数量、容量等,从而实现快速批量的创建逻辑卷。当然,用户还可以在该快速创建菜单上选择待创建的第二逻辑卷所属逻辑卷组,或者直接在某一逻辑卷组下输入创建信息,以便系统确定第二逻辑卷所属逻辑卷组。In practical applications, the storage system can provide a quick creation menu on the management interface, and the user can input creation information on the quick creation menu, such as inputting the number and capacity of logical volumes to be created, so as to realize rapid batch creation of logical volumes. Of course, the user can also select the logical volume group to which the second logical volume to be created belongs on the quick creation menu, or directly input creation information under a certain logical volume group, so that the system can determine the logical volume group to which the second logical volume belongs.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率;In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. Improved search efficiency;
进一步的,能够通过逻辑卷创建模板来创建逻辑卷,并进行相应主机的映射,从而简化创建逻辑卷的操作流程,提高操作效率。Furthermore, logical volumes can be created through logical volume creation templates, and corresponding hosts can be mapped, thereby simplifying the operation process of creating logical volumes and improving operational efficiency.
本发明又一实施例公开了一种逻辑卷的处理装置,如图9所示,该装置包括:创建卷组单元901、第一划分单元902、第二创建单元903以及第三映射单元904;其中:Another embodiment of the present invention discloses a logical volume processing device. As shown in FIG. 9 , the device includes: a volume group creation unit 901, a first division unit 902, a second creation unit 903, and a third mapping unit 904; in:
创建卷组单元901,用于创建与不同的业务标识对应的逻辑卷组;Creating a volume group unit 901, configured to create logical volume groups corresponding to different business identifiers;
第一划分单元902,用于将与同一业务关联的逻辑卷划分到与用于表征所述同一业务的业务标识对应的逻辑卷组内。The first dividing unit 902 is configured to divide logical volumes associated with the same service into logical volume groups corresponding to the service identifier used to characterize the same service.
可选的,在本实施例中,第一划分单元902包括:创建逻辑卷单元,和/或,划分逻辑卷单元;其中:Optionally, in this embodiment, the first dividing unit 902 includes: creating a logical volume unit, and/or dividing a logical volume unit; wherein:
创建逻辑卷单元,用于在与第一业务标识对应的逻辑卷组内,创建与第一业务相关联的第一逻辑卷;Create a logical volume unit for creating a first logical volume associated with the first service in the logical volume group corresponding to the first service identifier;
划分逻辑卷单元,用于将存储池内与第一业务相关联的第一逻辑卷划分到与第一业务标识对应的逻辑卷组内;dividing the logical volume unit, for dividing the first logical volume associated with the first service in the storage pool into the logical volume group corresponding to the first service identifier;
所述第一业务标识用于表征所述第一业务。The first service identifier is used to characterize the first service.
第二创建单元903,用于接收到针对第一逻辑卷的预定操作时,在所述第一逻辑卷所属逻辑卷组内创建与所述第一逻辑卷的属性信息相同的第三逻辑卷;The second creating unit 903 is configured to create a third logical volume having the same attribute information as the first logical volume in the logical volume group to which the first logical volume belongs when receiving a predetermined operation for the first logical volume;
该预定操作为触发系统创建与第一逻辑卷具有相同属性信息的第三逻辑卷的操作,可选的,该预定操作可以包括多步操作,如包括针对第一逻辑卷的复制操作,以及在第一逻辑卷所属逻辑卷组的粘贴操作;或者,该预定操作也可以仅为一步操作,例如,直接在第一逻辑卷上进行某一预定操作。The predetermined operation is an operation that triggers the system to create a third logical volume that has the same attribute information as the first logical volume. Optionally, the predetermined operation may include multi-step operations, such as including a copy operation for the first logical volume, and A pasting operation of the logical volume group to which the first logical volume belongs; or, the predetermined operation may be only one-step operation, for example, a certain predetermined operation is directly performed on the first logical volume.
第三逻辑卷与预定操作所针对的第一逻辑卷属于同一逻辑卷组,且具有相同的属性信息。The third logical volume belongs to the same logical volume group as the first logical volume targeted by the predetermined operation, and has the same attribute information.
第三映射单元904,用于将所述第三逻辑卷映射到所述第一逻辑卷的主机。The third mapping unit 904 is configured to map the third logical volume to the host of the first logical volume.
具体的,将第三逻辑卷映射到与第三逻辑卷属于同一逻辑卷组的第一逻辑卷的主机上。Specifically, the third logical volume is mapped to the host of the first logical volume belonging to the same logical volume group as the third logical volume.
本发明实施例中,通过创建与不同的业务标识对应的逻辑卷组,从而将与同一业务关联的逻辑卷划分到用于表征同一业务的业务标识对应的逻辑卷组内,这样能够基于用于表征业务的业务标识对逻辑卷进行划分,即建立了逻辑卷与实际业务的关联性,从而能够直观的反映与逻辑卷相关联的业务,并且能够基于逻辑卷组查看属于同一业务的逻辑卷,提高了查找效率;In the embodiment of the present invention, by creating logical volume groups corresponding to different service identifiers, the logical volumes associated with the same service are divided into logical volume groups corresponding to the service identifiers used to represent the same service, which can be based on the The business identifier representing the business divides the logical volume, that is, establishes the correlation between the logical volume and the actual business, so that the business associated with the logical volume can be intuitively reflected, and the logical volume belonging to the same business can be viewed based on the logical volume group. Improved search efficiency;
进一步的,能够通过针对第一逻辑卷的预定操作来创建逻辑卷,并进行相应主机的映射,从而简化创建逻辑卷的操作流程,提高操作效率。Furthermore, a logical volume can be created through a predetermined operation on the first logical volume, and corresponding hosts can be mapped, thereby simplifying the operation process of creating a logical volume and improving operation efficiency.
本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for the related part, please refer to the description of the method part.
对所公开的实施例的上述说明,使本领域专业技术人员能够实现或使用本发明。对这些实施例的多种修改对本领域的专业技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本发明的精神或范围的情况下,在其它实施例中实现。因此,本发明将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。The above description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention will not be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710697689.1A CN107463338A (en) | 2017-08-15 | 2017-08-15 | A kind for the treatment of method and apparatus of logical volume |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710697689.1A CN107463338A (en) | 2017-08-15 | 2017-08-15 | A kind for the treatment of method and apparatus of logical volume |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107463338A true CN107463338A (en) | 2017-12-12 |
Family
ID=60549815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710697689.1A Pending CN107463338A (en) | 2017-08-15 | 2017-08-15 | A kind for the treatment of method and apparatus of logical volume |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107463338A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284209A (en) * | 2018-09-06 | 2019-01-29 | 郑州云海信息技术有限公司 | An automated testing method for different types of Vdisks under Mcs system |
CN109558264A (en) * | 2018-12-12 | 2019-04-02 | 浪潮(北京)电子信息产业有限公司 | A kind of volume information method of calibration, system and the associated component of virtual volume |
WO2023010849A1 (en) * | 2021-08-02 | 2023-02-09 | 华为技术有限公司 | Lun management method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040001106A1 (en) * | 2002-06-26 | 2004-01-01 | John Deutscher | System and process for creating an interactive presentation employing multi-media components |
US20060004819A1 (en) * | 2004-07-01 | 2006-01-05 | Claudatos Christopher H | Information management |
CN101510143A (en) * | 2009-03-13 | 2009-08-19 | 杭州华三通信技术有限公司 | Storage space dynamic assignment method, system and storage apparatus |
CN101510146A (en) * | 2009-03-27 | 2009-08-19 | 成都市华为赛门铁克科技有限公司 | Virtual space establishing method, apparatus and system based on independent redundant magnetic disc array |
CN104468836A (en) * | 2014-12-29 | 2015-03-25 | 成都致云科技有限公司 | Virtual disk creating method and device and distributed storage system |
CN105516242A (en) * | 2015-11-23 | 2016-04-20 | 华为技术有限公司 | Storage resource distribution method and storage resource distribution system |
-
2017
- 2017-08-15 CN CN201710697689.1A patent/CN107463338A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040001106A1 (en) * | 2002-06-26 | 2004-01-01 | John Deutscher | System and process for creating an interactive presentation employing multi-media components |
US20060004819A1 (en) * | 2004-07-01 | 2006-01-05 | Claudatos Christopher H | Information management |
CN101510143A (en) * | 2009-03-13 | 2009-08-19 | 杭州华三通信技术有限公司 | Storage space dynamic assignment method, system and storage apparatus |
CN101510146A (en) * | 2009-03-27 | 2009-08-19 | 成都市华为赛门铁克科技有限公司 | Virtual space establishing method, apparatus and system based on independent redundant magnetic disc array |
CN104468836A (en) * | 2014-12-29 | 2015-03-25 | 成都致云科技有限公司 | Virtual disk creating method and device and distributed storage system |
CN105516242A (en) * | 2015-11-23 | 2016-04-20 | 华为技术有限公司 | Storage resource distribution method and storage resource distribution system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284209A (en) * | 2018-09-06 | 2019-01-29 | 郑州云海信息技术有限公司 | An automated testing method for different types of Vdisks under Mcs system |
CN109558264A (en) * | 2018-12-12 | 2019-04-02 | 浪潮(北京)电子信息产业有限公司 | A kind of volume information method of calibration, system and the associated component of virtual volume |
WO2023010849A1 (en) * | 2021-08-02 | 2023-02-09 | 华为技术有限公司 | Lun management method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105450705B (en) | Business data processing method and device | |
WO2015043512A1 (en) | Picture management method and device | |
CN103617047A (en) | Method, device and processor for developing business processes | |
WO2018171587A1 (en) | Method for generating network slice template and for applying network slice template, and apparatus | |
CN104182232B (en) | A kind of method and user terminal for creating context-aware applications | |
WO2019109518A1 (en) | Data list uploading method and terminal thereof | |
CN107341033A (en) | A kind of data statistical approach, device, electronic equipment and storage medium | |
CN103795804A (en) | Storage resource scheduling method and storage calculation system | |
CN102968430B (en) | Method and apparatus for automatically generating and managing groups in address book | |
CN106970958B (en) | A kind of inquiry of stream file and storage method and device | |
CN106095851A (en) | A directory file display method, device and mobile terminal | |
CN107463338A (en) | A kind for the treatment of method and apparatus of logical volume | |
CN111090803A (en) | Data processing method and device, electronic equipment and storage medium | |
US20160205183A1 (en) | Method and aparatus for backing up data and electronic device | |
CN107943423A (en) | The management method and computer-readable recording medium of storage resource in cloud system | |
CN106331075A (en) | Method, metadata server and manager for storing files | |
WO2021169811A1 (en) | Method, apparatus, system and device for generating special effects, and storage medium | |
WO2021062757A1 (en) | Simultaneous interpretation method and apparatus, and server and storage medium | |
CN109583615B (en) | Conference room booking method, conference room booking system, conference room booking server and computer readable storage medium | |
CN107276833A (en) | A kind of node information management method and device | |
CN112685557B (en) | Visual information resource management method and device | |
CN106649678B (en) | Data processing method and system | |
CN110222046A (en) | Processing method, device, server and the storage medium of table data | |
CN105893470A (en) | Terminal, server and software classification method | |
CN114417069A (en) | Page data interaction method and device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171212 |