CN109284209A - The automated testing method of different type Vdisk under a kind of Mcs system - Google Patents

The automated testing method of different type Vdisk under a kind of Mcs system Download PDF

Info

Publication number
CN109284209A
CN109284209A CN201811038485.8A CN201811038485A CN109284209A CN 109284209 A CN109284209 A CN 109284209A CN 201811038485 A CN201811038485 A CN 201811038485A CN 109284209 A CN109284209 A CN 109284209A
Authority
CN
China
Prior art keywords
volume
newly
increased
preset
vdisk
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
Application number
CN201811038485.8A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811038485.8A priority Critical patent/CN109284209A/en
Publication of CN109284209A publication Critical patent/CN109284209A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Factory Administration (AREA)

Abstract

The present invention provides the automated testing method of different type Vdisk under Mcs system a kind of, the inventory of initialization creation preset quantity volume;The current quantity and state for having volume of display;Create the new volume of preset quantity;The quantity and state of all volumes after display is newly-increased;Judge whether the quantity of volume increases preset quantity;Judge whether the id of volume is identical as default respectively preset id one by one.The present invention realizes creation and maximum different types of vdisk volumes of verification, proofreads to information such as 1024 No. id rolled up, capacity, name, types, if wrong, program is exited and reported an error.System can realize creation and maximum different types of vdisk volumes of check and correction, so that the time for testing the function be greatly saved, improve efficiency.

Description

The automated testing method of different type Vdisk under a kind of Mcs system
Technical field
The present invention relates to the automatic tests of different type Vdisk under field of data storage more particularly to Mcs system a kind of Method.
Background technique
Mcs system is a kind of virtual storage system, and Storage Virtualization refers to a kind of logically to storage resource progress It is abstract, will not because of physical equipment limitation and be restricted, can reach and eliminate the differentiation between different type resource Effect allows manager to think that managed resource is all derived from the same resource pool equipment, and provides more abundant and first Into superior functional properties.
The hard disk (hard drive space of control cabinet and extension cabinet) of the storage of Mcs system is combined into different types of Raid or divides Cloth Raid, each Raid or distribution Raid are exactly a Mdisk;One piece of hard disk of itself storage can also form one A Mdisk, storage pool are made of one or more Mdisk, and each Mdisk is divided into the extent data of same size Block is stored in storage pool, volume be by marked off in storage pool Lai extent data chunk at.
Volume is used by being mapped to host for client, and volume is divided into base volume again and from simplification volume, automatic simplify configuration is one The technology of the capacity distribution of Xiang Xin, will not disposably distribute sufficiently large memory space to application program, but be answered according to this With practically necessary capacity, several times, it is a small amount of every time distribute to application program, when the generated data of this application increase Long, when the volume space of distribution is inadequate, storage system can supplement distribution a part storage from the storage pool of rear end again Space.If the information for creating volume is incorrect, it will lead to product function decline, cause customer experience bad.
Summary of the invention
In order to overcome the deficiencies in the prior art described above, the present invention provide different type Vdisk under a kind of Mcs system from Dynamicization test method, method include:
The inventory of initialization creation preset quantity volume;
The current quantity and state for having volume of display;
Create the new volume of preset quantity;
The quantity and state of all volumes after display is newly-increased;
Judge whether the quantity of volume increases preset quantity;
Judge whether the id of volume is identical as default respectively preset id one by one.
Preferably, after step judges whether the quantity of volume increases preset quantity further include:
When the total amount that should be after the total amount currently rolled up is lower than newly-increased volume, detect whether newly-increased volume is configured to volume inventory In;The state of the newly-increased volume of detection whether be can access status;
When newly-increased volume is not configured in volume inventory, newly-increased volume is configured in volume inventory, opens newly-increased volume as that can deposit Take state;
Judge whether the quantity of volume increases preset quantity again;If so, judge one by one volume id whether with it is default Respective preset id is identical.
Preferably, after step judges whether the quantity of volume increases preset quantity further include:
When the total amount that should be after the total amount currently rolled up is higher than newly-increased volume, the id of all newly-increased volumes in detection volume inventory will The id of newly-increased volume is compared with the id of default newly-increased volume;
When the id of the id and default newly-increased volume that detect newly-increased volume are not inconsistent, the newly-increased volume not being inconsistent is rejected from volume inventory;
Whether the total amount rolled up before judgement is identical as the total amount that should be after newly-increased volume, such as identical, whether judges the id rolled up one by one It is identical as default respectively preset id.
Preferably, after step judges whether the id of volume is identical as default respective preset id one by one further include:
After the id of all volumes is identical as preset volume id, judge to create Volume Space unit for b, still non-gb;
If the bodge of newly-increased volume is b, conversion is gb.
Preferably, after step judges whether the id of volume is identical as default respective preset id one by one further include:
Whether the total capacity after judging all volume adductions is consistent with setting value;
When total capacity after such as all volume adductions is inconsistent with setting value, judgement increases the capacity of volume newly and presets newly-increased one by one Whether the capacity of volume is identical;Different volume, and the newly-increased volume of capacity based on default newly-increased volume are rejected, the capacity of newly-increased volume is matched Set the total capacity of volume.
Preferably, after step judges whether the id of volume is identical as default respective preset id one by one further include:
Judge whether the name of volume is identical as default file label word, reports an error if not identical.
Preferably, after step judges whether the id of volume is identical as default respective preset id one by one further include:
Whether the newly-increased volume of judgement is from simplification volume;
If newly-increased volume is that the warning value of the newly-increased volume is compared with default warning value from simplification volume, Judge whether consistent;It reports an error if inconsistent.
Preferably, if newly-increased volume is base volume, prompt information is issued, prompting newly-increased volume is base volume, and prompts to replace For from simplification volume.
As can be seen from the above technical solutions, the invention has the following advantages that
When the present invention supports that maximum 1024 types rolled up, and rolled up of creation are common volume for the Mcs storage system cluster, It is uniformly configured to from simplification volume, if manual creation 1024 and different types of vdisk volumes and having to its information and artificial carrying out one One check and correction will expend the very long time, and the present invention uses to realize creation and maximum different types of vdisk volumes of verification Python language writes corresponding vdisk.py program automatic running.To 1024 No. id rolled up, capacity, name, types etc. Information is proofreaded, if wrong, program is exited and reported an error.System can realize creation and the maximum different types of vdisk of check and correction Volume improves efficiency so that the time for testing the function be greatly saved.
Detailed description of the invention
In order to illustrate more clearly of technical solution of the present invention, attached drawing needed in description will be made below simple Ground introduction, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill For personnel, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the automated testing method flow chart of different type Vdisk under Mcs system;
Fig. 2 is the automated testing method embodiment flow chart of different type Vdisk under Mcs system.
Specific embodiment
The present invention provides the automated testing method of different type Vdisk under Mcs system a kind of, as shown in Figure 1, method packet It includes:
S1, the inventory of initialization creation preset quantity volume;
S2 shows the current quantity and state for having volume;
S3 creates the new volume of preset quantity;
S4, the quantity and state of all volumes after display is newly-increased;
S5, judges whether the quantity of volume increases preset quantity;
S6 judges whether the id of volume is identical as default respectively preset id one by one.
It in order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below will be with specific Examples and drawings, the technical solution protected to the present invention are clearly and completely described, it is clear that implementation disclosed below Example is only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiment in this patent, the common skill in this field Art personnel all other embodiment obtained without making creative work belongs to the model of this patent protection It encloses.
In embodiment provided by the invention, as shown in Fig. 2, the inventory of initialization 1000 volumes of creation;Display is current There are the quantity and state of volume;Create N number of new volume;The quantity and state of all volumes after display is newly-increased;Judging the quantity of volume is It is no to increase preset quantity;Judge whether the id of volume is identical as default respectively preset id one by one.
If realized within hardware, the present invention relates to a kind of devices, such as can be used as processor or integrated circuit dress It sets, such as IC chip or chipset.Alternatively or additionally, if realized in software or firmware, the technology can Realize at least partly by computer-readable data storage medium, including instruction, when implemented, make processor execute one or More above methods.For example, computer-readable data storage medium can store the instruction such as executed by processor.
When the total amount that should be after the total amount currently rolled up is lower than newly-increased volume, detect whether newly-increased volume is configured to volume inventory In;The state of the newly-increased volume of detection whether be can access status;
When newly-increased volume is not configured in volume inventory, newly-increased volume is configured in volume inventory, opens newly-increased volume as that can deposit Take state;Judge whether the quantity of volume increases preset quantity again;If so, judge one by one volume id whether with it is default each It is identical from preset id.If certain a roll of id and preset id is not identical, issues id error message or system and automatically will not The id of identical volume is modified as preset id.
When the total amount that should be after the total amount currently rolled up is higher than newly-increased volume, the id of all newly-increased volumes in detection volume inventory will The id of newly-increased volume is compared with the id of default newly-increased volume;
When the id of the id and default newly-increased volume that detect newly-increased volume are not inconsistent, the newly-increased volume not being inconsistent is rejected from volume inventory;
Whether the total amount rolled up before judgement is identical as the total amount that should be after newly-increased volume, such as identical, whether judges the id rolled up one by one It is identical as default respectively preset id.If certain a roll of id and preset id is not identical, id error message or system are issued Automatically the id of different volume is modified as preset id.
In embodiment provided by the invention, after step judges whether the id of volume is identical as default respective preset id one by one Further include: after the id of all volumes is identical as preset volume id, judge to create Volume Space unit for b, still non-gb;If newly-increased The bodge of volume is b, then conversion is gb.The Volume Space unit of system is unified in this way.
The computer program product of computer-readable medium can form a part, may include packaging material.Data Computer-readable medium may include computer storage medium, such as random access memory (RAM), read-only memory (ROM), nonvolatile RAM (NVRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), flash memory, magnetic or Optical data carrier and analog.In some embodiments, a kind of manufacture product may include that one or more computers can Read storage media.
In embodiment provided by the invention, after step judges whether the id of volume is identical as default respective preset id one by one Further include: whether the total capacity after judging all volume adductions is consistent with setting value;Total capacity and setting after such as all volume adductions When being worth inconsistent, whether the capacity of the newly-increased volume of judgement is identical as the capacity of default newly-increased volume one by one;Reject different volume, and base In the newly-increased volume of capacity of default newly-increased volume, by the capacity configuration of newly-increased volume to the total capacity of volume.
In embodiment provided by the invention, after step judges whether the id of volume is identical as default respective preset id one by one Further include: judge whether the name of volume is identical as default file label word, reports an error if not identical.Subsequent inspection is then continued to execute if they are the same It surveys.
Method and device of the invention may be achieved in many ways.For example, can by software, hardware, firmware or Person's software, hardware, firmware any combination realize method and device of the invention.The step of for the method it is above-mentioned Sequence is merely to be illustrated, and the step of method of the invention is not limited to sequence described in detail above, unless with other sides Formula illustrates.In addition, in some embodiments, the present invention can be also embodied as recording program in the recording medium, these Program includes for realizing machine readable instructions according to the method for the present invention.Thus, the present invention also covers storage for executing The recording medium of program according to the method for the present invention.
In embodiment provided by the invention, after step judges whether the id of volume is identical as default respective preset id one by one Further include: whether the newly-increased volume of judgement is from simplification volume;If newly-increased volume is from simplification volume, by the warning value of the newly-increased volume It is compared, judges whether consistent with default warning value;It reports an error if inconsistent.
If newly-increased roll up is base volume, prompt information is issued, prompting newly-increased volume is base volume, and prompts to be changed to and simplify certainly Volume.
When the present invention supports that maximum 1024 types rolled up, and rolled up of creation are common volume for the Mcs storage system cluster, It is uniformly configured to from simplification volume, if manual creation 1024 and different types of vdisk (volume) and having artificial progress to its information Proofread one by one, the very long time will be expended, the present invention in order to realize creation and the maximum different types of vdisk (volume) of verification, Corresponding vdisk.py program automatic running is write using python language.No. id, the capacity, name, class that 1024 are rolled up The information such as type are proofreaded, if wrong, program is exited and reported an error.System can realize creation and check and correction is maximum different types of Vdisk volumes, so that the time for testing the function be greatly saved, improve efficiency.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (8)

