CN104468836B - Virtual disk creation method and device and distributed memory system - Google Patents

Virtual disk creation method and device and distributed memory system Download PDF

Info

Publication number
CN104468836B
CN104468836B CN201410836481.XA CN201410836481A CN104468836B CN 104468836 B CN104468836 B CN 104468836B CN 201410836481 A CN201410836481 A CN 201410836481A CN 104468836 B CN104468836 B CN 104468836B
Authority
CN
China
Prior art keywords
information
virtual disk
resource
resource pool
address
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.)
Expired - Fee Related
Application number
CN201410836481.XA
Other languages
Chinese (zh)
Other versions
CN104468836A (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.)
Chengdu Chi Chi Technology Co., Ltd.
Original Assignee
Chengdu Chi Chi 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 Chengdu Chi Chi Technology Co Ltd filed Critical Chengdu Chi Chi Technology Co Ltd
Priority to CN201410836481.XA priority Critical patent/CN104468836B/en
Publication of CN104468836A publication Critical patent/CN104468836A/en
Application granted granted Critical
Publication of CN104468836B publication Critical patent/CN104468836B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0662Virtualisation aspects
    • G06F3/0665Virtualisation aspects at area level, e.g. provisioning of virtual or logical volumes
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The present invention provides a kind of virtual disk creation method and devices and distributed memory system, belong to field of distributed storage, and the virtual disk creation method includes obtaining creation instruction, and the creation instruction carries the demand information for the virtual disk to be created;According to the demand information in the virtual disk index information pre-established, chooses and configure index information with the matched target virtual disk of the demand information;According to the corresponding configuration resource of information of configuration resource associated by target virtual disk configuration index information, virtual disk is created.This method passes through in the virtual disk index information that pre-establishes in distributed memory system, it chooses the matched target virtual disk of the demand information obtained with virtual disk creating device and configures index information, the mode that the information acquisition configuration resource for the configuration resource that the associated creation virtual disk of index information needs is configured according to virtual disk, realizes quickly creation virtual disk.

Description

