CN108804034A - A kind of cloud terminal processing method and system based on read and write abruption - Google Patents

A kind of cloud terminal processing method and system based on read and write abruption Download PDF

Info

Publication number
CN108804034A
CN108804034A CN201810492419.1A CN201810492419A CN108804034A CN 108804034 A CN108804034 A CN 108804034A CN 201810492419 A CN201810492419 A CN 201810492419A CN 108804034 A CN108804034 A CN 108804034A
Authority
CN
China
Prior art keywords
read
subregions
mirror images
rootfs
paths
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.)
Granted
Application number
CN201810492419.1A
Other languages
Chinese (zh)
Other versions
CN108804034B (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.)
Wuxi Chen Yun Polytron Technologies Inc
Original Assignee
Wuxi Chen Yun Polytron Technologies Inc
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 Wuxi Chen Yun Polytron Technologies Inc filed Critical Wuxi Chen Yun Polytron Technologies Inc
Priority to CN201810492419.1A priority Critical patent/CN108804034B/en
Publication of CN108804034A publication Critical patent/CN108804034A/en
Application granted granted Critical
Publication of CN108804034B publication Critical patent/CN108804034B/en
Active 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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09CCIPHERING OR DECIPHERING APPARATUS FOR CRYPTOGRAPHIC OR OTHER PURPOSES INVOLVING THE NEED FOR SECRECY
    • G09C5/00Ciphering apparatus or methods not provided for in the preceding groups, e.g. involving the concealment or deformation of graphic data such as designs, written or printed messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/062Securing storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/065Replication mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Present invention relates particularly to a kind of cloud terminal processing method and system based on read and write abruption;The technical issues of solution is:A kind of read and write abruption that can realize operating system level, and the configuration without changing read-write region are provided, do not influence cloud terminal operating, and the cloud terminal processing method based on read and write abruption and system;The technical solution used for:Multidomain treat-ment is carried out to storage device, obtains rootfs mirror images and boot subregion mirror images;Establish Overlay subregions;By system image, treated that rootfs mirror images are reconfigured with Overlay subregions, obtains the file system of read and write abruption;Carry is carried out to the file system of read and write abruption;The present invention is suitable for computer realm.

Description