1. the automated testing method of different type Vdisk under a kind of Mcs system, which is characterized in that method includes:
The inventory of initialization creation preset quantity volume;
The current quantity and state for having volume of display;
Create the new volume of preset quantity;
The quantity and state of all volumes after display is newly-increased;
Judge whether the quantity of volume increases preset quantity;
Judge whether the id of volume is identical as default respectively preset id one by one.
2. the automated testing method of different type Vdisk under Mcs system according to claim 1, which is characterized in that step Suddenly after judging whether the quantity of volume increases preset quantity further include:
When the total amount that should be after the total amount currently rolled up is lower than newly-increased volume, detect whether newly-increased volume is configured in volume inventory;Inspection Survey newly-increased volume state whether be can access status;
When newly-increased volume is not configured in volume inventory, newly-increased volume is configured in volume inventory, opens newly-increased volume as shape can be accessed State;
Judge whether the quantity of volume increases preset quantity again;If so, judge one by one volume id whether with it is default respective Preset id is identical.
3. the automated testing method of different type Vdisk under Mcs system according to claim 1, which is characterized in that step Suddenly after judging whether the quantity of volume increases preset quantity further include:
When the total amount that should be after the total amount currently rolled up is higher than newly-increased volume, the id of all newly-increased volumes, will be increased newly in detection volume inventory The id of volume is compared with the id of default newly-increased volume;
When the id of the id and default newly-increased volume that detect newly-increased volume are not inconsistent, the newly-increased volume not being inconsistent is rejected from volume inventory;
Judgement before roll up total amount it is whether identical as the total amount that should be after newly-increased volume, such as it is identical, judge one by one volume id whether in advance If respective preset id is identical.
4. the automated testing method of different type Vdisk under Mcs system according to claim 1, which is characterized in that step Suddenly after judging whether the id of volume is identical as default respective preset id one by one further include:
After the id of all volumes is identical as preset volume id, judge to create Volume Space unit for b, still non-gb;
If the bodge of newly-increased volume is b, conversion is gb.
5. the automated testing method of different type Vdisk under Mcs system according to claim 1, which is characterized in that step Suddenly after judging whether the id of volume is identical as default respective preset id one by one further include:
Whether the total capacity after judging all volume adductions is consistent with setting value;
When total capacity after such as all volume adductions is inconsistent with setting value, judge the capacity of newly-increased volume one by one and preset to increase volume newly Whether capacity is identical;Different volume, and the newly-increased volume of capacity based on default newly-increased volume are rejected, the capacity configuration of newly-increased volume is arrived The total capacity of volume.
6. the automated testing method of different type Vdisk under Mcs system according to claim 1, which is characterized in that step Suddenly after judging whether the id of volume is identical as default respective preset id one by one further include:
Judge whether the name of volume is identical as default file label word, reports an error if not identical.
7. the automated testing method of different type Vdisk under Mcs system according to claim 1, which is characterized in that step Suddenly after judging whether the id of volume is identical as default respective preset id one by one further include:
Whether the newly-increased volume of judgement is from simplification volume;
If newly-increased volume is that the warning value of the newly-increased volume is compared with default warning value from simplification volume, judgement It is whether consistent;It reports an error if inconsistent.
8. the automated testing method of different type Vdisk under Mcs system according to claim 7, which is characterized in that
If newly-increased volume is base volume, prompt information is issued, prompting newly-increased volume is base volume, and prompts to be changed to from simplification volume.
CN201811038485.8A 2018-09-06 2018-09-06 The automated testing method of different type Vdisk under a kind of Mcs system Pending CN109284209A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811038485.8A CN109284209A (en) 2018-09-06 2018-09-06 The automated testing method of different type Vdisk under a kind of Mcs system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811038485.8A CN109284209A (en) 2018-09-06 2018-09-06 The automated testing method of different type Vdisk under a kind of Mcs system