Virtual disk creation method and device and distributed memory system
Technical field
The present invention relates to field of distributed storage, in particular to virtual disk creation method and device and distribution Storage system.
Background technique
Distributed memory system provides the storage of information by internet for enterprises and individuals, reads, the service such as downloading. Have the characteristics that safety and stability, mass memory.Distributed memory system is more square for traditional physical storage devices Just, user does not need the physical storage devices of storage capsule information to take with oneself.But equally can by internet, easily from Virtual disk in distributed memory system reads the information oneself stored.And the virtual magnetic of existing distributed memory system During the creation of disk, needs user oneself to give virtual disk Match IP Address manually, cause the creation efficiency of virtual disk not It is high.
Summary of the invention
The purpose of the present invention is to provide a kind of virtual disk creation method and devices and distributed memory system, to improve During the creation of the virtual disk of existing distributed memory system, need user oneself manual to virtual disk Match IP Location, the problem for causing the creation of virtual disk inefficient.
The present invention is implemented as follows:
In a first aspect, a kind of virtual disk creation method provided in an embodiment of the present invention, is applied to distributed memory system, The distributed memory system includes virtual disk creating device, and the virtual disk creation method includes:
The virtual disk creating device obtains creation instruction, and the creation instruction carries the virtual disk to be created Demand information;
According to the demand information in the virtual disk index information pre-established, selection is matched with the demand information Target virtual disk configure index information, what virtual disk configuration index information was associated with that creation virtual disk needs matches Set the information of resource;
The corresponding configuration resource of information of configuration resource associated by index information is configured according to the target virtual disk, Create virtual disk.
With reference to first aspect, the embodiment of the invention provides the first embodiments of first aspect, wherein the distribution Storage system includes that multiple memory resource pools and multiple IP address resource pools, the memory resource pool are stored with storage resource, The IP address resource pool is stored with IP address resource, and each memory resource pool is respectively arranged with number, each IP address resource Pond is respectively arranged with number;The information of the configuration resource includes the number information and IP address resource pool of memory resource pool Number information, the target virtual disk according to selection configure the information of configuration resource associated by index information, wound Build virtual disk, comprising:
The associated storage of number information with the memory resource pool is obtained according to the number information of the memory resource pool Resource;
It is obtained according to the number information of the IP address resource pool associated with the number information of the IP address resource pool IP address resource;
Virtual disk is created according to the storage resource and the address resource.
With reference to first aspect, the embodiment of the invention provides second of embodiments of first aspect, wherein the distribution Storage system includes multiple memory resource pools and multiple port address resource pools, and the memory resource pool is stored with storage money Source, the port address resource pool are stored with port address resource, and each memory resource pool is respectively arranged with number, each port Address resource pond is respectively arranged with number;The information of the configuration resource includes number information and the port of memory resource pool The number information of location resource pool, the target virtual disk according to selection configure configuration resource associated by index information Information, create virtual disk, comprising:
The associated storage of number information with the memory resource pool is obtained according to the number information of the memory resource pool Resource;
It obtains according to the number information of the port address resource pool and is closed with the number information of the port address resource pool The port address resource of connection;
According to the storage resource and the port address asset creation virtual disk.
With reference to first aspect or second of embodiment of the first embodiment of first aspect or first aspect, this hair Bright embodiment provides the third embodiment of first aspect, wherein the demand information include in the demand information extremely One of service type information including the virtual disk to be created, regional information less, it is described to be believed according to the demand Breath is chosen and is indexed with the matched target virtual disk configuration of the demand information in the virtual disk index information pre-established Information, comprising:
According to the regional information for the virtual disk to be created and/or service type information in the virtual magnetic pre-established The regional information and/or the matched mesh of service type information with the virtual disk to be created are chosen in disk index information It marks virtual disk and configures index information.
Second aspect, the embodiment of the invention provides a kind of creating devices of virtual disk, are applied to distributed storage system System, the virtual disk creating device, comprising:
Creation instruction obtaining unit, for obtaining creation instruction, the creation instruction carries the virtual disk to be created Demand information;
Configure index information obtaining unit, for according to the demand information in the virtual disk index information pre-established In, it chooses and configures index information with the matched target virtual disk of the demand information, the virtual disk configures index information It is associated with the information for the configuration resource that creation virtual disk needs;
Virtual disk creating unit, for according to configuration resource associated by target virtual disk configuration index information The corresponding configuration resource of information, create virtual disk.
In conjunction with second aspect, the embodiment of the invention provides the first embodiments of second aspect, wherein the distribution Storage system includes that multiple memory resource pools and multiple IP address resource pools, the memory resource pool are stored with storage resource, The IP address resource pool is stored with IP address resource, and each memory resource pool is respectively arranged with number, each IP address resource Pond is respectively arranged with number;The information of the configuration resource includes the number information and IP address resource pool of memory resource pool Number information, the virtual disk creating unit, comprising:
First storage resource obtains subelement, for obtaining and the storage according to the number information of the memory resource pool The associated storage resource of the number information of resource pool;
IP address resource obtains subelement, obtains with the IP for the number information according to the IP address resource pool The associated IP address resource of the number information of location resource pool.
In conjunction with second aspect, the embodiment of the invention provides second of embodiments of second aspect, wherein the distribution Storage system includes multiple memory resource pools and multiple port address resource pools, and the memory resource pool is stored with storage money Source, the port address resource pool are stored with port address resource, and each memory resource pool is respectively arranged with number, each port Address resource pond is respectively arranged with number;The information of the configuration resource includes number information and the port of memory resource pool The number information of location resource pool, the virtual disk creating unit, comprising:
Second storage resource obtains subelement, for obtaining and the storage according to the number information of the memory resource pool The associated storage resource of the number information of resource pool;
Port address resource obtain subelement, for according to the port address resource pool number information obtain with it is described The associated port address resource of the number information of port address resource pool.
In conjunction with the first of second aspect or second aspect embodiment or second of embodiment of second aspect, this hair Bright embodiment provides the third embodiment of second aspect, wherein the demand information include in the demand information extremely One of service type information including the virtual disk to be created, regional information less, the configuration index information obtains Obtain unit, comprising:
First configuration index information obtains subelement, for being built according to the regional information for the virtual disk to be created in advance The matched target of regional information with the virtual disk to be created is chosen in the vertical virtual disk index information Virtual disk configures index information;
Second configuration index information obtain bullet cloud, for according to the service type information for the virtual disk to be created pre- It is chosen in the virtual disk index information first established matched with the service type information of the virtual disk to be created The target virtual disk configures index information;
Third configures index information and obtains subelement, for the regional information and service class according to the virtual disk to be created Type information is chosen and the regional information of the virtual disk to be created in the virtual disk index information pre-established Index information is configured with the matched target virtual disk of service type information.
The third aspect, the embodiment of the invention provides a kind of distributed memory system, the distributed memory system includes Virtual disk creating device, memory resource pool, IP address resource pool and port resource pond;
The virtual disk creating device, for obtaining creation instruction, the creation instruct carry to be created it is virtual The demand information of disk;According to the demand information in the virtual disk index information pre-established, choose and the demand The target virtual disk of information matches configures index information, and the virtual disk configuration index information is associated with creation virtual disk The information of the configuration resource needed;According to the information pair of configuration resource associated by target virtual disk configuration index information The configuration resource answered creates virtual disk.
Virtual disk creation method provided in an embodiment of the present invention, passes through the void pre-established in distributed memory system In quasi- disk index information, chooses the matched target virtual disk of the demand information obtained with virtual disk creating device and match Index information is set, the information acquisition for the configuration resource that the associated creation virtual disk of index information needs is configured according to virtual disk The mode for configuring resource, realizes quickly creation virtual disk, combinational logic layer is configured further through introducing, by underlying resource pond It is decoupled with service logic, in the case of realizing same asset pond, supports more more flexible service applications by introducing configuration group Logical layer is also decoupled by underlying resource pond and service logic, can not be to upper layer industry when realizing adjustment underlying resource pond Business model and logic impact, and during the creation so as to improve the virtual disk of existing distributed memory system, need User oneself is wanted to give virtual disk Match IP Address manually, the problem for causing the creation of virtual disk inefficient greatly mentions High user experience.
Detailed description of the invention
Fig. 1 is the structural block diagram of distributed memory system provided in an embodiment of the present invention;
Fig. 2 is the flow chart of virtual disk creation method provided in an embodiment of the present invention;
Fig. 3 is the hum pattern of the configuration resource provided in an embodiment of the present invention pre-established;
Fig. 4 is a kind of structural block diagram of virtual disk creating device provided in an embodiment of the present invention;
Fig. 5 is the structural block diagram of another virtual disk creating device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present invention, technical solution in the embodiment of the present invention carries out clear, complete Ground description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Usually exist The component of the embodiment of the present invention described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiment of the present invention provided in the accompanying drawings below Range, but it is merely representative of selected embodiment of the invention.Based on the embodiment of the present invention, those skilled in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Referring to Fig. 1, virtual disk creation method provided by the embodiment of the present invention, applied to distribution as shown in Figure 1 It include virtual disk creating device, multiple IP address resource pools, multiple ports in the distributed memory system in storage system Resource pool and multiple memory resource pools.The memory resource pool is stored with storage resource, and the IP address resource pool is stored with IP address resource, the port resource pond are stored with port address resource.
Referring to Fig. 2, a kind of virtual disk creation method provided in an embodiment of the present invention, is applied to distributed storage system System, the distributed memory system includes virtual disk creating device, which comprises
Step S101: the virtual disk creating device obtains creation instruction, and the creation instruction, which carries, to be created The demand information of virtual disk.
In practice process, the creation instruction that virtual disk creating device obtains can be issued on computers by user, Correspondingly, sending creation instruction for the ease of user, it is additionally provided with instruction sending unit on that computer, described instruction is sent Process communication between unit and this virtual disk creating device.
Step S102: it according to the demand information in the virtual disk index information pre-established, chooses and the need The target virtual disk of information matches is asked to configure index information, the virtual disk configuration index information is associated with creation virtual magnetic The information for the configuration resource that disk needs.
In practice process, when virtual disk creating device provided in this embodiment obtains the desire carried for sending instruction When the demand information of the virtual disk of creation, for the ease of quickly creating virtual disk by the demand information, in systems, in advance First establishing has virtual disk index information, and the virtual disk index information is associated in advance with demand information.When virtual disk is created After building device acquisition demand information, by being matched with virtual disk index information, it can be obtained creation virtual disk needs Configuration resource information.
And distributed storage system provided in this embodiment includes multiple memory resource pools and multiple IP address resource pools, institute It states memory resource pool and is stored with storage resource, the IP address resource pool is stored with IP address resource, and every for the ease of distinguishing A resource pool, as a kind of preferable embodiment, each memory resource pool is respectively arranged with number, each IP address resource pool It is respectively arranged with number.Correspondingly, the information of the configuration resource includes the number information and IP address money of memory resource pool The number information in source pond.
Step S103: the information according to configuration resource associated by target virtual disk configuration index information is corresponding Resource is configured, virtual disk is created.
During creating virtual disk, in order to improve the applicability of virtual disk provided in this embodiment, virtual magnetic Disk is divided into the virtual disk of the virtual disk for exclusively enjoying IP address and shared IP address.Exclusively enjoy the virtual disk of IP address by IP Location distinguishes, then described to match according to the target virtual disk during in creation, this exclusively enjoys the virtual disk of IP address The corresponding configuration resource of information of configuration resource associated by index information is set, creates virtual disk, including according to the storage The number information of resource pool obtains the associated storage resource of number information with the memory resource pool;It is provided according to the IP address The number information in source pond obtains the associated IP address resource of number information with the IP address resource pool;It is provided according to the storage Source and the address resource create virtual disk.
And the virtual disk of shared IP address is distinguished by port, then in the virtual magnetic for creating shared IP address During disk, the information of configuration resource associated by the target virtual disk configuration index information according to selection, Virtual disk is created, obtains including the number information according to the memory resource pool and is closed with the number information of the memory resource pool The storage resource of connection;It obtains according to the number information of the port address resource pool and believes with the number of the port address resource pool Cease associated port address resource;According to the storage resource and the port address asset creation virtual disk.
And in practice process, the type of service that the demand information includes at least the virtual disk to be created is believed Breath, one of regional information, i.e., it can also be regional information that demand information, which can be service type information, can also be with It both, then, can root during information creating virtual disk according to demand including service type information or including regional information According to for example for developing, the service type informations such as administration create virtual disk, can also be only according to regional informations such as Guangzhou, Hong Kong Create virtual disk, can also not only according to service type information, but also according to regional information create virtual disk.
For further instruction virtual disk creation method provided in this embodiment, as shown in figure 3, when the present embodiment mentions When the demand information in user instruction that the virtual disk creating device of confession obtains is " Guangzhou " this regional information, then preparatory It is matched in the virtual disk index information of foundation, obtains storing with the information of the associated configuration resource of the regional information The number 1 of resource pool, the number 3 of IP address resource pool and the number 2 in port resource pond, then further according to the memory resource pool Number, the number of IP address resource pool and the number in port resource pond, obtain storage resource, IP address resource and port Address resource completes the creation of virtual disk.It certainly, can also by the table when demand information is " research and development " or " administration " To obtain the information of configuration resource.
Virtual disk creation method provided in an embodiment of the present invention, passes through the void pre-established in distributed memory system In quasi- disk index information, chooses the matched target virtual disk of the demand information obtained with virtual disk creating device and match Index information is set, the information acquisition for the configuration resource that the associated creation virtual disk of index information needs is configured according to virtual disk The mode for configuring resource, realizes quickly creation virtual disk, combinational logic layer is configured further through introducing, by underlying resource pond It is decoupled with service logic, in the case of realizing same asset pond, supports more more flexible service applications by introducing configuration group Logical layer is also decoupled by underlying resource pond and service logic, can not be to upper layer industry when realizing adjustment underlying resource pond Business model and logic impact, and during the creation so as to improve the virtual disk of existing distributed memory system, need User oneself is wanted to give virtual disk Match IP Address manually, the problem for causing the creation of virtual disk inefficient greatly mentions High user experience.
As described in Figure 3, the creating device of a kind of virtual disk provided in an embodiment of the present invention, described device include that creation refers to Enable obtaining unit 201, configuration index information obtaining unit 202 and virtual disk creating unit 203.The virtual disk wound The realization principle for building device is identical with preceding method, and the embodiment of the present invention does not refer to place, may refer to preceding method embodiment Middle corresponding portion.
Creation instruction obtaining unit 201, for obtaining creation instruction, the creation instruction carries the virtual magnetic to be created The demand information of disk.
Index information obtaining unit 202 is configured, for indexing according to the demand information in the virtual disk pre-established In information, chooses and configure index information, the virtual disk configuration index with the matched target virtual disk of the demand information The information for the configuration resource that information association has creation virtual disk to need.
And in practice process, the demand information include in the demand information include at least it is described to be created it is virtual One of the service type information of disk, regional information, then correspondingly, the configuration index information obtaining unit 202 includes:
First configuration index information obtains subelement, for being built according to the regional information for the virtual disk to be created in advance The matched target of regional information with the virtual disk to be created is chosen in the vertical virtual disk index information Virtual disk configures index information;
Second configuration index information obtain bullet cloud, for according to the service type information for the virtual disk to be created pre- It is chosen in the virtual disk index information first established matched with the service type information of the virtual disk to be created The target virtual disk configures index information;
Third configures index information and obtains subelement, for the regional information and service class according to the virtual disk to be created Type information is chosen and the regional information of the virtual disk to be created in the virtual disk index information pre-established Index information is configured with the matched target virtual disk of service type information.
Virtual disk creating unit 203, for according to configuration associated by target virtual disk configuration index information The corresponding configuration resource of the information of resource creates virtual disk.During the creation of virtual disk, pass through for the ease of creation What IP address distinguished exclusively enjoys the virtual disk of IP address, and the virtual disk creating unit 203 includes the first storage resource Subelement is obtained, obtains for the number information according to the memory resource pool and is associated with the number information of the memory resource pool Storage resource;IP address resource obtain subelement, for according to the IP address resource pool number information obtain with it is described The associated IP address resource of the number information of IP address resource pool.
And for the ease of creating the virtual disk of shared IP address, the virtual disk creating unit 203 is deposited including second It stores up resource and obtains subelement, obtain for the number information according to the memory resource pool and believe with the number of the memory resource pool Cease associated storage resource;
Port address resource obtain subelement, for according to the port address resource pool number information obtain with it is described The associated port address resource of the number information of port address resource pool.
As shown in Figure 1, a kind of distributed memory system provided in an embodiment of the present invention, the distributed memory system include Virtual disk creating device 300, multiple memory resource pools 302, multiple IP address resource pools 301 and multiple port resource ponds 303;
The virtual disk creating device 300, for obtaining creation instruction, the creation instruction carries the void to be created The demand information of quasi- disk;According to the demand information in the virtual disk index information pre-established, choose and the need The target virtual disk of information matches is asked to configure index information, the virtual disk configuration index information is associated with creation virtual magnetic The information for the configuration resource that disk needs;According to the information of configuration resource associated by target virtual disk configuration index information Corresponding configuration resource creates virtual disk.
Distributed memory system provided in an embodiment of the present invention, it is virtual by what is pre-established in distributed memory system In disk index information, chooses the matched target virtual disk of the demand information obtained with virtual disk creating device and configure Index information is matched according to the information acquisition that virtual disk configures the configuration resource that the associated creation virtual disk of index information needs The mode for setting resource, realize quickly creation virtual disk, further through introduce configure combinational logic layer, by underlying resource pond with Service logic decoupling in the case of realizing same asset pond, supports more more flexible service applications by introducing configuration combination Logical layer is also decoupled by underlying resource pond and service logic, can not be to upper-layer service when realizing adjustment underlying resource pond Model and logic impact, and during the creation so as to improve the virtual disk of existing distributed memory system, need User oneself gives virtual disk Match IP Address manually, and the problem for causing the creation of virtual disk inefficient greatly improves User experience.
Referring to fig. 4, another virtual disk creating device 500 that the embodiment of the present invention also provides, comprising: processor 501, Memory 502, bus 503 and communication interface 504, the processor 501, communication interface 504 and memory 502 pass through bus 503 connections;Processor 501 is for executing the executable module stored in memory 502, such as computer program.
Wherein, memory 502 may include high-speed random access memory (RAM:Random Access Memory), It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely A few communication interface 504 (can be wired or wireless) is realized logical between the system network element and at least one other network element Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 503 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, number According to bus, control bus etc..Only to be indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus convenient for indicating Or a type of bus.
Wherein, memory 502 is for storing program, and the processor 501 executes the journey after receiving and executing instruction Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle In device 501, or realized by processor 501.
Processor 501 may be a kind of IC chip, the processing capacity with signal.It is above-mentioned during realization Each step of method can be completed by the integrated logic circuit of the hardware in processor 501 or the instruction of software form.On The processor 501 stated can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (DSP), dedicated Integrated circuit (ASIC), ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor Logical device, discrete hardware components.It may be implemented or execute disclosed each method, step and the logic in the embodiment of the present invention Block diagram.General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with this hair The step of method disclosed in bright embodiment, can be embodied directly in hardware decoding processor and execute completion, or be handled with decoding Hardware and software module combination in device execute completion.Software module can be located at random access memory, flash memory, read-only memory, In the storage medium of this fields such as programmable read only memory or electrically erasable programmable memory, register maturation.This is deposited Storage media is located at memory 502, and processor 501 reads the information in memory 502, and the step of the above method is completed in conjunction with its hardware Suddenly.
It should be noted that the technical effect of device provided by the embodiment of the present invention, realization principle and generation is with before It is identical to state embodiment of the method, to briefly describe, Installation practice part does not refer to place, can refer to phase in preceding method embodiment Answer content.
It should be noted that in several embodiments provided herein, it should be understood that disclosed system, dress It sets and method, may be implemented in other ways.The apparatus embodiments described above are merely exemplary, for example, institute The division of unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation.
It should be noted that the unit as illustrated by the separation member may or may not be it is physically separate , component shown as a unit may or may not be physical unit, it can and it is in one place, or can also To be distributed over a plurality of network elements.Some or all of unit therein can be selected to realize this reality according to the actual needs Apply the purpose of a scheme.In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, It is also possible to each unit to physically exist alone, can also be integrated in one unit with two or more units.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (5)

1. a kind of virtual disk creation method, which is characterized in that be applied to distributed memory system, the distributed memory system Including virtual disk creating device, the virtual disk creation method includes:
The virtual disk creating device obtains creation instruction, and the creation instruction carries the demand for the virtual disk to be created Information;
According to the demand information in the virtual disk index information pre-established, choose and the matched mesh of the demand information It marks virtual disk and configures index information, the virtual disk configuration index information is associated with the configuration money that creation virtual disk needs The information in source;
According to the corresponding configuration resource of information of configuration resource associated by target virtual disk configuration index information, creation Virtual disk;The distributed storage system includes multiple memory resource pools, multiple IP address resource pools and multiple port address Resource pool, the memory resource pool are stored with storage resource, and the IP address resource pool is stored with IP address resource, the port Address resource pond is stored with port address resource, and each memory resource pool is respectively arranged with number, each IP address resource pool point It is not provided with number, each port address resource pool is respectively arranged with number;
When creation exclusively enjoys the virtual disk of IP address, the information of the configuration resource include the number information of memory resource pool with And the number information of IP address resource pool, the target virtual disk according to selection configures matches associated by index information The information of resource is set, virtual disk is created, comprising:
The associated storage resource of number information with the memory resource pool is obtained according to the number information of the memory resource pool;
It is obtained with the associated IP of number information of the IP address resource pool according to the number information of the IP address resource pool Location resource;
Virtual disk is created according to the storage resource and the address resource;
When creating the virtual disk of shared IP address, the information of the configuration resource include the number information of memory resource pool with And the number information of port address resource pool, the target virtual disk according to selection configure associated by index information The information of resource is configured, virtual disk is created, comprising:
The associated storage resource of number information with the memory resource pool is obtained according to the number information of the memory resource pool;
It is obtained according to the number information of the port address resource pool associated with the number information of the port address resource pool Port address resource;
According to the storage resource and the port address asset creation virtual disk.
2. virtual disk creation method according to claim 1, which is characterized in that the demand information includes the demand It is described according to institute including at least one of the service type information of the virtual disk to be created, regional information in information Demand information is stated in the virtual disk index information pre-established, is chosen and the matched target virtual disk of the demand information Configure index information, comprising:
According to the regional information for the virtual disk to be created and/or service type information in the virtual magnetic fake pre-established It is chosen in fuse breath empty with the matched target of the regional information of the virtual disk to be created and/or service type information Quasi- disk configures index information.
3. a kind of creating device of virtual disk, which is characterized in that be applied to distributed memory system, the virtual disk creation Device, comprising:
Creation instruction obtaining unit, for obtaining creation instruction, the creation instruction carries the need for the virtual disk to be created Seek information;
Configure index information obtaining unit, for according to the demand information in the virtual disk index information pre-established, It chooses and configures index information, the virtual disk configuration index information association with the matched target virtual disk of the demand information The information for the configuration resource for thering is creation virtual disk to need;
Virtual disk creating unit, for the letter according to configuration resource associated by target virtual disk configuration index information Corresponding configuration resource is ceased, virtual disk is created;The distributed storage system includes multiple memory resource pools and multiple IP Location resource pool, the memory resource pool are stored with storage resource, and the IP address resource pool is stored with IP address resource, Mei Gecun Storage resource pool is respectively arranged with number, and each IP address resource pool is respectively arranged with number;It is described configuration resource information include The number information of memory resource pool and the number information of IP address resource pool, the virtual disk creating unit, comprising:
First storage resource obtain subelement, for creation exclusively enjoy the virtual disk of IP address when, according to the storage resource The number information in pond obtains the associated storage resource of number information with the memory resource pool;
IP address resource obtains subelement, obtains for the number information according to the IP address resource pool and provides with the IP address The associated IP address resource of the number information in source pond;
Second storage resource obtains subelement, when for sharing the virtual disk of IP address in creation, according to the storage resource The number information in pond obtains the associated storage resource of number information with the memory resource pool;
Port address resource obtains subelement, for obtaining and the port according to the number information of the port address resource pool The associated port address resource of the number information in address resource pond.
4. virtual disk creating device according to claim 3, which is characterized in that the demand information includes the demand Including at least one of the service type information of the virtual disk to be created, regional information, the configuration rope in information Draw information obtainment unit, comprising:
First configuration index information obtains subelement, for being pre-established according to the regional information of the virtual disk to be created The matched destination virtual of regional information with the virtual disk to be created is chosen in the virtual disk index information Disk configures index information;
Second configuration index information obtains bullet cloud, for being built according to the service type information for the virtual disk to be created in advance It is chosen in the vertical virtual disk index information matched described with the service type information of the virtual disk to be created Target virtual disk configures index information;
Third configures index information and obtains subelement, for being believed according to the regional information and type of service of the virtual disk to be created Cease the regional information and industry chosen in the virtual disk index information pre-established with the virtual disk to be created The target virtual disk of service type information matches configures index information.
5. a kind of distributed memory system, which is characterized in that the distributed memory system includes virtual disk creating device, deposits Store up resource pool, IP address resource pool and port resource pond;
The virtual disk creating device, for obtaining creation instruction, the creation instruction carries the virtual disk to be created Demand information;According to the demand information in the virtual disk index information pre-established, choose and the demand information Matched target virtual disk configures index information, and the virtual disk configuration index information is associated with creation virtual disk needs Configuration resource information;Information according to configuration resource associated by target virtual disk configuration index information is corresponding Resource is configured, virtual disk is created;The distributed storage system include multiple memory resource pools, multiple IP address resource pools and Multiple port address resource pools, the memory resource pool are stored with storage resource, and the IP address resource pool is stored with IP address Resource, the port address resource pool are stored with port address resource, and each memory resource pool is respectively arranged with number, each IP Address resource pond is respectively arranged with number, and each port address resource pool is respectively arranged with number;
When creation exclusively enjoys the virtual disk of IP address, the information of the configuration resource include the number information of memory resource pool with And the number information of IP address resource pool, the target virtual disk according to selection configures matches associated by index information The information of resource is set, virtual disk is created, comprising:
The associated storage resource of number information with the memory resource pool is obtained according to the number information of the memory resource pool;
It is obtained with the associated IP of number information of the IP address resource pool according to the number information of the IP address resource pool Location resource;
Virtual disk is created according to the storage resource and the address resource;
When creating the virtual disk of shared IP address, the information of the configuration resource include the number information of memory resource pool with And the number information of port address resource pool, the target virtual disk according to selection configure associated by index information The information of resource is configured, virtual disk is created, comprising:
The associated storage resource of number information with the memory resource pool is obtained according to the number information of the memory resource pool;
It is obtained according to the number information of the port address resource pool associated with the number information of the port address resource pool Port address resource;
According to the storage resource and the port address asset creation virtual disk.
CN201410836481.XA 2014-12-29 2014-12-29 Virtual disk creation method and device and distributed memory system Expired - Fee Related CN104468836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410836481.XA CN104468836B (en) 2014-12-29 2014-12-29 Virtual disk creation method and device and distributed memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410836481.XA CN104468836B (en) 2014-12-29 2014-12-29 Virtual disk creation method and device and distributed memory system