A kind of cloud terminal processing method and system based on read and write abruption
Technical field
The invention belongs to the technical fields of cloud terminal processes, and in particular to a kind of cloud terminal processes side based on read and write abruption Method and system.
Background technology
Current field of cloud calculation is quickly grown, and computer desktop is managed in cloud desktop field concentratedly, improves calculating The management of equipment and maintenance efficiency greatly reduce the cost of O&M.As the cloud terminal towards user, have hardware at This is low, and low energy consumption, the advantages that being convenient for managing concentratedly.Cloud desktop is the computer desktop environment managed concentratedly, and user passes through cloud Terminal access computer desktop environment, manager manage cloud desktop by cloud desktop management platform.
The operating system of cloud terminal local is known as host operating systems, and user passes through under cloud terminal access virtual environment Operating system is known as guest systems.The host operating systems of cloud terminal local are supplied to user to access the side of guest systems Method is also provided to the interface that cloud management system is managed concentratedly.So the host operating systems of cloud terminal local are cloud terminals Infrastructure, be indispensable and very important for entire cloud desktop environment.It is different according to the provider of cloud desktop, it can The host systems of different cloud terminal locals can be used.
Cloud terminal is generally different from common PC equipment, and in order to reduce the hardware cost of cloud terminal, promote cloud terminal can By property, cloud terminal is all using the hardware of customization.Common PC equipment also can be used as the use of cloud terminal, but comparatively, use is general Logical PC device hardwares cost is opposite to be significantly increased.The considerations of for performance and volume, cloud terminal can generally use solid state disk (SSD) it is used as storage device, but is not excluded for using mechanical hard disk or solid state disk and mechanical hard disk feelings used at the same time Condition, the mainboard that cloud terminal uses are usually to customize, and reduce the volume of occupancy, the CPU that cloud terminal uses can be common The CPU of X86-based CPU or ARM framework, the memory that cloud terminal uses, the chip used according to mainboard use corresponding type Number and interface memory bar.
For solid state disk, the characteristics of FLASH chip, determines its service life.Since there are maximum for FLASH chip Erasing times limit, solid state disk reach its be written number limitation after, that is, reached the service life of solid state disk.It is current solid The data of solid state disk, which can be written, in the main control chip of state hard disk shares, to extend the service life of solid state disk, from survey From the point of view of trying in data, faster for mechanical hard disk, time of erasing is written in speed of the speed than data are written for reading data Number is not the key that influence its service life, but read the speed of data, and the speed than data are written is still fast many.
In the prior art, LiveOS refers generally to the (SuSE) Linux OS being present on the storage mediums such as CD/USB/DVD, because For file system mirror image be present in/LiveOS files under, so referred to as LiveOS systems.Nothing on the characteristics of Live systems It needs to install, directly passes through medium activated computer equipment existing for Live systems.It is generally used for the use of the Live systems The emergency recovery of experience and computer equipment starts;LiveOS system images itself be it is read-only unmodifiable, still LiveOS can establish a writeable region overlay, usually upon actuation, inside the memory RAM of computer equipment 0.5G sizes, this size can be adjusted by kernel command line parameters.This writeable region is limited to memory RAM's Size, and be not the storage (i.e. computer equipment power-off will lose all write-in contents) of persistence.LiveOS is provided Scheme, the memory size of the storage medium or computer equipment that are generally all limited to present in it.And LiveOS Storage medium reading speed, is limited to the speed of interface, and the reading speed of reading speed and hard disc apparatus has larger difference, stores The read or write speed of Media Interface Connector is weaker than the read or write speed of hard disc apparatus;Persistent storage is limited and is difficult to be arranged, and is not suitable for long-term Operation.
In the prior art, read and write abruption can also be operated by setting the mount point of partition system whether be read only attribute come Reach, considered according to the read-write attribute of the carry of linux system, linux system has the carry of different file system Point, such as root mount point, home catalogues mount point/home etc., by by different mount points, being set as read-only carry, Either writeable carry distinguishes read-only and writeable region.The effect of read and write abruption is achieved, have the shortcomings that it is apparent, i.e., it is necessary The mount point for dividing read-only zones and writeable region in advance, after the completion of division, system i.e. can not be to the file content of read-only zones It modifies.If the file content of read-only zones must be changed, it is necessary to which it is writeable attribute to change read-only zones, and is hung again It is writeable region to carry, and after the completion of modification, is once again set up that the region is writeable region and carry is read-only region again again Domain.The process may relate to restarting to multiple system.Operating process is complicated, influences whether the normal operation of system, and only Under read states, the system of influence is normally written the demand of file.
In the prior art, also the read-write file system of Linux can be built by Squashfs, is based on the read-only mirrors of squashfs Picture, foundation can written document, and during initrd is loaded, as loop equipment carries, and use device-mapper's Snapshot mechanism is realized on the basis of original read-only mirror image, is realized to the writeable of system, is passed through device-mapper's Snapshot mechanism, by establishing loop files, as its writable portion, program realization is complex, due to its writable area Domain is single file, is limited to the size of file, and the part in writeable region is limited, and it carries out carry by loop equipment, is increased The number of plies for having added equipment to load so that write performance is affected.
Invention content
The present invention overcomes the shortcomings of the prior art, technical problem to be solved to be:Behaviour can be realized by providing one kind Make the read and write abruption of system level, and the configuration without changing read-write region, does not influence cloud terminal operating, and be based on read and write abruption Cloud terminal processing method and system.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:A kind of cloud terminal based on read and write abruption Processing method, including:S101, multidomain treat-ment is carried out to storage device, obtains rootfs mirror images and boot subregion mirror images;S102, Establish Overlay subregions;S103, system image treated rootfs mirror images and Overlay subregions are reconfigured, is obtained To the file system of read and write abruption;S104, carry is carried out to the file system of read and write abruption.
Preferably, described that multidomain treat-ment is carried out to storage device, it specifically includes:To the storage device based on MBR partition tables Multidomain treat-ment is carried out, Boot subregions and Root subregions are obtained;Multidomain treat-ment is carried out to the storage device based on GPT partition tables, is obtained To ESP subregions, Boot subregions and Root subregions;System image processing is carried out to Root subregions, rootfs mirror images is obtained, also wraps It includes:Compression processing is carried out to rootfs mirror images, forms single image file.
Preferably, described by system image, treated that rootfs mirror images are reconfigured with Overlay subregions, specifically Including:Rootfs mirror images and Overlay subregions are subjected to layered shaping, obtain the paths lower, the paths work, the paths upper; The paths lower store rootfs mirror images, and the paths work, the paths upper store Overlay subregions jointly;By lower Path, the paths work, the superposition of the paths upper;Rootfs mirror images are read when reading file, Overlay points of write-in when file is written Qu Zhong.
Correspondingly, a kind of cloud terminal processing system based on read and write abruption, including:Zoning unit:For to storage device Multidomain treat-ment is carried out, rootfs mirror images and boot subregion mirror images are obtained;Establish unit:For establishing Overlay subregions;Combination is single Member:By system image, treated that rootfs mirror images are reconfigured with Overlay subregions, obtains the file system of read and write abruption System;Carry unit:Carry is carried out for the file system to read and write abruption.
Preferably, the zoning unit includes:First zoning unit:For to the storage device based on MBR partition tables into Row multidomain treat-ment obtains Boot subregions and Root subregions;Second zoning unit:For to the storage device based on GPT partition tables Multidomain treat-ment is carried out, ESP subregions, Boot subregions and Root subregions are obtained;Mirror image unit:For carrying out system mirror to Root subregions As processing, rootfs mirror images are obtained.
Preferably, the zoning unit further includes:Compression unit:For carrying out compression processing to rootfs mirror images, formed Single image file.
Preferably, the assembled unit includes:Delaminating units:For rootfs mirror images and Overlay subregions to be divided Layer processing, obtains the paths lower, the paths work, the paths upper;The paths lower store rootfs mirror images, the work Path, the paths upper store Overlay subregions jointly;Superpositing unit:For by the paths lower, the paths work, the paths upper Superposition;Rootfs mirror images are read when reading file, when file is written in write-in Overlay subregions.
The present invention has the advantages that compared with prior art:
1, a kind of cloud terminal processing method and system based on read and write abruption provided by the invention, improve the reliable of system Property, O&M cost is reduced, cloud terminal can be made to realize read and write abruption (including read-only part and the writable area of operating system level Domain), and the configuration without changing read-write region, the demand that system is normally written file is not influenced, and influences cloud terminal host The operation of system, the mechanical hard disk part for making cloud terminal be equipped with are whole to reduce O&M cost as writeable region;Realize read-write Separation so that the reliability of cloud terminal host systems itself enhances, and in the case where mistake occurs in writeable region, may be implemented fast Quick-recovery.It proposes and realizes read and write abruption and expansible scheme, promote the service life of solid storage device.
2, the present invention includes the first zoning unit and the second zoning unit, fully improves solid storage device and only reads promotion The advantage of solid storage device makes the solid state disk part that cloud terminal is equipped with promote the service life of solid state disk as read-only zones And reading speed.
3, the mirror image processing unit in the present invention includes compression unit and encryption unit, not only eliminates and is deposited in file storage Gap (pre- occupied space), and compression algorithm can be selected further to be compressed, reduce the entirety of Root subregions Size, and the single image file of formation is compressed, type is single, is easy to distribute again, obtained read-only mirror image, it is easy to accomplish Read and write abruption, the selectable image file to after compression processing are encrypted, and reinforce the safety of Root subregion mirror images;Have Occupied space is smaller, second is that quantity of documents, type are few, is easy to distribute again, be convenient for read and write abruption the advantages of.
4, the assembled unit in the present invention includes delaminating units and superpositing unit, on solid storage device, is both used The efficient reading performance of solid storage device, and improve the service life of solid storage device.
Description of the drawings
The present invention will be further described in detail below in conjunction with the accompanying drawings;
Fig. 1 is the file system visioning procedure figure based on read and write abruption that the embodiment of the present invention one provides;
Fig. 2 is the file system architecture schematic diagram based on read and write abruption that the embodiment of the present invention one provides;
Fig. 3 is the file system architecture schematic diagram provided by Embodiment 2 of the present invention based on read and write abruption;
Fig. 4 is the file system architecture schematic diagram based on read and write abruption that the embodiment of the present invention three provides;
Fig. 5 is the file system architecture schematic diagram based on read and write abruption that the embodiment of the present invention four provides;
Wherein:101 be zoning unit, and 1011 be the first zoning unit, and 1012 be the second zoning unit, and 1013 be mirror image list Member, 1014 be compression unit, and 1015 be encryption unit, and 102 is establish unit, and 103 be assembled unit, and 1031 be delaminating units, 1032 be superpositing unit, and 104 be carry unit.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments;Based on the embodiments of the present invention, ordinary skill people The every other embodiment that member is obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is in a kind of embodiment one of the cloud terminal processing method based on read and write abruption of the present invention based on read and write abruption File system visioning procedure figure, as shown in Figure 1, a kind of cloud terminal processing method based on read and write abruption, including:It is S101, right Storage device carries out multidomain treat-ment, obtains rootfs mirror images and boot subregion mirror images;S102, Overlay subregions are established;S103, By system image, treated that rootfs mirror images are reconfigured with Overlay subregions, obtains the file system of read and write abruption; S104, carry is carried out to the file system of read and write abruption.
Further, described that multidomain treat-ment is carried out to storage device, it specifically includes:Storage based on MBR partition tables is set It is standby to carry out multidomain treat-ment, obtain Boot subregions and Root subregions;Multidomain treat-ment is carried out to the storage device based on GPT partition tables, Obtain ESP subregions, Boot subregions and Root subregions;System image processing is carried out to Root subregions, rootfs mirror images is obtained, also wraps It includes:Compression processing is carried out to rootfs mirror images, forms single image file.
Further, rootfs mirror images can be also encrypted.
Further, described by system image, treated that rootfs mirror images are reconfigured with Overlay subregions, tool Body includes:Rootfs mirror images and Overlay subregions are subjected to layered shaping, obtain the paths lower, the paths work, the roads upper Diameter;The paths lower store rootfs mirror images, and the paths work, the paths upper store Overlay subregions jointly;It will The paths lower, the paths work, the superposition of the paths upper;Rootfs mirror images are read when reading file, are written when file is written In Overlay subregions.
Fig. 2 is in a kind of embodiment one of the cloud terminal processing system based on read and write abruption of the present invention based on read and write abruption File system architecture schematic diagram, as shown in Fig. 2, a kind of cloud terminal processing system based on read and write abruption, including:
Zoning unit 101:For carrying out multidomain treat-ment to storage device, rootfs mirror images and boot subregion mirror images are obtained;
Establish unit 102:For establishing Overlay subregions;
Assembled unit 103:By system image, treated that rootfs mirror images are reconfigured with Overlay subregions, obtains To the file system of read and write abruption;
Carry unit 104:Carry is carried out for the file system to read and write abruption.
Specifically, in the start-up course of linux system, initrd is responsible for load driver program, finds and carry Root divides Area, start linux system init processes (init or systemd etc., different Linux releases, different editions use Init processes are different), since the pattern of read-write is assigned to different region (using Overlay FS), system initrd can not The file of correct load read and write abruption is as root file system.It is loaded using default behavior, system can become completely read-only, that is, be System can not carry out any write operation and change to rootfs mirror images, only in the initrd stages, to read-only mirror image and writable area Domain carries out correctly load pretreatment, after the root file system to specified mount point for loading read-write separation, system start completion The operating system that read and write abruption could be formed carries out the pretreatment of read-only mirror image and writeable region in initrd modules, needs Self-defined preprocessing module.
Fig. 3 is in a kind of embodiment two of the cloud terminal processing system based on read and write abruption of the present invention based on read and write abruption File system architecture schematic diagram, as shown in figure 3, on the basis of embodiment one, the zoning unit 101 includes:
First zoning unit 1011:For carrying out multidomain treat-ment to the storage device based on MBR partition tables, Boot points are obtained Area and Root subregions;
Second zoning unit 1012:For carrying out multidomain treat-ment to the storage device based on GPT partition tables, ESP points are obtained Area, Boot subregions and Root subregions;
Mirror image unit 1013:For carrying out system image processing to Root subregions, rootfs mirror images are obtained.
Specifically, generally use different types of boot schemes, with the subregion of storage device have it is larger be associated with, when to base When the storage device of MBR partition tables carries out multidomain treat-ment, the Boot of system is carried out by Legacy/CSM modes, when to being based on When the storage device of GPT partition tables carries out multidomain treat-ment, the Boot of system is carried out by UEFI modes, but can also be applied to mix Close the mode used.
When carrying out multidomain treat-ment to the storage device based on MBR partition tables, partition scheme is as follows:1, Boot subregions, i.e., The kernel and initrd of Linux, grub start the subregion of file storage needed for the Boot such as menu, are mounted under the paths Boot; 2, Root subregions, i.e. subregion where the Root file system of Linux, herein i.e. where read-only zones;3, Overlay subregions, Overlay file system is formed with Reading Sections, as where the writeable region of whole system.Wherein, above three subregion A storage device is may be present in, can be also distributed in multiple storage devices, for using solid-state and mechanical storage equipment simultaneously In the case of, it is proposed that Boot subregions and Root subregions are seated on solid storage device, and Overlay subregions are placed on mechanical storage In equipment, fully improves solid storage device and only read the advantage for promoting solid storage device.It is set according to the storage of MBR partition tables Standby requirement, Boot subregions should be used as first subregion in storage device.
When carrying out multidomain treat-ment to the storage device based on GPT partition tables, partition scheme is as follows:1, point of ESP subregions Area, for UEFI identifications, the main guiding menu etc. for storing UEFI;2, Boot subregions, for storing kernel, initrd etc.; 3, Root subregions are used for storage system root file system, are read-only zones;4, Overlay subregions, the writable area as system Domain;Wherein, generally in the same storage device, other subregions are then similar to the feelings of MBR partition tables for ESP subregions and Boot subregions Condition may be present in one or more subregion, and read-only part should be placed in solid-state storage in the presence of solid storage device Equipment;Above-mentioned Root subregions and Overlay subregions, but individual subregion, or patrolled by what volume management tool generated It is upper (volume management tool, such as LVM) to collect volume.
In addition to above-mentioned subregion, other subregions can also be added, including but not limited to except above-mentioned subregion, increase additional Subregion, and subregion distribution can be adjusted according to actual conditions.
Fig. 4 is in a kind of embodiment three of the cloud terminal processing system based on read and write abruption of the present invention based on read and write abruption File system architecture schematic diagram, as shown in figure 4, on the basis of embodiment two, the zoning unit 101 further includes:
Compression unit 1014:For carrying out compression processing to rootfs mirror images, single image file is formed.
It may also include:
Encryption unit 1015:For rootfs mirror images to be encrypted.
Specifically, using Root zonings as rootfs mirror images, it is read-only to can be used and (include but not limited to) squashfs etc. File system carries out compression processing to root file path, becomes single image file.Such process, not only eliminates file Gap present in storage (pre- occupied space), and compression algorithm can be selected further to be compressed, reduce rootfs The whole size of mirror image, and the single image file of formation is compressed, type is single, is easy to the read-only mirror distributed again, obtained Picture, it is easy to accomplish read and write abruption, the selectable image file to after compression processing are encrypted, and reinforce the peace of rootfs mirror images Quan Xing;It is smaller with occupied space, the advantages of second is that quantity of documents, type are few, being easy to distribute again, be convenient for read and write abruption.
Fig. 5 is in a kind of example IV of the cloud terminal processing system based on read and write abruption of the present invention based on read and write abruption File system architecture schematic diagram, as shown in figure 5, on the basis of embodiment three, the assembled unit 103 includes:
Delaminating units 1031:For rootfs mirror images and Overlay subregions to be carried out layered shaping, obtain the paths lower, The paths work, the paths upper;The paths lower store rootfs mirror images, and the paths work, the paths upper store jointly Overlay subregions;
Superpositing unit 1032:For the paths lower, the paths work, the paths upper to be superimposed;It is read when reading file Rootfs mirror images, when file is written in write-in Overlay subregions.
Specifically, it realizes read and write abruption, and does not influence the read-write demand of normal system, be by using OverlayFS What characteristic was realized, the file system of bottom is divided into three levels, the paths Lower, the paths work, the roads upper by Overlay FS Diameter, the wherein paths lower are the mirror image for having made the Root subregions as read-only file system mirror image, the paths work and upper Path is two parts that Overlay FS need, for (SuSE) Linux OS, it is seen that be that Overlay FS are presented to Three levels are then superimposed by the content of operating system, Overlay FS, rootfs mirror images are read when reading file, when file is written It is written in Overlay subregions, the operations such as can modify to the content on rootfs mirror images, delete, add, and can be directly Overlay subregions are written to, operating system then directly acquires modified result.
I.e. Overlay FS are read-write for (SuSE) Linux OS, do not influence system normal operation, but right It is read-only, general read-only mirror image is deployed on solid storage device, both solid-state has been used to deposit for the mirror image of Root subregions The efficient reading performance of equipment is stored up, and improves the service life of solid storage device, the storage of solid storage device, i.e. FLASH The service life of equipment depends on the number of write-in.
A kind of cloud terminal processing method and system based on read and write abruption provided by the invention, cloud terminal installation be based on X86-based, but not only limit is applied to cloud terminal installation, can equally apply to the similar computer such as PC, portable device, And embedded device, including but not limited to X86-based, ARM frameworks, PowerPC frameworks etc.;Not only limit is applied in the present invention The solid state disk and mechanical hard disk of configuration can equally apply to monolithic and polylith storage device, including but not limited to solid-state Hard disk, mechanical hard disk, the storage etc. based on FLASH;The host operating systems of the cloud terminal of read and write abruption in the present invention, are opened Flowing mode includes but not limited to Legacy/CSM start-up modes, UEFI start-up modes;The cloud terminal of read and write abruption in the present invention Host operating systems in, the partitioned mode of storage section, compartment model, base including but not limited to based on MBR partition table tables In the compartment model of GPT partition table tables;Host systems in the present invention are based on linux system, but the thought of its read and write abruption Various operating systems are can be applied to, including but not limited to each Linux releases, class unix system and its each branch, minix systems And each flavor and Windows systems.A kind of cloud terminal processing method based on read and write abruption provided by the invention and it is System, is realized in cloud terminal at present.
A kind of cloud terminal processing method and system based on read and write abruption provided by the invention so that original Root subregions Exist as read-only mirror image, improve the reliability of system, reduce O&M cost, cloud terminal can be made to realize operating system level Read and write abruption (including read-only part and writeable region), and without change read-write region configuration, do not influence system and normally write Enter the demand of file, and influences the operation of cloud terminal host systems;The solid state disk part for making cloud terminal be equipped with, as read-only Region promotes service life and the reading speed of solid state disk;The mechanical hard disk part for making cloud terminal be equipped with, it is whole as writeable region Body reduces O&M cost;Realize read and write abruption so that the reliability of cloud terminal host systems itself enhances, and occurs in writeable region In the case of mistake, fast quick-recovery may be implemented, propose and realize read and write abruption and expansible scheme, promote solid-state storage The service life of equipment.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (8)

