CN108804034B - Cloud terminal processing method and system based on read-write separation - Google Patents

Cloud terminal processing method and system based on read-write separation Download PDF

Info

Publication number
CN108804034B
CN108804034B CN201810492419.1A CN201810492419A CN108804034B CN 108804034 B CN108804034 B CN 108804034B CN 201810492419 A CN201810492419 A CN 201810492419A CN 108804034 B CN108804034 B CN 108804034B
Authority
CN
China
Prior art keywords
partition
mirror image
read
rootfs
overlay
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
CN201810492419.1A
Other languages
Chinese (zh)
Other versions
CN108804034A (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.)
Shanghai Kunjingyun Co Ltd
Original Assignee
Shanghai Kunjingyun 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 Shanghai Kunjingyun Co Ltd filed Critical Shanghai Kunjingyun Co Ltd
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

Images

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]

Abstract

The invention particularly relates to a cloud terminal processing method and system based on read-write separation; the technical problem to be solved is as follows: the method and the system for processing the cloud terminal can realize read-write separation on the operating system level, do not need to change the configuration of a read-write area, do not influence the operation of the cloud terminal, and are based on the read-write separation; the technical scheme is as follows: partitioning the storage device to obtain a rootfs mirror image and a boot partition mirror image; establishing an Overlay partition; recombining the rootfs mirror image after the system mirror image processing and the Overlay partition to obtain a read-write separated file system; mounting the file system with separated reading and writing; the invention is suitable for the field of computers.

Description

