200821860 九、發明說明: 【發明所屬之技術領域】 本發明係有_伺服器,尤指—種具有第—儲存控制 器及第二儲存控制器之伺服器,並當伺服器執行錯誤返回 程序之後’可自動地將第二儲存控彻處於閒置的狀態下 的各資源或服務,轉交給第一伺服器儲存控制器。 【先前技術】 °° 當今世界係-個資訊科技化、電子產業蓬勃發展的時 代,各種計算機騎生之高科触品、行_訊技術發展 速且與我們生活息息相關,它縮短了人與人之間在時 間上與空間上的距離。隨著目前電子產品(例如:電腦)及 通訊技術(如··網路)之普及與高使料,以及各家薇商諸 多誘因之減助瀾下’市場上之辭係越來越激烈,各大 廠商都不斷地推陳域,以新、巧轉,藉以吸引許多使 用者之喜愛,_制稍及軌服務的要求 越來越高,未來的電子產品及軌服務鮮提供更方便、 更快速的服務’已成為使用者評價各國高科技產品及通訊 技術是否領先他國之重要指標之一。 按,所謂的「伺服器」(Server)是一種高性能電腦’ 其主要作用在於作為網路的節點,以儲存或處理網路上的 資料’而一般的伺服器至少係由一處理器、一硬碟、一記 憶體及緖等構件顺成,前述構件係 特別制定’使伺服器具有更高的處理能力、穩定性、可靠 性、安全性、可擴展性及可管理性,尤其隨著當前資訊技 200821860 術的進步與資訊流通的需求與日俱增,一般公司或團體使 用徽器以提供相關資訊、下载、郵件等服務,係已成為 司空見慣之常事’因此,如何提供更穩定、更人性化的資 訊使用及服務魏,魏II之處職力及敎性即成為最 重要的關鍵之一。 基於上述原因,業者為提高飼服器的穩定性,乃針對 祠服器HI各種顧產生的異常狀況,導致伺服⑽資料存 取或網路服務中斷之缺點,開發出一種雙備援儲存控制器 之伺服器,伺服器内係分別設有一第一儲存控制器及第二 儲存控制益,各齡控制||各自在伺服器與—網路間進行 封包之傳送或接收,負責不同的資源及服務(如:檔案下 載、分享或電子郵件收發等資源及服務)給末端的使用 者。為了避免因第-儲存控制H或第二儲存控制器發生異 常狀況,即發i資源或服務中斷之情形,因此雙備援儲存 控制器之伺服器會設定其中一個儲存控制器發生故障 日π ’另-儲存控制器立即取代故障的儲存控用以繼續 提供各種的資源及服務。例如,當第—儲存控制器發生故 Ρ爭後苐一儲存控制斋立即取代第一儲存控制器提供各種 的資源及服務,之後,當第一儲存控制器故障狀況被排除 後,伺服器通常會自動地執行錯誤返回(fail back)程序, 用以將第二儲存控制器所提供的各項資源及服務,再轉回 給第一儲存控制器,並令第一儲存控制器繼續提供各項資 源及服務,且讓第二儲存控制器回復到備援模式。 惟,飼服裔執行錯誤返回程序的過程中,經常遭遇如 200821860 、、罔路ML里大、裝置忙錄(j)evice bUSy)···等問題,造成伺 服器執行錯誤返回程序後,並無法將所有的各項資源及服 務轉交給第-儲存控制器,因而需要伺服器的管理者操作 手動返回(Manual fail)程序,此時,管理者必須逐項的 檢查各項資源及服務,且只能在輕第二儲存控制器尚未 轉父給第一儲存控制器的資源或服務,係處於閒置狀態 後,才能將第二儲存職且尚未轉交給第一儲存控 制器的資源或服務,再轉交給第一儲存控制器,並依照前 述官理者的手動返聰序,再檢查各項資源及服務,直到 所有的資源及服務都被轉交給第一儲存控制器為止,由前 述可知’官理者需要花費很多的時間反覆的檢查各項資源 及服務是否已被轉交給第一儲存控制器,以及等待各項資 源及服務從忙錄狀態轉朗職狀態,造成f理者在管理 伺服器的不便。 【發明内容】 有鑑於前述之諸多缺失,發明人經過長久努力研究與 實驗’終於’設計$本侧之—種「具雙備援儲存控制 器的飼服ϋ之定時錯誤返回之方法」,關藉由本發:的 提出’能夠對社會大眾有所貢獻。 本發明之-目的,係提供一種具雙備援儲存控制器的 伺服器之定時錯誤返回之方法’係應用在包括第_儲存押 制器及第二儲存控制器的伺縣,當魏器執行錯誤返: (fail back)程序之後’乃自動將第二儲存控制器尚未上 給第-儲存控制器的資源及服務分別設為—轉交項目,= 200821860 =所有,轉交項目建立—轉交表,及建立—定期執行程 。而疋期執行程序每間隔__固定時段,即將轉交表内的 已經閒置的各個轉交項目,由第二儲存控制器轉交給第一 儲存控制ϋ ’且將轉絲⑽健處於忙雜態的各轉 父項目_保留在轉交細,制各次的定純行程序將 所^轉交項目全部已交給第—儲存控制器,伺服器即刪 ▲除定期執行程序,如此,値n即可達職正地自動從錯 誤返回的目的,解決傳統的舰料要管理者手動操作返 回(Manual fail)程序的麻煩。 為便貝審查委員月皂對本發明之目的、技術特徵及其 功效’做更進-步之認識與瞭解,兹舉實施例配合圖式,、 詳細說明如下: 【實施方式】 本發明係一種具雙備援儲存控制器的伺服器之定時 錯誤返回之方法,係應用在一伺服器,伺服器包括一第一 儲存控制$ 1、-第二儲存控制H 2。其中當第一儲存控 制裔1的異常狀況被排除,且伺服器執行錯誤返回(fdi back)程序之後,先檢查伺服器之各個資源或服務擁有者 列表(如··目錄服務(directory service)、當前目錄服務 active directory service···等),用以從各個資源或服 務列表中,找出第二儲存控制器2尚未交給第一儲存控制 器1的資源及服務。伺服器將第二儲存控制器2尚未交給 第一儲存控制器1的資源及服務分別設為一轉交項目3〇, 並依據所有的轉交項目30建立一轉交表3(如第1圖所 200821860 不),及建立期執行程 固定時段,即嘗試地將轉交13 執仃程序每間隔一 第二_制器2轉交由 行程序將轉交表3内的各個轉交項目工直収,執 儲存控制H 1,贿_除定域行料以已父給第一 閱第係執行程序時,請參 ⑽)判斷是否已符合定難行程序所設的—固定時 (2Q2)=f ),否則進行步糊); _讀取各個轉交項目3(),及進行將各個轉交項目 30由第二儲存控制器2轉交給第一儲存控制器 1,並將已轉交的轉交項目30從該轉交表3刪 除:或將尚未轉交的轉交項目30繼續保留在該 轉父表3中·而伺服器刪除或保留轉交項目3〇 的步驟,請參閱第3圖所示,係包括:、 (10) 從轉絲3巾讀取其巾—個在此次定期執行 私序被執行時,尚未被處理的轉交項目3〇 · (11) 判斷目前讀取的轉交項目㈨在第二儲存控 制器2中,是否處於閒置(idle)狀態,若是 進行下列步驟(12),否則進行步驟(15); (12) 將目前讀取的轉交項目30由第二儲存控制 器2轉交給第一儲存控制器1,並將目前讀 取的轉交項目30從轉交表3中删除,再進行 200821860 下列步驟(13); ⑽判斷轉絲3的所有轉交項目30是否都被讀 取過,若是進行下列步驟(14),否則進行步 驟(10); (Η)此次的定期執行程序已處理完成,即結束; (15)^目前讀取的轉交項目3()在第二儲存控制 器2中尚未處於閒置狀態,即代表轉交項目 30對應第二儲存控制器2之資源或服務仍處 於忙碌的狀態,則保留目前讀取的轉交項目 30 ’再進行步驟(1〇)。 (204) 判斷轉絲3巾是神在任何轉交項目3〇,若是 進行下列步驟(201),否則進行步驟(2〇5); (205) 田轉父表3内已經沒有任何的轉交項目,則刪 除定期執行程序,即結束。 舉例而吕,請參閱第4圖所示,伺服器係包括有第一 儲存控制②1、-第二儲存控制器2及四_存單元(心卜 ::7),其中第一儲存控制器1係管理第-、二及四儲存 早兀(4、5、7) ’料二儲存控制器2則管理第三儲存單 =,且伺服器透過第二儲存控制器2接收第一儲存控制 所發出的心跳訊號,並由第二儲存控制器2判斷是否 段時_未接㈣心跳輯,若第二儲存 斷已持續-段時間都未接收到心跳訊號,則表示第 儲存控制器1發生異常狀況(如第5圖所示),立即 二儲存控制器2接管所有的儲存單元(4、5、6、7)。 200821860 請參閱第6圖所示,當第-儲存控制器)的異常狀況 被排除後’飼服器執行錯誤返回(fail bad〇程序之後, 第一,存控制器1已接管了第一儲存單元4,但第二、四 儲存單元(5、7)係處於忙碌狀態,因此,第一儲存控制器 尚未月b接管苐一、四儲存單元(5、7),此時,仍由第二 儲存控制器2管理第二、四儲存單元(5、7),而第一儲存 控制器1尚未能接管第二、四儲存單元(5、7)分別設為一 個轉交項目30 ’並由此二轉交項目3〇建立轉交表3(如第 1圖所不)’鍵立_定期執行程序,使得飼職每間隔一 固定時段,即嘗試地將第二、四儲存單元(5、7),由第二 儲存控制器2轉交給第-儲存控制器卜直到定期執行程 ^將此二轉交項目30全部已交給第-儲存控制器1(即恢 復到如第1圖所示),伺服器即刪除定期執行程序。 /藉由上述可知,本發明透過建立轉交表3及執行定期 執行程序,使得伺服器自動執行定期執行程序,用以將轉 交表3處於閒置的各轉交項目30轉交給第—儲存控制器 如此’將可解決官理者等待各項資源及服務從忙錄狀 態轉成到職㈣,展過手_方式將:纽或服務轉交 、。第儲存控勤1之缺點’避免造成管理者在管理飼服 器的不便。 备以上所述,僅為本發明最佳之一具體實施例,惟 本發明之構造特徵並不舰於此,任何熟悉該項技藝者在 本發明領域内,可輕易思及之變化或修飾,皆可涵蓋在以 下本案之專利範圍。 12 200821860 【圖式簡單說明】 第1圖係本發明之轉交表之示意圖; 第/圖係本發%動作流程圖; 弟3圖係本發明 η又已轉交的轉交項目從該轉交表刪 二3尚未轉交的轉交項目繼續保留在該轉交表中之動 作流程圖; 第一儲存控制器未發生異常狀況前 第4圖係本發明之 的示意圖; 思圖, ^·圖係本^明之第_儲存控_發生異常狀況後的 苐6圖係本發明之第- 元及第四鱗_未^==_二儲存單 【主要元件符號說明】 齡控㈣之示意圖。 第一儲存控制器··q 轉交項目............. 弟一儲存單元......4 苐二儲存單元......0 第二儲存控制器·*·2 轉交表...............3 卓儲存单元......5 第四儲存單元……7 13200821860 IX. Description of the invention: [Technical field of the invention] The present invention is a server, especially a server having a first storage controller and a second storage controller, and after the server executes an error return procedure 'Automatically transfer the resources or services in the second storage control state to the first server storage controller. [Prior Art] °° In today's world-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- The distance between time and space. With the popularity and high-level of electronic products (such as computers) and communication technologies (such as the Internet), and the various incentives of various companies, the rhetoric in the market is becoming more and more fierce. All major manufacturers continue to push Chen domain, with new and smart, to attract the love of many users, _ system and rail service requirements are getting higher and higher, the future of electronic products and rail services are more convenient and more Fast service has become one of the important indicators for users to evaluate whether high-tech products and communication technologies are leading the country. According to the so-called "Server" (Server) is a high-performance computer whose main function is to act as a node of the network to store or process data on the network. The general server is at least a processor and a hard disk. The components of the disc, a memory and the thread are formed smoothly. The aforementioned components are specially formulated to enable the server to have higher processing power, stability, reliability, security, scalability and manageability, especially with current information. Technology 200821860 The advancement of technology and the demand for information circulation are increasing. It is common practice for companies or organizations to use the emblem to provide relevant information, downloads, emails, etc. Therefore, how to provide more stable and more user-friendly information. And the service Wei, Wei II where the power and enthusiasm is one of the most important key. Based on the above reasons, in order to improve the stability of the feeding device, the manufacturer developed a dual backup storage controller for the abnormal situation caused by various HI devices, resulting in servo (10) data access or network service interruption. The server and the server are respectively provided with a first storage controller and a second storage control benefit, and each age control || each transmits or receives a packet between the server and the network, and is responsible for different resources and services. (such as: file download, sharing or email and other resources and services) to the end users. In order to avoid an abnormal situation caused by the first storage control H or the second storage controller, that is, the resource or service interruption occurs, the server of the dual backup storage controller sets one of the storage controller failure days π ' In addition, the storage controller immediately replaces the faulty storage control to continue to provide various resources and services. For example, when the first storage controller occurs, the storage controller immediately replaces the first storage controller to provide various resources and services. After the first storage controller failure condition is eliminated, the server usually Automatically executing a fail back program for transferring the resources and services provided by the second storage controller to the first storage controller, and causing the first storage controller to continue providing resources And the service, and let the second storage controller return to the backup mode. However, in the process of performing the error return procedure, the feeding service often encounters problems such as 200821860, 罔路ML ML, and device busy recording (j)evice bUSy), etc., causing the server to execute the error return procedure, and It is impossible to transfer all the resources and services to the first-storage controller, so the administrator of the server needs to operate the manual fail procedure. At this time, the manager must check each resource and service item by item, and Only after the second storage controller has not transferred the parent to the resources or services of the first storage controller, after the idle state, the second storage authority and the resources or services that have not been transferred to the first storage controller can be Transferred to the first storage controller, and in accordance with the manual return of the aforementioned official, re-examine various resources and services until all resources and services are forwarded to the first storage controller, as described above It takes a lot of time for the manager to check repeatedly whether the resources and services have been transferred to the first storage controller and wait for the resources and services to be transferred from the busy status. State, causing inconvenience f managers in the management server. SUMMARY OF THE INVENTION In view of the above-mentioned many deficiencies, the inventors have made long-term efforts and research and finally 'designed' the side of the "the method of returning the timing of the feeding service with dual backup storage controllers" With the proposal of this issue: 'can contribute to the public. The object of the present invention is to provide a method for timing error return of a server with a dual backup storage controller, which is applied to a server including a _ storage keeper and a second storage controller. Error return: (fail back) after the program 'automatically set the resources and services of the second storage controller not yet to the storage controller to be transferred to the project, = 200821860 = all, the transfer project is established - the transfer form, and Established - regular execution. And the interim execution program is __ fixed time interval, and each of the already transferred idle transfer items in the transfer table is transferred from the second storage controller to the first storage control ϋ 'and the turn wire (10) is in a busy state. The parent project _ is retained in the transfer order, and the fixed-line program of each system will be handed over to the first-storage controller, and the server will be deleted. In addition to the regular execution program, 値n can get the job. The purpose of automatically returning from the error is to solve the trouble of the traditional ship material to manually manage the manual fail program. For the purpose of understanding and understanding of the purpose, technical features and efficacy of the present invention, the present invention is described in detail with reference to the following: [Embodiment] The present invention is a The method for timing error return of the server of the dual backup storage controller is applied to a server, and the server includes a first storage control $1 and a second storage control H2. When the abnormal condition of the first storage control person 1 is excluded, and the server executes the error return (fdi back) program, first check each resource or service owner list of the server (such as a directory service, The current directory service active directory service, etc., is used to find resources and services that the second storage controller 2 has not handed over to the first storage controller 1 from the respective resources or service lists. The server sets the resources and services that the second storage controller 2 has not handed over to the first storage controller 1 as a handover item 3, and establishes a handover table 3 according to all the handover items 30 (as shown in FIG. 1 200821860). No), and the establishment period of the fixed-term execution period, that is, the attempt to transfer the 13-permitted procedure, every second interval, and the transfer of the second-to-one device 2 to the transfer project in Table 3, and the storage control H 1, bribe _ in addition to the local line material to the first reading system to the first reading system, please refer to (10)) to determine whether it has met the fixed difficulty program - fixed time (2Q2) = f), otherwise step _Read each transfer item 3(), and transfer each transfer item 30 from the second storage controller 2 to the first storage controller 1, and delete the transferred transfer item 30 from the transfer table 3. : or the transfer of the transferred item 30 that has not been transferred to continue in the parent table 3 and the server deletes or retains the transfer item 3〇, as shown in Figure 3, including: (10) from the wire 3 towels read their towels - when this regular execution of the private order was executed, still The processed handover item 3〇 (11) determines whether the currently transferred handover item (9) is in the idle state in the second storage controller 2, if the following step (12) is performed, otherwise step (15) is performed. (12) The currently read transfer item 30 is transferred from the second storage controller 2 to the first storage controller 1, and the currently read transfer item 30 is deleted from the transfer table 3, and then the following steps are performed in 200821860 ( 13); (10) judging whether all the transfer items 30 of the rotary wire 3 have been read, if the following step (14) is performed, otherwise the step (10) is performed; (Η) the periodic execution program has been processed, that is, the end (15) The currently read transfer item 3() is not in the idle state in the second storage controller 2, that is, the resource or service corresponding to the second storage controller 2 of the transfer item 30 is still busy. Keep the currently transferred transfer item 30' and proceed to step (1〇). (204) Judging that the Rope 3 towel is God's transfer item 3, if the following steps (201) are performed, otherwise the step (2〇5) is performed; (205) There is no transfer item in the Tianjiao parent table 3, Then delete the regular execution program, which is the end. For example, as shown in FIG. 4, the server includes a first storage control 21, a second storage controller 2, and a fourth storage unit (heart:: 7), wherein the first storage controller 1 Management of the first, second and fourth storage early (4, 5, 7) 'Material 2 storage controller 2 manages the third storage list =, and the server receives the first storage control through the second storage controller 2 The heartbeat signal is determined by the second storage controller 2 as to whether the segment is not connected (four) heartbeat. If the second storage is off for a period of time, the heartbeat signal is not received, indicating that the storage controller 1 has an abnormal condition. (As shown in Figure 5), immediately the storage controller 2 takes over all of the storage units (4, 5, 6, 7). 200821860 Please refer to Figure 6, when the abnormal condition of the first-storage controller is removed, the 'feeder performs an error return (fail bad〇 program, first, the storage controller 1 has taken over the first storage unit) 4, but the second and fourth storage units (5, 7) are in a busy state, therefore, the first storage controller has not yet taken over the first and fourth storage units (5, 7), and at this time, still the second storage The controller 2 manages the second and fourth storage units (5, 7), and the first storage controller 1 has not been able to take over the second and fourth storage units (5, 7) respectively set to one transfer item 30' and thus two Transfer project 3 〇 Establish transfer table 3 (as shown in Figure 1) 'Key _ _ regular execution procedures, so that the job is separated by a fixed period of time, that is, try to put the second and fourth storage units (5, 7) by The second storage controller 2 hands over to the first-storage controller until the regular execution process ^ the two-transfer item 30 has been handed over to the first-storage controller 1 (ie, restored to as shown in FIG. 1), the server is Delete the periodic execution procedure. / As can be seen from the above, the present invention establishes the transfer form 3 and executes the periodicity. The line program causes the server to automatically execute the periodic execution program, and transfers the transfer items 30 in the idle form 3 to the first storage controller. This will solve the problem of waiting for the resources and services from the busy record status. Turned into the job (four), show hands _ way will: New or service transfer, the shortcomings of the storage control 1 'avoid the manager's inconvenience in managing the feeding device. The specific features of the present invention are not limited thereto, and any variation or modification that can be easily conceived by those skilled in the art can be covered by the following patents. 200821860 [Simplified description of the drawings] Fig. 1 is a schematic diagram of the transfer table of the present invention; the first figure is a flow chart of the % action of the present invention; the figure 3 is the transfer item of the present invention η which has been transferred from the transfer form. The transfer project that has not been transferred continues to retain the action flow chart in the transfer table; the first storage controller does not have an abnormal situation before the fourth figure is a schematic diagram of the present invention;存6 diagram after the occurrence of abnormal conditions is the first and fourth scales of the present invention _ not ^ == _ two storage orders [main symbol description] age control (four) schematic. The first storage controller · q Transfer project............. Brother one storage unit...4 苐2 storage unit...0 Second storage controller·*·2 Transfer table. ..............3 Zhuo storage unit......5 Fourth storage unit......7 13