1. a kind of cloud terminal processing method based on read and write abruption, it is characterised in that:Including:
S101, multidomain treat-ment is carried out to storage device, obtains rootfs mirror images and boot subregion mirror images;
S102, Overlay subregions are established;
S103, system image treated rootfs mirror images and Overlay subregions are reconfigured, obtains read and write abruption File system;
S104, carry is carried out to the file system of read and write abruption.
2. a kind of cloud terminal processing method based on read and write abruption according to claim 1, it is characterised in that:Described pair is deposited It stores up equipment and carries out multidomain treat-ment, specifically include:
For carrying out multidomain treat-ment to the storage device based on MBR partition tables, Boot subregions and Root subregions are obtained;
Multidomain treat-ment is carried out to the storage device based on GPT partition tables, obtains ESP subregions, Boot subregions and Root subregions;
System image processing is carried out to Root subregions, obtains rootfs mirror images.
3. a kind of cloud terminal processing method based on read and write abruption according to claim 1, it is characterised in that:Described pair is deposited It stores up equipment and carries out multidomain treat-ment, further include:
Compression processing is carried out to rootfs mirror images, forms single image file.
4. a kind of cloud terminal processing method based on read and write abruption according to claim 1, it is characterised in that:It is described to be Rootfs mirror images after system mirror image processing are reconfigured with Overlay subregions, are specifically included:
Rootfs mirror images and Overlay subregions are subjected to layered shaping, obtain the paths lower, the paths work, the paths upper;Institute The paths lower storage rootfs mirror images are stated, the paths work, the paths upper store Overlay subregions jointly;
By the paths lower, the paths work, the superposition of the paths upper;Rootfs mirror images are read when reading file, are write when file is written Enter in Overlay subregions.
5. a kind of cloud terminal processing system based on read and write abruption, it is characterised in that:Including:
Zoning unit (101):For carrying out multidomain treat-ment to storage device, rootfs mirror images and boot subregion mirror images are obtained;
Establish unit (102):For establishing Overlay subregions;
Assembled unit (103):By system image, treated that rootfs mirror images are reconfigured with Overlay subregions, obtains The file system of read and write abruption;
Carry unit (104):Carry is carried out for the file system to read and write abruption.
6. a kind of cloud terminal processing system based on read and write abruption according to claim 5, it is characterised in that:The subregion Unit (101) includes:
First zoning unit (1011):For carrying out multidomain treat-ment to the storage device based on MBR partition tables, Boot subregions are obtained With Root subregions;
Second zoning unit (1012):For to based on GPT partition tables storage device carry out multidomain treat-ment, obtain ESP subregions, Boot subregions and Root subregions;
Mirror image unit (1013):For carrying out system image processing to Root subregions, rootfs mirror images are obtained.
7. a kind of cloud terminal processing system based on read and write abruption according to claim 5, it is characterised in that:The subregion Unit (101) further includes:
Compression unit (1014):For carrying out compression processing to rootfs mirror images, single image file is formed.
8. a kind of cloud terminal processing system based on read and write abruption according to claim 5, it is characterised in that:The combination Unit (103) includes:
Delaminating units (1031):For rootfs mirror images and Overlay subregions to be carried out layered shaping, obtain the paths lower, The paths work, the paths upper;The paths lower store rootfs mirror images, and the paths work, the paths upper store jointly Overlay subregions;
Superpositing unit (1032):For the paths lower, the paths work, the paths upper to be superimposed;It is read when reading file Rootfs mirror images, when file is written in write-in Overlay subregions.
CN201810492419.1A 2018-05-22 2018-05-22 Cloud terminal processing method and system based on read-write separation Active CN108804034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810492419.1A CN108804034B (en) 2018-05-22 2018-05-22 Cloud terminal processing method and system based on read-write separation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810492419.1A CN108804034B (en) 2018-05-22 2018-05-22 Cloud terminal processing method and system based on read-write separation