Publications (2)

Publication Number Publication Date
CN104468836A CN104468836A (en) 2015-03-25
CN104468836B true CN104468836B (en) 2019-01-18

Family

ID=52914187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410836481.XA Expired - Fee Related CN104468836B (en) 2014-12-29 2014-12-29 Virtual disk creation method and device and distributed memory system

Country Status (1)

Country Link
CN (1) CN104468836B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106973119A (en) * 2017-05-17 2017-07-21 国网山东省电力公司信息通信公司 A kind of electric power enterprise storage resource management system
CN107463338A (en) * 2017-08-15 2017-12-12 郑州云海信息技术有限公司 A kind for the treatment of method and apparatus of logical volume
CN109739440B (en) * 2018-12-28 2022-06-07 武汉市烽视威科技有限公司 Distributed shared storage method, storage medium, electronic device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510143A (en) * 2009-03-13 2009-08-19 杭州华三通信技术有限公司 Storage space dynamic assignment method, system and storage apparatus
CN102662727A (en) * 2012-04-05 2012-09-12 北京天地云箱科技有限公司 Virtual machine creating method and virtual machine creating device
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103440113A (en) * 2013-09-16 2013-12-11 北京搜狐新媒体信息技术有限公司 Disk IO (Input/output) resource allocation method and device
CN104142853A (en) * 2014-08-12 2014-11-12 华为技术有限公司 Virtual machine storage resource deployment method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970581B (en) * 2013-01-24 2017-09-12 国际商业机器公司 The method and apparatus for creating virtual resource bag

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510143A (en) * 2009-03-13 2009-08-19 杭州华三通信技术有限公司 Storage space dynamic assignment method, system and storage apparatus
CN102662727A (en) * 2012-04-05 2012-09-12 北京天地云箱科技有限公司 Virtual machine creating method and virtual machine creating device
CN102799464A (en) * 2012-06-25 2012-11-28 北京奇虎科技有限公司 Virtual machine creation method, virtual machine creation system, virtual machine resetting method and virtual machine resetting system
CN103440113A (en) * 2013-09-16 2013-12-11 北京搜狐新媒体信息技术有限公司 Disk IO (Input/output) resource allocation method and device
CN104142853A (en) * 2014-08-12 2014-11-12 华为技术有限公司 Virtual machine storage resource deployment method and device