Publications (1)

Publication Number Publication Date
CN109284209A true CN109284209A (en) 2019-01-29

Family

ID=65184117

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811038485.8A Pending CN109284209A (en) 2018-09-06 2018-09-06 The automated testing method of different type Vdisk under a kind of Mcs system

Country Status (1)

Country Link
CN (1) CN109284209A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558264A (en) * 2018-12-12 2019-04-02 浪潮(北京)电子信息产业有限公司 A kind of volume information method of calibration, system and the associated component of virtual volume
CN111880742A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Distributed storage volume creation method, system, device and computer medium
CN112906363A (en) * 2021-02-05 2021-06-04 广东智能财税数据科技发展有限公司 Report adding method, device, equipment and storage medium
CN112906362A (en) * 2021-02-05 2021-06-04 广东智能财税数据科技发展有限公司 Report summarizing method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070214338A1 (en) * 2006-03-08 2007-09-13 Hitachi, Ltd. Incorporation: Optimization method for storage region allocation, and management computer for implementing the same
US7467276B1 (en) * 2005-10-25 2008-12-16 Network Appliance, Inc. System and method for automatic root volume creation
CN107301022A (en) * 2017-06-27 2017-10-27 北京溢思得瑞智能科技研究院有限公司 A kind of storage access method and system based on container technique
CN107463338A (en) * 2017-08-15 2017-12-12 郑州云海信息技术有限公司 A kind for the treatment of method and apparatus of logical volume

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7467276B1 (en) * 2005-10-25 2008-12-16 Network Appliance, Inc. System and method for automatic root volume creation
US20070214338A1 (en) * 2006-03-08 2007-09-13 Hitachi, Ltd. Incorporation: Optimization method for storage region allocation, and management computer for implementing the same
CN107301022A (en) * 2017-06-27 2017-10-27 北京溢思得瑞智能科技研究院有限公司 A kind of storage access method and system based on container technique
CN107463338A (en) * 2017-08-15 2017-12-12 郑州云海信息技术有限公司 A kind for the treatment of method and apparatus of logical volume

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558264A (en) * 2018-12-12 2019-04-02 浪潮(北京)电子信息产业有限公司 A kind of volume information method of calibration, system and the associated component of virtual volume
CN111880742A (en) * 2020-07-29 2020-11-03 北京浪潮数据技术有限公司 Distributed storage volume creation method, system, device and computer medium
CN111880742B (en) * 2020-07-29 2022-06-17 北京浪潮数据技术有限公司 Distributed storage volume creation method, system, device and computer medium
CN112906363A (en) * 2021-02-05 2021-06-04 广东智能财税数据科技发展有限公司 Report adding method, device, equipment and storage medium
CN112906362A (en) * 2021-02-05 2021-06-04 广东智能财税数据科技发展有限公司 Report summarizing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109284209A (en) The automated testing method of different type Vdisk under a kind of Mcs system
CN104050045B (en) Virtual resource allocation method and device based on disk I/O
CN106469103B (en) The maintaining method and device of hard disk
CN109117195A (en) A kind of method, device and equipment of UEFI mode adjustment boot sequence
US10324794B2 (en) Method for storage management and storage device
CN109324927A (en) A kind of virtual machine backup method and system based on distributed memory system
US11442636B2 (en) Method, apparatus for managing the redundant array of independent disks (RAID) and related computer readable medium
CN107153571A (en) A kind of dispositions method and device of virtual management node
CN104486255A (en) Service resource dispatching method and device
CN110618918A (en) Control method, control device and control equipment for hard disk status lamp in PCH
CN107766180A (en) Management method, device and the readable storage medium storing program for executing of storage medium
CN108388490A (en) A kind of method and system of test high-end server memory
CN109918246A (en) A kind of disk state detection method, system, terminal and storage medium
CN107885624A (en) Control the method, apparatus and server of BIOS Debugging message output
CN106201340A (en) A kind of store the method for data, storage device, electronic equipment
CN106372160A (en) Distributive database and management method
CN106201346B (en) A kind of data processing method and storage equipment
CN112187933A (en) Method and system for monitoring services in multi-architecture cloud platform
CN105930189A (en) Server BIOS automatic refreshing and version control method
CN109558264A (en) A kind of volume information method of calibration, system and the associated component of virtual volume
CN107391140B (en) Picture display method and system of storage device
US9244713B1 (en) Method and system for sorting and bucketizing alerts in a virtualization environment
EP3607452A1 (en) Apparatus and method of behavior forecasting in a computer infrastructure
CN109086156A (en) A kind of server removes wrong method, apparatus, equipment and computer readable storage medium
CN111026656A (en) Automatic testing system, method, equipment and storage medium for distributed storage

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190129

RJ01 Rejection of invention patent application after publication