CN107291490A - A kind of method and apparatus of system upgrade - Google Patents

A kind of method and apparatus of system upgrade Download PDF

Info

Publication number
CN107291490A
CN107291490A CN201710317221.5A CN201710317221A CN107291490A CN 107291490 A CN107291490 A CN 107291490A CN 201710317221 A CN201710317221 A CN 201710317221A CN 107291490 A CN107291490 A CN 107291490A
Authority
CN
China
Prior art keywords
goal systems
upgrade
database
software
system environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710317221.5A
Other languages
Chinese (zh)
Inventor
韦帅
李振强
王超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Upper Marine Infotech Share Co Ltd Of Interrogating
Original Assignee
Upper Marine Infotech Share Co Ltd Of Interrogating
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 Upper Marine Infotech Share Co Ltd Of Interrogating filed Critical Upper Marine Infotech Share Co Ltd Of Interrogating
Priority to CN201710317221.5A priority Critical patent/CN107291490A/en
Publication of CN107291490A publication Critical patent/CN107291490A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44573Execute-in-place [XIP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The purpose of the application is to provide a kind of method and apparatus of system upgrade, the application by the embedded upgrade-system environment in goal systems, wherein, its own system environment of the upgrade-system environment and goal systems is separate;Obtain the system software and nonsystematic software in the goal systems;System software is upgraded in upgrade-system environment, if upgrading successfully, its own system environment is then switched to upgrade to nonsystematic software, realize the upgrading of the system software in upgrade-system environment to goal systems, so that the upgrading to the system software of goal systems departs from its own system environments, no longer influenceed by its own system environments, and then avoid interactional limitation between the ROMPaq of system software and its own system environments, after succeeding in embedded upgrade-system environment to system software upgrading, switch in its own system environment and the nonsystematic software of goal systems is upgraded, realize the upgrading to goal systems.

Description

A kind of method and apparatus of system upgrade
Technical field
The application is related to computer realm, more particularly to a kind of method and apparatus of system upgrade.
Background technology
In the prior art, legacy system upgrading scheme is mainly:ROMPaq is performed on the target system, is carried out file and is replaced Change and file modification operate to reach the purpose for upgrading to goal systems.Because ROMPaq runs on oneself of goal systems In body system environments so that the environment and its own system environment of goal systems that ROMPaq is run are same environment, i.e., traditional System upgrade be that goal systems is that itself is upgraded under its own system environment, in the bottom software to system in itself, especially It is, when upgrading to file system (such as filesystem) and bibliographic structure, system to be caused to occur operation in itself and asked Topic, so as to influence the operation of ROMPaq, and causes great risk to whole updating operation, or even system is delayed machine.
The content of the invention
The purpose of the application is to provide a kind of method and apparatus of system upgrade, to solve in the prior art using biography The problem of upgrading risk is high caused by the scheme of system upgrade of uniting.
According to the one side of the application there is provided a kind of method of system upgrade, this method includes:
The embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment and the goal systems from Body system environments is separate;
Obtain the system software and nonsystematic software in the goal systems;
The system software is upgraded in the upgrade-system environment, if upgrading successfully, switch to it is described from Body system environments is upgraded to the nonsystematic software.
Further, it is described that upgrading is carried out to the system software in the upgrade-system environment in the above method Before, in addition to:
Judge whether the idle storage space of the root partition in the goal systems meets default system upgrade demand sky Between,
If meeting, unloading is carried out to the database in the goal systems.
Further, in the above method, the database in the goal systems carries out unloading, including:
Based on default data storage list, by the corresponding data conversion storage of database in the goal systems to default mesh Mark in path.
Further, it is described to be based on default data storage list in the above method, by the data in the goal systems The corresponding data conversion storage in storehouse into goal-selling path, including:
According to the type of the database, corresponding database instruction is determined;
It is based on the default data storage list and database instruction, the database in the goal systems is corresponding Data conversion storage is into goal-selling path.
Further, in the above method, whether the idle storage space for judging the root partition in the goal systems After meeting default system upgrade demand space, in addition to:
If it is not satisfied, then unloading is carried out to the data stored in the root partition, until the idle storage of the root partition Space meets the default system upgrade demand space.
Further, in the above method, after the data progress unloading to being stored in the root partition, in addition to:
If the idle storage space threshold value of the root partition is unsatisfactory for the default system upgrade demand space, point out Root partition described in user is unsatisfactory for the default system upgrade demand space.
Further, it is described that the system software is upgraded in the upgrade-system environment in the above method, if Upgrade successfully, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:
Delete the upgrade-system environment being embedded in the goal systems.
Further, it is described that the system software is upgraded in the upgrade-system environment in the above method, if Upgrade successfully, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:
Based in the default data storage list and the goal systems being transferred under the goal-selling path The corresponding data of database, the database is recovered.
Further, it is described that the system software is upgraded in the upgrade-system environment in the above method, if Upgrade successfully, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:
Based on the default data storage list, database instruction and described in being transferred under the goal-selling path The corresponding data of database in goal systems, recover to the database.
Further, it is described that the system software is upgraded in the upgrade-system environment in the above method, if Upgrade successfully, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:
Based on the data storage list, data scrubbing is carried out to its own system environment of the goal systems.
According to the another aspect of the application, a kind of equipment of system upgrade is additionally provided, wherein, the equipment includes:
Flush mounting, for the embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment with it is described Its own system environment of goal systems is separate;
Acquisition device, for obtaining system software and nonsystematic software in the goal systems;
Update device, for upgrading in the upgrade-system environment to the system software, if upgrading successfully, Its own system environment is switched to upgrade to the nonsystematic software.
Further, in the said equipment, the update device is additionally operable to:
Judge whether the idle storage space of the root partition in the goal systems meets default system upgrade demand sky Between,
If meeting, unloading is carried out to the database in the goal systems.
Further, in the said equipment, the update device is additionally operable to:
Based on default data storage list, by the corresponding data conversion storage of database in the goal systems to default mesh Mark in path.
Further, in the said equipment, the update device is additionally operable to:
According to the type of the database, corresponding database instruction is determined;
It is based on the default data storage list and database instruction, the database in the goal systems is corresponding Data conversion storage is into goal-selling path.
Further, in the said equipment, the update device is additionally operable to:
If it is not satisfied, then unloading is carried out to the data stored in the root partition, until the idle storage of the root partition Space meets the default system upgrade demand space.
Further, in the said equipment, the update device is additionally operable to:
If the idle storage space threshold value of the root partition is unsatisfactory for the default system upgrade demand space, point out Root partition described in user is unsatisfactory for the default system upgrade demand space.
Further, in the said equipment, the update device is additionally operable to:
Delete the upgrade-system environment being embedded in the goal systems.
Further, in the said equipment, the update device is additionally operable to:
Based in the default data storage list and the goal systems being transferred under the goal-selling path The corresponding data of database, the database is recovered.
Further, in the said equipment, the update device is additionally operable to:
Based on the default data storage list, database instruction and described in being transferred under the goal-selling path The corresponding data of database in goal systems, recover to the database.
Further, in the said equipment, the update device is additionally operable to:
Based on the data storage list, data scrubbing is carried out to its own system environment of the goal systems.
Compared with prior art, the application is by the embedded upgrade-system environment in goal systems, wherein, the upgrading system System environment and its own system environment of the goal systems are separate;Obtain the system software in the goal systems and non-system System software;The system software is upgraded in the upgrade-system environment, if upgrading successfully, switch to it is described itself System environments is upgraded to the nonsystematic software, realizes system software in upgrade-system environment to goal systems Upgrading so that the upgrading to the system software of goal systems departs from its own system environments, no longer by its own system environments Influence, and then interactional limitation between the ROMPaq of system software and its own system environments is avoided, embedded After succeeding in upgrade-system environment to system software upgrading, switch to soft to the nonsystematic of goal systems in its own system environment Part is upgraded, and realizes the upgrading to goal systems.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 shows a kind of schematic flow sheet of the method for system upgrade according to the application one side;
Fig. 2 shows a kind of structural representation of the equipment of system upgrade according to the application one side.
Same or analogous reference represents same or analogous part in accompanying drawing.
Embodiment
The application is described in further detail below in conjunction with the accompanying drawings.
In one typical configuration of the application, terminal, the equipment of service network and trusted party include one or more Processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flashRAM).Internal memory is showing for computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM), Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or Any other non-transmission medium, the information that can be accessed by a computing device available for storage.Defined according to herein, computer Computer-readable recording medium does not include the data-signal and carrier wave of non-temporary computer readable media (transitory media), such as modulation.
Fig. 1 shows a kind of schematic flow sheet of the method for system upgrade according to the application one side;This method includes Step S11, step S12 and step S13, wherein, specifically include:
When needing to upgrade to goal systems to be upgraded, in order to ensure that the system software in goal systems is carried out Safety upgrade, it is to avoid upgrading of its own system environment of goal systems on system software occur and cause limitation to influence, thus it is described Step S11 embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment and the goal systems itself System environments is separate so that separate upgrade-system environment is independent of each other with the upgrading in its own system environment, can To ensure the follow-up system software to goal systems and the complete upgrading of nonsystematic software;Then the step S12 obtains described System software and nonsystematic software in goal systems;The last step S13 is in the upgrade-system environment to the system System software is upgraded, if upgrading successfully, switches to its own system environment and the nonsystematic software is upgraded, real The upgrading of the system software in upgrade-system environment to goal systems is showed so that the upgrading to the system software of goal systems Depart from its own system environments, no longer influenceed by its own system environments, so avoid system software ROMPaq and its Interactional limitation between its own system environment, to system software upgrading success in embedded upgrade-system environment Afterwards, switch in its own system environment and the nonsystematic software of goal systems is upgraded, realize the upgrading to goal systems.
It should be noted that the goal systems can be including but not limited to linux system, Windows systems, XP systems System, Ios systems etc..Below so that linux system is goal systems as an example, the application is illustrated.
It should be noted that the system software of the goal systems can include goal systems inner nuclear layer Software, the file system of goal systems and bibliographic structure and database;In order in the step S13 in goal systems Upgrade-system environment in the security upgraded to system software and reduce the risk to system software upgrading as much as possible, Using escalation policy upward under being carried out first to goal systems, i.e., such as kernel first in upgrade-system environment to goal systems The system softwares such as layer, file system and bibliographic structure are upgraded, while soft to system in upgrade-system environment in order to reduce The upgrading risk of part, the system software of the goal systems need to obtain the soft of minimum underlying system software more by taking turns test one Part bag set so that the system software with minimum software kit set can be escalated into successfully in upgrade-system environment Work(.The nonsystematic software of the goal systems can include but is not limited between application software, system software and application software Interface software etc., the wherein application software can be word processor (such as word, WPS), information management software, auxiliary Design software (such as CAD) and real-time control software etc..
Further, in order to ensure the complete upgrading to goal systems and upgrade successfully, in the step S13 described Before upgrading in upgrade-system environment to the system software, in addition to:Judge root partition in the goal systems Whether idle storage space meets default system upgrade demand space, if if meeting, to the number in the goal systems Unloading is carried out according to storehouse.If for example, the default system upgrade demand space for completing the complete upgrading needs to goal systems is 1.3GB, if wherein the idle storage space of the root partition of the goal systems (such as linux system) is 1.8GB, it is seen that described The idle storage space of the root partition of goal systems meets system upgrade demand space, and in order to ensure having in goal systems The reservation of some data of importance, it is to avoid lost during system upgrade, thus before read apparatus is upgraded and It is me to meet system upgrade demand space, and unloading is carried out to the database in goal systems, is realized to the data in goal systems The data retained are needed to carry out unloading in storehouse, so that sequential reduction is into the database.
Further, before the step S13 in the goal systems database carry out unloading, including:It is based on Default data storage list, by the corresponding data conversion storage of database in the goal systems into goal-selling path.Need It is noted that the default data storage list can be when upgrading tool is developed, previously according to target Running situation statistics carries out management and control and the file and path list that retain the need for obtaining, can also be normal for goal systems The index list of essential file and catalogue during operation.According to the default data storage list, by the target system The corresponding data conversion storage of database in system realizes the file and mesh to needing to retain into specified goal-selling path Record carries out preset in advance reservation, it is to avoid during upgrading to goal systems, and the data for needing reservation are deposited The generation of the loss problem of data in the corresponding database of storage list.Here, the form of expression of data conversion storage can be supported The migration of database in Relational DBMS (such as MySQL and sqlite), can also be support dynamic text The migration of database in part system (such as Zettabyte FileSystem and zpool).
Further, before the step S13 based on default data storage list, by the number in the goal systems According to the corresponding data conversion storage in storehouse into goal-selling path, including:
According to the type of the database, corresponding database instruction is determined;
It is based on the default data storage list and database instruction, the database in the goal systems is corresponding Data conversion storage is into goal-selling path.
It should be noted that the type of the database can include but is not limited to be network database (Network Database), relational database (Relational Database), tree shaped data storehouse (HierarchicalDatabase), face To object database (Object-oriented Database) etc., wherein, the relational database can for Oracle, DB2, Sybase, MS SQL Server, Informax and MySQL etc..Different type of database, when being operated to database The different database instruction of correspondence.
In the embodiment of the application one, before the step S13, in the idle storage for the root partition for judging to obtain goal systems Space is met after the default system upgrade demand space, according to the type of the database, determines that corresponding database refers to Data in database are carried out unloading, i.e., according to database instruction, by default data by order according to corresponding database instruction The corresponding data conversion storage of the corresponding database in goal systems of list is stored into specified goal-selling path.For example, If the type of the database is mysql databases, it is determined that corresponding database instruction instructs for mysqldump, by this Data storage list correspondence corresponding in database data exports and are transferred to specify described and preset by mysqldump instructions In destination path, realize to the file retained the need in goal systems and the reservation in the path of catalogue, it is follow-up right to be also convenient for Corresponding data are reduced in database, it is to avoid need the data storage list retained corresponding data in database to exist Goal systems carries out escalation process loss, it is ensured that the security of data.
Because the deployment way in goal systems is varied, to improve the service behaviour of goal systems, by goal systems It is deployed on the extremely limited DOM cards in space, and the requirement due to aol server to its own system environment is harsh, and it is necessary Ensure the ability of the upgraded in offline of the goal systems, therefore when upgrading to goal systems, need to be according to the root of goal systems point The idle storage space in area is judged, to cause the idle storage space for different root partition, carries out different spaces Operation is handled, to ensure that there is goal systems enough spaces to be upgraded.
In the embodiment of the application one, the free time for judging the root partition in the goal systems before the step S13 deposits Whether storage space is met after default system upgrade demand space, in addition to:If it is not satisfied, then to being stored in the root partition Data carry out unloading, until the idle storage space of the root partition meets the default system upgrade demand space.Example Such as, if the default system upgrade demand space for completing the complete upgrading needs to goal systems is 1.3GB, if wherein the mesh The idle storage space of the root partition of mark system (such as linux system) is 1.1GB, it is seen that the root partition of the goal systems Idle storage space is unsatisfactory for system upgrade demand space, in order to ensure have enough idle storage spaces to enter goal systems Row upgrading, therefore need the data stored in root partition carrying out unloading, to vacate the space of root partition, until the free time of root partition Memory space disclosure satisfy that the default system upgrade demand space, and then be able to ensure that the root partition of goal systems has foot Enough idle storage spaces carry out system upgrade.
Further, in order to avoid the goal systems root partition idle storage space threshold value (that is, institute in root partition Some data are all carried out in unloading or root partition without any data of storage) still it is unsatisfactory for carrying out upgrading needs to goal systems Default system upgrade demand space, then unloading is carried out to the data that are stored in the root partition before the step S13 Afterwards, in addition to:If the idle storage space threshold value of the root partition is unsatisfactory for the default system upgrade demand space, Root partition described in prompting user is unsatisfactory for the default system upgrade demand space.If for example, completing to the complete of goal systems The default system upgrade demand space that whole upgrading needs is 1.3GB, if wherein the goal systems (such as linux system) (that is, all data are all carried out in unloading or root partition without storage times the idle storage space threshold value of root partition in root partition What data) be 1.2GB, then need to point out the idle storage space threshold value 1.2GB of the root partition of user's goal systems to be unsatisfactory for The default system upgrade demand space is 1.3GB, to make user solve to enter the goal systems by way of artificially handling The problem of default system upgrade demand space required for row upgrading is not enough.Further, if to being stored in the root partition Data carry out unloading after, it is empty that the idle storage space threshold value of the root partition is unsatisfactory for the default system upgrade demand Between, then need the data convert stored in the root partition by unloading into root partition, it is to avoid the data stored in root partition are lost Lose, the idle storage space threshold value that user's root partition is reresented afterwards is unsatisfactory for default system upgrade demand space.
Further, the step S13 upgrades in the upgrade-system environment to the system software, if upgrading Success, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Deletion is embedded in institute State the upgrade-system environment in goal systems.In order to reduce the risk upgraded to goal systems, therefore in target system Embedded upgrade-system environment in system, the program upgraded for running to goal systems is simultaneously soft to the system in goal systems Part is upgraded, and to avoid influencing each other between the program and system software for upgrading, is upgraded to goal systems After success, the upgrade-system environment that need to be embedded in the goal systems is deleted, to save the storage resource of goal systems.
Further, the step S13 upgrades in the upgrade-system environment to the system software, if upgrading Success, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Based on described default Data storage list and the goal systems that is transferred under the goal-selling path in the corresponding data of database, it is right The database is recovered.If here, data storage list file essential when normally being run for goal systems With the index list of catalogue, for example, the recovery to living document system, especially to the corresponding storage pool of living document system Recover, because living document system is during being upgraded, can cause to be built in the corresponding storage pool of living document system Vertical file system failure, therefore need according to living document system dependent instruction, data storage list correspondence is transferred to default Data recovery in destination path is realized to protecting the need in goal systems into the corresponding storage pool of living document system The file stayed and the reservation in the path of catalogue, based on data storage list and can correspond to the goal-selling path of unloading rapidly Find the data of unloading, additionally it is possible to accurately and quickly by the data recovery of unloading into goal systems.
Further, the step S13 upgrades in the upgrade-system environment to the system software, if upgrading Success, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Based on described default Data storage list, database instruction and the goal systems that is transferred under the goal-selling path in database pair The data answered, recover to the database.Here, if desired recovering to the mysql databases in goal systems, then It is pre- based on this when the data in the database are recovered, it is necessary to call the corresponding database instruction of mysql databases If data storage list, will be in the goal systems that be transferred under goal-selling path before carrying out system upgrade should The corresponding data of mysql databases, are imported and to the mysql databases, to realize the mysql databases of goal systems In the need for the data that retain recovered.
Further, the step S13 upgrades in the upgrade-system environment to the system software, if upgrading Success, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Based on the data List is stored, data scrubbing is carried out to its own system environment of the goal systems.Produced to remove in escalation process Raw file abnormal residual, will be described based on the corresponding file of the data storage list for needing to retain and the path of catalogue It is all in addition to the path of the corresponding file of the data storage list and catalogue in its own system environment of goal systems Data dump, and then the abnormal residual of the uncontrolled file in its own system environment of goal systems will be entered in escalation process Row cleaning, it is ensured that the controllability and security of its own system environment of goal systems, and save the storage resource of goal systems.
In summary, in a kind of method for upgrading system that the application is provided, during in order to upgrade to goal systems, it is considered to To goal systems its own system environment the bottom software and file system of the goal systems of itself are upgraded during, Influenceed by its own system environment, in some instances it may even be possible to the machine of delaying can be caused, therefore before upgrading to the goal systems, in the mesh An embedded upgrade-system environment in mark system, so that the ROMPaq needed for upgrade-system can be in the upgrade-system environment Run, its own system environment separation of upgrade-system environment and goal systems is opened so that the upgrading of whole escalation process Program is run in the case where departing from its own system environment, and then is no longer influenceed by its own system environment, can be completely free of liter Interactional limitation between upgrade-system environment and its own system environment where level program operation, is reduced to target system The risk united during being upgraded.
Then above-described embodiment, in order to ensure the integrality upgraded to goal systems, before being upgraded, is also needed Judge whether the idle storage space of the root partition of goal systems meets default system upgrade demand space, if if meeting, The database retained needing system to need carries out unloading, and default data storage list is corresponding in goal systems The corresponding data conversion storage of database into specified goal-selling path, if if being unsatisfactory for, by what is stored in root partition Data carry out unloading, until the idle storage space of root partition meets the default system upgrade demand space of upgrading needs, if Data conversion storage in root partition is finished, default system upgrade demand space is still unsatisfactory for, then by all numbers of unloading According to being restored in root partition, and the default system upgrade demand for pointing out user's root partition to meet system upgrade demand is empty Between.
Then above-described embodiment of the application, the corresponding data in goal systems is stored in the corresponding database of list Data are carried out after unloading, run ROMPaq in the upgrade-system environment, to the system software in goal systems (for example Kernel software in inner nuclear layer, file system and structured file etc.) upgraded, after the completion of upgrading to system software, By changing after boot manager (grub configurations), the goal systems is restarted, the grub configurations are by escalation process from described Switched in upgrade-system environment in its own system environment, to realize the switching to upgrade-system environment and its own system environment, And nonsystematic software (such as application software package) is upgraded in its own system environment, and by data storage list The corresponding data convert being transferred under the goal-selling path specified will remove data storage list into corresponding database Outside all data carry out cleaning deletion, while the embedded upgrade-system environment is deleted, to save goal systems Storage resource;By using embedded upgrade-system environment and the environment of its own system environment separation formula respectively to goal systems System software and nonsystematic software are upgraded, and not only avoid limitation present in legacy system escalation process, it is ensured that It goal systems completely upgraded, and ensure that the integrality for the data for needing to retain, increasing is reduced to target system System carries out the risk of upgrading presence.
Fig. 2 shows a kind of structural representation of the equipment of system upgrade according to the application one side;The equipment includes Flush mounting 11, acquisition device 12 and update device 13, wherein, specifically include:
When needing to upgrade to goal systems to be upgraded, in order to ensure that the system software in goal systems is carried out Safety upgrade, it is to avoid upgrading of its own system environment of goal systems on system software occur and cause limitation to influence, thus it is described Flush mounting 11 is used for:The embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment and the target system Its own system environment of system is separate so that the upgrading in separate upgrade-system environment and its own system environment is mutual not Influence, it is ensured that system software and the complete upgrading of nonsystematic software subsequently to goal systems;Then the acquisition device 12 are used for:Obtain the system software and nonsystematic software in the goal systems;The last update device 13 is used for:Described The system software is upgraded in upgrade-system environment, if upgrading successfully, its own system environment is switched to institute State nonsystematic software to be upgraded, realize the upgrading of the system software in upgrade-system environment to goal systems so that right The upgrading of the system software of goal systems departs from its own system environments, is no longer influenceed by its own system environments, and then keep away Exempt from interactional limitation between the ROMPaq of system software and its own system environments, in embedded upgrade-system environment In to system software upgrading success after, switch in its own system environment and the nonsystematic software of goal systems upgraded, Realize the upgrading to goal systems.
It should be noted that the goal systems can be including but not limited to linux system, Windows systems, XP systems System, Ios systems etc..Below so that linux system is goal systems as an example, the application is illustrated.
It should be noted that the system software of the goal systems can include goal systems inner nuclear layer Software, the file system of goal systems and bibliographic structure and database;In order in the update device 13 in target The security upgraded in the upgrade-system environment of system to system software and reduce as much as possible to system software upgrading Risk, using escalation policy upward under being carried out first to goal systems, i.e., example first in upgrade-system environment to goal systems Such as inner nuclear layer, file system and bibliographic structure system software are upgraded, while right in upgrade-system environment in order to reduce The upgrading risk of system software, the system software of the goal systems need to by take turns more test one obtain minimum first floor system it is soft The software kit set of part so that the system software with minimum software kit set can be carried out successfully in upgrade-system environment Upgrade successfully.The nonsystematic software of the goal systems can include but is not limited to application software, system software and application software Between interface software etc., the wherein application software can be that word processor (such as word, WPS), information management are soft Part, Autocad (such as CAD) and real-time control software etc..
Further, in order to ensure the complete upgrading to goal systems and upgrade successfully, the update device 13 is additionally operable to: Judge whether the idle storage space of the root partition in the goal systems meets default system upgrade demand space, if meeting If, then unloading is carried out to the database in the goal systems.For example, what if the complete upgrading completed to goal systems needed Default system upgrade demand space is 1.3GB, if wherein the free time of the root partition of the goal systems (such as linux system) Memory space is 1.8GB, it is seen that the idle storage space of the root partition of the goal systems meets system upgrade demand space, again In order to ensure the reservation of some data with importance in goal systems, it is to avoid lost during system upgrade, therefore It is me before read apparatus is upgraded and meeting system upgrade demand space, the database in goal systems is turned Deposit, realize and unloading is carried out to the data for needing to retain in the database in goal systems, so that sequential reduction is into the database.
Further, the update device 13 is additionally operable to:Based on default data storage list, by the goal systems The corresponding data conversion storage of database into goal-selling path.It should be noted that the default data storage list can Think when upgrading tool is developed, previously according to goal systems running situation statistics obtain the need for carry out management and control and The file and path list of reservation, the index column of essential file and catalogue when can also normally be run for goal systems Table.According to the default data storage list, by the corresponding data conversion storage of database in the goal systems to specified In goal-selling path, and then realize that file and catalogue to needing to retain carry out preset in advance reservation, it is to avoid to target During system is upgraded, the loss of the data in the corresponding database of the data storage list to needing reservation is asked The generation of topic.Here, the form of expression of data conversion storage can be support Relational DBMS (such as MySQL and Sqlite etc.) in database migration, can also be support living document system (such as Zettabyte File System And zpool etc.) in database migration.
Further, the update device 13 is additionally operable to:
According to the type of the database, corresponding database instruction is determined;
It is based on the default data storage list and database instruction, the database in the goal systems is corresponding Data conversion storage is into goal-selling path.
It should be noted that the type of the database can include but is not limited to be network database (Network Database), relational database (Relational Database), tree shaped data storehouse (HierarchicalDatabase), face To object database (Object-oriented Database) etc., wherein, the relational database can for Oracle, DB2, Sybase, MS SQL Server, Informax and MySQL etc..Different type of database, when being operated to database The different database instruction of correspondence.
In the embodiment of the application one, the update device 13 is empty in the idle storage for the root partition for judging to obtain goal systems Between meet the default system upgrade demand space after, be additionally operable to the type according to the database, determine corresponding data Storehouse is instructed, and unloading is carried out to the data in database according to corresponding database instruction, i.e., will be default according to database instruction The corresponding data conversion storage of the corresponding database in goal systems of data storage list is into specified goal-selling path.Example Such as, if the type of the database is mysql databases, it is determined that corresponding database instruction instructs for mysqldump, passes through Corresponding in the database data of data storage list correspondence are exported and are transferred to specify described pre- by mysqldump instructions If in destination path, realizing to the file retained the need in goal systems and the reservation in the path of catalogue, it is also convenient for follow-up Corresponding data in database are reduced, it is to avoid need the data storage list retained corresponding data in database Escalation process loss is carried out in goal systems, it is ensured that the security of data.
Because the deployment way in goal systems is varied, to improve the service behaviour of goal systems, by goal systems It is deployed on the extremely limited DOM cards in space, and the requirement due to aol server to its own system environment is harsh, and it is necessary Ensure the ability of the upgraded in offline of the goal systems, therefore when upgrading to goal systems, need to be according to the root of goal systems point The idle storage space in area is judged, to cause the idle storage space for different root partition, carries out different spaces Operation is handled, to ensure that there is goal systems enough spaces to be upgraded.
In the embodiment of the application one, the update device 13 is additionally operable to:If it is not satisfied, then to storing in the root partition Data carry out unloading, until the idle storage space of the root partition meets the default system upgrade demand space.For example, If the default system upgrade demand space that completing the complete upgrading to goal systems needs is 1.3GB, if wherein the target The idle storage space of the root partition of system (such as linux system) is 1.1GB, it is seen that the sky of the root partition of the goal systems Not busy memory space is unsatisfactory for system upgrade demand space, in order to ensure to have enough idle storage spaces to be carried out to goal systems Upgrading, therefore need the data stored in root partition carrying out unloading, to vacate the space of root partition, until the free time of root partition deposits Storage space disclosure satisfy that the default system upgrade demand space, and then be able to ensure that the root partition of goal systems has enough Idle storage space carry out system upgrade.
Further, in order to avoid the goal systems root partition idle storage space threshold value (that is, institute in root partition Some data are all carried out in unloading or root partition without any data of storage) still it is unsatisfactory for carrying out upgrading needs to goal systems Default system upgrade demand space, then the update device 13 be additionally operable to:If the idle storage space threshold of the root partition Value is unsatisfactory for the default system upgrade demand space, then root partition described in prompting user is unsatisfactory for the default system liter Level demand space.If for example, the default system upgrade demand space for completing the complete upgrading needs to goal systems is 1.3GB, if wherein the idle storage space threshold value of the root partition of the goal systems (such as linux system) is (that is, in root partition All data are all carried out in unloading or root partition without any data of storage) be 1.2GB, then need the prompting user target system The idle storage space threshold value 1.2GB of the root partition of system is unsatisfactory for the default system upgrade demand space for 1.3GB, to use Family solves default system upgrade demand space required for being upgraded to the goal systems not by way of artificially handling Sufficient the problem of.Further, if after the data stored in the root partition are carried out with unloading, the idle of the root partition stores Capacity-threshold is unsatisfactory for the default system upgrade demand space, then needs the data convert stored in the root partition by unloading Into root partition, it is to avoid the loss of the data stored in root partition, the idle storage space threshold of user's root partition is reresented afterwards Value is unsatisfactory for default system upgrade demand space.
Further, the update device 13 is additionally operable to:Delete the upgrade-system being embedded in the goal systems Environment.In order to reduce the risk upgraded to goal systems, therefore upgrade-system environment is embedded in goal systems, for transporting The capable program upgraded to goal systems is simultaneously upgraded to the system software in goal systems, to avoid for upgrading Influencing each other between program and system software, after being upgraded successfully to goal systems, need to be embedded in the goal systems In the upgrade-system environment delete, to save the storage resource of goal systems.
Further, the update device 13 is additionally operable to:Described in the default data storage list and being transferred to The corresponding data of database in the goal systems under goal-selling path, recover to the database.If here, The index list of data storage list file essential when normally being run for goal systems and catalogue, for example, to dynamic The recovery of state file system, the especially recovery to the corresponding storage pool of living document system, because living document system is being entered During row upgrading, the file system set up in the corresponding storage pool of living document system can be caused to fail, therefore need root According to living document system dependent instruction, by the corresponding data recovery being transferred in goal-selling path of data storage list to dynamic In the corresponding storage pool of file system, and then realize to the file retained the need in goal systems and the guarantor in the path of catalogue Stay, the data of unloading can be quickly found based on the goal-selling path of data storage list and correspondence unloading, additionally it is possible to essence Really rapidly by the data recovery of unloading into goal systems.
Further, the update device 13 is additionally operable to:Based on the default data storage list, database instruction and The corresponding data of database in the goal systems under the goal-selling path are transferred to, the database are carried out extensive It is multiple.Here, if desired recovering to the mysql databases in goal systems, then the data in the database carry out extensive , it is necessary to call the corresponding database instruction of mysql databases when multiple, based on the default data storage list, it will carry out The corresponding data of mysql databases in the goal systems under goal-selling path are transferred to before system upgrade, are led Enter and to the mysql databases, to realize in the mysql databases by goal systems the need for the data that retain carry out it is extensive It is multiple.
Further, the update device 13 is additionally operable to:Based on the data storage list, to the institute of the goal systems State its own system environment and carry out data scrubbing.In order to remove the file abnormal residual produced in escalation process, based on need protect The corresponding file of the data storage list stayed and the path of catalogue, by its own system environment of the goal systems, All data dumps in addition to the path of the corresponding file of the data storage list and catalogue, and then will be right in escalation process The abnormal residual of uncontrolled file in its own system environment of goal systems cleared up, it is ensured that goal systems itself is The controllability and security of system environment, and save the storage resource of goal systems.
In summary, the application is by the embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment Its own system environment with the goal systems is separate;The system software and nonsystematic obtained in the goal systems is soft Part;The system software is upgraded in the upgrade-system environment, if upgrading successfully, its own system is switched to Environment is upgraded to the nonsystematic software, realizes the liter of the system software in upgrade-system environment to goal systems Level so that the upgrading to the system software of goal systems departs from its own system environments, no longer by the shadow of its own system environments Ring, and then avoid interactional limitation between the ROMPaq of system software and its own system environments, in embedded liter After succeeding in level system environments to system software upgrading, the nonsystematic software to goal systems in its own system environment is switched to Upgraded, realize the upgrading to goal systems.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt Realized with application specific integrated circuit (ASIC), general purpose computer or any other similar hardware device.In one embodiment In, the software program of the application can realize steps described above or function by computing device.Similarly, the application Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory, Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the application can employ hardware to realize, example Such as, as coordinating with processor so as to performing the circuit of each step or function.
In addition, the part of the application can be applied to computer program product, such as computer program instructions, when its quilt When computer is performed, by the operation of the computer, it can call or provide according to the present processes and/or technical scheme. And the programmed instruction of the present processes is called, it is possibly stored in fixed or moveable recording medium, and/or pass through Broadcast or the data flow in other signal bearing medias and be transmitted, and/or be stored according to described program instruction operation In the working storage of computer equipment.Here, including a device according to one embodiment of the application, the device includes using In the memory and processor for execute program instructions of storage computer program instructions, wherein, when the computer program refers to When order is by the computing device, method and/or skill of the plant running based on foregoing multiple embodiments according to the application are triggered Art scheme.
It is obvious to a person skilled in the art that the application is not limited to the details of above-mentioned one exemplary embodiment, Er Qie In the case of without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matter From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, scope of the present application is by appended power Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling Change is included in the application.Any reference in claim should not be considered as to the claim involved by limitation.This Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table Show title, and be not offered as any specific order.

Claims (20)

1. a kind of method of system upgrade, wherein, methods described includes:
The embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment itself is with the goal systems Environment of uniting is separate;
Obtain the system software and nonsystematic software in the goal systems;
The system software is upgraded in the upgrade-system environment, if upgrading successfully, switches to and described itself is System environment is upgraded to the nonsystematic software.
2. according to the method described in claim 1, wherein, it is described in the upgrade-system environment to the system software carry out Before upgrading, in addition to:
Judge whether the idle storage space of the root partition in the goal systems meets default system upgrade demand space,
If meeting, unloading is carried out to the database in the goal systems.
3. method according to claim 2, wherein, the database in the goal systems carries out unloading, including:
Based on default data storage list, by the corresponding data conversion storage of database in the goal systems to goal-selling road In footpath.
4. method according to claim 3, wherein, it is described to be based on default data storage list, by the goal systems In the corresponding data conversion storage of database into goal-selling path, including:
According to the type of the database, corresponding database instruction is determined;
Based on the default data storage list and database instruction, by the corresponding data of database in the goal systems It is transferred in goal-selling path.
5. method according to claim 2, wherein, the idle storage for judging the root partition in the goal systems is empty Between whether meet default system upgrade demand space after, in addition to:
If it is not satisfied, then unloading is carried out to the data stored in the root partition, until the idle storage space of the root partition Meet the default system upgrade demand space.
6. method according to claim 5, wherein, the data stored in the root partition are carried out after unloading, also wrapped Include:
If the idle storage space threshold value of the root partition is unsatisfactory for the default system upgrade demand space, user is pointed out The root partition is unsatisfactory for the default system upgrade demand space.
7. according to the method described in claim 1, wherein, it is described in the upgrade-system environment to the system software carry out Upgrading, if upgrading successfully, is switched to after its own system environment upgrades to the nonsystematic software, in addition to:
Delete the upgrade-system environment being embedded in the goal systems.
8. method according to claim 3, wherein, it is described that the system software is carried out in the upgrade-system environment Upgrading, if upgrading successfully, is switched to after its own system environment upgrades to the nonsystematic software, in addition to:
Based on the number in the default data storage list and the goal systems being transferred under the goal-selling path According to the corresponding data in storehouse, the database is recovered.
9. method according to claim 4, wherein, it is described that the system software is carried out in the upgrade-system environment Upgrading, if upgrading successfully, is switched to after its own system environment upgrades to the nonsystematic software, in addition to:
Based on the default data storage list, database instruction and the target being transferred under the goal-selling path The corresponding data of database in system, recover to the database.
10. method according to claim 8 or claim 9, wherein, it is described in the upgrade-system environment to the system software Upgraded, if upgrading successfully, switch to after its own system environment upgrades to the nonsystematic software, also wrap Include:
Based on the data storage list, data scrubbing is carried out to its own system environment of the goal systems.
11. a kind of equipment of system upgrade, wherein, the equipment includes:
Flush mounting, for the embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment and the target Its own system environment of system is separate;
Acquisition device, for obtaining system software and nonsystematic software in the goal systems;
Update device, for upgrading in the upgrade-system environment to the system software, if upgrading successfully, switches The nonsystematic software is upgraded to its own system environment.
12. equipment according to claim 11, wherein, the update device is additionally operable to:
Judge whether the idle storage space of the root partition in the goal systems meets default system upgrade demand space,
If meeting, unloading is carried out to the database in the goal systems.
13. equipment according to claim 12, wherein, the update device is additionally operable to:
Based on default data storage list, by the corresponding data conversion storage of database in the goal systems to goal-selling road In footpath.
14. equipment according to claim 13, wherein, the update device is additionally operable to:
According to the type of the database, corresponding database instruction is determined;
Based on the default data storage list and database instruction, by the corresponding data of database in the goal systems It is transferred in goal-selling path.
15. equipment according to claim 12, wherein, the update device is additionally operable to:
If it is not satisfied, then unloading is carried out to the data stored in the root partition, until the idle storage space of the root partition Meet the default system upgrade demand space.
16. equipment according to claim 15, wherein, the update device is additionally operable to:
If the idle storage space threshold value of the root partition is unsatisfactory for the default system upgrade demand space, user is pointed out The root partition is unsatisfactory for the default system upgrade demand space.
17. equipment according to claim 11, wherein, the update device is additionally operable to:
Delete the upgrade-system environment being embedded in the goal systems.
18. equipment according to claim 13, wherein, the update device is additionally operable to:
Based on the number in the default data storage list and the goal systems being transferred under the goal-selling path According to the corresponding data in storehouse, the database is recovered.
19. equipment according to claim 14, wherein, the update device is additionally operable to:
Based on the default data storage list, database instruction and the target being transferred under the goal-selling path The corresponding data of database in system, recover to the database.
20. the equipment according to claim 18 or 19, wherein, the update device is additionally operable to:
Based on the data storage list, data scrubbing is carried out to its own system environment of the goal systems.
CN201710317221.5A 2017-05-03 2017-05-03 A kind of method and apparatus of system upgrade Pending CN107291490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710317221.5A CN107291490A (en) 2017-05-03 2017-05-03 A kind of method and apparatus of system upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710317221.5A CN107291490A (en) 2017-05-03 2017-05-03 A kind of method and apparatus of system upgrade

Publications (1)

Publication Number Publication Date
CN107291490A true CN107291490A (en) 2017-10-24

Family

ID=60093868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710317221.5A Pending CN107291490A (en) 2017-05-03 2017-05-03 A kind of method and apparatus of system upgrade

Country Status (1)

Country Link
CN (1) CN107291490A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2365437A2 (en) * 2010-02-09 2011-09-14 Accenture Global Services Limited Enhanced upgrade path
CN103019752A (en) * 2011-09-20 2013-04-03 金蝶软件(中国)有限公司 Upgrading method and device of application program
CN103186387A (en) * 2011-12-27 2013-07-03 宏碁股份有限公司 Electronic device and updating method for operating system thereof
CN103309713A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 System upgrading method, device and equipment
CN103619008A (en) * 2013-12-11 2014-03-05 北京网秦天下科技有限公司 System and method for performing backup and restoration on data
CN103729261A (en) * 2012-10-15 2014-04-16 亚旭电脑股份有限公司 Operating system updating method and handheld electronic device
CN103810004A (en) * 2013-11-22 2014-05-21 小米科技有限责任公司 Method and device for upgrading embedded system as well as equipment
CN104636157A (en) * 2013-11-14 2015-05-20 中兴通讯股份有限公司 Software upgrading method based on data compatibility, client side, server and system
CN105068848A (en) * 2015-08-28 2015-11-18 小米科技有限责任公司 System upgrading method and apparatus
CN106598651A (en) * 2016-11-25 2017-04-26 上海斐讯数据通信技术有限公司 Embedded system and upgrade method thereof

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2365437A2 (en) * 2010-02-09 2011-09-14 Accenture Global Services Limited Enhanced upgrade path
CN103019752A (en) * 2011-09-20 2013-04-03 金蝶软件(中国)有限公司 Upgrading method and device of application program
CN103186387A (en) * 2011-12-27 2013-07-03 宏碁股份有限公司 Electronic device and updating method for operating system thereof
CN103729261A (en) * 2012-10-15 2014-04-16 亚旭电脑股份有限公司 Operating system updating method and handheld electronic device
CN103309713A (en) * 2013-06-25 2013-09-18 北京小米科技有限责任公司 System upgrading method, device and equipment
CN104636157A (en) * 2013-11-14 2015-05-20 中兴通讯股份有限公司 Software upgrading method based on data compatibility, client side, server and system
CN103810004A (en) * 2013-11-22 2014-05-21 小米科技有限责任公司 Method and device for upgrading embedded system as well as equipment
CN103619008A (en) * 2013-12-11 2014-03-05 北京网秦天下科技有限公司 System and method for performing backup and restoration on data
CN105068848A (en) * 2015-08-28 2015-11-18 小米科技有限责任公司 System upgrading method and apparatus
CN106598651A (en) * 2016-11-25 2017-04-26 上海斐讯数据通信技术有限公司 Embedded system and upgrade method thereof

Similar Documents

Publication Publication Date Title
EP3355194B1 (en) File system directory tree repair method and device
CN102707990B (en) Container based processing method and device
US9183236B2 (en) Low level object version tracking using non-volatile memory write generations
US9628438B2 (en) Consistent ring namespaces facilitating data storage and organization in network infrastructures
US10474654B2 (en) Structural data transfer over a network
US10261865B1 (en) Fast and optimized restore using delta information
CN103473298B (en) Data archiving method and device and storage system
CN102360410B (en) User operation discovery method of file system and synchronous system utilizing the same
CN102158540A (en) System and method for realizing distributed database
CN106708548A (en) Program upgrading method and terminal device
CN109213432B (en) Storage device for writing data using log structured merge tree and method thereof
CN107066349A (en) A kind of method and system of cluster file system data protection
CN106844089A (en) A kind of method and apparatus for recovering tree data storage
US10509767B2 (en) Systems and methods for managing snapshots of a file system volume
US20160246620A1 (en) On-demand loading of dynamic scripting language code for reduced memory usage
CN103559139A (en) Data storage method and device
CN107092598A (en) The management method and device of data storage location information
CN105867962A (en) System upgrading method and device
CN111506253A (en) Distributed storage system and storage method thereof
CN104054076A (en) Data storage method, database storage node failure processing method and apparatus
KR101575639B1 (en) Tile image update system for map service and method thereof
CN106055372A (en) Method and device for uninstalling application
CN115658619B (en) Process processing method and device, processor and electronic equipment
CN103324732B (en) The horizontal cutting method of MYSQL database, MYSQL connection establishment method and device
CN107291490A (en) A kind of method and apparatus of system upgrade

Legal Events

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

Application publication date: 20171024