CN105450754B - A kind of method of physical machine and the mutually shared cloud disk of virtual machine - Google Patents

A kind of method of physical machine and the mutually shared cloud disk of virtual machine Download PDF

Info

Publication number
CN105450754B
CN105450754B CN201510868855.0A CN201510868855A CN105450754B CN 105450754 B CN105450754 B CN 105450754B CN 201510868855 A CN201510868855 A CN 201510868855A CN 105450754 B CN105450754 B CN 105450754B
Authority
CN
China
Prior art keywords
cloud disk
virtual machine
disk
cloud
machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510868855.0A
Other languages
Chinese (zh)
Other versions
CN105450754A (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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201510868855.0A priority Critical patent/CN105450754B/en
Publication of CN105450754A publication Critical patent/CN105450754A/en
Application granted granted Critical
Publication of CN105450754B publication Critical patent/CN105450754B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to cloud storage technical field of virtualization, the method for especially a kind of physical machine and the mutually shared cloud disk of virtual machine.The present invention is based on cloud platforms to build Storage Virtualization environment;Cloud disk is created based on Storage Virtualization;If user uses cloud disk carry to virtual machine, cloud disk is shared to virtual machine to user and physical machine uses;If user issues out cloud disk, user logs in volume by personal desktop computer or laptop, and uses after formatting.The present invention solve the problems, such as cloud platform can not achieve the mutually shared cloud disk of physical machine and virtual machine, user carry PC think shared data to cloud platform virtual machine is not convenient enough, virtual machine network exception when operation maintenance personnel cannot upload the tool of positioning Network Abnormal the problems such as;It can be applied in the information sharing of cloud platform and client personal computer.

Description

A kind of method of physical machine and the mutually shared cloud disk of virtual machine
Technical field
The present invention relates to cloud storage technical field of virtualization, especially a kind of physical machine and virtual machine mutually share cloud disk Method.
Background technique
As education cloud application is more and more extensive, the scene as teacher shares personal information on church is seen everywhere, and Traditional mode is exactly that the shared disk of Windows or the outer net address of file, shared cloud disk are supplied to student's access, is used More new mode is exactly that cloud disk is shared between virtual machine and virtual machine, following problem:
It provides cloud disk shared function first is that being confined to cloud platform, can only realize that virtual machine and virtual machine share cloud disk, It can not achieve and exchange shared cloud disk between physical machine and virtual machine, can not realize and share cloud disk between physical machine and physical machine.
Second is that the Network Abnormal of discovery virtual machine, user wants useful positioning tool to put on a virtual machine, but looks for Less than good method.
It is tested third is that Test Engineer wants that the small tool that oneself or Developmental Engineer are developed is placed on virtual machine When, it is necessary to it is shared by other network tools, when needing to share to more virtual machines, working efficiency and its low.
In order to improve the shared shared range areas of cloud disk, the data for effectively carrying out physical machine and virtual machine cloud disk mode are handed over Mutually, the method for needing a kind of physical machine and the mutually shared cloud disk of virtual machine, is realized between multiple virtual machines and multiple physical machines altogether Cloud disk is enjoyed, and Test Engineer's working efficiency for testing virtual machine is effectively provided.
Summary of the invention
Present invention solves the technical problem that being to provide the method for a kind of physical machine and the mutually shared cloud disk of virtual machine, solve Physical machine and virtual machine mutually shared cloud disk the problem of, virtual machine Network Abnormal user position tool cannot be placed on virtual machine Upper, Test Engineer tests the problems such as Virtual Machine Worker low efficiency.
The technical solution that the present invention solves above-mentioned technical problem is:
The method includes the following steps:
Step 1: cloud platform builds Storage Virtualization environment;
Step 2: creation cloud disk
Step 3: if thening follow the steps 3 to physical machine use, if thening follow the steps 9 to virtual machine use;
Step: 4: publication cloud disk;
Step 5: setting cloud disk access authority;
Step 6: PC (physical machine) logs in cloud disk;
Step 7: data are stored by PC;
Step 8: if shared cloud disk thens follow the steps 5 to other PCs (physical machine) use;If shared cloud disk gives it He thens follow the steps 9 at virtual machine use;
Step 9: carry cloud disk is to virtual machine;
Step 10: data are stored by virtual machine;
Step 11: if shared cloud disk thens follow the steps 12 to other PCs (physical machine) use;If shared cloud disk is given Other virtual machine uses then follow the steps 9;
Step 12: if cloud disk, which is not issued, thens follow the steps 4;If cloud disk, which has been issued, thens follow the steps 5.
The cloud platform build Storage Virtualization environment the following steps are included:
1) physical machine volume operation PV is carried out to local disk or logical unit number LUN block equipment
2) storage volume group VG is carried out to the PV again;It is exactly the new block device that so storage volume group VG, which manages memory space,.
The creation cloud disk is:
1) destination node is selected to carry out creation cloud disk;
2) logical volume LV is created based on storage volume group VG on the target node;
3) logical volume is made to be in unactivated state, all calculate nodes can check the presence of logical volume by volume group VG;
The publication cloud disk is that cloud disk is added by object machine Target as an independent logical unit number LUN;
The setting cloud disk access authority is the access control policy that object machine Target is arranged, as only allowed user The access of PC IP address allows the PC IP network section of user to access.
It is that user passes through ISCSI client discovery object machine Target that the PC (physical machine), which logs in cloud disk, Logical unit number LUN list, and be connected to logical unit number LUN belonging to cloud disk, the at this time PC (physical machine) of user It can see new disk, if disk is unformatted, user can normal use after being formatted to it.
The carry cloud disk is as follows to virtual machine process:
1) logical volume is activated in the calculate node where virtual machine, makes its available mode, and other calculate nodes are kept The unactivated state logical volume;
2) logical volume is mounted on virtual machine, and it is exactly cloud disk that virtual machine, which defaults it, and can be written and read.
The present invention provides physical machine and virtual machine mutually shared cloud disk, effectively solves virtual machine and object by ISCSI agreement The problem of reason machine application data interaction, avoids the Network Abnormal user of virtual machine from position tool cannot being put asking on a virtual machine Topic, while also improving the working efficiency that Test Engineer tests virtual machine.The present invention, which solves cloud platform, can not achieve physical machine PC, which is carried, with the mutually shared cloud disk of virtual machine, user thinks that shared data is not convenient enough, virtual to the virtual machine of cloud platform Operation maintenance personnel cannot upload the problems such as tool of positioning Network Abnormal problem when machine Network Abnormal;It can be applied to cloud platform and user In the information sharing of PC.
Detailed description of the invention
The following further describes the present invention with reference to the drawings:
Fig. 1 is the method for the present invention flow chart;
Fig. 2 is deployment diagram of the present invention.
Specific embodiment
As shown in FIGS. 1 and 2 the method for the present invention implementation process is as follows:
1, cloud platform builds Storage Virtualization environment;
/ * *
* cloud platform builds Storage Virtualization environment
* result is built in@return boolean return
*/
public boolean init(){
return Environment.init();
}
2, cloud disk is created
/ * *
* cloud disk is created
*@param name cloud disk title
*@param type cloud disk type
*@return String cloud disk work D
*/
public String CreateVolume (String name, int type){
return VolumeGroup.create (name, type);
}
3, cloud disk is issued;
/ * *
* cloud disk is issued
*@param volumeId cloud disk work D
*@return String LUNiqn
*/
public String volume2Lun(String volumeId){
return TgtAdmin.volume2Lun (volume work d);
}
4, cloud disk access authority is set;
/ * *
*, cloud disk access authority is set
*@param iqn ISCSI Qualified Name
* result is arranged in@return boolean
*/
public String setLunAuth(String iqn){
return TgtAdmin.setLunAuth(iqn);
}
5, PC (physical machine) logs in cloud disk;
/ * *
* PC (physical machine) logs in cloud disk
*@param iqn ISCSI Qualified Name
*@return boolean login result
*/
public boolean loginLun(String iqn){
return TgtAdmin.loginLun(iqn);
}
6, user stores data by PC
7, cloud disk is shared
/ * *
* cloud disk is shared
*@param volumeId cloud disk work D
*@param obj ectIds object work D gathers
*@return boolean returns to shared result
*/
Public String share (String volumeId,List<String>objectIds){
return Vms.share (volumeId,instanceIds);
}
8, carry cloud disk is to virtual machine;
/ * *
* carry cloud disk gives virtual machine
*@param instanceId virtual machine work D
*@param volumeId cloud disk work D
*@return boolean returns to carry result
*/
Public String attach (String instanceId, String volumeId)
return Vms.attach (instanceId, volumeId);
}
9, user is by storing data by virtual machine;
10, the process that physical machine uses is shared to if to other PCs (physical machine) if shared cloud disk;If altogether Enjoy the process that cloud disk is used using shared cloud disk is then executed to virtual machine to other virtual machines;Cloud is first issued if cloud disk is not issued Disk shares to physical machine use if cloud disk has been issued.

Claims (5)

1. a kind of method of the mutually shared cloud disk of physical machine and virtual machine, it is characterised in that: the method includes the following steps:
Step 1: cloud platform builds Storage Virtualization environment;
Step 2: creation cloud disk;
Step 3: if thening follow the steps 4 to physical machine use, if thening follow the steps 9 to virtual machine use;
Step: 4: publication cloud disk;
Step 5: setting cloud disk access authority;
Step 6: personal host logs in cloud disk;
Step 7: data are stored by personal host;
Step 8: if shared cloud disk thens follow the steps 5 to other personal host uses;If shared cloud disk is used to other virtual machines Then follow the steps 9;
Step 9: carry cloud disk is to virtual machine;
Step 10: data are stored by virtual machine;
Step 11: if shared cloud disk thens follow the steps 12 to other personal host uses;If shared cloud disk makes to other virtual machines With thening follow the steps 9;
Step 12: judging whether cloud disk has been issued, if cloud disk, which is not issued, thens follow the steps 4;It is thened follow the steps if cloud disk has been issued 5;
The cloud platform build Storage Virtualization environment the following steps are included:
1) physical volume PV operation is carried out to the block device of local disk subregion or logic-based unit number LUN;
2) volume group VG operation is carried out to physical volume PV again;So volume group VG management memory space is namely based on physical volume PV;
The block device of the logic-based unit number LUN refers to the block device of logic-based unit number LUN creation;
The logical unit number LUN, refers to a kind of logical memory device.
2. the method for the mutually shared cloud disk of physical machine according to claim 1 and virtual machine, it is characterised in that: the wound Building cloud disk is:
1) destination node is selected to carry out creation cloud disk;
2) logical volume LV is created based on volume group VG on the target node;
3) logical volume is made to be in unactivated state, all calculate nodes can check the presence of logical volume by volume group VG;
The publication cloud disk is that cloud disk is added by object machine Target as an independent logical unit number LUN;
The setting cloud disk access authority is the access control policy that object machine Target is arranged, and only allows the individual of user main The access of machine IP address allows the personal host IP network section of user to access.
3. the method for the mutually shared cloud disk of physical machine according to claim 1 and virtual machine, it is characterised in that: It is the logical unit number LUN list that user has found object machine Target by ISCSI client that people's host, which logs in cloud disk, and is connected To logical unit number LUN belonging to cloud disk, the personal host of user can see new disk at this time, if disk is unformatted, User can normal use after being formatted to it.
4. the method for the mutually shared cloud disk of physical machine according to claim 2 and virtual machine, it is characterised in that: It is the logical unit number LUN list that user has found object machine Target by ISCSI client that people's host, which logs in cloud disk, and is connected To logical unit number LUN belonging to cloud disk, the personal host of user can see new disk at this time, if disk is unformatted, User can normal use after being formatted to it.
5. the method for the mutually shared cloud disk of physical machine according to claim 2 or 4 and virtual machine, it is characterised in that: described Carry cloud disk it is as follows to virtual machine process:
1) logical volume is activated in the calculate node where virtual machine, makes its available mode, and other calculate nodes keep this to patrol Collect volume unactivated state;
2) logical volume is mounted on virtual machine, and it is exactly cloud disk that virtual machine, which defaults it, and is able to carry out read-write operation.
CN201510868855.0A 2015-11-30 2015-11-30 A kind of method of physical machine and the mutually shared cloud disk of virtual machine Active CN105450754B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510868855.0A CN105450754B (en) 2015-11-30 2015-11-30 A kind of method of physical machine and the mutually shared cloud disk of virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510868855.0A CN105450754B (en) 2015-11-30 2015-11-30 A kind of method of physical machine and the mutually shared cloud disk of virtual machine

Publications (2)

Publication Number Publication Date
CN105450754A CN105450754A (en) 2016-03-30
CN105450754B true CN105450754B (en) 2019-04-26

Family

ID=55560520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510868855.0A Active CN105450754B (en) 2015-11-30 2015-11-30 A kind of method of physical machine and the mutually shared cloud disk of virtual machine

Country Status (1)

Country Link
CN (1) CN105450754B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106533767A (en) * 2016-11-21 2017-03-22 天脉聚源(北京)传媒科技有限公司 Method and apparatus of sharing storage device
CN107967120A (en) * 2017-09-26 2018-04-27 国云科技股份有限公司 A kind of method of desktop cloud concurrent reading and writing cloud disk content
CN109300352A (en) * 2018-12-06 2019-02-01 安徽云探索网络科技有限公司 A kind of simulation training system and its method for network computer
CN113992657B (en) * 2021-10-26 2024-04-12 超越科技股份有限公司 Cloud platform-based shared storage construction method, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801806A (en) * 2012-08-10 2012-11-28 薛海强 Cloud computing system and cloud computing resource management method
CN103118073A (en) * 2013-01-08 2013-05-22 华中科技大学 Virtual machine data persistence storage system and method in cloud environment
CN103729280A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 High availability mechanism for virtual machine
CN104270409A (en) * 2014-09-04 2015-01-07 国云科技股份有限公司 Method for efficiently utilizing centralized storage in cloud platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8972983B2 (en) * 2012-04-26 2015-03-03 International Business Machines Corporation Efficient execution of jobs in a shared pool of resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102801806A (en) * 2012-08-10 2012-11-28 薛海强 Cloud computing system and cloud computing resource management method
CN103118073A (en) * 2013-01-08 2013-05-22 华中科技大学 Virtual machine data persistence storage system and method in cloud environment
CN103729280A (en) * 2013-12-23 2014-04-16 国云科技股份有限公司 High availability mechanism for virtual machine
CN104270409A (en) * 2014-09-04 2015-01-07 国云科技股份有限公司 Method for efficiently utilizing centralized storage in cloud platform

Also Published As

Publication number Publication date
CN105450754A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
Cappos et al. Seattle: a platform for educational cloud computing
De Oliveira et al. Using mininet for emulation and prototyping software-defined networks
CN105450754B (en) A kind of method of physical machine and the mutually shared cloud disk of virtual machine
Wolf et al. Virtualization: from the desktop to the enterprise
US20160342499A1 (en) Error diagnostic in a production environment
US20160034290A1 (en) Dynamically deployed virtual machine
CN111555913A (en) Simulation method, system, electronic device and storage medium for simulating real network environment based on virtualization
CN111049686B (en) Safety protection virtual laboratory of power monitoring system and construction method thereof
US10567227B2 (en) Production software application performance and resiliency testing
US11424991B2 (en) Change impact simulation analysis
CN106534373B (en) IO performance test method and device for SAN storage equipment
CN108234212A (en) Mixed cloud disaster recovery method, server and storage medium
JP6941173B2 (en) Point-in-time backup to object storage cloud via storage controller
CN106201657A (en) A kind of network interface card information processing method based on virtual machine and device
García et al. Using computer virtualization and software tools to implement a low cost laboratory for the teaching of storage area networks
Tiwari et al. Blockchain Enabled Reparations in Smart Buildings-Cyber Physical System.
TWI737172B (en) Computer system, computer program product and computer implement method for incremental decryption and integrity verification of a secure operating system image
CN106126427A (en) A kind of method and system of fast quick-recovery test
CN113496638A (en) Network security training system and method
CN103019847A (en) Method and system for migrating data of virtual machine
WO2017096951A1 (en) Virtual machine update method and device
Anderson et al. Student experiential learning of cyber security through virtualization.
Raychev et al. Development and Integration of Educational Software Defined Networking Platform in Computer Networking Classes
Zhang et al. Investigation on Innovative Models of Computer Laboratories Based on Cloud Computing
US11381460B1 (en) Network reachability impact analysis

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: G-Cloud Technology Co., Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Applicant before: G-Cloud Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant