CN104102515A - Method and server for processing logical unit number of plug-in storage equipment - Google Patents
Method and server for processing logical unit number of plug-in storage equipment Download PDFInfo
- Publication number
- CN104102515A CN104102515A CN201410345553.0A CN201410345553A CN104102515A CN 104102515 A CN104102515 A CN 104102515A CN 201410345553 A CN201410345553 A CN 201410345553A CN 104102515 A CN104102515 A CN 104102515A
- Authority
- CN
- China
- Prior art keywords
- storage equipment
- external storage
- logical unit
- unit number
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
The invention provides a method, a server and a system for processing a logical unit number of plug-in storage equipment. The method includes searching a host corresponding to a globally unique name number of a host bus adapter card optical-fiber port connected with the plug-in storage equipment, and searching a small computer system interface corresponding to the host; scanning the storage equipment under the small computer system interface, and recognizing the logical unit number of the plug-in storage equipment. By the method, under a K-UNIX system, in the process of testing and implementing of the server, the LUN (logical unit number) of the plug-in storage equipment can be recognized under the system without restarting the host of the server after the server is connected with the plug-in storage equipment, and normal running of the system and services can be guaranteed.
Description
Technical field
The present invention relates to the crucial applied host machine of server and technical field of memory, particularly relate to method, server and system that a kind of K-UNIX of being applied to operating system is processed the logical unit number of external storage equipment.
Background technology
At present, some server hosts (such as the K1 of Langchao Tiansuo server) are when installing application, need to newly add Storage Mapping LUN (Logical Unit Number, logical unit number), and system can not be identified this LUN immediately and application is installed, general method need to restart server host rear system and can identify.But, while being mainly used in the basic core information platform of the lifeblood industries such as finance, telecommunications, the energy, traffic when server host, owing to concerning national economy security of operation, social safety and national strategy safety, in operational process, can not carry out operating system and restart.
Summary of the invention
The technical problem to be solved in the present invention is to provide a kind of method, server and system of processing the logical unit number of external storage equipment, to guarantee that server host system is at open state, and keeps, in the situation of the normal operation of business, can identifying and newly adding storage.
In order to solve the problems of the technologies described above, the invention provides a kind of method of processing the logical unit number of external storage equipment, be applied to K-UNIX operating system, comprising:
Search the corresponding main frame of global unique name font size of the host bus adaptor card fiber port that external storage equipment connects, and search the small computer system interface that described main frame is corresponding;
Scan the memory device under described small computer system interface, identify the logical unit number of described external storage equipment.
Further, said method also has feature below: after the logical unit number of the described external storage equipment of described identification, also comprise:
Search and export the logical unit number of described external storage equipment.
Further, said method also has feature below:
Described memory device comprises optical fiber memory device.
In order to address the above problem, the present invention also provides a kind of server, and K-UNIX operating system is installed, and wherein, comprising:
Search module, for searching the corresponding main frame of global unique name font size of the host bus adaptor card fiber port that external storage equipment connects, and search the small computer system interface that described main frame is corresponding;
Processing module, for scanning the memory device under described small computer system interface, identifies the logical unit number of described external storage equipment.
Further, above-mentioned server also has feature below:
Described processing module, also identify after the logical unit number of described external storage equipment for, search and export the logical unit number of described external storage equipment.
In order to address the above problem, the present invention also provides a kind of system of processing the logical unit number of external storage equipment, comprise, and for connecting the host bus adaptor card of external storage equipment and above-mentioned server, wherein,
Described server, for searching the corresponding main frame of global unique name font size of the host bus adaptor card fiber port that external storage equipment connects, and searches the small computer system interface that described main frame is corresponding; Scan the memory device under described small computer system interface, identify the logical unit number of described external storage equipment.
Further, said system also has feature below:
Described server, also identify after the logical unit number of described external storage equipment for, search and export the logical unit number of described external storage equipment.
Further, said system also has feature below:
Described memory device comprises optical fiber memory device.
To sum up, a kind of method, server and system of processing the logical unit number of external storage equipment provided by the invention, can realize under K-UNIX system, in server test and implementation process, after connecting external storage equipment, without restarting server host, just can under system, identify the LUN of external storage equipment, assurance system and business can normally be moved.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the method for the embodiment of the present invention a kind of logical unit number of processing external storage equipment.
Fig. 2 is the schematic diagram of the server of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, hereinafter in connection with accompanying drawing, embodiments of the invention are elaborated.It should be noted that, in the situation that not conflicting, the embodiment in the application and the feature in embodiment be combination in any mutually.
Fig. 1 is the process flow diagram of the method for the embodiment of the present invention a kind of logical unit number of processing external storage equipment, and as shown in Figure 1, the method for the present embodiment comprises the following steps:
Step 101, search corresponding hostx No. wwn;
External storage equipment is connected to after server HBA card by switch, and people is for recording wwn (World Wide Name, global unique name) number corresponding to HBA (Host Bus Adapter, host bus adaptor) card fiber port.
Memory device in the present embodiment comprises optical fiber memory device, for example, and tide AS600G3, EMC DMX3 etc.
In the present embodiment, server receives systool-c fc_host – v order, can under system, check each port information of sonet card, wherein Class Device (sorting device) is hostx, and port_name (port title) is corresponding No. wwn of hostx.
K-UNIX operating system is installed and moved to the server of the present embodiment.
Step 102, No. wwn corresponding SCSI of corresponding hostx of whois lookup (Small Computer System Interface, small computer system interface), can find that all HBA link the information such as the channxl of the memory device connecing (frequency), id (sign), lun.
In the present embodiment, system receives cat/proc/scsi/scsi order and just can check, memory device just can view the information of new connection memory device after connecting HBA card in the file of this order output, wherein Host:scsix is corresponding with hostx, can confirm that HBA card has connected memory device.
Step 103, server rescan the memory device under this scsi interface, identification LUN;
In the present embodiment, server receives after echo " C T L " >/sys/class/scsi_host/hostx/scan order, memory device under scsi interface corresponding to main frame that the WWN of the HBA card fiber port that connects of scanning external storage equipment is corresponding, other scsi interface equipment are not scanned, LUN that like this can accurate scanning external storage equipment identification, and original memory device is not exerted an influence, the definitely normal operation of the system that can guarantee, storage data are perfectly safe.
Wherein, frequency (Channel) numbering that C is HBA; T is SCSI target (target) ID; L is LUN.
Step 104, whois lookup output newly add LUN;
In the present embodiment, server can be found and newly be added LUN by fdisk – l order.
Fdisk carries out the order of disk management under system, fdisk – l can list all disks (comprising external storage equipment) under system, newly adds after disk is identified and can be found and newly be added disk by this order.
In 2.6 kernels, (K-UNIX kernel is 2.6.28) has dynamic LUN scan mechanism.HBA drives under export to/sys of scan function catalogue, can be used to rescan the memory device under this scsi interface.
The system of the LUN of the processing external storage equipment of the embodiment of the present invention comprises: server (for example K1 of Langchao Tiansuo server); HBA card; Optical fiber switch; Storage system.Wherein:
The K1 of Langchao Tiansuo server, is First Domestic minicomputer, and K-UNIX operating system is installed, for identifying newly adding storage LUN.
HBA card, is installed in the K1 of Langchao Tiansuo server host IO (input and output) Switching Module PCIE (up-to-date bus and interface standard) slot, for connecting external storage equipment.
Optical fiber switch, for connecting HBA card and memory device.
Storage system, for installing application.
Fig. 2 is the schematic diagram of the server of the embodiment of the present invention, and as shown in Figure 2, the server in the present embodiment is provided with K-UNIX operating system, can comprise:
Search module, for searching the main frame corresponding to WWN of the HBA card fiber port that external storage equipment connects, and search the SCSI that described main frame is corresponding;
Processing module, for scanning the memory device under described SCSI, identifies the LUN of described external storage equipment.
In a preferred embodiment, described processing module, identifying after the logical unit number of described external storage equipment can also be for, searches and export the LUN of described external storage equipment.
The method that the embodiment of the present invention proposes, can realize under the K1K-UNIX of Langchao Tiansuo system without restarting server and can identify external storage equipment and newly add LUN, has fast, safety, the advantage such as stable.
The embodiment of the present invention is by using the LUN dynamic scan mechanism under K-UNIX kernel, and HBA card drives under export to/sys of scan function catalogue, can be used to rescan the memory device under this scsi interface, and under system, identifies laggard line operate.
For guaranteeing system safety operation, during memory device in scanning under scsi interface, only for newly adding interface corresponding to storage LUN, scan, other scsi interface equipment are not scanned, LUN that like this can accurate scanning external storage equipment identification, and original memory device is not exerted an influence, if scanning mistake, may cause system crash, the definitely normal operation of the system that can guarantee like this, storage data are perfectly safe.
One of ordinary skill in the art will appreciate that all or part of step in said method can come instruction related hardware to complete by program, described program can be stored in computer-readable recording medium, as ROM (read-only memory), disk or CD etc.Alternatively, all or part of step of above-described embodiment also can realize with one or more integrated circuit.Correspondingly, each the module/unit in above-described embodiment can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
These are only the preferred embodiments of the present invention; certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection domain of the appended claim of the present invention.
Claims (8)
1. process a method for the logical unit number of external storage equipment, be applied to K-UNIX operating system, comprising:
Search the corresponding main frame of global unique name font size of the host bus adaptor card fiber port that external storage equipment connects, and search the small computer system interface that described main frame is corresponding;
Scan the memory device under described small computer system interface, identify the logical unit number of described external storage equipment.
2. the method for claim 1, is characterized in that: after the logical unit number of the described external storage equipment of described identification, also comprise:
Search and export the logical unit number of described external storage equipment.
3. method as claimed in claim 1 or 2, is characterized in that:
Described memory device comprises optical fiber memory device.
4. a server, is provided with K-UNIX operating system, it is characterized in that, comprising:
Search module, for searching the corresponding main frame of global unique name font size of the host bus adaptor card fiber port that external storage equipment connects, and search the small computer system interface that described main frame is corresponding;
Processing module, for scanning the memory device under described small computer system interface, identifies the logical unit number of described external storage equipment.
5. server as claimed in claim 4, is characterized in that:
Described processing module, also identify after the logical unit number of described external storage equipment for, search and export the logical unit number of described external storage equipment.
6. a system of processing the logical unit number of external storage equipment, comprises, for connecting host bus adaptor card and the server as described in claim 4 or 5 of external storage equipment, it is characterized in that,
Described server, for searching the corresponding main frame of global unique name font size of the host bus adaptor card fiber port that external storage equipment connects, and searches the small computer system interface that described main frame is corresponding; Scan the memory device under described small computer system interface, identify the logical unit number of described external storage equipment.
7. system as claimed in claim 6, is characterized in that:
Described server, also identify after the logical unit number of described external storage equipment for, search and export the logical unit number of described external storage equipment.
8. the system as described in claim 6 or 7, is characterized in that:
Described memory device comprises optical fiber memory device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410345553.0A CN104102515A (en) | 2014-07-18 | 2014-07-18 | Method and server for processing logical unit number of plug-in storage equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410345553.0A CN104102515A (en) | 2014-07-18 | 2014-07-18 | Method and server for processing logical unit number of plug-in storage equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104102515A true CN104102515A (en) | 2014-10-15 |
Family
ID=51670688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410345553.0A Pending CN104102515A (en) | 2014-07-18 | 2014-07-18 | Method and server for processing logical unit number of plug-in storage equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104102515A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108845904A (en) * | 2018-06-20 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of new hard disk method and device of addition |
CN112463670A (en) * | 2020-11-25 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Storage controller access method and related device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6115772A (en) * | 1998-09-18 | 2000-09-05 | International Business Machines, Inc. | System and method for host expansion and connection adaptability for a SCSI storage array |
CN1542630A (en) * | 2003-04-30 | 2004-11-03 | 日商.c原科技股份有限公司 | Usb storage device and program |
CN1545033A (en) * | 2003-11-14 | 2004-11-10 | 清华大学 | LUN CACHE method for FC-SAN memory system |
CN101452369A (en) * | 2007-11-29 | 2009-06-10 | 国际商业机器公司 | Method and system for controlling logical unit of USB mass storage device |
CN203561993U (en) * | 2013-11-29 | 2014-04-23 | 安徽易商数码科技有限公司 | Database server of redundant structure |
-
2014
- 2014-07-18 CN CN201410345553.0A patent/CN104102515A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6115772A (en) * | 1998-09-18 | 2000-09-05 | International Business Machines, Inc. | System and method for host expansion and connection adaptability for a SCSI storage array |
CN1542630A (en) * | 2003-04-30 | 2004-11-03 | 日商.c原科技股份有限公司 | Usb storage device and program |
CN1545033A (en) * | 2003-11-14 | 2004-11-10 | 清华大学 | LUN CACHE method for FC-SAN memory system |
CN101452369A (en) * | 2007-11-29 | 2009-06-10 | 国际商业机器公司 | Method and system for controlling logical unit of USB mass storage device |
CN203561993U (en) * | 2013-11-29 | 2014-04-23 | 安徽易商数码科技有限公司 | Database server of redundant structure |
Non-Patent Citations (2)
Title |
---|
FLOSSDOC: "Sys/class/scsi_host/hostH/scan", 《HTTP://WIKI.DEBIAN.ORG.HK/W/FILE:/SYS/CLASS/SCSI_HOST/HOSTH/SCAN》 * |
PANTDK: "How to find WWN for /dev/sdc", 《HTTP://WWW.LINUXQUESTIONS.ORG/QUESTIONS/LINUX-SERVER-73/HOW-TO-FIND-WWN-FOR-DEV-SDC-917269/》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108845904A (en) * | 2018-06-20 | 2018-11-20 | 郑州云海信息技术有限公司 | A kind of new hard disk method and device of addition |
CN112463670A (en) * | 2020-11-25 | 2021-03-09 | 苏州浪潮智能科技有限公司 | Storage controller access method and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8364465B2 (en) | Optimizing a language/media translation map | |
CN104077083A (en) | New added storage method, device and system | |
US11762994B2 (en) | System and method of inspecting archive slices for malware | |
US10733008B2 (en) | Method, device and computer readable storage medium for managing a virtual machine | |
US8510746B2 (en) | Obtaining and storing replaceable resource information for a unique resource | |
US9720755B2 (en) | Information processing device | |
CN108874441A (en) | A kind of board configuration method, device, server and storage medium | |
CN104903865A (en) | Restoring a previous version of a virtual machine image | |
US8086778B2 (en) | Filter driver to enumerate smartcard nodes for plug and play | |
CN104102515A (en) | Method and server for processing logical unit number of plug-in storage equipment | |
CN103761202B (en) | A kind of data storage node hard disk position identification method and system | |
CN103019847A (en) | Method and system for migrating data of virtual machine | |
CN102662617A (en) | Implementing method for VGA (video graphics array) signal switching in KVM (kernel-based virtual machine) | |
CN103714179A (en) | Multi-language supporting method and system for system blog | |
CN106030544B (en) | Method for detecting memory of computer equipment and computer equipment | |
CN107818061B (en) | Data bus and management bus for associated peripheral devices | |
US8769173B2 (en) | Systems and methods for detecting supported small form-factor pluggable (SFP) devices | |
KR101889222B1 (en) | Portable storage device perfoming a malignant code detection and method for the same | |
US11662927B2 (en) | Redirecting access requests between access engines of respective disk management devices | |
CN113010885B (en) | Method and device for detecting kernel thread disguised with start address | |
CN109189339B (en) | Automatic configuration cache acceleration method under storage system | |
CN105260132A (en) | Method and device for hot loading disk filter drive | |
CN109710495A (en) | A kind of information processing method and electronic equipment | |
CN101321030B (en) | Write-enabling control method and device | |
CN112860489B (en) | Equipment configuration recovery method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20141015 |