Cloud terminal processing method and system based on read-write separation
Technical Field
The invention belongs to the technical field of cloud terminal processing, and particularly relates to a cloud terminal processing method and system based on read-write separation.
Background
The current cloud computing field develops rapidly, and the cloud desktop field carries out centralized management with the computer desktop, has promoted the management and the maintenance efficiency of computing device, has greatly reduced the cost of fortune dimension. As a user-oriented cloud terminal, the cloud terminal has the advantages of low hardware cost, low energy consumption, convenience in centralized management and the like. The cloud desktop is a computer desktop environment managed in a centralized mode, a user accesses the computer desktop environment through the cloud terminal, and a manager manages the cloud desktop through the cloud desktop management platform.
The local operating system of the cloud terminal is called host operating system, and the operating system of the user accessing the virtual environment through the cloud terminal is called guest system. The local host operating system of the cloud terminal provides a method for a user to access the guest system and also provides an interface for the cloud management system to perform centralized management. Therefore, a host operating system local to the cloud terminal is infrastructure of the cloud terminal, and is indispensable and very important for the whole cloud desktop environment. According to different cloud desktop providers, different local host systems of the cloud terminals may be adopted.
The cloud terminal is generally different from common PC equipment, and in order to reduce the hardware cost of the cloud terminal and improve the reliability of the cloud terminal, the cloud terminal uses customized hardware. The common PC device can also be used as a cloud terminal, but relatively speaking, the hardware cost for using the common PC device is greatly increased. In consideration of performance and size, a Solid State Disk (SSD) is generally used as a storage device of a cloud terminal, but a case of using a mechanical hard disk is not excluded, or the solid state disk and the mechanical hard disk are used simultaneously, a motherboard used by the cloud terminal is generally customized, and an occupied size is reduced, a CPU used by the cloud terminal may be a CPU with a common X86 architecture or a CPU with an ARM architecture, and a memory used by the cloud terminal uses a memory bank with a corresponding model and interface according to a chip used by the motherboard.
For the solid state disk, the characteristics of the FLASH chip determine the service life of the FLASH chip. Due to the fact that the FLASH chip has the maximum erasing times limit, the service life of the solid state disk is prolonged after the solid state disk reaches the writing times limit. The main control chip of the current solid state disk shares the data writing of the solid state disk so as to prolong the service life of the solid state disk, and the speed of reading data is faster than the speed of writing data from the aspect of test data.
In the prior art, LiveOS generally refers to a Linux operating system existing on a storage medium such as a CD/USB/DVD, and is called a LiveOS system because an image of a file system exists under a/LiveOS folder. The Live system is not required to be installed in the characteristics, and the computer equipment can be directly started through media existing in the Live system. The use experience of the Live system is generally used, and the emergency recovery starting of the computer equipment is also performed; the LiveOS system image is read-only and unchangeable, but LiveOS establishes a writable overlay area in a memory RAM of computer equipment after being started, the size is generally 0.5G, and the size can be adjusted through a kernel command line parameter. This writable area is limited by the size of the memory RAM and is not persistent storage (i.e., all writes are lost if the computer device is powered down). The solution provided by LiveOS is generally limited by the storage medium on which it resides, or the memory size of the computer device. The reading speed of the storage medium of the LiveOS is limited by the speed of the interface, the reading speed is greatly different from the reading speed of the hard disk device, and the reading-writing speed of the interface of the storage medium is weaker than the reading-writing speed of the hard disk device; persistent storage is limited and difficult to set, not suitable for long-term operation.
In the prior art, read-write separation can also be achieved by setting whether a mount point of an operating partition system is a read-only attribute, considering according to a readable-writable attribute of mount of a Linux system, the Linux system has different mount points of a file system, such as a root directory mount point, a home directory mount point/home, and the like, and the read-only area and the writable area are distinguished by setting the different mount points as read-only mount or writable mount. The effect of read-write separation is realized, and the obvious defect is that the mounting points of the read-only area and the writable area must be divided in advance, and after the division is finished, the system cannot modify the file content of the read-only area. And if the file content of the read-only area has to be modified, modifying the read-only area into a writable attribute, re-mounting the read-only area into a writable area, and after the modification is completed, setting the area into the writable area again and re-mounting the area into the read-only area again. This process may involve multiple reboots of the system. The operation process is complex, which can affect the normal operation of the system, and in the read-only state, the requirement of the system for writing files normally is affected.
In the prior art, a Linux readable and writable file system can be further constructed through Squashfs, writable files are established based on Squashfs read-only mirror images, and serve as loop equipment mount during initrd loading, and a snapshot mechanism of device-mapper is used, so that the system can be written on the basis of the original read-only mirror images.
Disclosure of Invention
The invention overcomes the defects of the prior art, and solves the technical problems that: the method and the system for processing the cloud terminal can realize read-write separation on the operating system level, do not need to change the configuration of a read-write area, do not influence the operation of the cloud terminal, and are based on the read-write separation.
In order to solve the technical problems, the invention adopts the technical scheme that: a cloud terminal processing method based on read-write separation comprises the following steps: s101, partitioning the storage device to obtain a rootfs mirror image and a boot partition mirror image; s102, establishing an Overlay partition; s103, recombining the rootfs mirror image after the system mirror image processing and the Overlay partition to obtain a read-write separated file system; and S104, mounting the read-write separated file system.
Preferably, the partitioning the storage device specifically includes: partitioning the storage equipment based on the MBR partition table to obtain Boot partitions and Root partitions; partitioning the storage device based on the GPT partition table to obtain an ESP partition, a Boot partition and a Root partition; the method comprises the following steps of carrying out system mirror image processing on Root partitions to obtain rootfs mirror images, and further comprising the following steps: and compressing the rootfs mirror image to form a single mirror image file.
Preferably, the recombining the rootfs image after the system image processing and the Overlay partition specifically includes: carrying out layering processing on the rootfs mirror image and the Overlay partition to obtain a lower path, a work path and an upper path; the lower path stores a rootfs mirror image, and the work path and the upper path jointly store an Overlay partition; superposing the lower path, the work path and the upper path; and reading the rootfs mirror image when reading the file, and writing the rootfs mirror image into the Overlay partition when writing the file.
Correspondingly, a cloud terminal processing system based on read-write separation includes: a partition unit: the system comprises a storage device, a root partition mirror image and a boot partition mirror image, wherein the storage device is used for partitioning the storage device to obtain the rootfs mirror image and the boot partition mirror image; the establishing unit: used for establishing an Overlay partition; a combination unit: recombining the rootfs mirror image after the system mirror image processing and the Overlay partition to obtain a read-write separated file system; a mounting unit: the method is used for mounting the read-write separated file system.
Preferably, the partition unit includes: a first partitioning unit: the device comprises a base station, a base station and a plurality of MBR partition tables, wherein the base station is used for partitioning a storage device based on the MBR partition tables to obtain Boot partitions and Root partitions; a second partition unit: the device is used for carrying out partition processing on the storage equipment based on the GPT partition table to obtain an ESP partition, a Boot partition and a Root partition; a mirror unit: and the method is used for carrying out system mirror image processing on the Root partition to obtain a rootfs mirror image.
Preferably, the partition unit further includes: a compression unit: the method is used for compressing the rootfs mirror image to form a single mirror image file.
Preferably, the combining unit includes: a layering unit: the system comprises a router, a processor, a storage unit, a processor and a processor, wherein the router is used for layering rootfs mirror images and Overlay partitions to obtain lower paths, work paths and upper paths; the lower path stores a rootfs mirror image, and the work path and the upper path jointly store an Overlay partition; a superimposing unit: the path stacking device is used for stacking the lower path, the work path and the upper path; and reading the rootfs mirror image when reading the file, and writing the rootfs mirror image into the Overlay partition when writing the file.
Compared with the prior art, the invention has the following beneficial effects:
1. the cloud terminal processing method and system based on read-write separation provided by the invention have the advantages that the reliability of the system is improved, the operation and maintenance cost is reduced, the read-write separation (including a read-only part and a writable area) of the operating system level can be realized by the cloud terminal, the configuration of the read-write area is not required to be changed, the requirement of the system for normally writing files is not influenced, the operation of a cloud terminal host system is influenced, and the mechanical hard disk part equipped by the cloud terminal is used as the writable area, so that the operation and maintenance cost is integrally reduced; the read-write separation is realized, the reliability of the cloud terminal host system is enhanced, and the rapid recovery can be realized under the condition that an error occurs in the writable area. The scheme of read-write separation and expandability is provided and realized, and the service life of the solid-state storage device is prolonged.
2. The solid state disk drive comprises the first partition unit and the second partition unit, the advantage that the solid state storage device is read only and improved is fully improved, the solid state disk part equipped by the cloud terminal is used as a read-only area, and the service life and the reading speed of the solid state disk are improved.
3. The mirror image processing unit comprises a compression unit and an encryption unit, so that gaps (pre-occupied space) existing in file storage are removed, a compression algorithm can be selected for further compression, the overall size of the Root partition is reduced, a single mirror image file formed by compression is single in type and easy to distribute again, the read-only mirror image is obtained, read-write separation is easy to realize, the mirror image file subjected to compression processing can be selectively encrypted, and the security of the mirror image of the Root partition is enhanced; the method has the advantages of small occupied space, small number and variety of files, easy redistribution and convenient read-write separation.
4. The combination unit comprises the layering unit and the superposition unit, and on the solid-state storage device, the high-efficiency reading performance of the solid-state storage device is used, and the service life of the solid-state storage device is prolonged.
Drawings
The present invention will be described in further detail with reference to the accompanying drawings;
fig. 1 is a flowchart of creating a file system based on read-write separation according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a file system architecture based on read-write separation according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a file system architecture based on read-write separation according to a second embodiment of the present invention;
fig. 4 is a schematic diagram of a file system architecture based on read-write separation according to a third embodiment of the present invention;
fig. 5 is a schematic diagram of a file system architecture based on read-write separation according to a fourth embodiment of the present invention;
wherein: 101 is a partition unit, 1011 is a first partition unit, 1012 is a second partition unit, 1013 is a mirroring unit, 1014 is a compression unit, 1015 is an encryption unit, 102 is a creation unit, 103 is a combination unit, 1031 is a layering unit, 1032 is a superposition unit, and 104 is a mounting unit.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention; all other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flow chart of file system creation based on read-write separation in a first embodiment of a cloud terminal processing method based on read-write separation according to the present invention, and as shown in fig. 1, a cloud terminal processing method based on read-write separation includes: s101, partitioning the storage device to obtain a rootfs mirror image and a boot partition mirror image; s102, establishing an Overlay partition; s103, recombining the rootfs mirror image after the system mirror image processing and the Overlay partition to obtain a read-write separated file system; and S104, mounting the read-write separated file system.
Further, the partitioning the storage device specifically includes: partitioning the storage equipment based on the MBR partition table to obtain Boot partitions and Root partitions; partitioning the storage device based on the GPT partition table to obtain an ESP partition, a Boot partition and a Root partition; the method comprises the following steps of carrying out system mirror image processing on Root partitions to obtain rootfs mirror images, and further comprising the following steps: and compressing the rootfs mirror image to form a single mirror image file.
Furthermore, the rootfs mirror image can be encrypted.
Further, the recombining the rootfs mirror image after the system mirror image processing and the Overlay partition specifically includes: carrying out layering processing on the rootfs mirror image and the Overlay partition to obtain a lower path, a work path and an upper path; the lower path stores a rootfs mirror image, and the work path and the upper path jointly store an Overlay partition; superposing the lower path, the work path and the upper path; and reading the rootfs mirror image when reading the file, and writing the rootfs mirror image into the Overlay partition when writing the file.
Fig. 2 is a schematic view of a file system architecture based on read-write separation in a first embodiment of a cloud terminal processing system based on read-write separation according to the present invention, and as shown in fig. 2, a cloud terminal processing system based on read-write separation includes:
partition unit 101: the system comprises a storage device, a root partition mirror image and a boot partition mirror image, wherein the storage device is used for partitioning the storage device to obtain the rootfs mirror image and the boot partition mirror image;
the establishing unit 102: used for establishing an Overlay partition;
the combining unit 103: recombining the rootfs mirror image after the system mirror image processing and the Overlay partition to obtain a read-write separated file system;
mounting unit 104: the method is used for mounting the read-write separated file system.
Specifically, in the starting process of the Linux system, initrd is responsible for loading a driver, finding and mounting a Root partition, starting an init process (init or systemd, etc., different Linux distribution versions and init processes adopted by different versions are different) of the Linux system, and because a read-write mode is allocated to different areas (using Overlay FS), the system initrd cannot correctly load a read-write separated file as a Root file system. The system can become completely read only by adopting a default mode for loading, namely the system can not perform any write-in operation and change on the rootfs mirror image, only in the initrd stage, correct loading pretreatment is performed on the read-only mirror image and the writable area, after the root file system which can be read-write separated is loaded to a specified mount point, the system is started and completed to form an operating system with read-write separation, the read-only mirror image and the writable area are pretreated in the initrd module, and the pretreatment module is required to be customized.
Fig. 3 is a schematic diagram of a file system architecture based on read-write separation in a second embodiment of a cloud terminal processing system based on read-write separation according to the present invention, as shown in fig. 3, on the basis of the first embodiment, the partition unit 101 includes:
first partitioning unit 1011: the device comprises a base station, a base station and a plurality of MBR partition tables, wherein the base station is used for partitioning a storage device based on the MBR partition tables to obtain Boot partitions and Root partitions;
second partition unit 1012: the device is used for carrying out partition processing on the storage equipment based on the GPT partition table to obtain an ESP partition, a Boot partition and a Root partition;
mirror unit 1013: and the method is used for carrying out system mirror image processing on the Root partition to obtain a rootfs mirror image.
Specifically, different types of Boot schemes are generally adopted, the Boot schemes are greatly associated with the partition of the storage device, when the partition processing is performed on the storage device based on the MBR partition table, the Boot of the system is performed in a Legacy/CSM mode, and when the partition processing is performed on the storage device based on the GPT partition table, the Boot of the system is performed in a UEFI mode, but the Boot scheme can also be applied to a mixed use mode.
When partition processing is performed on the storage device based on the MBR partition table, the partition scheme is as follows: 1. boot partitions, namely, partitions for storing files required by boots, such as a kernel of Linux, initrd, grub Boot menus and the like, are mounted under a Boot path; 2. a Root partition, namely a partition where a Root file system of Linux is located, namely a read-only area; 3. the Overlay partition, namely the Overlay file system formed by the Overlay partition and the read-only partition, is used as a writable area of the whole system. The three partitions can exist in one storage device or can be distributed on a plurality of storage devices, and for the case of using the solid-state storage device and the mechanical storage device simultaneously, the Boot partition and the Root partition are recommended to be placed on the solid-state storage device, and the Overlay partition is placed on the mechanical storage device, so that the advantage that the solid-state storage device only reads and improves the solid-state storage device is fully improved. And according to the requirement of the storage equipment of the MBR partition table, the Boot partition is used as the first partition on the storage equipment.
When the storage device based on the GPT partition table is partitioned, the partition scheme is as follows: 1. ESP partition, which is used for UEFI identification and mainly stores a boot menu of UEFI, etc.; 2. boot partition, used for storing kernel, initrd, etc.; 3. the Root partition is used for storing a system Root file system and is a read-only area; 4. an Overlay partition as a writable area of the system; the ESP partition and the Boot partition are generally on the same storage device, other partitions are similar to the MBR partition table, and can exist in one or more partitions, and the read-only part is placed in the solid-state storage device under the condition that the solid-state storage device exists; the Root partition and the Overlay partition may be separate partitions or may be on a logical volume generated by a volume management tool (volume management tool, such as LVM).
In addition to the above-mentioned partitions, other partitions can be added, including but not limited to adding additional partitions in addition to the above-mentioned partitions, and the partition distribution can be adjusted according to the actual situation.
Fig. 4 is a schematic diagram of a file system architecture based on read-write separation in a third embodiment of a cloud terminal processing system based on read-write separation according to the present invention, as shown in fig. 4, on the basis of the second embodiment, the partition unit 101 further includes:
the compression unit 1014: the method is used for compressing the rootfs mirror image to form a single mirror image file.
The method can also comprise the following steps:
the encryption unit 1015: the method is used for encrypting the rootfs mirror image.
Specifically, the Root partition is made into a rootfs mirror image, and a Root file path can be compressed by using (including but not limited to) a read-only file system such as squashfs and the like to form a single mirror image file. In the process, gaps (pre-occupied space) existing in file storage are removed, a compression algorithm can be selected for further compression, the overall size of the rootfs mirror image is reduced, a single mirror image file formed by compression is single in type and easy to distribute again, the obtained read-only mirror image is easy to realize read-write separation, the compressed mirror image file can be selectively encrypted, and the security of the rootfs mirror image is enhanced; the method has the advantages of small occupied space, small number and variety of files, easy redistribution and convenient read-write separation.
Fig. 5 is a schematic diagram of a file system architecture based on read-write separation in a fourth embodiment of a cloud terminal processing system based on read-write separation according to the present invention, as shown in fig. 5, on the basis of the third embodiment, the combining unit 103 includes:
hierarchical unit 1031: the system comprises a router, a processor, a storage unit, a processor and a processor, wherein the router is used for layering rootfs mirror images and Overlay partitions to obtain lower paths, work paths and upper paths; the lower path stores a rootfs mirror image, and the work path and the upper path jointly store an Overlay partition;
the superimposing unit 1032: the path stacking device is used for stacking the lower path, the work path and the upper path; and reading the rootfs mirror image when reading the file, and writing the rootfs mirror image into the Overlay partition when writing the file.
Specifically, the read-write separation is realized without influencing the read-write requirement of a normal system, and the read-write separation is realized by using the characteristic of an Overlay FS, wherein the Overlay FS divides a file system at the bottom layer into three layers, namely a Lower path, a work path and an upper path, the Lower path is a mirror image of a Root partition which is made into a read-only file system mirror image, the work path and the upper path are two parts required by the Overlay FS, for a Linux operating system, the Overlay FS is seen to present the content of the operating system, the Overlay FS overlaps the three layers, the rootfs mirror image is read when the file is read, the rootfs mirror image is written into the Overlay partition when the file is written, the content on the rootfs can be modified, deleted, added and the like, and can also be directly written into the Overlay partition, and the operating system directly obtains the modified result.
The Overlay FS is readable and writable for a Linux operating system, normal operation of the system is not affected, but for a Root partition mirror image, the read-only FS is read-only, and a general read-only mirror image is deployed on a solid-state storage device, so that the high-efficiency reading performance of the solid-state storage device is used, the service life of the solid-state storage device is prolonged, and the service life of the solid-state storage device, namely a FLASH storage device, depends on the number of times of writing.
According to the cloud terminal processing method and system based on read-write separation, the cloud terminal device is based on an X86 architecture, but the cloud terminal device is not limited to be applied to the cloud terminal device, and can also be applied to computers, portable equipment and embedded equipment such as a PC (personal computer), and the like, and the cloud terminal device comprises but is not limited to an X86 architecture, an ARM architecture, a PowerPC architecture and the like; the invention is not only limited to be applied to configured solid state disks and mechanical hard disks, but also can be applied to single-block and multi-block storage devices, including but not limited to solid state disks, mechanical hard disks, FLASH-based storage and the like; the boot mode of the host operating system of the read-write separation cloud terminal comprises but is not limited to a Legacy/CSM boot mode and a UEFI boot mode; in the host operating system of the cloud terminal with separated reading and writing, partial partition modes are stored, including but not limited to a partition mode based on an MBR partition table and a partition mode based on a GPT partition table; the host system in the invention is based on the Linux system, but the idea of read-write separation can be applied to various operating systems, including but not limited to various Linux distribution versions, UNIX-like systems and various branches thereof, mini systems and various derivative systems, and Windows systems. The invention provides a cloud terminal processing method and system based on read-write separation, which are currently implemented on a cloud terminal.
According to the cloud terminal processing method and system based on read-write separation, an original Root partition is used as a read-only mirror image, the reliability of the system is improved, the operation and maintenance cost is reduced, the read-write separation (including a read-only part and a writable area) of an operating system layer can be realized by the cloud terminal, the configuration of the read-write area does not need to be changed, the requirement of the system for normally writing files is not influenced, and the operation of a cloud terminal host system is influenced; the solid state disk part equipped by the cloud terminal is used as a read-only area, so that the service life and the reading speed of the solid state disk are improved; the mechanical hard disk part equipped by the cloud terminal is used as a writable area, so that the operation and maintenance cost is reduced integrally; the read-write separation is realized, the reliability of the cloud terminal host system is enhanced, the rapid recovery can be realized under the condition that errors occur in the writable area, the read-write separation and extensible scheme is provided and realized, and the service life of the solid-state storage device is prolonged.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (6)

