[go: up one dir, main page]

CN107273044B - Method for automatically mounting disk by logical partition, electronic equipment and storage medium - Google Patents

Method for automatically mounting disk by logical partition, electronic equipment and storage medium Download PDF

Info

Publication number
CN107273044B
CN107273044B CN201710363143.2A CN201710363143A CN107273044B CN 107273044 B CN107273044 B CN 107273044B CN 201710363143 A CN201710363143 A CN 201710363143A CN 107273044 B CN107273044 B CN 107273044B
Authority
CN
China
Prior art keywords
name
module
disk
virtual
optical fiber
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710363143.2A
Other languages
Chinese (zh)
Other versions
CN107273044A (en
Inventor
陈铭泳
谢浩安
赵参
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Winhong Information Technology Co ltd
Original Assignee
Aerospace Winhong Technology Guizhou Co ltd
Winhong Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aerospace Winhong Technology Guizhou Co ltd, Winhong Information Technology Co ltd filed Critical Aerospace Winhong Technology Guizhou Co ltd
Priority to CN201710363143.2A priority Critical patent/CN107273044B/en
Publication of CN107273044A publication Critical patent/CN107273044A/en
Application granted granted Critical
Publication of CN107273044B publication Critical patent/CN107273044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0605Improving or facilitating administration, e.g. storage management by facilitating the interaction with a user or administrator
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0664Virtualisation aspects at device level, e.g. emulation of a storage device or system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

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)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for automatically mounting a disk in a logical partition, electronic equipment and a storage medium, wherein the method comprises the following steps: s1: creating a virtual fiber adapter of a client in the logical partition; s2: creating a virtual optical fiber adapter of a server side on a virtual IO server; s3: mapping a virtual fiber adapter of a server to a virtual fiber adapter of a client; s4: creating a network area and a network area name at the virtual IO server according to the optical fiber equipment identifier of the logical partition and activating the configuration; s5: creating a disk in a storage manager according to a storage management specification; s6: and mapping the disk to a physical server of the logical partition according to the optical fiber equipment identifier. By increasing the management of the optical fiber switch and the physical memory, the user does not need to manually log in the optical fiber switch to configure the Zone, thereby greatly reducing the probability of errors caused by manual configuration and improving the execution efficiency.

Description

逻辑分区自动挂载磁盘的方法、电子设备及存储介质Method, electronic device and storage medium for automatically mounting disk in logical partition

技术领域technical field

本发明涉及一种计算机技术领域,尤其涉及一种逻辑分区自动挂载磁盘的方法、电子设备及存储介质。The present invention relates to the technical field of computers, and in particular, to a method, an electronic device and a storage medium for a logical partition to automatically mount a disk.

背景技术Background technique

目前,N_Port ID Virtualization(NPIV)是业界通行的一个工业标准,用于帮助用户使用多个虚拟全球端口名(WWPN)配置支持NPIV的光纤通道适配器。主要目的是通过虚拟化光纤通道接口来简化SAN网络的架构,让虚拟环境下的服务器与SAN环境连接更加弹性和安全。Currently, N_Port ID Virtualization (NPIV) is an industry standard used in the industry to help users configure NPIV-enabled Fibre Channel adapters with multiple virtual world wide port names (WWPNs). The main purpose is to simplify the architecture of the SAN network by virtualizing the Fibre Channel interface, so that the connection between the server in the virtual environment and the SAN environment is more flexible and secure.

NPIV允许不同的逻辑分区(LPAR)共享存储适配卡和存储资源,例如一个分区可以通过分区上的虚拟SCSI卡访问共享的硬盘或光驱,整个过程对于操作系统来说就如真实的SCSI设备卡。目前Power VM中VIO Server 2.1以上版本将对物理设备适配卡的虚拟支持扩展到了光纤卡,通过VIOS上的一块支持NPIV特性的真实物理光纤适配卡,多个不同的分区可通过虚拟的光纤卡访问SAN网络的资源,从而简化多分区系统上的SAN资源管理。通过使用NPIV,企业系统管理员可以很大程度上简化存储规划(例如Zoning,LUN Masking)的工作,对于需要运行多个访问SAN资源的业务来说,可以提高I/O性能,减少所需的适配卡的数量,降低采购和维护成本。NPIV allows different logical partitions (LPARs) to share storage adapter cards and storage resources. For example, a partition can access a shared hard disk or optical drive through a virtual SCSI card on the partition. The whole process is like a real SCSI device card to the operating system. . At present, VIO Server 2.1 and above in Power VM has extended the virtual support for physical device adapter cards to fiber optic cards. Through a real physical fiber optic adapter card that supports NPIV features on the VIOS, multiple different partitions can pass through virtual fibers. The card accesses the resources of the SAN network, thereby simplifying the management of SAN resources on multi-partitioned systems. By using NPIV, enterprise system administrators can greatly simplify the work of storage planning (such as Zoning, LUN Masking), and for businesses that need to run multiple access SAN resources, it can improve I/O performance and reduce the required The number of adapter cards reduces procurement and maintenance costs.