Also Published As

Publication number Publication date
CN104468836A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN103365725B (en) Method and system for dynamic allocation of workload deployment units across a plurality of clouds
CN105706402B (en) Method for increasing the 3rd layer of longest prefix match scale
CN107580083A (en) A kind of method and system of container IP address distribution
CN108614726A (en) Virtual machine creation method and device
WO2017036346A1 (en) Method and device for determining deployment need for point of interest
CN104468836B (en) Virtual disk creation method and device and distributed memory system
CN105490910B (en) Network communication method and client
CN104461698A (en) Dynamic virtual disk mounting method, virtual disk management device and distributed storage system
CN109995814A (en) Moving method and device, communication equipment, the storage medium of cloud host resource
CN109639455A (en) A kind of network management and system of container cloud platform
CN107511337A (en) Goods sorting system data processing method, device and electronic equipment
CN106372977B (en) A kind of processing method and equipment of virtual account
CN106250202B (en) The device and method of virtual machine is opened in a kind of cloud platform automation
CN109558191A (en) A kind of method, apparatus, storage medium and computer equipment configuring the page
CN109471725A (en) Resource allocation methods, device and server
CN104331496B (en) Picture sharing method and equipment
CN109787938A (en) Realize the method, apparatus and computer readable storage medium of access virtual private cloud
CN109995816A (en) Information introduction method, device and communication equipment based on cloud computing platform
CN110839007B (en) Cloud network security processing method and device and computer storage medium
CN104618231B (en) Deep packet identification method, device and system in the Wi-fi systems of high in the clouds
CN107807840A (en) A kind of equipment direction connection method and device applied to virtual machine network
US10311557B2 (en) Automated tonal balancing
CN106341498A (en) Network address based locating method and device and IP segment data storage method and device
CN104461699A (en) Virtual host creating method and device and distributed storage system
CN110417856B (en) Capacity expansion method, device, equipment and storage medium for multi-active load balancing application

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20171129

Address after: 610000 Chengdu City, Sichuan, Chengdu, China (Sichuan) free trade test zone, Chengdu high tech Zone, Tianfu Sanjie No. 219, 2 building

Applicant after: Chengdu Chi Chi Technology Co., Ltd.

Address before: 610000 Chengdu province high tech Zone, East Street, No. 76, grass layer, layer 4, No.

Applicant before: CHENGDU ZHIYUN SCIENCE & TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190118

Termination date: 20191229

CF01 Termination of patent right due to non-payment of annual fee