1322948 九、發明說明: 【發明所屬之技術領域】 本發明係有關於伺服器,尤指一種具有第一儲存控制 器及第二儲存控制器之伺服器,並當伺服器執行錯誤返回 程序之後’可自動地將第二儲存控制器處於閒置的狀態下 的各資源或服務,轉交給第一伺服器儲存控制器。 【先前技術】 當今世界係一個資訊科技化、電子產業蓮勃發展的時 代,各種計算機所衍生之高科技產品、行動通訊技術發展 迅速’且與我們生活息息相關,它縮短了人與人之間在時 間上與空間上的距離。隨著目前電子產品(例如:電腦)及 ,訊技術(如··網路)之普及與高使用率’以及各家廠商諸 多誘因之推波助瀾下,市場上之競爭係越來越激烈,各大 廠商都不斷地推陳出新,以新、巧取勝,藉以吸引許多使 用者之吾愛,由於朗者對於電子產品及通訊服務的要求 越來越同’未來的電子產品及通訊服務能否提供更方便、 更决速的服務’已成為使用者評價各國高科技產品及通訊 技術是否領先他國之重要指標之一。 盆按’所謂的「伺服器」(Server)是一種高性能電腦, ^主要作用在於作為網路的節點,以儲存或處理網路上的 資料,而-般的伺服器至少係由—處理器、一硬碟、一記 :體及系統等構件雜成,前述構件係針賴路之應用而 :別制定’使伺服器具有更高的處理能力、獻性、可靠 性、安全性、可舰性及骑雜,尤其縣#前資訊技 6 術的進步與資訊流通的需求與日倶增,一般公司或團體使 用伺服器以提供相關資訊、下載、郵件等服務,係已成為 司空見慣之常事,因此,如何提供更穩定、更人性化的資 訊使用及服務環境,伺服器之處理能力及穩定性即成為最 重要的關鍵之一。 基於上述原因,業者為提高伺服器的穩定性,乃針對 伺服器因各獅目產生的異常狀況,導朗㈣的資料存 取或網路服務中斷之缺點,開發出一種雙備援儲存控制器 之4司服器,伺服器内係分別設有一第一儲存控制器及第二 儲存控制器,各儲存控制器各自在伺服器與一網路間進行 封包之傳送或接收,負責不同的資源及服務(如:檔案下 載、分享或電子郵件收發等資源及服務)給末端的使用 者。為了避免因第一儲存控制器或第二儲存控制器發生異 常狀況,即發生資源或服務中斷之情形,因此雙備援儲存 控制器之伺服器會設定其中一個儲存控制器發生故障 時,另一儲存控制器立即取代故障的儲存控制器用以繼續 提供各種的資源及服務。例如,當第一儲存控制器發生故 障後,第二儲存控制器立即取代第一儲存控制器提供各種 的資源及服務,之後,當第一儲存控制器故障狀況被排除 後,伺服器通常會自動地執行錯誤返回(fail back)程序, 用以將第二儲存控制器所提供的各項資源及服務,再轉回 給第一儲存控制器,並令第一儲存控制器繼續提供各項資 源及服務,且讓第二儲存控制器回復到備援模式。 惟,伺服器執行錯誤返回程序的過程中,經常遭遇如 1322948 網路流量大、裝置忙錄(Device busy).·.等問題,造成伺 服器執行錯誤返回程序後,並無法將所有的各項資源及服 務轉交給第一儲存控制器,因而需要伺服器的管理者操作 手動返回(Manual fail)程序,此時,管理者必須逐項的 檢查各項資源及服務,且只能在確認第二儲存控制器尚未 轉交給第一儲存控制器的資源或服務,係處於閒置狀熊 後’才能將第二儲存控制器閒置且尚未轉交給第一儲存控 制器的資源或服務,再轉交給第一儲存控制器,並依照前 述管理者的手動返回程序,再檢查各項資源及服務,直到 所有的資源及服務都被轉交給第一儲存控制器為止,由前 述可知,管理者需要花費很多的時間反覆的檢查各項資源 及服務是否已被轉交給第一儲存控制器,以及等待各項資 源及服務從忙錄狀態轉成到閒置狀態,造成管理者在管理 伺服器的不便。 【發明内容】 有鑑於前述之諸多缺失,發明人經過長久努力研究與 實驗’終於·設計出本發明之—種「具雙備援儲存控制 器的祠服n之定時錯誤返回之方法」,關藉由本發明的 提出’能夠對社會大眾有所貢獻。 本發明之—目的,係提供—種具雙備援儲存控制器的 舰器之定時錯誤返回之方法’係顧在包括第—儲存控 制器及第二儲存控制器的值器,#舰器執行錯誤返= (fail back)程序之後,乃自動將第二儲存控制器尚未交 給第-儲存控制器的資源及服務分別設為一轉交項目,並 81322948 IX. Description of the Invention: [Technical Field] The present invention relates to a server, and more particularly to a server having a first storage controller and a second storage controller, and after the server executes an error return procedure Each resource or service in a state in which the second storage controller is in an idle state can be automatically transferred to the first server storage controller. [Prior Art] Today's world is an era of information technology and the development of the electronics industry. The high-tech products and mobile communication technologies derived from various computers are developing rapidly and are closely related to our lives. It has shortened the interpersonal relationship between people. The distance between time and space. With the current popularity and high usage rate of electronic products (such as computers) and technology (such as Internet) and the encouragement of various manufacturers, the competition in the market is becoming more and more fierce. Manufacturers are constantly pushing new ideas to win new and smart, in order to attract the love of many users. As the requirements of electronic products and communication services are more and more convenient, the future electronic products and communication services can be more convenient. More speedy service has become one of the important indicators for users to evaluate whether high-tech products and communication technologies are leading other countries. The so-called "server" is a high-performance computer. The 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 the processor. A hard disk, a note: body and system components, the above components are used in the application of the road: do not make 'the server has higher processing capacity, contribution, reliability, safety, shipability And the riding, especially the county's advancement of information technology and the need for information circulation, and the use of servers to provide relevant information, downloads, mail and other services, has become commonplace, so How to provide a more stable and more user-friendly information usage and service environment, the processing power and stability of the server become one of the most important keys. Based on the above reasons, in order to improve the stability of the server, the developer developed a dual backup storage controller for the abnormal situation of the server due to the abnormal situation of each lion, the data access of the guide (4) or the interruption of the network service. The server of the server has a first storage controller and a second storage controller, and each storage controller transmits or receives a packet between the server and a network, and is responsible for different resources and Services (such as file downloading, sharing, or emailing and other resources and services) to end users. In order to avoid an abnormal situation in the first storage controller or the second storage controller, that is, a resource or service interruption occurs, the server of the dual backup storage controller sets one of the storage controllers to be faulty, and the other The storage controller immediately replaces the failed storage controller to continue to provide a variety of resources and services. For example, when the first storage controller fails, the second storage controller immediately replaces the first storage controller to provide various resources and services, and then, when the first storage controller failure condition is eliminated, the server usually automatically Performing a fail back procedure 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 Service, and let the second storage controller return to the backup mode. However, during the process of executing the error return procedure, the server often encounters problems such as 1322948 network traffic, device busy (Device busy), etc., causing the server to execute the error return procedure, and cannot access all the items. The resources and services are forwarded to the first storage controller, and thus the administrator of the server is required to operate the manual fail procedure. At this time, the manager must check each resource and service item by item, and can only confirm the second. The resource or service that the storage controller has not handed over to the first storage controller is in the state of being idle after the bear can't idle the second storage controller and has not transferred the resources or services to the first storage controller, and then forwards to the first The controller is stored, and according to the manual return procedure of the foregoing manager, the resources and services are checked again until all the resources and services are transferred to the first storage controller. As described above, the administrator needs to spend a lot of time. Repeatedly checking whether resources and services have been transferred to the first storage controller, and waiting for resources and services from busy records The state transitions to an idle state, causing inconvenience to the administrator in managing the server. SUMMARY OF THE INVENTION In view of the above-mentioned many deficiencies, the inventors have made long-term efforts and experiments to finally design a "method of returning timing errors of the dual-reserve storage controller" of the present invention. The proposal of the present invention can contribute to the public. The object of the present invention is to provide a method for timing error return of a ship with a dual backup storage controller, which is implemented in a value detector including a first storage controller and a second storage controller, After the failback (fail back) program, the resources and services that the second storage controller has not yet handed over to the first storage controller are automatically set as a referral item, and 8
將所有的轉交項目建立一轉交袅,B 又#曰恶且得乂衣,及建立一定期執行程 序。而定期執行程序每_-固定時段,即將轉交表内的 已經間置的各個轉交項目,由第二儲存控制轉交給第一 儲存控制H,邱轉交表_健處於忙碌狀態的各個轉 交項目繼續保縣触仙,直到各次蚊純行程序將 所,轉交項目全部已交給第-儲存控制器,飼服器即刪 除定期執行程序,如此,偃器即可達到真正地自動從錯 誤返回的目的,解決傳統的伺服器需要管理者手動操作返 回(Manual fail)程序的麻煩。 為便貴審查委員能對本發明之目的、技 功效,做更進一步之認識與瞭解,兹舉實施例配合圖式,' 詳細說明如下: 【實施方式】 本發明係一種具雙備援儲存控制器的伺服器之定時 錯誤返回之方法,係應用在一伺服器,伺服器包括一第一 儲存控制器1、一第二儲存控制器2。其中當第一儲存控 制器1的異常狀況被排除,且伺服器執行錯誤返回 back)程序之後,先檢查伺服器之各個資源或服務擁有者 列表(如:目錄服務(directory service)、當前目錄服務 active directory service·.·等),用以從各個資源或服 務列表中’找出第二儲存控制器2尚未交給第一儲存控制 器1的資源及服務。伺服器將第二儲存控制器2尚未交給 第一儲存控制器1的資源及服務分別設為一轉交項目3〇 , 並依據所有的轉交項目30建立一轉交表3(如第1圖所 1322948 示)及建立—定期執行程序 固定時段,即嘗試地將轉交表3内=執行程序每間隔-第二錯存控制器2轉交4 各個轉交項目30,由 行程序將轉交表3内的:個轉交二直=期執 儲存,制器卜伺服器即刪除定期執行程已乂給第- 閱第行定期執行程序時’請參Make a transfer of all the transferred projects, B and # hate and get a good job, and establish a regular execution procedure. And the regular execution of the program every _- fixed time period, the transfer items that have already been placed in the transfer form will be transferred from the second storage control to the first storage control H, and the transfer items in the busy state will continue to be guaranteed. The county touches the fairy until the mosquitoes are purely programmed, and all the transferred items have been handed over to the first-storage controller, and the feeding device deletes the regular execution program. Thus, the device can achieve the purpose of truly returning from the error automatically. Solving the traditional server requires the administrator to manually operate the manual fail program. For the sake of the review, the reviewer can make a further understanding and understanding of the purpose and technical effects of the present invention. The embodiments are combined with the drawings, and the detailed description is as follows: [Embodiment] The present invention is a dual backup storage controller. The method for timing error return of the server is applied to a server, and the server includes a first storage controller 1 and a second storage controller 2. After the abnormal condition of the first storage controller 1 is excluded, and the server performs an error returning back), the server first checks each resource or service owner list (eg, directory service, current directory service) The active directory service is used to find out the 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 1322948). Show) and establish - periodically execute the program for a fixed period of time, that is, try to transfer the transfer table 3 = execute the program every interval - the second fault control controller 2 to 4 each transfer project 30, the line program will transfer the table 3: Transfer the two straight = period to store, the server server deletes the regular execution process has been given to the first - reading line when the program is executed regularly
⑽,斷?否已符合定期執行程序所設的一固定時 ⑽^取步驟(2〇2),否則進行步驟⑽广 (2〇m目轉料目3G,錢躲各㈣交項目 -儲存控制器2轉交給第一儲存控制器 ’,、'將已轉交的轉交項目3〇從該轉交表3刪 二:將尚未轉交的轉交項目30繼續保留在該(10), break? No has met the fixed time (10) ^ step (2〇2) set by the regular execution procedure, otherwise the step (10) is wide (2〇m revolving item 3G, money hiding each (four) handover project-storage control The device 2 is forwarded to the first storage controller', and the transferred transfer item 3〇 is deleted from the transfer form 3: the transferred item 30 that has not been transferred is retained in the
、 中而飼服器刪除或保留轉交項目3〇 的步驟’請參閱第3 _示,係包括. ⑽從轉絲3中讀取其中—個在此次定期執行 時’ @未被處理的轉交項目30 ; (11)判斷目前讀取的轉交項目30在第二儲存控 制益2中,是否處於閒置(idle)狀態,若是 進行下列步驟(12),否則進行步驟(15); 〇2)將目前讀取的轉交項目30由第二儲存控制 器2轉交給第一儲存控制器卜並將目前讀 取的轉交項目30從轉交表3中刪除,再進行 10 下列步驟(13); (13) 判斷轉交表3的所有轉交項目3〇是否都被讀 取過,若是進行下列步驟(14),否則進行步 驟(10); (14) 此次的定期執行程序已處理完成,即結束; (15) 當目前讀取的轉交項目3〇在第二儲存控制 器2中尚未處於閒置狀態,即代表轉交項目 30對應第二儲存控制器2之資源或服務仍處 於忙碌的狀態,則保留目前讀取的轉交項目 30,再進行步驟(1〇)。 (204) 判斷轉交表3中是否存在任何轉交項目,若是 進行下列步驟(201),否則進行步驟(2〇5); (205) 當轉交表3内已經沒有任何的轉交項目3〇,則刪 除定期執行程序,即結束。 舉例而言,請參閱第4圖所示,伺服器係包括有第一 儲存控制器1、一第二儲存控制器2及四個儲存單元(4、5、 6、7),其中第一儲存控制器〗係管理第一、二及四儲存 單元(4、5、7),而第二儲存控制器2則管理第三儲存單 兀6,且伺服器透過第二儲存控制器2接收第一儲存控制 器1所發出的心跳訊號,並由第二儲存控制器2判斷是否 在已持續一段時間都未接收到心跳訊號,若第二儲存控制 器2判斷已持續一段時間都未接收到心跳訊號,則表示第 儲存控制器1發生異常狀況(如第5圖所示),立即由第 一儲存控制器2接管所有的儲存單元(4、5、6、7)。 11 被排η閱第6圖所不,當第—儲存控制器1的異常狀況 j ’伺服器執行錯誤返回(fail back)程序之後, =存控制器i已接管了第一儲存單元4,但第二、四 元、7)魏於忙雜態m儲存控制器 =雜管第二、四儲存單元(5、7),此時,仍由第二 ^制$2管理第二、四儲存單元(5、?),而第一儲存 尚未能接管第二、四儲存單元(5、7)分別設為一 乂項目30 ’並由此二轉交項目3G建立轉交表3(如第 所ττ〇及建立一定期執行程序,使得飼服器每間隔一 固定時段,即嘗試地將第二、四儲存單元(5、7),由第二 ^存控制器2轉父給第-儲存控制器i,直到定期執行程 f字此二轉交項目30全部已交給第-儲存控制器i(即恢 復到如第1 ®所示),舰H即刪較期執行程序。 藉由上述可知’本發明透過建立轉交表3及執行定期 輪于程序,使得舰器自動執行定期執行程序,用以將轉 交表3處於閒置的各轉交項目3()轉交給第—儲存控制器 1如此,將可解決官理者等待各項資源及服務從忙錄狀 I轉成到閒置狀態’再透過手動的方式將資源或服務轉交 、、’。第儲存控制器1之缺點,避免造成管理者在管理祠服 器的不便。 按,以上所述,僅為本發明最佳之一具體實施例,惟 本發明之構造特徵並抑限於此,任何熟隸項技藝者在 本發明領域内’可㈣思及之變化或修飾,皆可涵蓋在以 下本案之專利範圍。 12 1322948 【圖式簡單說明】 第3圖係本發明之已轉交的轉交項目從該轉交表刪 =尚未轉交的轉交項目繼續保留在該轉交表中之動In the process of deleting or retaining the transfer item 3, please refer to the 3rd _, including. (10) Read from the wire 3 - one of the unprocessed turnovers during this regular execution Item 30; (11) judging whether the currently transferred transfer item 30 is in the idle state in the second storage control benefit 2, if the following step (12) is performed, otherwise step (15); 〇 2) The currently transferred transfer item 30 is transferred from the second storage controller 2 to the first storage controller and the currently read transfer item 30 is deleted from the transfer table 3, and then the following steps (13) are performed; (13) It is judged whether all the transfer items 3 of the transfer table 3 have been read, if the following step (14) is performed, otherwise step (10) is performed; (14) the periodic execution program has been processed, that is, the end; When the currently transferred 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 in a busy state, the current read is retained. Transfer the project 30 and proceed to the step (1〇). (204) Judging whether there is any transfer item in the transfer table 3, if the following step (201) is performed, otherwise the step (2〇5) is performed; (205) when there is no transfer item 3 in the transfer form 3, delete The program is executed on a regular basis and is over. For example, as shown in FIG. 4, the server includes a first storage controller 1, a second storage controller 2, and four storage units (4, 5, 6, and 7), wherein the first storage The controller manages the first, second and fourth storage units (4, 5, 7), and the second storage controller 2 manages the third storage unit 6, and the server receives the first through the second storage controller 2. The heartbeat signal sent by the controller 1 is stored, and the second storage controller 2 determines whether the heartbeat signal has not been received for a period of time. If the second storage controller 2 determines that the heartbeat signal has not been received for a certain period of time, the heartbeat signal is not received. , indicating that the storage controller 1 has an abnormal condition (as shown in FIG. 5), and immediately all the storage units (4, 5, 6, and 7) are taken over by the first storage controller 2. 11 is not read in Figure 6, when the first storage controller 1's abnormal condition j 'the server executes the fail back procedure, the storage controller i has taken over the first storage unit 4, but Second, quaternary, 7) Wei busy poly m storage controller = miscellaneous tube second, fourth storage unit (5, 7), at this time, still manage the second and fourth storage units by the second system $2 ( 5,?), and the first storage has not been able to take over the second and fourth storage units (5, 7) respectively set to a project 30 ' and thus transfer the project 3G to establish the transfer table 3 (such as the first ττ〇 Establishing a periodic execution program, such that the feeding device is alternately operated for a fixed period of time, that is, the second and fourth storage units (5, 7) are transferred from the second storage controller 2 to the first storage controller i. Until the regular execution of the process f, the two transfer items 30 have been handed over to the first storage controller i (ie, restored to the first ® ®), the ship H is deleted in the same period of execution procedures. Establish the transfer form 3 and execute the regular round of procedures, so that the ship automatically executes the regular execution procedure to place the transfer form 3 in idle The transfer of the item 3 () to the first storage controller 1 will solve the problem that the official waits for the resources and services to be transferred from the busy record I to the idle state, and then transfers the resource or service by manual means, The disadvantage of the storage controller 1 is that it avoids the inconvenience of the administrator in managing the server. According to the above, it is only one of the preferred embodiments of the present invention, but the structural features of the present invention are not limited thereto. Any change or modification of the skilled person in the field of the invention may be covered by the following patents in this case. 12 1322948 [Simple description of the drawing] Figure 3 is the transferred of the present invention. Transferred items from the transfer form = transferred items that have not been transferred continue to remain in the transfer form
第1圖係本發明之敎表之示意圖; 第2圖係本發明之動作流程圖; 的示本發明之第1存控㈣未發生異常狀況前 =5 _本發明之第―儲存控繼發生異常狀況後的 不^思圓, 第6圖係本發明之第_ 元及第四儲存單元尚未轉====未㈣二儲存單 【主要元件符號說明】1第—儲存控制11之示意圖。1 is a schematic diagram of the present invention; FIG. 2 is a flow chart showing the operation of the present invention; the first storage control of the present invention (4) before an abnormality occurs = 5 _ the first storage control of the present invention occurs After the abnormal condition, the figure is not shown. The sixth figure is the _ yuan and the fourth storage unit of the present invention has not been transferred ==== not (four) two storage list [main symbol description] 1 first - storage control 11 schematic.
第一儲存控制器...1 轉交項目............. 第一儲存單元......^ 第三儲存單元......0 第二儲存控制器…2 轉交表................ 第一儲存單元......5 第四儲存單元......7The first storage controller...1 hand over the project..................the first storage unit......^the third storage unit...0 the second storage control ... 2 transfer table ................ first storage unit ... 5 fourth storage unit ... 7