Movatterモバイル変換


[0]ホーム

URL:


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
CN107291490ACN201710317221.5ACN201710317221ACN107291490ACN 107291490 ACN107291490 ACN 107291490ACN 201710317221 ACN201710317221 ACN 201710317221ACN 107291490 ACN107291490 ACN 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 InterrogatingfiledCriticalUpper Marine Infotech Share Co Ltd Of Interrogating
Priority to CN201710317221.5ApriorityCriticalpatent/CN107291490A/en
Publication of CN107291490ApublicationCriticalpatent/CN107291490A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

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 replacedChange and file modification operate to reach the purpose for upgrading to goal systems.Because ROMPaq runs on oneself of goal systemsIn body system environments so that the environment and its own system environment of goal systems that ROMPaq is run are same environment, i.e., traditionalSystem upgrade be that goal systems is that itself is upgraded under its own system environment, in the bottom software to system in itself, especiallyIt is, when upgrading to file system (such as filesystem) and bibliographic structure, system to be caused to occur operation in itself and askedTopic, 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 biographyThe 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 fromBody 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 fromBody 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 methodBefore, in addition to:
Judge whether the idle storage space of the root partition in the goal systems meets default system upgrade demand skyBetween,
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 meshMark in path.
Further, it is described to be based on default data storage list in the above method, by the data in the goal systemsThe 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 correspondingData 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 systemsAfter 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 partitionSpace 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 outRoot 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, ifUpgrade 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, ifUpgrade 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 pathThe 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, ifUpgrade 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 pathThe 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, ifUpgrade 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 describedIts 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 skyBetween,
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 meshMark 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 correspondingData 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 partitionSpace 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 outRoot 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 pathThe 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 pathThe 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 systemSystem environment and its own system environment of the goal systems are separate;Obtain the system software in the goal systems and non-systemSystem software;The system software is upgraded in the upgrade-system environment, if upgrading successfully, switch to it is described itselfSystem environments is upgraded to the nonsystematic software, realizes system software in upgrade-system environment to goal systemsUpgrading so that the upgrading to the system software of goal systems departs from its own system environments, no longer by its own system environmentsInfluence, and then interactional limitation between the ROMPaq of system software and its own system environments is avoided, embeddedAfter succeeding in upgrade-system environment to system software upgrading, switch to soft to the nonsystematic of goal systems in its own system environmentPart 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 otherFeature, 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 moreProcessor (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/orThe forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flashRAM).Internal memory is showing for computer-readable mediumExample.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any methodOr 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), movedState random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasableProgrammable 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 orAny other non-transmission medium, the information that can be accessed by a computing device available for storage.Defined according to herein, computerComputer-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 includesStep 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 outSafety 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 describedStep S11 embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment and the goal systems itselfSystem environments is separate so that separate upgrade-system environment is independent of each other with the upgrading in its own system environment, canTo ensure the follow-up system software to goal systems and the complete upgrading of nonsystematic software;Then the step S12 obtains describedSystem software and nonsystematic software in goal systems;The last step S13 is in the upgrade-system environment to the systemSystem software is upgraded, if upgrading successfully, switches to its own system environment and the nonsystematic software is upgraded, realThe upgrading of the system software in upgrade-system environment to goal systems is showed so that the upgrading to the system software of goal systemsDepart from its own system environments, no longer influenceed by its own system environments, so avoid system software ROMPaq and itsInteractional limitation between its own system environment, to system software upgrading success in embedded upgrade-system environmentAfterwards, 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 systemsSystem, 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 layerSoftware, the file system of goal systems and bibliographic structure and database;In order in the step S13 in goal systemsUpgrade-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 systemsThe system softwares such as layer, file system and bibliographic structure are upgraded, while soft to system in upgrade-system environment in order to reduceThe 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 onePart bag set so that the system software with minimum software kit set can be escalated into successfully in upgrade-system environmentWork(.The nonsystematic software of the goal systems can include but is not limited between application software, system software and application softwareInterface software etc., the wherein application software can be word processor (such as word, WPS), information management software, auxiliaryDesign 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 describedBefore upgrading in upgrade-system environment to the system software, in addition to:Judge root partition in the goal systemsWhether idle storage space meets default system upgrade demand space, if if meeting, to the number in the goal systemsUnloading is carried out according to storehouse.If for example, the default system upgrade demand space for completing the complete upgrading needs to goal systems is1.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 describedThe idle storage space of the root partition of goal systems meets system upgrade demand space, and in order to ensure having in goal systemsThe reservation of some data of importance, it is to avoid lost during system upgrade, thus before read apparatus is upgraded andIt 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 systemsThe 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 onDefault data storage list, by the corresponding data conversion storage of database in the goal systems into goal-selling path.NeedIt is noted that the default data storage list can be when upgrading tool is developed, previously according to targetRunning 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 systemsThe index list of essential file and catalogue during operation.According to the default data storage list, by the target systemThe corresponding data conversion storage of database in system realizes the file and mesh to needing to retain into specified goal-selling pathRecord carries out preset in advance reservation, it is to avoid during upgrading to goal systems, and the data for needing reservation are depositedThe 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 supportedThe migration of database in Relational DBMS (such as MySQL and sqlite), can also be support dynamic textThe 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 systemsAccording 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 correspondingData 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 (NetworkDatabase), relational database (Relational Database), tree shaped data storehouse (HierarchicalDatabase), faceTo 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 databaseThe 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 systemsSpace is met after the default system upgrade demand space, according to the type of the database, determines that corresponding database refers toData in database are carried out unloading, i.e., according to database instruction, by default data by order according to corresponding database instructionThe 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 thisData storage list correspondence corresponding in database data exports and are transferred to specify described and preset by mysqldump instructionsIn 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 forCorresponding data are reduced in database, it is to avoid need the data storage list retained corresponding data in database to existGoal 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 systemsIt 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 necessaryEnsure 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 pointThe idle storage space in area is judged, to cause the idle storage space for different root partition, carries out different spacesOperation 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 depositsWhether 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 partitionData carry out unloading, until the idle storage space of the root partition meets the default system upgrade demand space.ExampleSuch as, if the default system upgrade demand space for completing the complete upgrading needs to goal systems is 1.3GB, if wherein the meshThe 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 systemsIdle storage space is unsatisfactory for system upgrade demand space, in order to ensure have enough idle storage spaces to enter goal systemsRow 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 partitionMemory space disclosure satisfy that the default system upgrade demand space, and then be able to ensure that the root partition of goal systems has footEnough 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 partitionSome 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 systemsDefault system upgrade demand space, then unloading is carried out to the data that are stored in the root partition before the step S13Afterwards, 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 systemsThe 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 partitionWhat 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 forThe default system upgrade demand space is 1.3GB, to make user solve to enter the goal systems by way of artificially handlingThe problem of default system upgrade demand space required for row upgrading is not enough.Further, if to being stored in the root partitionData 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 demandBetween, 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 lostLose, 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 upgradingSuccess, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Deletion is embedded in instituteState the upgrade-system environment in goal systems.In order to reduce the risk upgraded to goal systems, therefore in target systemEmbedded upgrade-system environment in system, the program upgraded for running to goal systems is simultaneously soft to the system in goal systemsPart is upgraded, and to avoid influencing each other between the program and system software for upgrading, is upgraded to goal systemsAfter 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 upgradingSuccess, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Based on described defaultData storage list and the goal systems that is transferred under the goal-selling path in the corresponding data of database, it is rightThe database is recovered.If here, data storage list file essential when normally being run for goal systemsWith the index list of catalogue, for example, the recovery to living document system, especially to the corresponding storage pool of living document systemRecover, because living document system is during being upgraded, can cause to be built in the corresponding storage pool of living document systemVertical file system failure, therefore need according to living document system dependent instruction, data storage list correspondence is transferred to defaultData recovery in destination path is realized to protecting the need in goal systems into the corresponding storage pool of living document systemThe 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 rapidlyFind 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 upgradingSuccess, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Based on described defaultData storage list, database instruction and the goal systems that is transferred under the goal-selling path in database pairThe data answered, recover to the database.Here, if desired recovering to the mysql databases in goal systems, thenIt is pre- based on this when the data in the database are recovered, it is necessary to call the corresponding database instruction of mysql databasesIf data storage list, will be in the goal systems that be transferred under goal-selling path before carrying out system upgrade shouldThe corresponding data of mysql databases, are imported and to the mysql databases, to realize the mysql databases of goal systemsIn the need for the data that retain recovered.
Further, the step S13 upgrades in the upgrade-system environment to the system software, if upgradingSuccess, then switch to after its own system environment upgrades to the nonsystematic software, in addition to:Based on the dataList is stored, data scrubbing is carried out to its own system environment of the goal systems.Produced to remove in escalation processRaw file abnormal residual, will be described based on the corresponding file of the data storage list for needing to retain and the path of catalogueIt 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 systemsData dump, and then the abnormal residual of the uncontrolled file in its own system environment of goal systems will be entered in escalation processRow 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 toTo 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 meshAn embedded upgrade-system environment in mark system, so that the ROMPaq needed for upgrade-system can be in the upgrade-system environmentRun, its own system environment separation of upgrade-system environment and goal systems is opened so that the upgrading of whole escalation processProgram 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 literInteractional limitation between upgrade-system environment and its own system environment where level program operation, is reduced to target systemThe risk united during being upgraded.
Then above-described embodiment, in order to ensure the integrality upgraded to goal systems, before being upgraded, is also neededJudge 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 systemsThe corresponding data conversion storage of database into specified goal-selling path, if if being unsatisfactory for, by what is stored in root partitionData carry out unloading, until the idle storage space of root partition meets the default system upgrade demand space of upgrading needs, ifData conversion storage in root partition is finished, default system upgrade demand space is still unsatisfactory for, then by all numbers of unloadingAccording 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 emptyBetween.
Then above-described embodiment of the application, the corresponding data in goal systems is stored in the corresponding database of listData are carried out after unloading, run ROMPaq in the upgrade-system environment, to the system software in goal systems (for exampleKernel 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 describedSwitched 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 listThe corresponding data convert being transferred under the goal-selling path specified will remove data storage list into corresponding databaseOutside all data carry out cleaning deletion, while the embedded upgrade-system environment is deleted, to save goal systemsStorage resource;By using embedded upgrade-system environment and the environment of its own system environment separation formula respectively to goal systemsSystem software and nonsystematic software are upgraded, and not only avoid limitation present in legacy system escalation process, it is ensured thatIt goal systems completely upgraded, and ensure that the integrality for the data for needing to retain, increasing is reduced to target systemSystem 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 includesFlush 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 outSafety 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 describedFlush mounting 11 is used for:The embedded upgrade-system environment in goal systems, wherein, the upgrade-system environment and the target systemIts own system environment of system is separate so that the upgrading in separate upgrade-system environment and its own system environment is mutual notInfluence, it is ensured that system software and the complete upgrading of nonsystematic software subsequently to goal systems;Then the acquisition device12 are used for:Obtain the system software and nonsystematic software in the goal systems;The last update device 13 is used for:DescribedThe system software is upgraded in upgrade-system environment, if upgrading successfully, its own system environment is switched to instituteState nonsystematic software to be upgraded, realize the upgrading of the system software in upgrade-system environment to goal systems so that rightThe 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 awayExempt from interactional limitation between the ROMPaq of system software and its own system environments, in embedded upgrade-system environmentIn 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 systemsSystem, 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 layerSoftware, the file system of goal systems and bibliographic structure and database;In order in the update device 13 in targetThe security upgraded in the upgrade-system environment of system to system software and reduce as much as possible to system software upgradingRisk, using escalation policy upward under being carried out first to goal systems, i.e., example first in upgrade-system environment to goal systemsSuch as inner nuclear layer, file system and bibliographic structure system software are upgraded, while right in upgrade-system environment in order to reduceThe 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 softThe software kit set of part so that the system software with minimum software kit set can be carried out successfully in upgrade-system environmentUpgrade successfully.The nonsystematic software of the goal systems can include but is not limited to application software, system software and application softwareBetween interface software etc., the wherein application software can be that word processor (such as word, WPS), information management are softPart, 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 meetingIf, then unloading is carried out to the database in the goal systems.For example, what if the complete upgrading completed to goal systems neededDefault 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, againIn order to ensure the reservation of some data with importance in goal systems, it is to avoid lost during system upgrade, thereforeIt is me before read apparatus is upgraded and meeting system upgrade demand space, the database in goal systems is turnedDeposit, 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 systemsThe corresponding data conversion storage of database into goal-selling path.It should be noted that the default data storage list canThink when upgrading tool is developed, previously according to goal systems running situation statistics obtain the need for carry out management and control andThe file and path list of reservation, the index column of essential file and catalogue when can also normally be run for goal systemsTable.According to the default data storage list, by the corresponding data conversion storage of database in the goal systems to specifiedIn 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 targetDuring system is upgraded, the loss of the data in the corresponding database of the data storage list to needing reservation is askedThe generation of topic.Here, the form of expression of data conversion storage can be support Relational DBMS (such as MySQL andSqlite etc.) in database migration, can also be support living document system (such as Zettabyte File SystemAnd 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 correspondingData 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 (NetworkDatabase), relational database (Relational Database), tree shaped data storehouse (HierarchicalDatabase), faceTo 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 databaseThe 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 systemsBetween meet the default system upgrade demand space after, be additionally operable to the type according to the database, determine corresponding dataStorehouse 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 instructionThe corresponding data conversion storage of the corresponding database in goal systems of data storage list is into specified goal-selling path.ExampleSuch as, if the type of the database is mysql databases, it is determined that corresponding database instruction instructs for mysqldump, passes throughCorresponding in the database data of data storage list correspondence are exported and are transferred to specify described pre- by mysqldump instructionsIf 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-upCorresponding data in database are reduced, it is to avoid need the data storage list retained corresponding data in databaseEscalation 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 systemsIt 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 necessaryEnsure 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 pointThe idle storage space in area is judged, to cause the idle storage space for different root partition, carries out different spacesOperation 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 partitionData 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 targetThe 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 systemsNot 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 systemsUpgrading, 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 depositsStorage space disclosure satisfy that the default system upgrade demand space, and then be able to ensure that the root partition of goal systems has enoughIdle 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 partitionSome 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 systemsDefault system upgrade demand space, then the update device 13 be additionally operable to:If the idle storage space threshold of the root partitionValue is unsatisfactory for the default system upgrade demand space, then root partition described in prompting user is unsatisfactory for the default system literLevel demand space.If for example, the default system upgrade demand space for completing the complete upgrading needs to goal systems is1.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 partitionAll data are all carried out in unloading or root partition without any data of storage) be 1.2GB, then need the prompting user target systemThe 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 useFamily solves default system upgrade demand space required for being upgraded to the goal systems not by way of artificially handlingSufficient the problem of.Further, if after the data stored in the root partition are carried out with unloading, the idle of the root partition storesCapacity-threshold is unsatisfactory for the default system upgrade demand space, then needs the data convert stored in the root partition by unloadingInto 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 afterwardsValue 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 systemsEnvironment.In order to reduce the risk upgraded to goal systems, therefore upgrade-system environment is embedded in goal systems, for transportingThe capable program upgraded to goal systems is simultaneously upgraded to the system software in goal systems, to avoid for upgradingInfluencing each other between program and system software, after being upgraded successfully to goal systems, need to be embedded in the goal systemsIn 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 toThe 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 dynamicThe recovery of state file system, the especially recovery to the corresponding storage pool of living document system, because living document system is being enteredDuring row upgrading, the file system set up in the corresponding storage pool of living document system can be caused to fail, therefore need rootAccording to living document system dependent instruction, by the corresponding data recovery being transferred in goal-selling path of data storage list to dynamicIn 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 catalogueStay, 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 essenceReally 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 andThe corresponding data of database in the goal systems under the goal-selling path are transferred to, the database are carried out extensiveIt 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 outThe corresponding data of mysql databases in the goal systems under goal-selling path are transferred to before system upgrade, are ledEnter 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 extensiveIt is multiple.
Further, the update device 13 is additionally operable to:Based on the data storage list, to the institute of the goal systemsState its own system environment and carry out data scrubbing.In order to remove the file abnormal residual produced in escalation process, based on need protectThe 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 processThe abnormal residual of uncontrolled file in its own system environment of goal systems cleared up, it is ensured that goal systems itself isThe 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 environmentIts own system environment with the goal systems is separate;The system software and nonsystematic obtained in the goal systems is softPart;The system software is upgraded in the upgrade-system environment, if upgrading successfully, its own system is switched toEnvironment is upgraded to the nonsystematic software, realizes the liter of the system software in upgrade-system environment to goal systemsLevel 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 environmentsRing, and then avoid interactional limitation between the ROMPaq of system software and its own system environments, in embedded literAfter succeeding in level system environments to system software upgrading, the nonsystematic software to goal systems in its own system environment is switched toUpgraded, 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 adoptRealized with application specific integrated circuit (ASIC), general purpose computer or any other similar hardware device.In one embodimentIn, the software program of the application can realize steps described above or function by computing device.Similarly, the applicationSoftware 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, exampleSuch 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 quiltWhen 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 throughBroadcast or the data flow in other signal bearing medias and be transmitted, and/or be stored according to described program instruction operationIn the working storage of computer equipment.Here, including a device according to one embodiment of the application, the device includes usingIn the memory and processor for execute program instructions of storage computer program instructions, wherein, when the computer program refers toWhen order is by the computing device, method and/or skill of the plant running based on foregoing multiple embodiments according to the application are triggeredArt 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 QieIn the case of without departing substantially from spirit herein or essential characteristic, the application can be realized in other specific forms.Therefore, no matterFrom 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 powerProfit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by fallingChange is included in the application.Any reference in claim should not be considered as to the claim involved by limitation.ThisOutside, 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 multipleUnit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for tableShow title, and be not offered as any specific order.

Claims (20)

CN201710317221.5A2017-05-032017-05-03A kind of method and apparatus of system upgradePendingCN107291490A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710317221.5ACN107291490A (en)2017-05-032017-05-03A kind of method and apparatus of system upgrade

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710317221.5ACN107291490A (en)2017-05-032017-05-03A kind of method and apparatus of system upgrade

Publications (1)

Publication NumberPublication Date
CN107291490Atrue CN107291490A (en)2017-10-24

Family

ID=60093868

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710317221.5APendingCN107291490A (en)2017-05-032017-05-03A kind of method and apparatus of system upgrade

Country Status (1)

CountryLink
CN (1)CN107291490A (en)

Citations (10)

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

Patent Citations (10)

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

Similar Documents

PublicationPublication DateTitle
US10496627B2 (en)Consistent ring namespaces facilitating data storage and organization in network infrastructures
US10474654B2 (en)Structural data transfer over a network
US9183236B2 (en)Low level object version tracking using non-volatile memory write generations
EP3355194B1 (en)File system directory tree repair method and device
US11372725B2 (en)Fast and optimized restore using delta information
CN105955843B (en)A kind of method and apparatus for database recovery
CN106708548A (en)Program upgrading method and terminal device
KR20010050667A (en)Transaction processing system using efficient file update processing and recovery processing
CN104937556A (en)Recovering pages of database
CN108804019A (en)A kind of date storage method and device
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
CN107092598A (en)The management method and device of data storage location information
CN105573788B (en) Patch processing method and device and patch generation method and device
CN109753381A (en)Continuous data protection method based on object storage
CN110134646B (en)Knowledge platform service data storage and integration method and system
CN107562898A (en)A kind of method that recycle bin is created based on KUX operating systems
CN106055372A (en)Method and device for uninstalling application
US20220253409A1 (en)Cleaning compensated change records in transaction logs
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
CN110673849B (en)Method and device for presetting file security contexts in batches
CN107480010A (en)A kind of method and device for recovering metadata
CN107291490A (en)A kind of method and apparatus of system upgrade
US20170357657A1 (en)Systems and methods for implementing dynamic file systems

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20171024


[8]ページ先頭

©2009-2025 Movatter.jp