在NPIV存储虚拟化中,逻辑分区(LPAR)要使用物理存储器的资源需要通过存储网络进行访问,而存储区域网络的规划通常需要到光纤去交换机配置实现。在光纤交换机中,只有属于同一个ZONE(ZONE功能类似于以太网交换机上的VLAN功能,它将连接在SAN网络中的设备(主机和存储),逻辑上划到为不同的区域内,使得不同区域中的设备相互间不能在FC网络直接访问,从而实现网络中的设备之间的相互隔离)里边的节点才可以相互访问。这就导致即使物理主机FC HBA(物理光纤卡)与物理存储器FC HBA(物理光纤卡)都连接上光纤交换机,物理主机上的逻辑分区(LPAR)也不一定能访问存储器的存储资源,还需要用户手动登陆到光纤交换机根据生成的WWPN号配置存储网络,导致用户使用NPIV功能时存在较繁琐的工作。In NPIV storage virtualization, the resources of the logical partition (LPAR) to use the physical storage need to be accessed through the storage network, and the planning of the storage area network usually needs to go to the optical fiber to switch configuration. In the optical switch, only those belonging to the same ZONE (the ZONE function is similar to the VLAN function on the Ethernet switch, it will logically divide the devices (hosts and storage) connected in the SAN network into different zones, making different The devices in the area cannot directly access each other on the FC network, so that the devices in the network are isolated from each other. Only the nodes in the area can access each other. This results in that even if the physical host FC HBA (physical fiber optic card) and the physical storage FC HBA (physical fiber optic card) are connected to the fiber switch, the logical partition (LPAR) on the physical host may not necessarily be able to access the storage resources of the storage, and it is necessary to The user manually logs in to the optical switch to configure the storage network according to the generated WWPN number, which leads to tedious work when the user uses the NPIV function.

发明内容SUMMARY OF THE INVENTION

为了克服现有技术的不足,本发明的目的之一在于提供一种逻辑分区自动挂载磁盘的方法,其能解决磁盘自动挂载的技术问题。In order to overcome the deficiencies of the prior art, one of the objectives of the present invention is to provide a method for automatically mounting a disk from a logical partition, which can solve the technical problem of automatic disk mounting.

本发明的目的之二在于提供一种电子设备,其能解决磁盘自动挂载的技术问题。Another object of the present invention is to provide an electronic device that can solve the technical problem of automatic disk mounting.

本发明的目的之三在于提供一种计算机可读存储介质,其能解决磁盘自动挂载的技术问题。The third object of the present invention is to provide a computer-readable storage medium, which can solve the technical problem of automatic disk mounting.

本发明的目的之四在于提供一种逻辑分区自动挂载磁盘的装置,其能解决磁盘自动挂载的技术问题。The fourth purpose of the present invention is to provide a device for automatically mounting a disk on a logical partition, which can solve the technical problem of automatic disk mounting.

本发明的目的之一采用如下技术方案实现:One of the objects of the present invention adopts the following technical scheme to realize:

逻辑分区自动挂载磁盘的方法,包括以下步骤:The method for automatically mounting a disk in a logical partition includes the following steps:

第一创建步骤:在逻辑分区创建客户端的虚拟光纤适配器;The first creation step: create a virtual optical fiber adapter of the client in the logical partition;

第二创建步骤:在虚拟IO服务器创建服务端的虚拟光纤适配器;The second creation step: create a virtual fiber optic adapter on the server side on the virtual IO server;

适配器映射步骤:将服务端的虚拟光纤适配器映射到客户端的虚拟光纤适配器;Adapter mapping step: map the virtual fiber adapter of the server to the virtual fiber adapter of the client;

第一区域创建步骤:根据逻辑分区的光纤设备标识对虚拟IO服务器进行配置并激活上述配置,所述配置包括创建网络区域以及网络区域名称;The first area creation step: configure the virtual IO server according to the optical fiber device identifier of the logical partition and activate the above configuration, and the configuration includes creating a network area and a network area name;

磁盘创建步骤:根据存储管理规范在存储管理器创建磁盘;Disk creation steps: create a disk in the storage manager according to the storage management specification;

磁盘映射步骤:根据光纤设备标识映射磁盘到逻辑分区所在物理服务器。Disk mapping step: map the disk to the physical server where the logical partition is located according to the ID of the optical fiber device.

进一步地,所述适配器映射步骤具体包括以下子步骤:Further, the adapter mapping step specifically includes the following sub-steps:

查询步骤:查找逻辑分区的虚拟光纤适配器;Query step: Find the virtual fiber adapter of the logical partition;

映射步骤:将虚拟IO服务器的虚拟光纤适配器映射到逻辑分区的虚拟光纤适配器;Mapping step: map the virtual optical fiber adapter of the virtual IO server to the virtual optical fiber adapter of the logical partition;

判断步骤:判断虚拟光纤适配器是否映射成功。Judging steps: Judging whether the virtual fiber adapter is successfully mapped.

进一步地,所述第一区域创建步骤具体包括以下子步骤:Further, the step of creating the first area specifically includes the following sub-steps:

状态校验步骤:校验光纤交换机的状态,如果正常,则执行第一名称判断步骤:Status verification step: verify the status of the fiber switch, if it is normal, perform the first name judgment step:

第一名称判断步骤:判断网络区域名称是否存在,如果是,则执行标识添加步骤,如果否,则执行名称创建步骤;The first name judging step: judging whether the network area name exists, if so, execute the identification adding step, if not, execute the name creating step;

名称创建步骤:创建网络区域名称并执行第一标识添加步骤;Name creation step: create a network area name and perform the first identification adding step;

第一标识添加步骤:添加光纤设备标识至网络区域名称并执行区域判断步骤;The first identification adding step: adding the optical fiber equipment identification to the network area name and executing the area judgment step;

区域判断步骤:判断网络区域是否存在,如果是则执行第二名称判断步骤,如果否,则执行第二区域创建步骤;Area judging step: judging whether the network area exists, if so, execute the second name judging step, if not, execute the second area creating step;

第二区域创建步骤:创建网络区域并执行第二名称判断步骤;The second area creation step: create a network area and execute the second name judgment step;

第二名称判断步骤:判断网络区域是否包含网络区域名称,如果是,则执行配置激活步骤,如果否,则执行名称添加步骤;The second name judging step: judging whether the network area contains the network area name, if so, execute the configuration activation step, if not, execute the name adding step;

名称添加步骤:添加网络区域名称到网络区域并执行配置激活步骤;Name addition step: add the network zone name to the network zone and perform the configuration activation step;

配置激活步骤:激活配置并收集到配置信息至光纤交换机。Configuration activation steps: activate the configuration and collect configuration information to the fiber switch.

进一步地,所述磁盘映射步骤具体包括以下子步骤:Further, the disk mapping step specifically includes the following sub-steps:

磁盘判断步骤:判断磁盘是否创建成功,如果成功,则执行标识获取步骤;Disk judgment step: judge whether the disk is successfully created, if successful, execute the identification acquisition step;

标识获取步骤:获取需要映射的光纤设备标识,并判断光纤设备标识是否加入到该存储管理器中,如果是,则执行磁盘映射步骤,如果否,则执行第二标识添加步骤;Identification acquisition step: obtain the optical fiber equipment identification that needs to be mapped, and determine whether the optical fiber equipment identification is added to the storage manager, if so, execute the disk mapping step, if not, execute the second identification adding step;

第二标识添加步骤:把光纤设备标识加入到存储管理器中;The second identification adding step: adding the fiber equipment identification to the storage manager;

磁盘映射步骤:根据光纤设备标识把新创建的磁盘映射到逻辑分区。Disk mapping step: Map the newly created disk to a logical partition according to the ID of the optical fiber device.

本发明的目的之二采用如下技术方案实现:The second purpose of the present invention adopts the following technical scheme to realize:

一种电子设备,包括:一个或多个处理器;An electronic device comprising: one or more processors;

存储器;以及一个或者多个程序,其中所述一个或多个程序被存储在所述存储器中,并且被配置成由一个或多个处理器执行,所述程序包括用于执行以下方法的步骤:a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the program comprising steps for performing the following methods:

第一创建步骤:在目标逻辑分区创建客户端的虚拟光纤适配器;The first creation step: create a virtual optical fiber adapter of the client in the target logical partition;

第二创建步骤:在虚拟IO服务器创建服务端的虚拟光纤适配器;The second creation step: create a virtual fiber optic adapter on the server side on the virtual IO server;

适配器映射步骤:将服务端的虚拟光纤适配器映射到客户端的虚拟光纤适配器;Adapter mapping step: map the virtual fiber adapter of the server to the virtual fiber adapter of the client;

第一区域创建步骤:根据逻辑分区的光纤设备标识在虚拟IO服务器处创建网络区域以及网络区域名称并激活上述配置;The first area creation step: create a network area and network area name at the virtual IO server according to the optical fiber device identification of the logical partition and activate the above configuration;

磁盘创建步骤:根据存储管理规范在存储管理器创建磁盘;Disk creation steps: create a disk in the storage manager according to the storage management specification;

磁盘映射步骤:根据光纤设备标识映射磁盘到逻辑分区所在物理服务器。Disk mapping step: map the disk to the physical server where the logical partition is located according to the ID of the optical fiber device.

进一步地,所述适配器映射步骤具体包括以下子步骤:Further, the adapter mapping step specifically includes the following sub-steps:

查询步骤:查找逻辑分区的虚拟光纤适配器;Query step: Find the virtual fiber adapter of the logical partition;

映射步骤:将虚拟IO服务器的虚拟光纤适配器映射到逻辑分区的虚拟光纤适配器;Mapping step: map the virtual optical fiber adapter of the virtual IO server to the virtual optical fiber adapter of the logical partition;

判断步骤:判断虚拟光纤适配器是否映射成功。Judging steps: Judging whether the virtual fiber adapter is successfully mapped.

进一步地,所述第一区域创建步骤具体包括以下子步骤:Further, the step of creating the first area specifically includes the following sub-steps:

状态校验步骤:校验光纤交换机的状态,如果正常,则执行第一名称判断步骤:Status verification step: verify the status of the fiber switch, if it is normal, perform the first name judgment step:

第一名称判断步骤:判断网络区域名称是否存在,如果是,则执行标识添加步骤,如果否,则执行名称创建步骤;The first name judging step: judging whether the network area name exists, if so, execute the identification adding step, if not, execute the name creating step;

名称创建步骤:创建网络区域名称并执行第一标识添加步骤;Name creation step: create a network area name and perform the first identification adding step;

第一标识添加步骤:添加光纤设备标识至网络区域名称并执行区域判断步骤;The first identification adding step: adding the optical fiber equipment identification to the network area name and executing the area judgment step;

区域判断步骤:判断网络区域是否存在,如果是则执行第二名称判断步骤,如果否,则执行第二区域创建步骤;Area judging step: judging whether the network area exists, if so, execute the second name judging step, if not, execute the second area creating step;

第二区域创建步骤:创建网络区域并执行第二名称判断步骤;The second area creation step: create a network area and execute the second name judgment step;

第二名称判断步骤:判断网络区域是否包含网络区域名称,如果是,则执行配置激活步骤,如果否,则执行名称添加步骤;The second name judging step: judging whether the network area contains the network area name, if so, execute the configuration activation step, if not, execute the name adding step;

名称添加步骤:添加网络区域名称到网络区域并执行配置激活步骤;Name addition step: add the network zone name to the network zone and perform the configuration activation step;

配置激活步骤:激活配置并收集到配置信息至光纤交换机。Configuration activation steps: activate the configuration and collect configuration information to the fiber switch.

进一步地,所述磁盘映射步骤具体包括以下子步骤:Further, the disk mapping step specifically includes the following sub-steps:

磁盘判断步骤:判断磁盘是否创建成功,如果成功,则执行标识获取步骤;Disk judgment step: judge whether the disk is successfully created, if successful, execute the identification acquisition step;

标识获取步骤:获取需要映射的光纤设备标识,并判断光纤设备标识是否加入到该存储管理器中,如果是,则执行磁盘映射步骤,如果否,则执行第二标识添加步骤;Identification acquisition step: obtain the optical fiber equipment identification that needs to be mapped, and determine whether the optical fiber equipment identification is added to the storage manager, if so, execute the disk mapping step, if not, execute the second identification adding step;

第二标识添加步骤:把光纤设备标识加入到存储管理器中;The second identification adding step: adding the fiber equipment identification to the storage manager;

磁盘映射步骤:根据光纤设备标识把新创建的磁盘映射到逻辑分区。Disk mapping step: Map the newly created disk to a logical partition according to the ID of the optical fiber device.

本发明的目的之三采用如下技术方案实现:The third purpose of the present invention adopts the following technical scheme to realize:

一种计算机可读存储介质,其存储用于实现逻辑分区自动挂载磁盘的计算机程序,其中,所述计算机程序使得计算机执行如上所描述的方法。A computer-readable storage medium storing a computer program for realizing automatic mounting of a disk by a logical partition, wherein the computer program causes a computer to execute the method as described above.

本发明的目的之四采用如下技术方案实现:The fourth purpose of the present invention adopts the following technical scheme to realize:

逻辑分区自动挂载磁盘的装置,包括以下模块:A device for automatically mounting disks in logical partitions, including the following modules:

第一创建模块:用于在目标逻辑分区创建客户端的虚拟光纤适配器;The first creation module: used to create a virtual optical fiber adapter of the client in the target logical partition;

第二创建模块:用于在虚拟IO服务器创建服务端的虚拟光纤适配器;The second creation module: used to create a virtual optical fiber adapter of the server in the virtual IO server;

适配器映射模块:用于将服务端的虚拟光纤适配器映射到客户端的虚拟光纤适配器;Adapter mapping module: used to map the virtual fiber adapter of the server to the virtual fiber adapter of the client;

第一区域创建模块:用于根据逻辑分区的光纤设备标识在虚拟IO服务器处创建网络区域以及网络区域名称并激活上述配置;The first area creation module: used to create a network area and a network area name at the virtual IO server according to the optical fiber device identification of the logical partition and activate the above configuration;

磁盘创建模块:用于根据存储管理规范在存储管理器创建磁盘;Disk creation module: used to create disks in the storage manager according to storage management specifications;

磁盘映射模块:用于根据光纤设备标识映射磁盘到逻辑分区所在物理服务器。Disk mapping module: used to map the disk to the physical server where the logical partition is located according to the ID of the optical fiber device.

进一步地,用于所述适配器映射模块具体包括以下子模块:Further, the adapter mapping module specifically includes the following submodules:

查询模块:用于查找逻辑分区的虚拟光纤适配器;Query module: virtual fiber adapter for finding logical partitions;

映射模块:用于将虚拟IO服务器的虚拟光纤适配器映射到逻辑分区的虚拟光纤适配器;Mapping module: used to map the virtual optical fiber adapter of the virtual IO server to the virtual optical fiber adapter of the logical partition;

判断模块:用于判断虚拟光纤适配器是否映射成功。Judging module: used to judge whether the virtual fiber adapter is successfully mapped.

进一步地,用于所述第一区域创建模块具体包括以下子模块:Further, the module for creating the first area specifically includes the following submodules:

状态校验模块:用于校验光纤交换机的状态,如果正常,则执行第一名称判断模块:Status verification module: used to verify the status of the fiber switch, if it is normal, execute the first name judgment module:

第一名称判断模块:用于判断网络区域名称是否存在,如果是,则执行标识添加模块,如果否,则执行名称创建模块;The first name judging module: for judging whether the network area name exists, if so, execute the identification adding module, if not, execute the name creating module;

名称创建模块:用于创建网络区域名称并执行第一标识添加模块;Name creation module: used to create a network area name and execute the first identification adding module;

第一标识添加模块:用于添加光纤设备标识至网络区域名称并执行区域判断模块;The first identification adding module: used to add the optical fiber equipment identification to the network area name and execute the area judgment module;

区域判断模块:用于判断网络区域是否存在,如果是则执行第二名称判断模块,如果否,则执行第二区域创建模块;Area judgment module: used to judge whether the network area exists, if so, execute the second name judgment module, if not, execute the second area creation module;

第二区域创建模块:用于创建网络区域并执行第二名称判断模块;Second area creation module: used to create a network area and execute the second name judgment module;

第二名称判断模块:用于判断网络区域是否包含网络区域名称,如果是,则执行配置激活模块,如果否,则执行名称添加模块;The second name judging module: used to judge whether the network area contains the network area name, if so, execute the configuration activation module, if not, execute the name adding module;

名称添加模块:用于添加网络区域名称到网络区域并执行配置激活模块;Name adding module: used to add the network zone name to the network zone and execute the configuration activation module;

配置激活模块:用于激活配置并收集到配置信息至光纤交换机。Configuration activation module: used to activate the configuration and collect configuration information to the fiber switch.

进一步地,所述磁盘映射模块具体包括以下子模块:Further, the disk mapping module specifically includes the following submodules:

磁盘判断模块:用于判断磁盘是否创建成功,如果成功,则执行标识获取模块;Disk judgment module: used to judge whether the disk is successfully created, if successful, execute the identification acquisition module;

标识获取模块:用于获取需要映射的光纤设备标识,并判断光纤设备标识是否加入到该存储管理器中,如果是,则执行磁盘映射模块,如果否,则执行第二标识添加模块;Identification acquisition module: used to obtain the identification of the optical fiber equipment that needs to be mapped, and determine whether the identification of the optical fiber equipment is added to the storage manager, if so, execute the disk mapping module, if not, execute the second identification adding module;

第二标识添加模块:用于把光纤设备标识加入到存储管理器中;The second identification adding module: used to add the fiber equipment identification to the storage manager;

磁盘映射模块:用于根据光纤设备标识把新创建的磁盘映射到逻辑分区。Disk mapping module: It is used to map the newly created disk to the logical partition according to the ID of the optical fiber device.

相比现有技术,本发明的有益效果在于:Compared with the prior art, the beneficial effects of the present invention are:

本发明的逻辑分区自动挂载磁盘的方法,通过增加对光纤交换机,物理存储器的管理,以实现逻辑分区(LPAR)自动访问存储管理器的资源,用户无需手动再登陆到光纤交换机上进行Zone的配置,大大减少因人工配置出错的概率,降低维护成本,提高执行效率。The method for automatically mounting a disk in a logical partition of the present invention, by increasing the management of the optical switch and the physical memory, so that the logical partition (LPAR) can automatically access the resources of the storage manager, and the user does not need to manually log in to the optical switch to perform Zone configuration. Configuration, greatly reduce the probability of errors due to manual configuration, reduce maintenance costs, and improve execution efficiency.

附图说明Description of drawings

图1为逻辑分区自动挂载磁盘的系统的结构图;Figure 1 is a structural diagram of a system for automatically mounting disks by logical partitions;

图2为逻辑分区自动挂载磁盘的方法的流程图;Fig. 2 is the flow chart of the method for the logical partition to mount the disk automatically;

图3为逻辑分区自动挂载磁盘的装置的结构图。FIG. 3 is a structural diagram of an apparatus for automatically mounting a disk to a logical partition.

具体实施方式Detailed ways

下面,结合附图以及具体实施方式,对本发明做进一步描述,需要说明的是,在不相冲突的前提下,以下描述的各实施例之间或各技术特征之间可以任意组合形成新的实施例。The present invention will be further described below with reference to the accompanying drawings and specific embodiments. It should be noted that, on the premise of no conflict, the embodiments or technical features described below can be combined arbitrarily to form new embodiments. .

如图1和图2所示,本发明提供了一种逻辑分区自动挂载磁盘的方法,包括以下步骤:As shown in Figure 1 and Figure 2, the present invention provides a method for automatically mounting a disk on a logical partition, comprising the following steps:

S1:在逻辑分区创建客户端的虚拟光纤适配器;S1: Create a client's virtual fiber adapter in the logical partition;

S2:在虚拟IO服务器创建服务端的虚拟光纤适配器;S2: Create a server-side virtual fiber adapter on the virtual IO server;

S3:将服务端的虚拟光纤适配器映射到客户端的虚拟光纤适配器;所述步骤S3具体包括以下子步骤:S3: Map the virtual optical fiber adapter of the server to the virtual optical fiber adapter of the client; the step S3 specifically includes the following sub-steps:

S31:查找逻辑分区的虚拟光纤适配器;S31: Find the virtual optical fiber adapter of the logical partition;

S32:将虚拟IO服务器的虚拟光纤适配器映射到逻辑分区的虚拟光纤适配器;S32: Map the virtual optical fiber adapter of the virtual IO server to the virtual optical fiber adapter of the logical partition;

S33:判断虚拟光纤适配器是否映射成功。这里的虚拟IO服务器指的是VIOS,上述步骤主要是创建虚拟适配器并做映射,在逻辑分区上创建virtual client FC adapter(虚拟光纤适配器),在VIOS上创建server FC adapter;然后将它们的FC adapter(FC HBA)做映射。S33: Determine whether the virtual optical fiber adapter is successfully mapped. The virtual IO server here refers to VIOS. The above steps are mainly to create virtual adapters and do mapping, create virtual client FC adapters (virtual fiber optic adapters) on logical partitions, and create server FC adapters on VIOS; then connect their FC adapters (FC HBA) for mapping.

在执行上述步骤的过程中主要涉及有以下关键的命令:在VIOS执行获取FC适配器:lsdev-dev fcs*;在VIOS执行获取可使用NPIV端口的FC适配器:lsnports;在VIOS执行获取fcs*的硬件编号:lscfg -l fcsO;在VIOS执行获取FC设备与wwpn的关系:pcmpathquery wwpn;在VIOS执行获取fscsi*的硬件编号:lscfg -l fsc0。In the process of executing the above steps, the following key commands are mainly involved: Execute the VIOS to obtain the FC adapter: lsdev-dev fcs*; execute the VIOS to obtain the FC adapter that can use the NPIV port: lsnports; execute the VIOS to obtain the hardware of fcs* Number: lscfg -l fcsO; run the VIOS to obtain the relationship between the FC device and wwpn: pcmpathquery wwpn; run the VIOS to obtain the hardware number of fscsi*: lscfg -l fsc0.

S4:根据逻辑分区的光纤设备标识对虚拟IO服务器进行配置并激活上述配置,所述配置包括创建网络区域以及网络区域名称;在交换机上创建一个新的Zone:为了不破坏交换机上原来的Zone配置,以及保证NPIV虚拟机的独立性和安全性,程序会基于逻辑分区和物理存储器的WWPN号创建一个新的Zone,该Zone的名称是虚拟机和物理存储器的名字组合。步骤S4具体包括以下子步骤:S4: Configure the virtual IO server according to the optical fiber device identification of the logical partition and activate the above configuration, the configuration includes creating a network area and a network area name; create a new Zone on the switch: in order not to destroy the original Zone configuration on the switch , and to ensure the independence and security of the NPIV virtual machine, the program will create a new Zone based on the WWPN number of the logical partition and physical storage. The name of the Zone is the combination of the names of the virtual machine and physical storage. Step S4 specifically includes the following sub-steps:

S41:校验光纤交换机的状态,如果正常,则执行S42:S41: Check the status of the fiber switch, if it is normal, execute S42:

S42:判断网络区域名称是否存在,如果是,则执行标识添加步骤,如果否,则执行S43;S42: determine whether the network area name exists, if so, execute the step of adding an identifier, if not, execute S43;

S43:创建网络区域名称并执行S44;S43: Create a network area name and execute S44;

S44:添加光纤设备标识至网络区域名称并执行S45;S44: add the optical fiber equipment identifier to the network area name and execute S45;

S45:判断网络区域是否存在,如果是则执行S47,如果否,则执行S46;S45: determine whether the network area exists, if so, execute S47, if not, execute S46;

S46:创建网络区域并执行S47;S46: Create a network area and execute S47;

S47:判断网络区域是否包含网络区域名称,如果是,则执行S49,如果否,则执行S48;S47: determine whether the network area contains the network area name, if so, execute S49, if not, execute S48;

S48:添加网络区域名称到网络区域并执行S49;S48: add the network area name to the network area and execute S49;

S49:激活配置并收集到配置信息至光纤交换机。S49: Activate the configuration and collect the configuration information to the optical switch.

S5:根据存储管理规范在存储管理器创建磁盘;通过SMIS工具纳管不同厂商类型的存储设备(EMC存储,NetApp存储等),实现磁盘的创建,删除,映射,查询等。S5: Create disks in the storage manager according to storage management specifications; manage storage devices of different manufacturers (EMC storage, NetApp storage, etc.) through the SMIS tool to create, delete, map, and query disks.

前置条件包括:管理程序已安装并配置,可telnet访问;share storage pool和raid group已提前规划并创建完成。The prerequisites include: the management program has been installed and configured, and can be accessed by telnet; the share storage pool and raid group have been planned and created in advance.

涉及关键命令:查询磁盘lun:get all -lun/get lun;查看磁盘Lun映射:storagegroup -list;添加磁盘lun映射storage group -create;查看主机列表port -listKey commands involved: query disk lun: get all -lun/get lun; view disk lun mapping: storagegroup -list; add disk lun mapping storage group -create; view host list port -list

S6:根据光纤设备标识映射磁盘到逻辑分区所在物理服务器。所述步骤S6具体包括以下子步骤:S6: Map the disk to the physical server where the logical partition is located according to the ID of the optical fiber device. The step S6 specifically includes the following sub-steps:

S61:判断磁盘是否创建成功,如果成功,则执行步骤S62;S61: determine whether the disk is successfully created, if successful, perform step S62;

S62:获取需要映射的光纤设备标识,并判断光纤设备标识是否加入到该存储管理器中,如果是,则执行步骤S64,如果否,则执行步骤S63;S62: Obtain the optical fiber device identification to be mapped, and determine whether the optical fiber device identification is added to the storage manager, if so, execute step S64, if not, execute step S63;

S63:把光纤设备标识加入到存储管理器中;S63: Add the optical fiber device identification to the storage manager;

S64:根据光纤设备标识把新创建的磁盘映射到逻辑分区。S64: Map the newly created disk to the logical partition according to the optical fiber device identifier.

本发明公开的实现NPTV自动挂载存储的方案,属于云计算领域。其是基于PowerVM NPIV的基础上,增加对光纤交换机,物理存储器的管理,以实现逻辑分区(LPAR)自动访问存储管理器的资源,用户无需手动再登陆到光纤交换机上进行Zone的配置,Zone也即是网络区域,通过自动挂载存储的方式大大减少因人工配置出错的概率,降低维护成本,提高执行效率。The solution for realizing NPTV automatic mounting and storage disclosed by the invention belongs to the field of cloud computing. It is based on PowerVM NPIV, adding management of optical switches and physical storage, so that the logical partition (LPAR) can automatically access the resources of the storage manager, and users do not need to manually log in to the optical switch to configure the Zone. That is, the network area. By automatically mounting storage, the probability of errors due to manual configuration is greatly reduced, maintenance costs are reduced, and execution efficiency is improved.

本方案主要涉及Power VM虚拟化NPIV技术,统一存储SMI-S Provider(StorageManagement Initiative Specification,SMI-S规定了一套安全可靠的接口,以便存储管理系统来标识、分类、监控SAN中的存储资源)和光纤交换机三个部分,主要详述三者彼此间的调用原理。This solution mainly involves Power VM virtualization NPIV technology, unified storage SMI-S Provider (StorageManagement Initiative Specification, SMI-S specifies a set of safe and reliable interfaces, so that the storage management system can identify, classify and monitor the storage resources in the SAN) And the three parts of the fiber switch, mainly detail the calling principle between the three.

本方案实施前需保证纳管的光纤交换机支持NPIV特性及Power VM机器支持NPIV功能;SMI-S存储器管理:通过SMIS工具纳管不同厂商类型的存储设备(EMC存储,NetApp存储等),可以通过厂商提供的接口实现磁盘的创建,删除,映射,查询等。光纤交换机管理:通过纳管不同厂商类型的光纤交换机,实现对存储网络区域进行配置,包括别名的创建,删除,查询,Zone创建,删除,查询等。基于Power VM虚拟化管理:通过HMC管理平台对Power VM的服务器进行纳管,基于Power VM虚拟化自身NPIV的技术,实现对虚拟光纤适配器创建,删除,映射等操作。其中的纳管的含义为统一管理。Before the implementation of this solution, it is necessary to ensure that the managed optical switches support the NPIV feature and the Power VM machines support the NPIV function; SMI-S storage management: manage storage devices of different manufacturers (EMC storage, NetApp storage, etc.) through the SMIS tool. The interface provided by the manufacturer realizes the creation, deletion, mapping, query and so on of the disk. Optical switch management: By managing optical switches of different manufacturers, the storage network area can be configured, including alias creation, deletion, query, Zone creation, deletion, query, etc. Based on Power VM virtualization management: Power VM servers are managed through the HMC management platform, and based on Power VM's own NPIV technology, operations such as creation, deletion, and mapping of virtual fiber adapters are realized. Among them, the meaning of management is unified management.

本发明公开了一种电子设备,包括一个或多个处理器、存储器以及一个或者多个程序,其中所述一个或多个程序被存储在所述存储器中,并且被配置成由一个或多个处理器执行,所述程序包括用于执行上述方法,或者本发明的方法存储在可读的存储介质上,并且该方法程序可以被处理器执行。The present invention discloses an electronic device comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be composed of one or more programs The processor executes the program, and the program includes a method for executing the above method, or the method of the present invention is stored on a readable storage medium, and the method program can be executed by the processor.

如图3所示,本发明提供了一种逻辑分区自动挂载磁盘的装置,包括以下模块:As shown in FIG. 3 , the present invention provides a device for automatically mounting a disk in a logical partition, including the following modules:

第一创建模块:用于在目标逻辑分区创建客户端的虚拟光纤适配器;The first creation module: used to create a virtual optical fiber adapter of the client in the target logical partition;

第二创建模块:用于在虚拟IO服务器创建服务端的虚拟光纤适配器;The second creation module: used to create a virtual optical fiber adapter of the server in the virtual IO server;

适配器映射模块:用于将服务端的虚拟光纤适配器映射到客户端的虚拟光纤适配器;所述适配器映射模块具体包括以下子模块:Adapter mapping module: used to map the virtual optical fiber adapter of the server to the virtual optical fiber adapter of the client; the adapter mapping module specifically includes the following submodules:

查询模块:用于查找逻辑分区的虚拟光纤适配器;Query module: virtual fiber adapter for finding logical partitions;

映射模块:用于将虚拟IO服务器的虚拟光纤适配器映射到逻辑分区的虚拟光纤适配器;Mapping module: used to map the virtual optical fiber adapter of the virtual IO server to the virtual optical fiber adapter of the logical partition;

判断模块:用于判断虚拟光纤适配器是否映射成功。Judging module: used to judge whether the virtual fiber adapter is successfully mapped.

第一区域创建模块:用于根据逻辑分区的光纤设备标识在虚拟IO服务器处创建网络区域以及网络区域名称并激活上述配置;所述第一区域创建模块具体包括以下子模块:The first area creation module: used to create a network area and a network area name at the virtual IO server according to the optical fiber device identification of the logical partition and activate the above configuration; the first area creation module specifically includes the following submodules:

状态校验模块:用于校验光纤交换机的状态,如果正常,则执行第一名称判断模块:Status verification module: used to verify the status of the fiber switch, if it is normal, execute the first name judgment module:

第一名称判断模块:用于判断网络区域名称是否存在,如果是,则执行标识添加模块,如果否,则执行名称创建模块;The first name judging module: for judging whether the network area name exists, if so, execute the identification adding module, if not, execute the name creating module;

名称创建模块:用于创建网络区域名称并执行第一标识添加模块;Name creation module: used to create a network area name and execute the first identification adding module;

第一标识添加模块:用于添加光纤设备标识至网络区域名称并执行区域判断模块;The first identification adding module: used to add the optical fiber equipment identification to the network area name and execute the area judgment module;

区域判断模块:用于判断网络区域是否存在,如果是则执行第二名称判断模块,如果否,则执行第二区域创建模块;Area judgment module: used to judge whether the network area exists, if so, execute the second name judgment module, if not, execute the second area creation module;

第二区域创建模块:用于创建网络区域并执行第二名称判断模块;Second area creation module: used to create a network area and execute the second name judgment module;

第二名称判断模块:用于判断网络区域是否包含网络区域名称,如果是,则执行配置激活模块,如果否,则执行名称添加模块;The second name judging module: used to judge whether the network area contains the network area name, if so, execute the configuration activation module, if not, execute the name adding module;

名称添加模块:用于添加网络区域名称到网络区域并执行配置激活模块;Name adding module: used to add the network zone name to the network zone and execute the configuration activation module;

配置激活模块:用于激活配置并收集到配置信息至光纤交换机。Configuration activation module: used to activate the configuration and collect configuration information to the fiber switch.

磁盘创建模块:用于根据存储管理规范在存储管理器创建磁盘;Disk creation module: used to create disks in the storage manager according to storage management specifications;

磁盘映射模块:用于根据光纤设备标识映射磁盘到逻辑分区所在物理服务器。所述磁盘映射模块具体包括以下子模块:Disk mapping module: used to map the disk to the physical server where the logical partition is located according to the ID of the optical fiber device. The disk mapping module specifically includes the following sub-modules:

磁盘判断模块:用于判断磁盘是否创建成功,如果成功,则执行标识获取模块;Disk judgment module: used to judge whether the disk is successfully created, if successful, execute the identification acquisition module;

标识获取模块:用于获取需要映射的光纤设备标识,并判断光纤设备标识是否加入到该存储管理器中,如果是,则执行磁盘映射模块,如果否,则执行第二标识添加模块;Identification acquisition module: used to obtain the identification of the optical fiber equipment that needs to be mapped, and determine whether the identification of the optical fiber equipment is added to the storage manager, if so, execute the disk mapping module, if not, execute the second identification adding module;

第二标识添加模块:用于把光纤设备标识加入到存储管理器中;The second identification adding module: used to add the fiber equipment identification to the storage manager;

磁盘映射模块:用于根据光纤设备标识把新创建的磁盘映射到逻辑分区。Disk mapping module: It is used to map the newly created disk to the logical partition according to the ID of the optical fiber device.

上述实施方式仅为本发明的优选实施方式,不能以此来限定本发明保护的范围,本领域的技术人员在本发明的基础上所做的任何非实质性的变化及替换均属于本发明所要求保护的范围。The above-mentioned embodiments are only preferred embodiments of the present invention, and cannot be used to limit the scope of protection of the present invention. Any insubstantial changes and substitutions made by those skilled in the art on the basis of the present invention belong to the scope of the present invention. Scope of protection claimed.

Claims (6)

1. The method for automatically mounting the disk by the logical partition is characterized by comprising the following steps:
a first creation step: creating a virtual fiber adapter of a client in the logical partition;
a second creation step: creating a virtual optical fiber adapter of a server side on a virtual IO server;
an adapter mapping step: mapping a virtual fiber adapter of a server to a virtual fiber adapter of a client;
a first area creating step: configuring a virtual IO server according to the optical fiber equipment identifier of the logical partition and activating the configuration, wherein the configuration comprises the creation of a network area and a network area name; the first region creating step specifically includes the following substeps:
and a state checking step: checking the state of the optical fiber switch, and if the state is normal, executing a first name judgment step; a first name judging step: judging whether the network area name exists, if so, executing an identification adding step, and if not, executing a name establishing step;
a name creating step: creating a network area name and performing a first identifier adding step;
a first identifier adding step: adding an optical fiber equipment identifier to the network area name and executing an area judgment step;
and a region judgment step: judging whether a network area exists, if so, executing a second name judging step, and if not, executing a second area establishing step;
a second area creating step: creating a network area and executing a second name judgment step;
a second name judging step: judging whether the network area contains the network area name, if so, executing a configuration activation step, and if not, executing a name addition step;
name adding step: adding a network area name to the network area and performing a configuration activation step;
a configuration activation step: activating configuration and collecting configuration information to the optical fiber switch;
a magnetic disk creating step: creating a disk in a storage manager according to a storage management specification;
a first disk mapping step: mapping the disk to a physical server where the logical partition is located according to the optical fiber equipment identifier; the first disk mapping step specifically includes the following substeps:
a magnetic disk judgment step: judging whether the creation of the disk is successful or not, and if so, executing an identification acquisition step;
an identification obtaining step: acquiring an optical fiber equipment identifier needing mapping, judging whether the optical fiber equipment identifier is added into the storage manager, if so, executing a disk mapping step, and if not, executing a second identifier adding step;
a second identification adding step: adding the fiber optic equipment identification to the storage manager;
and a second disk mapping step: the newly created disk is mapped to a logical partition based on the fiber device identification.
2. The method for automatically mounting a disk by a logical partition according to claim 1, wherein the adapter mapping step specifically comprises the following substeps:
and (3) query step: searching a virtual optical fiber adapter of the logic partition;
a mapping step: mapping a virtual fiber adapter of the virtual IO server to a virtual fiber adapter of the logical partition;
a judging step: and judging whether the mapping of the virtual fiber adapter is successful.
3. An electronic device, comprising: one or more processors;
a memory; and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the programs comprising steps for performing the method of:
a first creation step: creating a virtual fiber adapter of a client in the logical partition;
a second creation step: creating a virtual optical fiber adapter of a server side on a virtual IO server;
an adapter mapping step: mapping a virtual fiber adapter of a server to a virtual fiber adapter of a client;
a first area creating step: configuring a virtual IO server according to the optical fiber equipment identifier of the logical partition and activating the configuration, wherein the configuration comprises the creation of a network area and a network area name; the first region creating step specifically includes the following substeps:
and a state checking step: checking the state of the optical fiber switch, and if the state is normal, executing a first name judgment step; a first name judging step: judging whether the network area name exists, if so, executing an identification adding step, and if not, executing a name establishing step;
a name creating step: creating a network area name and performing a first identifier adding step;
a first identifier adding step: adding an optical fiber equipment identifier to the network area name and executing an area judgment step;
and a region judgment step: judging whether a network area exists, if so, executing a second name judging step, and if not, executing a second area establishing step;
a second area creating step: creating a network area and executing a second name judgment step;
a second name judging step: judging whether the network area contains the network area name, if so, executing a configuration activation step, and if not, executing a name addition step;
name adding step: adding a network area name to the network area and performing a configuration activation step;
a configuration activation step: activating configuration and collecting configuration information to the optical fiber switch;
a magnetic disk creating step: creating a disk in a storage manager according to a storage management specification;
a first disk mapping step: mapping the disk to a physical server where the logical partition is located according to the optical fiber equipment identifier; the first disk mapping step specifically includes the following substeps:
a magnetic disk judgment step: judging whether the creation of the disk is successful or not, and if so, executing an identification acquisition step;
an identification obtaining step: acquiring an optical fiber equipment identifier needing mapping, judging whether the optical fiber equipment identifier is added into the storage manager, if so, executing a disk mapping step, and if not, executing a second identifier adding step;
a second identification adding step: adding the fiber optic equipment identification to the storage manager;
and a second disk mapping step: the newly created disk is mapped to a logical partition based on the fiber device identification.
4. The electronic device of claim 3, wherein the adapter mapping step comprises in particular the sub-steps of:
and (3) query step: searching a virtual optical fiber adapter of the logic partition;
a mapping step: mapping a virtual fiber adapter of the virtual IO server to a virtual fiber adapter of the logical partition;
a judging step: and judging whether the mapping of the virtual fiber adapter is successful.
5. A computer-readable storage medium storing a computer program for implementing an automatic disk mount for a logical partition, wherein the computer program causes a computer to perform the method of claim 1.
6. The device for automatically mounting the disk by the logical partition is characterized by comprising the following modules:
a first creation module: a virtual fiber adapter for creating a client in a logical partition;
a second creation module: the virtual optical fiber adapter is used for creating a server side on the virtual IO server;
an adapter mapping module: the virtual fiber adapter is used for mapping the virtual fiber adapter of the server to the virtual fiber adapter of the client;
a first region creation module: configuring a virtual IO server according to the optical fiber equipment identifier of the logical partition and activating the configuration, wherein the configuration comprises the creation of a network area and a network area name; the first region creation module specifically includes the following sub-modules:
a state checking module: the first name judging module is used for verifying the state of the optical fiber switch, and if the state is normal, the first name judging module is executed; a first name judging module: judging whether the network area name exists, if so, executing the identifier adding module, and if not, executing the name creating module;
a name creation module: the system comprises a module for creating a network area name and executing a first identifier adding module;
a first identity adding module: the system comprises a module for adding an optical fiber equipment identifier to a network area name and executing an area judgment module;
the area judgment module: the second name judging module is used for judging whether the network area exists or not, if so, the second name judging module is executed, and if not, the second area creating module is executed;
a second region creation module: the second name judging module is used for establishing a network area and executing a second name;
a second name judging module: the device comprises a configuration activation module, a name adding module and a network area name judging module, wherein the configuration activation module is used for judging whether a network area contains a network area name or not, if so, the configuration activation module is executed, and if not, the name adding module is executed;
a name adding module: the system comprises a module for adding a network area name to a network area and executing configuration activation;
the configuration activation module: the optical fiber switch is used for activating configuration and collecting configuration information to the optical fiber switch;
a disk creation module: the storage manager is used for creating a disk in the storage manager according to the storage management specification;
the first disk mapping module: the system comprises a disk, a physical server and a logical partition, wherein the disk is used for mapping the physical server to the logical partition according to an optical fiber equipment identifier; the first disk mapping module specifically includes the following sub-modules:
a disk judgment module: the device is used for judging whether the disk is successfully established or not, and if so, executing an identification acquisition module;
an identification acquisition module: the device comprises a storage manager, a disk mapping module and a second identifier adding module, wherein the storage manager is used for acquiring an optical fiber device identifier to be mapped and judging whether the optical fiber device identifier is added into the storage manager;
a second identity adding module: for adding the fiber optic equipment identification to the storage manager;
the second disk mapping module: for mapping the newly created disk to a logical partition based on the fiber optic equipment identification.
CN201710363143.2A 2017-05-22 2017-05-22 Method for automatically mounting disk by logical partition, electronic equipment and storage medium Active CN107273044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710363143.2A CN107273044B (en) 2017-05-22 2017-05-22 Method for automatically mounting disk by logical partition, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710363143.2A CN107273044B (en) 2017-05-22 2017-05-22 Method for automatically mounting disk by logical partition, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107273044A CN107273044A (en) 2017-10-20
CN107273044B true CN107273044B (en) 2020-06-09

Family

ID=60065624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710363143.2A Active CN107273044B (en) 2017-05-22 2017-05-22 Method for automatically mounting disk by logical partition, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107273044B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113821172B (en) * 2021-09-03 2024-06-11 郑州浪潮数据技术有限公司 Storage volume capacity acquisition method and device and related equipment
CN113556298B (en) * 2021-09-18 2022-03-01 云宏信息科技股份有限公司 Storage access method, medium and server based on PowerVC

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206581A (en) * 2006-12-20 2008-06-25 国际商业机器公司 Apparatus, system, and method for booting using an external disk through a virtual scsi connection
CN102682088A (en) * 2012-04-23 2012-09-19 Tcl集团股份有限公司 Mount method and mount system of storage equipment, and television
CN104412228A (en) * 2012-04-04 2015-03-11 赛门铁克公司 Live migration protocols and cluster server failover protocols

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8341308B2 (en) * 2008-06-09 2012-12-25 International Business Machines Corporation Method and apparatus for a fibre channel N-port ID virtualization protocol
US20130097295A1 (en) * 2011-10-18 2013-04-18 International Business Machines Corporation Storage area network configuration of virtual fibre channel ports prior to client creation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101206581A (en) * 2006-12-20 2008-06-25 国际商业机器公司 Apparatus, system, and method for booting using an external disk through a virtual scsi connection
CN104412228A (en) * 2012-04-04 2015-03-11 赛门铁克公司 Live migration protocols and cluster server failover protocols
CN102682088A (en) * 2012-04-23 2012-09-19 Tcl集团股份有限公司 Mount method and mount system of storage equipment, and television

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
FCoE交换机系统中ZONE数据备份模块的设计与实现;赵诗梦;《中国优秀硕士学位论文全文数据库信息科学辑》;20120430;第I136-193页 *
PowerVM新存储特性-NPIV;屠晟;《https://www.ibm.com/developerworks/cn/aix/library/1003_tusheng_npiv/》;20100406;全文 *

Also Published As

Publication number Publication date
CN107273044A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
US10963282B2 (en) Computing service with configurable virtualization control levels and accelerated launches
JP6208207B2 (en) A computer system that accesses an object storage system
JP5963864B2 (en) Configuring an object storage system for input / output operations
US9092377B2 (en) Managing back up operations for data
CN104239166B (en) A kind of method that file backup is realized to virtual machine in operation
US10223144B2 (en) Method and apparatus of redundant path validation before provisioning
EP3811206A1 (en) Network-accessible computing service for micro virtual machines
US8510815B2 (en) Virtual computer system, access control method and communication device for the same
US20060130052A1 (en) Operating system migration with minimal storage area network reconfiguration
US10263907B2 (en) Managing virtual network ports
CN106201357A (en) The construction method of a kind of storage pool and system
US20180302475A1 (en) Converged infrastructure and associated methods thereof
EP2513771A1 (en) Storage visibility in virtual environments
BRPI0912905B1 (en) method, equipment and physical support for provisioning virtual resources using name resolution
US10235206B2 (en) Utilizing input/output configuration templates to reproduce a computing entity
US10389809B2 (en) Systems and methods for resource management in a networked environment
CN103118073B (en) Virtual machine data persistence storage system and method in cloud environment
CN101656718A (en) Network server system and method for establishing and starting virtual machine thereof
CN102833334A (en) Logical volume management method
US8973018B2 (en) Configuring and relaying events from a storage controller to a host server
CN106777394A (en) A kind of cluster file system
US10628055B2 (en) Management of storage replication consistency groups using automatic replication group identifiers
CN107273044B (en) Method for automatically mounting disk by logical partition, electronic equipment and storage medium
CN104484221A (en) Method for taking over existing vCenter cluster by CloudStack
US9143410B1 (en) Techniques for monitoring guest domains configured with alternate I/O domains

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250613

Address after: 510000 Guangdong Province, Guangzhou City, Baiyun District, Longgui Street, Ketai Second Road No. 13-19, Baiyun High-tech Industrial Park . Industry Innovation Park, Building No. 13, 4th Floor, Room 401-151

Patentee after: WINHONG INFORMATION TECHNOLOGY CO.,LTD.

Country or region after: China

Address before: 510000, Guangzhou, Guangdong, Zhongshan, Tianhe District Road, No. 89 West, 4 floor, room 20, South A

Patentee before: WINHONG INFORMATION TECHNOLOGY CO.,LTD.

Country or region before: China

Patentee before: AEROSPACE WINHONG TECHNOLOGY GUIZHOU CO.,LTD.

TR01 Transfer of patent right