Publications (2)

Publication Number Publication Date
CN108804034A true CN108804034A (en) 2018-11-13
CN108804034B CN108804034B (en) 2021-03-02

Family

ID=64091289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810492419.1A Active CN108804034B (en) 2018-05-22 2018-05-22 Cloud terminal processing method and system based on read-write separation

Country Status (1)

Country Link
CN (1) CN108804034B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221940A (en) * 2019-06-12 2019-09-10 湖南麒麟信安科技有限公司 Power loss recovery method, system and medium based on stacked documents system
CN111258666A (en) * 2020-01-22 2020-06-09 奇安信科技集团股份有限公司 Reading method and device of computer file, computer system and storage medium
CN112579521A (en) * 2019-09-29 2021-03-30 北京君正集成电路股份有限公司 File system implementation method based on equipment mapping mechanism
WO2022083158A1 (en) * 2020-10-22 2022-04-28 华为云计算技术有限公司 Data processing method, instances and system
CN116149759A (en) * 2023-04-20 2023-05-23 深圳市吉方工控有限公司 UEFI (unified extensible firmware interface) drive unloading method and device, electronic equipment and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012107360A1 (en) * 2011-02-10 2012-08-16 Xvd Technology Holdings Limited Overlay network
CN104871174A (en) * 2012-12-14 2015-08-26 国际商业机器公司 Boot mechanisms for 'bring your own' management
CN106020884A (en) * 2016-05-20 2016-10-12 江苏华辉云控科技有限公司 Network camera system online update method
CN106936631A (en) * 2017-02-27 2017-07-07 北京极科极客科技有限公司 A kind of control method and device of route system upgrading
US20170235848A1 (en) * 2012-08-29 2017-08-17 Dennis Van Dusen System and method for fuzzy concept mapping, voting ontology crowd sourcing, and technology prediction
CN107479922A (en) * 2017-08-04 2017-12-15 深圳市中兴物联科技有限公司 A kind of flash data management method, device and computer-readable recording medium
CN107590272A (en) * 2017-09-26 2018-01-16 天津麒麟信息技术有限公司 A kind of operating system snapshot implementing method based on Overlay file system
CN107704603A (en) * 2017-10-16 2018-02-16 山东浪潮通软信息科技有限公司 A kind of method and device for realizing read and write abruption

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012107360A1 (en) * 2011-02-10 2012-08-16 Xvd Technology Holdings Limited Overlay network
US20170235848A1 (en) * 2012-08-29 2017-08-17 Dennis Van Dusen System and method for fuzzy concept mapping, voting ontology crowd sourcing, and technology prediction
CN104871174A (en) * 2012-12-14 2015-08-26 国际商业机器公司 Boot mechanisms for 'bring your own' management
CN106020884A (en) * 2016-05-20 2016-10-12 江苏华辉云控科技有限公司 Network camera system online update method
CN106936631A (en) * 2017-02-27 2017-07-07 北京极科极客科技有限公司 A kind of control method and device of route system upgrading
CN107479922A (en) * 2017-08-04 2017-12-15 深圳市中兴物联科技有限公司 A kind of flash data management method, device and computer-readable recording medium
CN107590272A (en) * 2017-09-26 2018-01-16 天津麒麟信息技术有限公司 A kind of operating system snapshot implementing method based on Overlay file system
CN107704603A (en) * 2017-10-16 2018-02-16 山东浪潮通软信息科技有限公司 A kind of method and device for realizing read and write abruption

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221940A (en) * 2019-06-12 2019-09-10 湖南麒麟信安科技有限公司 Power loss recovery method, system and medium based on stacked documents system
CN112579521A (en) * 2019-09-29 2021-03-30 北京君正集成电路股份有限公司 File system implementation method based on equipment mapping mechanism
CN111258666A (en) * 2020-01-22 2020-06-09 奇安信科技集团股份有限公司 Reading method and device of computer file, computer system and storage medium
CN111258666B (en) * 2020-01-22 2023-07-04 奇安信科技集团股份有限公司 Method and device for reading computer file, computer system and storage medium
WO2022083158A1 (en) * 2020-10-22 2022-04-28 华为云计算技术有限公司 Data processing method, instances and system
CN116149759A (en) * 2023-04-20 2023-05-23 深圳市吉方工控有限公司 UEFI (unified extensible firmware interface) drive unloading method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN108804034B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN108804034A (en) A kind of cloud terminal processing method and system based on read and write abruption
US20200110550A1 (en) Multi-node removal
KR101802800B1 (en) Media protection policy enforcement for multiple-operating-system environments
CN106708430A (en) Cloud hard disk implementation method under cloud computing architecture
US11954220B2 (en) Data protection for container storage
CN106919346B (en) A kind of shared Storage Virtualization implementation method based on CLVM
CN102473089B (en) File system for dual operating systems
CN101398744B (en) Method and system for implementing network data process by utilizing virtual file system technology
CN104461685B (en) Virtual machine processing method and virtual computer system
CN109274752A (en) The access method and device, electronic equipment, storage medium of block chain data
CN101430700B (en) File management device and storage device
CN103106047A (en) Storage system based on object and storage method thereof
CN103268252A (en) Virtualization platform system based on distributed storage and achieving method thereof
CN104158858A (en) Method and system for accessing distributed cluster file system
US11675503B1 (en) Role-based data access
CN106227621A (en) The data back up method of logic-based volume management simplification volume and system
US20110088029A1 (en) Server image capacity optimization
US20130275671A1 (en) Creating encrypted storage volumes
CN105095103A (en) Storage device management method and device used for cloud environment
CN101878470B (en) Apparatus and method for managing storage copy services systems
CN110806911A (en) Cloud desktop management and control method, device and system
CN104113606A (en) Uniformity dynamically-balanced distributed metadata node framework
CN108009447B (en) Hard disk partition hiding method and device and hard disk
CN106897027B (en) Distributed storage service system and method based on desktop virtualization
US10089125B2 (en) Virtual machines accessing file data, object data, and block data

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
CB02 Change of applicant information

Address after: Room 1110, 11 / F, block B, Lane 2855, Huqingping highway, Zhaoxiang Town, Qingpu District, Shanghai 201700

Applicant after: Shanghai kunjingyun Co., Ltd

Address before: 214000 Tianan wisdom city 1-406, new Wu District, Xuzhou, Jiangsu

Applicant before: WUXI MORNING CLOUD TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant