TW200821812A - Method of updating an image file - Google Patents

Method of updating an image file Download PDF

Info

Publication number
TW200821812A
TW200821812A TW95142185A TW95142185A TW200821812A TW 200821812 A TW200821812 A TW 200821812A TW 95142185 A TW95142185 A TW 95142185A TW 95142185 A TW95142185 A TW 95142185A TW 200821812 A TW200821812 A TW 200821812A
Authority
TW
Taiwan
Prior art keywords
image
value
image file
file
work
Prior art date
Application number
TW95142185A
Other languages
Chinese (zh)
Other versions
TWI326408B (en
Inventor
Tsung-Pin Wang
Chi-Yuan Chuchen
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW95142185A priority Critical patent/TWI326408B/en
Publication of TW200821812A publication Critical patent/TW200821812A/en
Application granted granted Critical
Publication of TWI326408B publication Critical patent/TWI326408B/en

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The present invention discloses a method of updating an image file, and the method is used in a server. If a storage unit of the server needs to update a workable image file, the workable image file in a first image area of the storage unit is saved in a second image area of the storage unit as a backup image file, such that the server can use the updated workable image file in the first image area for starting an operating system. If the server cannot use the update workable image file for starting the operating system, the server will be able to automatically select the backup image file to start the operating system and recover the status before the storage unit is updated.

Description

200821812 九、發明說明: 【發明所屬之技術領域】 /本發明係有關於伺服器’尤指—種能夠自動選擇工作 影像槽案或備份影像檔歓姐動作靠統的處理,且在 飼服器選擇以備份影像標案啟動作業系統的處理時,飼服 器能夠自動恢復儲存單元在更新前的狀態之方法者。 【先前技術】 按,伺服器是一種高性能電腦,其主要作用在於作為 網路的節點,以儲存或處理網路上的資料,伺服器具有比 一般個人電腦更高的處理能力、穩定性、可靠性、安全性、 可擴展性及可管理性,尤其是,隨著㈣各種電子通訊技 術的進步,及與日俱增的資訊流通需求,一般公司或團體 使用伺服器以提供相關資訊、下載、郵件等服務,係已成 為司空見慣之常事。因此,如何伺服器之處理能力及穩定 性能夠提高,使得伺服器可以提供更穩定、更人性化的資 訊使用環境及服務環境,乃成為評價伺服器最重要的關鍵 之一。基於前述原因,伺服器的製造業者乃針對伺服器因 各種原因產生的異常狀況,導致伺服器的資料存取或網路 服務中斷之問題,不斷地開發新的技術,期能解決各種問 題,提高伺服器的穩定性。 舉例而言,目前的伺服器内係設有一智慧平臺管理介 面(Intelligent Platform Management Interface,簡稱·· ΙΡΜΙ) ’智慧平臺管理介面係以基板管理控制器 (Baseboard Management controller,簡稱·· BMC),透過 200821812 : ΐ2〇/ΙΡΜΒ ^'Senal/M〇dem ' " #)’淋]服器内需要被監控的元件(如:中央 度、電壓、風扇轉逮等)所設的感測器連接,用 =其士_服益被監控的元件有嚴重的異常事件產生 :,土板官理控制器可以執行糾正動作,使得飼服器可繼 項提絲務’或暫停提供服務以免發生更嚴重的錯誤。 —,刚述的勤又官理控制器用以判斷飼服器被監控的 凡件疋否有嚴重的異常事件產生的,係以 影像槽案的方式儲存在―儲存單元(如:㈣記憶體)中, 當基板管理控_的_需要更_,乃儲存單元的 開機區塊中_機載人程式⑹。t丨。浙)進行更新,然 而,開機載人程式下在磁碟m统(驗200821812 IX. Description of the invention: [Technical field to which the invention pertains] / The present invention relates to a server, in particular, a process capable of automatically selecting a working image slot or a backup image file, and in the feeding device When the processing of the operating system is started by the backup image standard, the feeder can automatically restore the state of the storage unit before the update. [Prior Art] Press, the server is a high-performance computer whose main function is to serve as a node of the network to store or process data on the network. The server has higher processing power, stability and reliability than ordinary personal computers. Sex, security, scalability and manageability, especially with the advancement of various electronic communication technologies and the increasing demand for information circulation, the general company or group uses servers to provide relevant information, downloads, emails, etc. The department has become a commonplace. Therefore, how to improve the processing power and stability of the server, so that the server can provide a more stable and more user-friendly information environment and service environment, is one of the most important evaluation servers. Based on the above reasons, the manufacturer of the server is constantly developing new technologies to solve various problems and improve the server's data access or network service interruption due to abnormal conditions caused by various reasons. Server stability. For example, the current server has a smart platform management interface (Intelligent Platform Management Interface, 简称 ΙΡΜΙ). The smart platform management interface is based on the Baseboard Management Controller (BMC). 200821812 : ΐ2〇/ΙΡΜΒ ^'Senal/M〇dem ' "#)'The sensor connection in the server that needs to be monitored (such as: centrality, voltage, fan transfer, etc.) There are serious abnormal events in the components that are monitored by = _ _ benefits: the slab controller can perform corrective actions, so that the feeder can be followed by a wire-drawing service or suspend the service to avoid more serious error. — The just-mentioned diligent and bureaucratic controller is used to determine whether the food container is monitored for serious abnormal events. It is stored in the storage unit (eg, (4) memory) in the form of image slot. In the case, when the baseboard management control__ needs more _, it is the storage unit's boot block _ airborne human program (6). t丨. Zhejiang) to update, but, under the boot loader, on the disk

OperatingOperating

System,簡稱:DOS)進行處理的,因此,開機載入程式提 供用以更新幢的使用者介面設計_#鮮,故,造成 使用者在更難體的影像檔紅是相當不便的。 另為有放幻笞理伺服器的機箱(chassis,或稱 enclosure)及父換器(switch),使得伺服器可以穩定的提 供各種服誠《,伺服器係安裝—機㈣交換器管理系 、、先(如 Roadrunnei & Chassis Management System,簡 稱· RCMS) ’而機箱暨交換器管理系統乃使用檔案系統 (File System)儲存在儲存器(如:硬碟)内的一個以上的 影像檔案中,對於制者的,若要在檔齡統進行機箱 暨父換$官理系、賴更新,實在是太過於複雜,又 200821812 箱暨交換器管理系 影像樓案。 , 統更新失敗是無法自動恢復到之前的 I曰由上逃可知,為令伺服器具有更高的處理能力、穩 定性、可靠神、& 土女全性、可擴展性及可管理性等目的,要 在伺服器中加人夂#^么 σ 八各種影像檔案的更新過程中,係有如上所 ^之彳木作不便或無法自動恢復到之前的影像檔案等問 題’故’右能開發、出一種更新影像檔案的方法,解決前述 問題相L是業者及消費者都樂見的。 【發明内容】 有H如述之諸多缺失,發明人經過長久努力研究與 貝辱双广方、開發没計出本發明之一種「更新影像檔案的方 法」,以期藉由本發明的提出,能夠對社會大眾有所貢獻。 本發明之一目的,係提供一種更新影像檔案的方法, 係應用在一伺服器,當伺服器欲對一工作影像檔案進行更 新%,係先將工作影像棺案儲存為一備份影像檔案,令伺 服器重新開機後,以更新後的工作影像檔案進行啟動作業 系統的處理,而若伺服器重新開機後,並無法以更新後的 工作衫像福案進行啟動作業糸統的處理,伺服器能夠自動 選擇以備份影像檔案再進行啟動作業系統的處理,並自動 恢復儲存單元在更新前的狀態,如此,即解決傳統伺服哭 操作不便及無法自動恢復儲存單元之問題。 為便貴審查委員能對本發明之目的、技術特徵及其 功效,做更進一步之認識與瞭解,茲舉實施例配合圖式, 詳細說明如下·· 200821812 【實施方式】 本^日㈣-種更新影像齡的方法,係細在一·System, referred to as DOS for processing, therefore, the boot loader provides a user interface design for updating the building, so it is quite inconvenient for the user to make the image file in a more difficult image. In addition, there is a chassis (or chassis) and a parent switch (switch), so that the server can stably provide a variety of service, "server system installation - machine (four) switch management system, First, (such as Roadrunnei & Chassis Management System, RCMS for short), and the chassis and switch management system is stored in more than one image file in a storage device (such as a hard disk) using a file system (File System). For the system, if you want to carry out the chassis and the father in the age of the system, it is too complicated, and the 200821812 box and exchanger management department image building. The failure of the system update can not be automatically restored to the previous I曰. It is known that the server has higher processing power, stability, reliability, and integrity, scalability, manageability, etc. The purpose is to add people in the server. #^么σ8 In the process of updating various image files, there are problems such as inconvenience or inability to automatically restore the previous image files. A method of updating the image file to solve the aforementioned problems is a pleasure for both the industry and consumers. SUMMARY OF THE INVENTION In view of the many shortcomings of H, the inventors have worked hard to study and insult the two parties, and have developed a "method of updating the image file" of the present invention, with the hope of being able to The public has contributed. An object of the present invention is to provide a method for updating an image file, which is applied to a server. When the server wants to update a working image file by %, the working image file is first stored as a backup image file. After the server is restarted, the updated working image file is used to start the operating system. If the server is restarted, the updated working shirt cannot be used to start the operating system. The server can Automatically select to back up the image file and then start the processing of the operating system, and automatically restore the state of the storage unit before the update, thus solving the problem that the traditional servo crying operation is inconvenient and the storage unit cannot be automatically restored. For the sake of the review, the reviewer can make a further understanding and understanding of the purpose, technical features and effects of the present invention. The embodiments are described in conjunction with the drawings, and are described in detail below. · 200821812 [Embodiment] This is a (4)-update The method of image age is detailed in one

丨圖所示’伺服器中至少設有—個儲存單 兀K如.快閃記憶體(flash)) ’伺服器在儲存單元】中預 先分割出—開機區塊、—第-影像區12及—第二影像 區14’其中開機區塊10事先儲存有一開機載入程式細 loader)及-影像更新狀況碼,第—影像區12事先儲存有 -工作影像檔案(WOTkable image file),第二影像區Μ 是用來儲存-備份影像槽案(s_d咖狀me),而備 份影像檐錢複舞—影像區12中已被確認可以正常運 作的工作影像檔案’請參閱第2 _示,當伺服器欲將新 工作影像_更新_存單元!時,伺服器依進行下列步 驟: (1)將儲存在第-影倾12的目前的]:作影像檔案複製到 第=影像,14作為備份影像檔案,及將新工作影像樓 案複製到第-影像區12作為卫作影像難:在本發明 中為了此確疋伺服為欲更新的新影像樓案的完整 性’及確定新工作影像槽案已完成更新的動作,伺服 器更新工作影像構及備份影像槽之步驟,係包括: (10)開始更新的初始化,將影像更新狀況碼設定為第 數值,第一數值表不目前不是第—影像區U的 工作影像檔被更新後的第一次開機:在本發明之 一較佳實施射,影像更新狀況碼係狀位元的 -進位數值表示之,其巾第—個位元絲示是否 200821812 為第一影像區12的工作影像檔被更新後的第一次 開機,第一個位元的二進位值「0」表示為第—次 開機’第一個位元的二進位值「1」表示為並非第 一次開機;第二個位元係表示第一影像區12的工 作影像檔是否被更新成功,且工作影像檔可以正 常的運作,第二個位元的二進位值「〇」表示為更 新成功可以正常的運作,第二個位元的二進位值 「)」表示為更新失敗無法正常的運作;第三個位 凡則表示開機時要以工作影像檔案或備份影像檔 案進行開機動作,第三個位元的二進位值「〇」表 wπ伯未返订間機勁作,第三個位元的 一進位值「1」表示以備份影像檔案進行開機動 作,至於第四個位元到第八個位元,則尚未定義。 故,,該實施例中,伺服器開始進行初始化時, 亚非第-次開機,且未進行更新,以及伺服界在 此次開機時應是以工作影像檔案,是以影像^新 狀况碼的第一數值係設定為「1000 _〇」; (11)判_工作影_案_容是找整,紋 步驟(12),否則進行步驟⑽;在該實施例中^ 判_工作影像檔案的内容是否完整的方法,係 斤接嗔工作影像檔案的容量大小是 ^錯,或依據—檢查計算方程式 =衲軸亍計算,用以得到-檢查碼(:像 触_,並判斷檢查碼是否正確,用以判辦 '10 - 200821812 新工作影像橋案的内容是否完整; (12) =判斷出新工作影像龄_容是完整,即設定 ~像更新I況碼為第二數值,並將第-影像區12 :的工作影像構案複製到第二影像區14作為備份 〜像^ ’且新卫作影像儲複製到第-影像區 12中作缸作影像在該實施例中,第二數 1用來表示並非第-次開機,以及伺服器要是以 =〜像&案進彳τ更新,至於後續是否能更新成 此步驿中亚無法得知,且為了能簡化後續的 处理步驟’故,影像更新狀況碼的第二數值係設 疋為「1010 0000」; (13) 再判岐否成魏騎讀影像《複製第-影 像區12巾,若是進行步驟(14) ’否則進行步驟 (15); (⑷·像更新狀況碼設定為第三數值,由於在此步 驟前,已經確定新工作影像檔案已成功地複製到 第-影像區12中,因此,第三數值不一定要表示 工作影像觀已成功地複製第〜影像區12中,但 -定要絲I作影像儲更新後第—次開機及重 新開機時要以第-影像區12中的工作影像槽宰進 行開機動作,以便再後續開機時能從影像更新狀 況碼中獲得為工作影像播案更新後第一次開機及 重新開機時要m彡雜12巾私作影像槽案 進行開機動作的資訊。故,讀實施例中,影^更 -11- 200821812 新狀况碼的第二數值的二進位碼值係可設定為 「0100 0000」或「0000 〇〇〇〇」; (15)將影像更驗況碼轉在第二數值,重新開機, 由於在此步驟前,已經確定新工作影像槽案並未 成力地第—影像區12巾,且在進行判斷新 工作影像職的内容是完整的步财(即步驟 12),已預設為用來表示更新第—次開機,以及饲 服ϋ要是以備份影像_進行更新,&,在此一 步驟中,無需更改影像更新狀況碼的二進位數值。 ⑵重新職,並㈣影較難況碼較扣工作影像 植案或備份影像播進行_開機作業;在該實施例 中,伺服器執行更新工作影像槽案之步驟後,影像更 新狀況碼可能為第—數值(即「麵麵」),第二數 值(即1010 0000」),或第三數值(即「〇⑽〇〇〇〇」 或「__」),或影像更新狀況碼被設定為-第 四數值’第四數值用以表示在第一次更新且重新開機 後,伺縣無法以工作影像檔案成功地執行作業系 ^而工作影·案絲能運作,且需要以備份影像 娜進行重新開機。在該實施例中,第四數值係以二 進位數值的「1110 00QO本- s心 0」表不,而當伺服機根據影像 更新狀況碼進行觸開機之續,請參_ 3圖所亍, 包括: (200)重新開機; ⑽)根據影像更新狀況韻定要以工作影像槽案或 -12- 200821812 備份影像檔進行重新開機作業,若是接收到的影 像更新狀況碼被設定為第三數值,即表示要以工 作影像檐案進行重新開機作業,則進行步驟 ⑽2) ’而—若接收到的影像更新狀況碼被設定為第 數值第—婁之值或第四數值,則進行步驟(細); (202) 將影像更新狀況碼設定為第吨值,在此步驟 中’係將影像更新狀況碼設定為第四數值是假設 伺服機無法以工作影像標案順利地啟動作業系 統’以便於在後續的步驟中,伺服機真正無法以 工作影像縣糊地啟動作職統時,不用在重 新進行設定; (203) 啟動作業系統; (204) 判斷作獅統是否成功的被啟動,若是進行步驟 (205),否則進行步驟(2〇β); (205) 判斷作業系統是由工作影像齡被啟動或是由 備份影像檔案被啟動,若由工作影像檔案啟動作 業系統,則進行步驟(207),否則,即表示作業系 統疋由備份影像檔案被啟動,則進行步驟(21Q); (206) 將〜像更新狀況碼維持第四數值,再回到步驟 (200)進行處理; (207) 將影像更新狀況碼設定為第一數值,即表示工作 影像檔案順利的被更新,此後都可以工作影像檔 案啟動作業系統,即結束。 (208) 在此步驟中所接收到的影像更新狀況碼被設定 -13- 200821812 為第一數值、第二數值或第四數值其中之—,其 中第-數值是由工作影像檔案啟動作業系統,: 第,數值或第四數值是要由備份影像樓案啟動作 業系統,因此,在此一步驟仍需判斷是由工作影 像槽案啟動作業系統或是由備份影像槽案啟動= 業系統,若是由備份影像標案啟動作業系統 步‘⑽9) ’酬’即表示是由工作影像構案啟動 作業系統,則進行步驟(203); (209)由$二影像區14巾的備份影像檔案啟動作業系 統’即以備份影像齡啟動作業,再進行步驟 再 (210)將第二影像區14的備份影像檔案複製到第—影 像^ 12中作為卫作影像檔案,即第-影像區Γ2 及第二影像區14恢復到未進行更新前的狀態 依下列步驟進行處理; (211=儲存單元1是否恢復成功,若是進行步驟 ’否則,進行步驟(213); (212) 將影像更新狀況碼設定為第—數值,進入等待下 一次重新開機的狀態; (213) 將影像更新狀況碼設定為第二數值,進人等待下 一次重新開機的狀態。 ^ " 、,v可知,伺服态的儲存單元1分割兩個獨立的 W象區’亚分別存放工作影像_及備份影像槽案,當儲 存早凡n作影像齡成功的被更新後,伺服器能二自 -14- 200821812 動選擇工作影像檔案或備份影像檔案完成啟動作業系統 的處理且若伺服為能夠選擇以備份影像槽案完成啟動作 業系統的處理後,又能自動恢復儲存單元1在更新前的狀 態,進而解決傳統伺服器操作不便及無法自動恢復儲存單 元1之問題。 按,以上所述,僅為本發明最佳之一具體實施例,惟 本發明之特徵並不侷限於此,任何熟悉該項技藝者在样 明領域内’可輕易思及之變化«飾,皆可涵蓋在以下: 發明專利範圍。 【圖式簡單說明】 第1圖係本發明儲存單元之示咅圖· 槽之明之觸更新;像槽及備份影像 影像更新狀況碼進行重 第3圖係本發明之伺服機根據 新開機之動作流程圖。 【主要元件符號說明】 储存單元.........1 第一影像區......12 開機區塊......1〇 第二影像區,··14 •IS-In the figure, the server has at least one storage unit, such as a flash memory (flash), and the server is pre-segmented in the storage unit. The boot block, the first image area 12 and - a second image area 14' in which the boot block 10 is pre-stored with a bootloader loader and an image update status code, and the first image area 12 is pre-stored with a WOTkable image file, the second image Zone Μ is used to store - backup image slot (s_d 咖形), while backup image 复 复 — — 工作 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像 影像For the new work image _ update_ save unit! When the server performs the following steps: (1) Copy the current image stored in the first shadow: 12 to the image, 14 as the backup image file, and copy the new work image to the first - The image area 12 is difficult to use as a security image: in the present invention, in order to confirm the integrity of the new image building to be updated by the servo and to confirm that the new working image slot has been updated, the server updates the working image structure. And the step of backing up the image slot includes: (10) initializing the update, setting the image update status code to the first value, and the first value table is not currently the first image image of the image area U after being updated. The second boot: in the preferred embodiment of the present invention, the image update status code indicates the carry value of the system bit, and the first bit of the towel indicates whether the 200821812 is the working image file of the first image area 12 After the first boot of the update, the binary value "0" of the first bit indicates that the binary value "1" of the first bit is the first time that the first bit is turned on; the second Bit system represents the first shadow Whether the working image file of the area 12 is successfully updated, and the working image file can operate normally. The binary value "〇" of the second bit indicates that the update operation can be normal operation, and the binary value of the second bit is normal. ")" indicates that the update failed to operate normally; the third bit indicates that the boot image is to be booted with the working image file or the backup image file, and the binary value of the third bit is "〇" table wπ伯未The back-to-book machine works hard. A carry value of "1" for the third bit indicates that the backup image file is used for booting. As for the fourth bit to the eighth bit, it has not been defined. Therefore, in this embodiment, when the server starts to initialize, the Asian-African first-time power-on is not updated, and the servo industry should be a working image file when the power is turned on, which is an image ^new status code. The first value is set to "1000 _〇"; (11) _ _ work shadow _ case _ is the search, the step (12), otherwise step (10); in this embodiment ^ _ work image file Whether the content of the content is complete, the size of the working image file is wrong, or according to - check the calculation formula = 衲 axis 亍 calculation, to get - check code (: like touch _, and determine whether the check code Correct, to determine whether the content of the '10 - 200821812 new working image bridge case is complete; (12) = judge the new working image age _ capacity is complete, that is, set ~ like update I status code is the second value, and The working image structure of the first image area 12 is copied to the second image area 14 as a backup ~image ^ ' and the new image storage is copied into the first image area 12 as a cylinder image in this embodiment, second The number 1 is used to indicate that it is not the first time, and the server is to == The & case is updated τ, as to whether it can be updated to this step, which cannot be known in Central Asia, and in order to simplify the subsequent processing steps, the second value of the image update status code is set to "1010 0000" (13) Re-judgment 成 成 骑 骑 骑 骑 骑 “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ “ Before this step, it has been determined that the new working image file has been successfully copied into the first image area 12, therefore, the third value does not necessarily mean that the working image view has been successfully copied in the image area 12, but After the silk I is used as the image storage update, the first time the power is turned on and the power is turned on, the working image slot in the first image area 12 is used to start the power, so that the image can be obtained from the image update status code after the subsequent power on. After the first boot and re-boot, the information of the booting action is required to be used for the booting operation. Therefore, in the embodiment, the second value of the new status code is -11-200821812. Binary code value can be set "0100 0000" or "0000 〇〇〇〇"; (15) Turn the image more test code to the second value and turn it back on. Because before this step, it has been determined that the new work image slot case is not strong. The image area is 12, and the content of the new job job is judged to be a complete step (ie, step 12), which is preset to indicate that the update is started, and the feed is updated with the backup image_ , &, in this step, there is no need to change the binary value of the image update status code. (2) Re-employment, and (4) the more difficult time code than the deduction of the work image planting or backup video broadcast _ boot operation; in this implementation In the example, after the server performs the step of updating the working image slot, the image update status code may be the first value (ie, "face"), the second value (ie, 1010 0000"), or the third value (ie, "〇" (10) 〇〇〇〇" or "__"), or the image update status code is set to - the fourth value 'the fourth value is used to indicate that after the first update and reboot, the server can not successfully work with the working image file. Execution of the work system Shadow-case silk is operational, and the need to back up the image Na re-boot. In this embodiment, the fourth value is represented by the "1110 00QO-score 0" of the binary value, and when the servo is activated according to the image update status code, please refer to the figure _ 3, Including: (200) rebooting; (10)) according to the image update status to be restarted with the working image slot or -12- 200821812 backup image file, if the received image update status code is set to the third value, That is to say, if the image is to be restarted by the working image, then step (10) 2) is performed. - And if the received image update status code is set to the value of the first value or the fourth value, the step (thin) is performed. (202) Set the image update status code to the ton value. In this step, 'set the image update status code to the fourth value, assuming that the servo machine cannot successfully start the operating system with the working image standard'. In the subsequent steps, when the servo machine is really unable to start the job system in the working image county, it is not necessary to re-set it; (203) start the operating system; (204) determine whether the lion system is successful. Is activated, if step (205) is performed, otherwise step (2〇β) is performed; (205) determining whether the operating system is activated by the working image age or activated by the backup image file, if the operating system is activated by the working image file, Then, step (207) is performed. Otherwise, it means that the operating system is started by the backup image file, then step (21Q) is performed; (206) the image update status code is maintained at the fourth value, and then the process returns to step (200). (207) Setting the image update status code to the first value means that the working image file is successfully updated, and then the working image file can be started to start the operating system, that is, the end. (208) The image update status code received in this step is set to be -13, 200821812 as the first value, the second value, or the fourth value, wherein the first value is initiated by the work image file, : The first value or the fourth value is to start the operating system from the backup image building. Therefore, in this step, it is still necessary to judge whether the working system is started by the working image slot or the backup image slot is started = the system, if Start the operating system step by the backup image standard step '(10)9) 'Reward' means that the operating system is started by the working image structure, then step (203); (209) start the operation from the backup image file of the second image area 14 The system 'starts the job at the backup image age, and then proceeds to (210) to copy the backup image file of the second image area 14 into the first image ^ 12 as the security image file, that is, the first image area Γ 2 and the second The image area 14 is restored to the state before the update is performed according to the following steps; (211=whether the storage unit 1 is successfully restored, if the step is performed, otherwise, the step (213) is performed; (212) the image is updated. The status code is set to the first value, and enters the state of waiting for the next power-on; (213) The image update status code is set to the second value, and the person waits for the next power-on state. ^ " , , v, the servo The storage unit 1 divides two independent W-image areas, respectively, to store the working image_ and the backup image slot. When the storage is successful, the server can be updated from -14 to 200821812. Selecting the working image file or backup image file to complete the processing of the operating system and if the servo is able to select the backup image slot to complete the processing of the startup operating system, the state of the storage unit 1 before the update can be automatically restored, thereby solving the traditional servo. The operation of the storage unit 1 is inconvenient and cannot be automatically restored. According to the above, it is only one of the best embodiments of the present invention, but the features of the present invention are not limited thereto, and any one skilled in the art is in the same manner. In the field of 'can easily think about changes', can be covered in the following: The scope of invention patents. [Simplified description of the drawings] Figure 1 is a storage list of the present invention The symbol of the symbol and the update of the slot are updated; the image of the slot and the backup image is updated. The third picture is the flow chart of the servo according to the new boot. [Main component symbol description] Storage unit.. .......1 The first image area...12 Boot block...1〇Second image area,··14 •IS-

Claims (1)

200821812 十、申請專利範圍: 係應用在一伺服器中, 像構案更新到儲存單元時,該 1、-種更新影像檔案的方法, 當該伺服器欲將新的工作影 伺服器依進行下列步驟: 將儲存該伺服器的—俜-内的工作影像_,㈣複之—第一影像區 影像區作為備份影像檔宰存單_設之一第二 ―影像區作駐作影像辟=作影像儲複製到第 檔 重新開機,並根據該株在 影像更新岐似 進行重新_作#。 ^像^或備伤衫像 求貞1所4之方法,其巾·服器更新工作 〜私及備份雜私步驟,係包括: 的初始化,職影像更雜況碼設定為一第 像# π审5亥弗一 ΐ值表示目前不是該第一影像區的工作影 靡/新後的第一次開機,以及該伺服器在此次開機時 Q以1作影像_進行_作業; 2斷韻工作影像檔案的内容是否完整; 田判斷出該新工作影像檔案的内容是完整的,即設定 2像更新狀況碼為—第二數值,並將第—影像區中的工 、像檔S複製卿彡像區作為備份影像檔案 ,且該新 安作^像檔案複製到該第-影像區中作為工作影像檔 Γ加而雜—數值係用來表示並非第—次開機,以及該词 I器要是以備份影像_進行更新; 200821812 區中=是否成功地將新卫作影像槽案複製到第一影像 一 已成功地龍紅作影像料複製到該第 數=£中,則將影像更新狀況碼為—第三數值,該第三 ί^Γ红作影像槽案更新後第—次開機,及重新開機 接切1像區中的工作影像檔案進行開機動作。 ^像求項2所述之方法,其中當判斷出該新工作 步驟容並非完整的,則再依開始更新的初始化的 地將求項2所述之方法,其巾當_並未成功 =影像檔案複製到第一影像區中,則將影像更新 狀况碼維持在第二數值。 肺2請求項2所述之方法,其中朗咖係檢查所 =的_工作影像健的容量大小是否有誤,作為判斷 ^新工作影像檔案的内容是否完整之依據。 如4求項2所述之方法’其中軸機器係、依據一 ^查计异方程式對新工作影像播案的内容進行計算,用以 得到-檢查碼(如:Gheeksum),並判斷檢查碼是否正確, 用以判斷新工作影像檔案的内容是否完整。 7、如請求項2所述之方法,其中該飼服器執行更新 工作影像構案之步驟後,該影像更新狀況碼係為該第—數 值,第二數值、第三數值或影像更触況碼被 四數值其中之-,該第四數值肋表示在第—次更^^ 新開機後,飼服器無法以工作影像播案成功地執行作業系 -17- 200821812 運作’且需要以備份影像檔再 統,而工作影像檔案並未能 進行重新開機。 ’其中當飼服機進行重新 、如凊求項7所述之方法 開機之步驟,包括·· 根據影像更新狀況碼決定要以該工作影像播分 備份影像檔進行重新開機作業; —田接收到的影像更新狀況碼被設定為該第三數值,即 表示要以該工作影像難進行域_作業; 將該影像更新狀況碼設定為該第四數值; 利用工作影像檔案啟動作業系統; 判斷作業系統是否成功的被啟動; 愚判畊出作業系統已成功的被啟動,再判斷是由該工 作影像檔該動作㈣統是或是由該備份影像檔案啟動 作業系統;及 當判斷出是由該工作影像檔案啟動作業系統,將該影 像更新狀況碼設定為該第一數值。 9、 如請求項8所述之方法5其中當判斷出作業系統 未成功的被啟動,則進行重新開機之步驟。 10、 如請求項8所述之方法,其中當判斷出是由該備 份影像檔案啟動作業系統,則該伺服器依照下列步驟進 處理: 將第二影像區的備份影像檔案複製到第一影像區中 作為工作影像檔案,即第一影像區及第二影像區恢復到未 進行更新前的狀態; -18 - 200821812 判斷儲存單元是否恢復成功;及 當判斷出該儲存單元已恢復成功,則將該影像更新狀 況碼設定_第-數值,進人等待下—次重新開機的狀 一 〜7π萄刦斷出儲存單 元尚未恢復成功,則將影像更新狀況碼設定為第二數值, 進入等待下一次重新開機的狀態。 開撼2,、如請求項8所述之方法,其中當伽機進行重新 值、^所接收到的辦彡像更新狀況碼被設定為該第-數 值、弟二數值或第四數值並 驟,包括·· U之一,則伺服器處理的步 判斷是由工作影俊妙安#去 像槽案啟動作業系統;及U赠業系統或是由備份影 影像檔=:2備份影像構案啟動作業時’即以該備份 動的步.1聚進行声理 再依“、、判_作業系統是否成功的被啟 13、如請求項8所述 像槽案啟動作業系統時,^法’其中當判斷出由工作影 業系统步驟進行處理。依彻該工作影像_啟動作 -19”200821812 X. Patent application scope: It is applied to a server, such as when the structure is updated to the storage unit, the method of updating the image file, when the server wants to perform the following work shadow server Step: Store the working image of the server - ( - (4) - the image area of the first image area as the backup image file, the storage unit _ set one of the second - image area for image recording = image The copy is copied to the first file and restarted, and the image is updated according to the image. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The value of 5 haifu indicates that it is not the first work of the first image area/the first time after the new image, and the server uses the image as the ___ Whether the content of the working image file is complete; the field determines that the content of the new working image file is complete, that is, sets the 2 update status code to be the second value, and copies the work and image file S in the first image area. The image area is used as a backup image file, and the new image file is copied into the first image area as a working image file, and the value is used to indicate that it is not the first time, and the word device is Backup image _ to update; 200821812 Area = whether to successfully copy the new image slot to the first image. If the image is successfully copied to the number = £, the image update status code is - the third value, the third Γ Γ Γ Like slot after the first case of update - boot times, and then reboot 1 boot-cut operation in the work area as image files. ^ The method of claim 2, wherein when it is determined that the new working step capacity is not complete, then the method according to item 2 is further determined according to the initialized update starting point, and the towel is not successful = image When the file is copied to the first image area, the image update status code is maintained at the second value. The method of claim 2, wherein the Langa system checks whether the size of the working image is incorrect or not, as a basis for judging whether the content of the new working image file is complete. The method of claim 2, wherein the axis machine system calculates the content of the new working image broadcast according to a different equation, and obtains a check code (eg, Gheeksum), and determines whether the check code is Correct, to determine whether the content of the new work image file is complete. 7. The method of claim 2, wherein the image update status code is the first value, the second value, the third value or the image is more interesting after the step of updating the working image composition The code is divided into four values, and the fourth value rib indicates that after the first time, the feeder cannot successfully perform the operation of the operating system -17-200821812 by the working image and needs to back up the image. The file was re-processed, and the working image file failed to be restarted. 'When the feeding machine is restarted, the method of starting up according to the method described in Item 7 includes, according to the image update status code, the backup image file is to be played back by the working image to be restarted; The image update status code is set to the third value, that is, it is difficult to perform the domain_work with the work image; the image update status code is set to the fourth value; the work image is started by using the work image file; Whether the success is initiated; the ignoring and cultivating operation system has been successfully started, and then it is determined whether the action image file (4) is or is activated by the backup image file; and when it is determined that the work is performed by the work The image file starts the operating system, and the image update status code is set to the first value. 9. The method 5 of claim 8, wherein the step of restarting is performed when it is determined that the operating system is unsuccessfully started. 10. The method of claim 8, wherein when it is determined that the operating system is started by the backup image file, the server proceeds according to the following steps: copying the backup image file of the second image area to the first image area. In the working image file, that is, the first image area and the second image area are restored to the state before the update is performed; -18 - 200821812 determining whether the storage unit is successfully restored; and when it is determined that the storage unit has been successfully restored, The image update status code is set to the _th-value, and the wait for the next time - the re-start of the state - 7 π 萄 断 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存 储存The state of the boot. The method of claim 8, wherein when the gamma machine performs a re-value, the received image update status code is set to the first value, the second value, or the fourth value. , including one of the U, the servo processing step is judged by the work shadow Jun Mianan # go to the slot case start operating system; and U gift industry system or backup image file == 2 backup image structure When the job is started, the step is to use the backup step. 1 to perform the sound and then according to ", and judge whether the operation system is successful or not. When the operation system is started as described in claim 8, the method" When it is judged that the work is processed by the work film system step. According to the work image _ start for -19"
TW95142185A 2006-11-15 2006-11-15 Method of updating an image file TWI326408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW95142185A TWI326408B (en) 2006-11-15 2006-11-15 Method of updating an image file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW95142185A TWI326408B (en) 2006-11-15 2006-11-15 Method of updating an image file

Publications (2)

Publication Number Publication Date
TW200821812A true TW200821812A (en) 2008-05-16
TWI326408B TWI326408B (en) 2010-06-21

Family

ID=44770619

Family Applications (1)

Application Number Title Priority Date Filing Date
TW95142185A TWI326408B (en) 2006-11-15 2006-11-15 Method of updating an image file

Country Status (1)

Country Link
TW (1) TWI326408B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI486877B (en) * 2013-09-26 2015-06-01 Wistron Corp Method of firmware upgrade
RU2602378C1 (en) * 2015-01-05 2016-11-20 ЭйАйСи ИНК. Rack with plurality of rack control modules and method of updating firmware used for rack

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI486877B (en) * 2013-09-26 2015-06-01 Wistron Corp Method of firmware upgrade
RU2602378C1 (en) * 2015-01-05 2016-11-20 ЭйАйСи ИНК. Rack with plurality of rack control modules and method of updating firmware used for rack
RU2602378C9 (en) * 2015-01-05 2017-01-31 ЭйАйСи ИНК. Rack with plurality of rack control modules and method of updating firmware used for rack

Also Published As

Publication number Publication date
TWI326408B (en) 2010-06-21

Similar Documents

Publication Publication Date Title
US7870548B2 (en) Method for updating an image file
TW591395B (en) Recovery method of multi-functional operating system and system thereof
JP5575338B2 (en) Information processing apparatus, information processing method, and computer program
US7689859B2 (en) Backup system and method
US9317275B2 (en) Computer system and program restoring method thereof
TW201239759A (en) BIOS update method and computer system for using the same
TW200847021A (en) Automatic backup, restore and update BIOS computer system
TW200805159A (en) Method and apparatus for fast boot of an operating system
JP2005084963A (en) File-sharing device and method for transferring data between file-sharing devices
US20080098381A1 (en) Systems and methods for firmware update in a data processing device
TW201017537A (en) Computer system with dual BIOS prottection mechanism and control method of the same
JP2003296042A (en) Computer device, data dead copying method and program, and method for operating computer device
CN109144776B (en) Virtual machine image file processing method and device
TWI411916B (en) Method and device for restoring a system partition in a memory storage device in a personal internet communicator
WO2013126046A1 (en) Maintaining system firmware images remotely using a distribute file system protocol
JP2007058699A (en) Information processor, information processor control program and information processor control method
TWI764454B (en) Firmware corruption recovery
TW201546612A (en) Resuming a system using state information
TW200821812A (en) Method of updating an image file
KR101143909B1 (en) Dual backup system based on cloud computing
US20070234104A1 (en) Computer platform setup configuration data backup handling method and system
JP5471365B2 (en) Information processing apparatus and computer program
JP2006072492A (en) System control device, system control method and system control program
TW200905562A (en) Method for auto-recovering BIOS and computer and system using the same
CN112912848A (en) Power supply request management method in cluster operation process

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees