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
mapping
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.)
Aerospace Winhong Technology Guizhou Co ltd
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)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (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 for automatically mounting disk by logical partition, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method for automatically mounting a disk in a logical partition, an electronic device, and a storage medium.
Background
Currently, N _ Port ID Virtualization (NPIV) is an industry standard that is in common use in the industry to help users configure NPIV-enabled fibre channel adapters using multiple virtual World Wide Port Names (WWPNs). The main purpose is to simplify the SAN network architecture by virtualizing the fibre channel interface, and make the connection between the server and the SAN environment in the virtual environment more flexible and secure.
NPIV allows different Logical Partitions (LPARs) to share storage adapter cards and storage resources, e.g., one partition can access a shared hard disk or optical drive through a virtual SCSI card on the partition, the whole process for an operating system just like a real SCSI device card. At present, the virtual support of the physical equipment adapter card in the Power VM is expanded to the optical fiber card by the version above the VIO Server 2.1, and a plurality of different partitions can access the resources of the SAN network through the virtual optical fiber card by a real physical optical fiber adapter card supporting NPIV characteristics on the VIOS, thereby simplifying the SAN resource management on a multi-partition system. By using NPIV, an enterprise system administrator can greatly simplify the work of storage planning (e.g., Zoning, LUN Masking), and for a service that needs to run multiple access SAN resources, can improve I/O performance, reduce the number of required adapter cards, and reduce procurement and maintenance costs.
In NPIV storage virtualization, the resources of physical memory to be used by a Logical Partition (LPAR) need to be accessed over a storage network, while the planning of a storage area network typically requires access to a fabric-to-switch configuration implementation. In the fabric switch, only nodes belonging to the same ZONE (ZONE function is similar to VLAN function on ethernet switch, and it logically divides devices (hosts and storage) connected in SAN network into different ZONEs, so that devices in different ZONEs cannot directly access each other in FC network, thereby realizing mutual isolation between devices in network). This results in that even if both the FC HBA (physical fiber card) of the physical host and the FC HBA (physical fiber card) of the physical storage are connected to the fabric switch, the Logical Partition (LPAR) on the physical host does not necessarily have access to the storage resources of the storage, and the user is required to manually log in to the fabric switch to configure the storage network according to the generated WWPN number, resulting in a cumbersome work for the user to use the NPIV function.
Disclosure of Invention
In order to overcome the defects of the prior art, an object of the present invention is to provide a method for automatically mounting a disk by a logical partition, which can solve the technical problem of automatic mounting of a disk.
Another object of the present invention is to provide an electronic device, which can solve the technical problem of automatic mounting of a disk.
The invention also aims to provide a computer readable storage medium which can solve the technical problem of automatic mounting of a disk.
The fourth objective of the present invention is to provide a device for automatically mounting a disk in a logical partition, which can solve the technical problem of automatic mounting of a disk.
One of the purposes of the invention is realized by adopting the following technical scheme:
the method for automatically mounting the disk by the logical partition comprises 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;
a magnetic disk creating step: creating a disk in a storage manager according to a storage management specification;
and disk mapping step: and mapping the disk to a physical server of the logical partition according to the optical fiber equipment identifier.
Further, the adapter mapping step specifically includes 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.
Further, the first region creating step specifically includes the following sub-steps:
and a state checking step: checking the state of the optical fiber switch, and if the state is normal, executing a first name judging 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: activate configuration and collect configuration information to the fabric switch.
Further, the disk mapping step specifically includes the following sub-steps:
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 disk mapping step: the newly created disk is mapped to a logical partition based on the fiber device identification.
The second purpose of the invention is realized by adopting the following technical scheme:
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 a target logic 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: 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;
a magnetic disk creating step: creating a disk in a storage manager according to a storage management specification;
and disk mapping step: and mapping the disk to a physical server of the logical partition according to the optical fiber equipment identifier.
Further, the adapter mapping step specifically includes 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.
Further, the first region creating step specifically includes the following sub-steps:
and a state checking step: checking the state of the optical fiber switch, and if the state is normal, executing a first name judging 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: activate configuration and collect configuration information to the fabric switch.
Further, the disk mapping step specifically includes the following sub-steps:
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 disk mapping step: the newly created disk is mapped to a logical partition based on the fiber device identification.
The third purpose of the invention is realized by adopting the following technical scheme:
a computer readable storage medium storing a computer program for implementing a logical partition auto-mount disk, wherein the computer program causes a computer to perform the method as described above.
The fourth purpose of the invention is realized by adopting the following technical scheme:
the device for automatically mounting the disk by the logical partition comprises the following modules:
a first creation module: creating a virtual fiber adapter for the client at the target 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: the system comprises a virtual IO server, a configuration server and a management server, wherein the configuration server is used for establishing 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;
a disk creation module: the storage manager is used for creating a disk in the storage manager according to the storage management specification;
a disk mapping module: and the mapping module is used for mapping the disk to the physical server of the logical partition according to the optical fiber equipment identifier.
Further, the adapter mapping module specifically includes the following sub-modules:
the query module: a virtual fiber adapter for finding a logical partition;
a mapping module: the virtual fiber adapter is used for mapping the virtual fiber adapter of the virtual IO server to the logical partition;
a judging module: and the method is used for judging whether the mapping of the virtual fiber adapter is successful.
Further, 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: the device comprises a module for judging whether the network area name exists, if so, an identification adding module is executed, and if not, a name creating module is executed;
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: for activating configuration and collecting configuration information to the fabric switch.
Further, the 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;
a disk mapping module: for mapping the newly created disk to a logical partition based on the fiber optic equipment identification.
Compared with the prior art, the invention has the beneficial effects that:
the method for automatically mounting the disk in the logical partition realizes that the Logical Partition (LPAR) automatically accesses the resources of the storage manager by increasing the management of the optical fiber switch and the physical memory, and a 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, reducing the maintenance cost and improving the execution efficiency.
Drawings
FIG. 1 is a block diagram of a system for automatically mounting disks in a logical partition;
FIG. 2 is a flow chart of a method for automatically mounting a disk by a logical partition;
FIG. 3 is a block diagram of an apparatus for automatically mounting a disk by a logical partition.
Detailed Description
The present invention will be further described with reference to the accompanying drawings and the detailed description, and it should be noted that any combination of the embodiments or technical features described below can be used to form a new embodiment without conflict.
As shown in fig. 1 and fig. 2, the present invention provides a method for automatically mounting a disk by a logical partition, including 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; the step S3 specifically includes the following sub-steps:
s31: searching a virtual optical fiber adapter of the logic partition;
s32: mapping a virtual fiber adapter of the virtual IO server to a virtual fiber adapter of the logical partition;
s33: and judging whether the mapping of the virtual fiber adapter is successful. The virtual IO server is referred to as VIOS, the steps are mainly to create a virtual adapter and perform mapping, create a virtual client FC adapter (virtual fiber adapter) on a logical partition, and create a server FC adapter on the VIOS; their FC adapters (FC HBAs) are then mapped.
The following key commands are mainly involved in the process of executing the steps: obtaining the FC adapter is performed at the VIOS: lsdev-dev fcs; performing a fetch at the VIOS of a FC adapter that may use the NPIV port: lsnports; the hardware number of fcs is acquired in VIOS execution: lscfg-l fcsO; obtaining the relationship of the FC device to wwpn is performed at VIOS: pcmpthquery wpn; and obtaining the hardware number of fscsi in VIOS execution: lscfg-l fsc 0.
S4: 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; 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 creates a new Zone based on the WWPN number of the logical partition and the physical storage, whose name is the combination of the names of the virtual machine and the physical storage. Step S4 specifically includes the following substeps:
s41: checking the state of the fiber switch, and if the state is normal, executing S42:
s42: judging whether the network area name exists, if so, executing an identification adding step, and if not, executing S43;
s43: creating a network area name and performing S44;
s44: adding the fiber optic equipment identification to the network area name and performing S45;
s45: judging whether a network area exists, if so, executing S47, and if not, executing S46;
s46: creating a network region and performing S47;
s47: judging whether the network area contains the network area name, if so, executing S49, and if not, executing S48;
s48: adding a network area name to the network area and performing S49;
s49: activate configuration and collect configuration information to the fabric switch.
S5: creating a disk in a storage manager according to a storage management specification; the SMIS tool is used for managing storage devices (EMC storage, NetApp storage and the like) of different manufacturers, and the creation, deletion, mapping, query and the like of the disk are realized.
The precondition comprises the following steps: the management program is installed and configured and can be accessed by telnet; the share storage pool and raid group have been planned ahead of time and the creation completed.
The key commands are involved: inquiring disk lun: get all-lun/get lun; looking up disk Lun mapping: a storagegroup-list; adding a disk lun mapping storage group-create; view host list port-list
S6: and mapping the disk to a physical server of the logical partition according to the optical fiber equipment identifier. The step S6 specifically includes the following sub-steps:
s61: judging whether the creation of the disk is successful, if so, executing the step S62;
s62: 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 step S64, and if not, executing a step S63;
s63: adding the fiber optic equipment identification to the storage manager;
s64: the newly created disk is mapped to a logical partition based on the fiber device identification.
The invention discloses a scheme for realizing NPTV automatic mount storage, and belongs to the field of cloud computing. Based on PowerVM NPIV, management of an optical fiber switch and a physical memory is added to realize that a Logical Partition (LPAR) automatically accesses resources of a storage manager, a user does not need to manually log in the optical fiber switch to configure a Zone, the Zone is also a network area, the probability of errors caused by manual configuration is greatly reduced through an automatic mounting storage mode, the maintenance cost is reduced, and the execution efficiency is improved.
The scheme mainly relates to a Power VM virtualization NPIV technology, and mainly details the calling principle of three parts, namely, a storage management information Initiative Specification (SMI-S) and an optical fiber switch, wherein the SMI-S defines a set of safe and reliable interfaces so that a storage management system can identify, classify and monitor storage resources in SAN.
Before the scheme is implemented, the fact that an optical fiber switch of a nanotube supports NPIV characteristics and a Power VM machine supports NPIV functions needs to be guaranteed; SMI-S memory management: the SMIS tool is used for managing storage devices (EMC storage, NetApp storage and the like) of different manufacturer types, and the creation, deletion, mapping, query and the like of a disk can be realized through an interface provided by a manufacturer. And (3) management of the optical fiber switch: the configuration of the storage network area, including the creation, deletion, query, Zone creation, deletion, query and the like of the alias is realized by receiving and managing the optical fiber switches of different manufacturer types. Management based on Power VM virtualization: the servers of the Power VMs are managed through the HMC management platform, and operations such as creating, deleting and mapping the virtual optical fiber adapters are achieved based on the technology of virtualizing the NPIV of the Power VMs. The nano-tube means unified management.
The invention discloses an electronic device comprising one or more processors, memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the programs comprising instructions for performing the above method, or the method of the invention is stored on a readable storage medium, and the method programs are executable by the processors.
As shown in FIG. 3, the present invention provides an apparatus for automatically mounting a disk in a logical partition, which includes the following modules:
a first creation module: creating a virtual fiber adapter for the client at the target 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; the adapter mapping module specifically comprises the following sub-modules:
the query module: a virtual fiber adapter for finding a logical partition;
a mapping module: the virtual fiber adapter is used for mapping the virtual fiber adapter of the virtual IO server to the logical partition;
a judging module: and the method is used for judging whether the mapping of the virtual fiber adapter is successful.
A first region creation module: the system comprises a virtual IO server, a configuration server and a management server, wherein the configuration server is used for establishing 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; 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: the device comprises a module for judging whether the network area name exists, if so, an identification adding module is executed, and if not, a name creating module is executed;
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: for activating configuration and collecting configuration information to the fabric switch.
A disk creation module: the storage manager is used for creating a disk in the storage manager according to the storage management specification;
a disk mapping module: and the mapping module is used for mapping the disk to the physical server of the logical partition according to the optical fiber equipment identifier. The disk mapping module specifically comprises 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;
a disk mapping module: for mapping the newly created disk to a logical partition based on the fiber optic equipment identification.
The above embodiments are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited thereby, and any insubstantial changes and substitutions made by those skilled in the art based on the present invention are within the protection scope of the present invention.

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
CN113821172A (en) * 2021-09-03 2021-12-21 济南浪潮数据技术有限公司 Storage volume capacity obtaining 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
US11500670B2 (en) Computing service with configurable virtualization control levels and accelerated launches
US20200019429A1 (en) Hot-plugging of virtual functions in a virtualized environment
US8898663B2 (en) Storage visibility in virtual environments
US8924499B2 (en) Operating system migration with minimal storage area network reconfiguration
US10148758B2 (en) Converged infrastructure and associated methods thereof
US10127065B2 (en) Method and apparatus of redundant path validation before provisioning
US8706859B2 (en) Method and apparatus of data center file system
US8510815B2 (en) Virtual computer system, access control method and communication device for the same
US10263907B2 (en) Managing virtual network ports
EP3811206A1 (en) Network-accessible computing service for micro virtual machines
JP4965743B2 (en) Retention of storage area network (“SAN”) access during operating system migration
US10235206B2 (en) Utilizing input/output configuration templates to reproduce a computing entity
US20190319846A1 (en) Automatically updating zone information in a storage area network
TW201624965A (en) ISCSI boot parameter deployment system and iSCSI boot parameter deployment method
US10296216B2 (en) Prioritizing dedicated host ports when N-port ID virtualization is enabled in a storage controller
CN107273044B (en) Method for automatically mounting disk by logical partition, electronic equipment and storage medium
US8838768B2 (en) Computer system and disk sharing method used thereby
US20170364285A1 (en) Management of storage replication consistency groups using automatic replication group identifiers
US9143410B1 (en) Techniques for monitoring guest domains configured with alternate I/O domains
CN104954392A (en) Cloud disk as well as realization method and realization device thereof
US11442626B2 (en) Network scaling approach for hyper-converged infrastructure (HCI) and heterogeneous storage clusters
US9740527B2 (en) Load distribution of logical switch routers in a distributed system
WO2023149887A1 (en) Configuring a quorum component on network storage
US20130179601A1 (en) Node provisioning of i/o module having one or more i/o devices

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