1. A cloud terminal processing method based on read-write separation is characterized by comprising the following steps:
partitioning the storage device to obtain a rootfs mirror image and a boot partition mirror image;
establishing an Overlay partition;
carrying out layering processing on the rootfs mirror image and the Overlay partition to obtain a lower path, a work path and an upper path; the lower path is a mirror image of a Root partition which is already made into a read-only file system mirror image and is used for storing a rootfs mirror image, and the work path and the upper path jointly store an Overlay partition;
the Overlay FS superposes the three levels of the lower path, the work path and the upper path; reading the rootfs mirror image when reading the file, and writing the rootfs mirror image into the Overlay partition when writing the file to obtain a read-write separated file system;
and mounting the file system with separated reading and writing.
2. The read-write separation-based cloud terminal processing method according to claim 1, wherein the partitioning processing of the storage device specifically includes:
the device comprises a base station, a base station and a plurality of MBR partition tables, wherein the base station is used for partitioning a storage device based on the MBR partition tables to obtain Boot partitions and Root partitions;
partitioning the storage device based on the GPT partition table to obtain an ESP partition, a Boot partition and a Root partition;
and carrying out system mirror image processing on the Root partition to obtain a rootfs mirror image.
3. The method for processing the cloud terminal based on the read-write separation as claimed in claim 1, wherein the partitioning processing is performed on the storage device, further comprising:
and compressing the rootfs mirror image to form a single mirror image file.
4. A cloud terminal processing system based on read-write separation is characterized by comprising:
a partition unit: the system comprises a storage device, a root partition mirror image and a boot partition mirror image, wherein the storage device is used for partitioning the storage device to obtain the rootfs mirror image and the boot partition mirror image;
the establishing unit: used for establishing an Overlay partition;
a layering unit: carrying out layering processing on the rootfs mirror image and the Overlay partition to obtain a lower path, a work path and an upper path; the lower path is a mirror image of a Root partition which is already made into a read-only file system mirror image and is used for storing a rootfs mirror image, and the work path and the upper path jointly store an Overlay partition;
the Overlay FS overlaps the three layers of the lower path, the work path and the upper path; reading the rootfs mirror image when reading the file, and writing the rootfs mirror image into the Overlay partition when writing the file to obtain a read-write separated file system;
a mounting unit: the method is used for mounting the read-write separated file system.
5. The read-write separation-based cloud terminal processing system according to claim 4, wherein the partition unit includes:
a first partitioning unit: the device comprises a base station, a base station and a plurality of MBR partition tables, wherein the base station is used for partitioning a storage device based on the MBR partition tables to obtain Boot partitions and Root partitions;
a second partition unit: the device is used for carrying out partition processing on the storage equipment based on the GPT partition table to obtain an ESP partition, a Boot partition and a Root partition;
a mirror unit: and the method is used for carrying out system mirror image processing on the Root partition to obtain a rootfs mirror image.
6. The read-write separation-based cloud terminal processing system according to claim 4, wherein the partition unit further includes:
a compression unit: the method is used for compressing the rootfs mirror image to form a single mirror image file.
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 CN108804034A (en) 2018-11-13
CN108804034B true 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)

Families Citing this family (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
CN112579521A (en) * 2019-09-29 2021-03-30 北京君正集成电路股份有限公司 File system implementation method based on equipment mapping mechanism
CN111258666B (en) * 2020-01-22 2023-07-04 奇安信科技集团股份有限公司 Method and device for reading computer file, computer system and storage medium
CN114461290A (en) * 2020-10-22 2022-05-10 华为云计算技术有限公司 Data processing method, example and system
CN116149759B (en) * 2023-04-20 2023-07-14 深圳市吉方工控有限公司 UEFI (unified extensible firmware interface) drive unloading method and device, electronic equipment and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871174A (en) * 2012-12-14 2015-08-26 国际商业机器公司 Boot mechanisms for 'bring your own' management
CN107590272A (en) * 2017-09-26 2018-01-16 天津麒麟信息技术有限公司 A kind of operating system snapshot implementing method based on Overlay file system

Family Cites Families (6)

* 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
US9461876B2 (en) * 2012-08-29 2016-10-04 Loci System and method for fuzzy concept mapping, voting ontology crowd sourcing, and technology prediction
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
CN107704603A (en) * 2017-10-16 2018-02-16 山东浪潮通软信息科技有限公司 A kind of method and device for realizing read and write abruption

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871174A (en) * 2012-12-14 2015-08-26 国际商业机器公司 Boot mechanisms for 'bring your own' management
CN107590272A (en) * 2017-09-26 2018-01-16 天津麒麟信息技术有限公司 A kind of operating system snapshot implementing method based on Overlay file system

Also Published As

Publication number Publication date
CN108804034A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN108804034B (en) Cloud terminal processing method and system based on read-write separation
US11086774B2 (en) Address translation for storage device
US10037158B2 (en) Vertically integrated storage
US10430286B2 (en) Storage control device and storage system
US20220137849A1 (en) Fragment Management Method and Fragment Management Apparatus
US11722064B2 (en) Address translation for storage device
US20180107499A1 (en) Active drive
CN112035294B (en) Security log file system and implementation method and medium thereof
CN107665096A (en) Weighted data slitting
CN111581126A (en) Method, device, equipment and medium for saving log data based on SSD
US20090125699A1 (en) Adjustment of Data Storage Capacity Provided by a Storage System
US11409451B2 (en) Systems, methods, and storage media for using the otherwise-unutilized storage space on a storage device
US7996447B2 (en) Method and system for optimal file system performance
US8527733B2 (en) Memory system
KR102277731B1 (en) Method for operating storage system and storage controller
US20240095211A1 (en) Published File System And Method
US11416155B1 (en) System and method for managing blocks of data and metadata utilizing virtual block devices
US20070061530A1 (en) Method for storage of digital data in a mainframe data center and associated device
US11055190B1 (en) System and method for facilitating storage system operation with global mapping to provide maintenance without a service interrupt
US11144453B2 (en) Unmap to initialize sectors
CN111831230A (en) Intelligent storage system for high-performance calculation and big data
US20230134506A1 (en) System and method for managing vm images for high-performance virtual desktop services
CN107704198B (en) Information processing method and electronic equipment
KR101460452B1 (en) Apparatus of generating snapshot image based on hibernation and method of the same
KR102159835B1 (en) Apparatus and method for managing recovery information of auxiliary storage device

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