TWI554876B - Method for processing node replacement and server system using the same - Google Patents
Method for processing node replacement and server system using the same Download PDFInfo
- Publication number
- TWI554876B TWI554876B TW100147791A TW100147791A TWI554876B TW I554876 B TWI554876 B TW I554876B TW 100147791 A TW100147791 A TW 100147791A TW 100147791 A TW100147791 A TW 100147791A TW I554876 B TWI554876 B TW I554876B
- Authority
- TW
- Taiwan
- Prior art keywords
- node
- operating system
- type
- software package
- control unit
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 21
- 238000012545 processing Methods 0.000 title description 5
- 238000009434 installation Methods 0.000 claims description 27
- 238000003672 processing method Methods 0.000 claims description 20
- 238000007689 inspection Methods 0.000 claims description 17
- 238000010998 test method Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012797 qualification Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
Description
一種節點置換處理技術,特別有關於一種節點置換處理方法與使用其之伺服器系統。A node replacement processing technique, in particular, relates to a node replacement processing method and a server system using the same.
隨著科技的發展,透過網際網路能夠使得世界各地的電腦進行連結。一台電腦透過網路連線便能夠與另一台電腦進行資料的交換、存取等動作。在客戶端與伺服器系統架構上,客戶端與伺服器便是透過網路來進行溝通。With the development of technology, computers around the world can be connected through the Internet. A computer can exchange data and access data with another computer through a network connection. On the client and server system architecture, the client and server communicate through the network.
一般來說,伺服器系統可配置有多個節點,且每一個節點同時運行多個虛擬機器(Virtual Machine,VM),藉以提供給每一使用者獨立的運作環境。並且,每個節點可視為各自獨立的計算機,亦即各節點具有記憶體、儲存空間、運算能力與網路連結功能。因此,各節點可以運行獨自的作業系統,且各節點之間也可以透過網路交換器(Switch)進行溝通與資料傳輸。In general, a server system can be configured with multiple nodes, and each node runs multiple virtual machines (VMs) at the same time, thereby providing each user with a separate operating environment. Moreover, each node can be regarded as a separate computer, that is, each node has a memory, a storage space, a computing capability, and a network connection function. Therefore, each node can run a separate operating system, and each node can also communicate and transmit data through a network switch (Switch).
在伺服器系統運行後,可能因為偵測到節點發生錯誤或即將發生錯誤、使用者突然將節點移除後再裝回,或是伺服器系統維護進行而使得伺服器系統產生節點置換的情況。然而,現有技術中,當某一節點進行置換(即原節點被移除而被新的節點取代或是節點被移除後再裝回)後,都需要對此節點重新安裝作業系統與軟體封裝資料。但是,如此,若節點置換為節點被移除後再裝回,而此節點已具有作業系統與軟體封裝資料,但系統都會對此節點進行作業系統與軟體封裝資料的重新安裝。如此,將會使伺服器系統的效率降低。After the server system is running, the server system may cause node replacement due to detection of a node error or impending error, the user suddenly removing the node and then reinstalling it, or the server system maintenance is performed. However, in the prior art, when a node performs replacement (that is, the original node is removed and replaced by a new node or the node is removed and then replaced), the operating system and the software package need to be reinstalled for the node. data. However, if the node is replaced and the node is removed and replaced, and the node already has the operating system and software package data, the system will reinstall the operating system and software package data for this node. As such, the efficiency of the server system will be reduced.
鑒於以上的問題,本揭露在於提供一種節點置換處理方法與使用其之伺服器系統,藉以自動識別節點是否需要重新安裝相關作業系統與軟體封裝資料,避免每次進行節點置換都需要重新配置作業系統與軟體,而降低伺服器系統的效率。In view of the above problems, the present disclosure provides a node replacement processing method and a server system using the same, thereby automatically identifying whether a node needs to reinstall related operating systems and software package materials, thereby avoiding reconfiguration of the operating system every time node replacement is performed. With software, the efficiency of the server system is reduced.
本揭露之一種節點置換處理方法,適於一伺服器系統,此伺服器系統例如為提供基礎設施即服務(Infrastructure as a Service,IaaS)之貨櫃式(Container)資料中心(Data Center)。此節點置換處理方法包括下列步驟。接收節點的節點資訊,以取得節點類型。將節點開機。啟動節點的作業系統。檢查作業系統與節點的多個軟體封裝資料,以產生一檢查結果。判斷檢查結果是否符合節點類型的需求。若判斷檢查結果符合節點類型的需求,將節點加入伺服器系統。若判斷檢查結果未符合節點類型的需求,依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。A node replacement processing method of the present disclosure is suitable for a server system, such as a Container Data Center providing Infrastructure as a Service (IaaS). This node replacement processing method includes the following steps. Receive node information of the node to get the node type. Power on the node. Start the operating system of the node. Check the software package data of the operating system and the node to generate a check result. Determine whether the check result meets the requirements of the node type. If it is judged that the check result meets the requirements of the node type, the node is added to the server system. If it is judged that the check result does not meet the requirements of the node type, install the operating system and the software package data to the node according to the node type and the installation file.
在一實施例中,前述節點置換處理方法更包括下列步驟。執行自我開機測試程序。判斷節點是否具有網路開機方式。若判斷節點未具有網路開機方式,則進入啟動節點的作業系統的步驟。若判斷節點具有網路開機方式,則進入依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點的步驟。In an embodiment, the foregoing node replacement processing method further includes the following steps. Perform a self-boot test procedure. Determine if the node has a network boot mode. If it is determined that the node does not have the network boot mode, then the step of starting the operating system of the node is entered. If it is determined that the node has the network boot mode, the step of installing the operating system and the software package data to the node according to the node type and the installation file is entered.
在一實施例中,前述節點置換處理方法更包括下列步驟。判斷作業系統是否於預設時間啟動完成。若判斷作業系統於預設時間啟動完成,則檢查作業系統與節點的軟體封裝資料,以產生檢查結果的步驟。若判斷作業系統未於預設時間啟動完成,將節點的開機旗標設定具有網路開機方式,且將節點進行重開機,並回到執行自我開機測試程序的步驟。In an embodiment, the foregoing node replacement processing method further includes the following steps. Determine whether the operating system is started at the preset time. If it is determined that the operating system is started at the preset time, the software package information of the operating system and the node is checked to generate a check result. If it is determined that the operating system has not been started at the preset time, the node's boot flag setting has a network boot mode, and the node is rebooted, and returns to the step of executing the self-boot test procedure.
在一實施例中,前述節點置換處理方法更包括下列步驟。將節點的開機旗標設定具有網路開機方式。將節點進行重開機,並回到執行自我開機測試程序的步驟。In an embodiment, the foregoing node replacement processing method further includes the following steps. Set the boot flag of the node to the network boot mode. Reboot the node and return to the step of performing the self-boot test procedure.
在一實施例中,前述判斷檢查結果是否符合節點類型的需求的步驟包括下列步驟。若判斷檢查結果部分符合節點類型的需求,判斷作業系統是否符合節點類型的需求。若判斷作業系統符合節點類型的需求,依據節點類型,安裝軟體封裝資料至節點。若判斷作業系統未符合節點類型的需求,則將節點的開機旗標設定具有網路開機方式以及將節點進行重開機,並回到執行自我開機測試程序的步驟。In an embodiment, the step of determining whether the check result meets the requirements of the node type includes the following steps. If it is judged that the inspection result partially meets the requirements of the node type, it is judged whether the operating system meets the requirements of the node type. If it is judged that the operating system meets the requirements of the node type, the software package data is installed to the node according to the node type. If it is determined that the operating system does not meet the requirements of the node type, the node's boot flag setting has the network boot mode and the node is rebooted, and returns to the step of executing the self-boot test procedure.
本揭露之一種伺服器系統,包括節點、擷取單元、控制單元、檢查單元與判斷單元。前述節點具有節點資訊。擷取單元耦接前述節點,用以擷取節點資訊,以取得節點的節點類型。控制單元耦接前述節點與擷取單元,用以控制節點開機,並啟動節點的作業系統。檢查單元耦接前述節點,用以檢查節點的作業系統與多個軟體封裝資料,以產生檢查結果。判斷單元耦接檢查單元、控制單元與擷取單元,用以接收並判斷檢查結果是否符合節點類型的需求。其中,若判斷檢查結果符合節點類型的需求,控制單元將節點加入伺服器系統,若判斷檢查結果未符合節點類型的需求,控制單元依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。A server system of the present disclosure includes a node, a capture unit, a control unit, an inspection unit, and a determination unit. The aforementioned node has node information. The capturing unit is coupled to the foregoing node for extracting node information to obtain a node type of the node. The control unit is coupled to the foregoing node and the capturing unit for controlling the node to be powered on and starting the operating system of the node. The checking unit is coupled to the foregoing node for checking the operating system of the node and the plurality of software package materials to generate an inspection result. The determining unit is coupled to the checking unit, the control unit and the capturing unit for receiving and determining whether the checking result meets the requirement of the node type. If the judgment result meets the requirement of the node type, the control unit adds the node to the server system. If the check result does not meet the requirement of the node type, the control unit installs the operating system and the software package data to the node according to the node type and the installation file. .
在一實施例中,前述控制單元控制節點執行自我開機測試程序,且判斷單元判斷節點是否具有網路開機方式,其中若判斷節點未具有網路開機方式,則控制單元控制節點啟動作業系統,若判斷節點具有網路開機方式,則控制單元依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In an embodiment, the control unit control node performs a self-boot test procedure, and the determining unit determines whether the node has a network boot mode, wherein if the node is determined to have no network boot mode, the control unit controls the node to start the operating system, if When the node is determined to have a network booting mode, the control unit installs the operating system and the software package data to the node according to the node type and the installation file.
在一實施例中,前述判斷單元判斷作業系統是否於預設時間啟動完成,其中若判斷作業系統於預設時間啟動完成,檢查單元檢查作業系統與節點的軟體封裝資料,以產生檢查結果,若判斷作業系統未於預設時間啟動完成,控制單元將節點的開機旗標設定具有網路開機方式,使將節點進行重開機,使節點執行自我開機測試程序,且判斷單元判斷出節點會具有網路開機方式,使控制單元依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In an embodiment, the determining unit determines whether the operating system is started at a preset time. If it is determined that the operating system is started at the preset time, the checking unit checks the software package information of the operating system and the node to generate an inspection result. It is judged that the operating system is not started at the preset time, and the control unit sets the boot flag of the node to the network boot mode, so that the node is restarted, the node performs the self-boot test procedure, and the determining unit determines that the node has the network. The way of starting the circuit enables the control unit to install the operating system and the software package data to the node according to the node type and the installation file.
在一實施例中,前述控制單元將節點的開機旗標設定具有網路開機方式,並將節點進行重開機,使節點執行自我開機測試程序,且判斷單元判斷出節點會具有網路開機方式,使控制單元依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In an embodiment, the foregoing control unit sets the boot flag of the node to a network boot mode, and restarts the node, so that the node performs a self-boot test procedure, and the determining unit determines that the node has a network boot mode. The control unit is configured to install the operating system and the software package data to the node according to the node type and the installation file.
在一實施例中,前述若判斷檢查結果部分符合節點類型的需求,則判斷單元判斷作業系統是否符合節點類型的需求,其中若判斷作業系統符合節點類型的需求,控制單元依據節點類型,安裝軟體封裝資料至節點,若判斷作業系統未符合節點類型的需求,控制單元依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In an embodiment, if the foregoing checking result partially meets the requirement of the node type, the determining unit determines whether the operating system meets the requirement of the node type, wherein if the operating system is determined to meet the requirement of the node type, the control unit installs the software according to the node type. Encapsulate the data to the node. If it is judged that the operating system does not meet the requirements of the node type, the control unit installs the operating system and the software package data to the node according to the node type and the installation file.
本揭露之一種節點置換處理方法與使用其之伺服器系統,藉由啟動節點的作業系統,並判斷節點所配置的作業系統與軟體封裝資料是否符合節點類型的需求,而據以將節點加入伺服器系統的運作,或是依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。如此一來,可避免在每次進行節點置換後,都需要重新配置作業系統與軟體封裝資料,而使伺服器系統的效率降低,進而增加節點置換後的使用便利性。The node replacement processing method and the server system using the same according to the present invention, and the node is added to the servo by starting the operation system of the node and determining whether the operating system and the software package data configured by the node meet the requirements of the node type. The operation of the system, or install the operating system and software package information to the node according to the node type and installation file. In this way, it is possible to avoid reconfiguring the operating system and the software package data after each node replacement, thereby reducing the efficiency of the server system, thereby increasing the usability after node replacement.
有關本揭露的特徵與實作,茲配合圖式作最佳實施例詳細說明如下。The features and implementations of the present disclosure are described in detail below with reference to the drawings.
請參考「第1圖」所示,其係為本揭露之伺服器系統的方塊圖。伺服器系統100包括節點110_1~110_N、擷取單元120、控制單元130、檢查單元140與判斷單元150,其中N為大於1的正整數。伺服器系統100例如為提供基礎設施即服務(Infrastructure as a Service,IaaS)之貨櫃式(Container)資料中心(Data Center)。節點100_1~110_N各自具有節點資訊。擷取單元120耦接節點110_1~110_N,用以擷取節點資訊,以取得節點110_1~110_N的節點類型(Node Type)。其中,節點類型例如為服務節點(Service Node)、運算節點(Computing Node)與儲存節點(Storage Node)。Please refer to "Figure 1" for a block diagram of the server system disclosed herein. The server system 100 includes nodes 110_1 110 110_N, a capture unit 120, a control unit 130, an inspection unit 140, and a determination unit 150, where N is a positive integer greater than one. The server system 100 is, for example, a Container Data Center that provides Infrastructure as a Service (IaaS). The nodes 100_1~110_N each have node information. The capturing unit 120 is coupled to the nodes 110_1 110 110_N for extracting node information to obtain the node type of the nodes 110_1 110 110_N. The node type is, for example, a service node, a computing node, and a storage node.
控制單元130耦接節點110_1~110_N與擷取單元120,用以控制節點110_1~110_N開機,並啟動節點110_1~110_N的作業系統(Operation System,OS)。檢查單元140耦接節點110_1~110_N,用以檢查節點110_1~110_N的作業系統與多個軟體封裝資料(Software Package),以產生檢查結果。判斷單元150耦接檢查單元140、控制單元130與擷取單元120,用以接收並判斷檢查結果是否符合節點類型的需求。The control unit 130 is coupled to the nodes 110_1 110 110_N and the capture unit 120 for controlling the startup of the nodes 110_1 110 110_N and starting the operation system (OS) of the nodes 110_1 110 110_N. The checking unit 140 is coupled to the nodes 110_1 110 110_N for checking the operating systems of the nodes 110_1 110 110_N and a plurality of software packages to generate inspection results. The determining unit 150 is coupled to the checking unit 140, the control unit 130, and the capturing unit 120 for receiving and determining whether the checking result meets the requirements of the node type.
若判斷檢查結果符合節點類型的需求,則控制單元130將節點110_1~110_N加入到伺服器系統100。若判斷檢查結果未符合節點類型的需求,則控制單元130可依據節點類型與安裝檔案,安裝作業系統與多個軟體封裝資料給節點110_1~110_N,使節點110_1~110_N具有符合其節點類型之相關作業系統與軟體。If it is determined that the check result meets the requirements of the node type, the control unit 130 adds the nodes 110_1 110 110_N to the server system 100. If it is determined that the check result does not meet the requirement of the node type, the control unit 130 may install the operating system and the plurality of software package materials to the nodes 110_1~110_N according to the node type and the installation file, so that the nodes 110_1~110_N have a correlation with the node type. Operating system and software.
上述以簡略說明了伺服器系統100的內部元件與其耦接關係。以下,將進一步說明在節點置換後,伺服器系統100的運作方式。為了方便說明,以下將以節點110_1為例,並假設節點110_1為置換過元件後的節點,且節點110_1具有作業系統。The above briefly illustrates the internal components of the server system 100 and their coupling relationship. Hereinafter, the operation mode of the server system 100 after node replacement will be further explained. For convenience of explanation, the following will take the node 110_1 as an example, and assume that the node 110_1 is a node after replacing the component, and the node 110_1 has an operating system.
首先,伺服器系統100檢測出節點110_1發生損壞,並告知使用者。當使用者得知前述損壞的情況後,將節點110_1之損壞的元件拔除,並置換新的元件至節點110_1。First, the server system 100 detects that the node 110_1 is damaged and notifies the user. When the user knows the aforementioned damage, the damaged component of the node 110_1 is removed and the new component is replaced with the node 110_1.
接著,擷取單元120例如發出智慧平台管理介面(Intelligent Platform Management Interface,IPMI)指令給節點110_1上的基板管理控制器(Baseboard Management Controller,BMC),以要求基板管理控制器去取得節點110_1的節點資訊並回傳給擷取單元120。接著,擷取單元120可依據節點資訊而得知節點110_1的節點類型(例如服務節點、運算節點或儲存節點),以便進行後續的處理。Then, the capturing unit 120 sends an Intelligent Platform Management Interface (IPMI) command to the Baseboard Management Controller (BMC) on the node 110_1 to request the baseboard management controller to obtain the node of the node 110_1. The information is passed back to the capture unit 120. Then, the capturing unit 120 can learn the node type (for example, the service node, the computing node, or the storage node) of the node 110_1 according to the node information, so as to perform subsequent processing.
在取得節點110_1的節點類型後,控制單元130控制節點110_1開機,並啟動節點110_1的作業系統。接著,當作業系統啟動完成後,檢查單元140會檢查節點110_1的作業系統與軟體封裝資料,以產生檢查結果,並將檢查結果傳送至判斷單元150。其中,檢查結果例如包括作業系統與軟體封裝資料的類型與版本。After obtaining the node type of the node 110_1, the control unit 130 controls the node 110_1 to power on, and starts the operating system of the node 110_1. Next, after the startup of the operating system is completed, the checking unit 140 checks the operating system and the software package data of the node 110_1 to generate an inspection result, and transmits the inspection result to the determination unit 150. The inspection result includes, for example, the type and version of the operating system and the software package data.
接著,判斷單元150判斷檢查結果是否符合節點類型的需求。若判斷檢查結果符合節點類型的需求,判斷單元150例如產生判斷訊號給控制單元130,控制單元130則據此將節點110_1加入伺服器系統100,以進行運作。若判斷檢查結果未符合節點類型的需求,判斷單元150例如產生判斷訊號給控制單元130,則控制單元130據此而依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點110_1,以讓節點110_1加入伺服器系統100的運行。如此一來,伺服器系統100在進行節點110_1置換後,可自動判斷節點110_1是否能直接加入伺服器系統100的運作或是需要重新安裝作業系統與軟體封裝資料,進而增加使用的便利性。Next, the judging unit 150 judges whether or not the check result meets the demand of the node type. If it is determined that the check result meets the requirement of the node type, the determining unit 150 generates, for example, a determination signal to the control unit 130, and the control unit 130 accordingly joins the node 110_1 to the server system 100 for operation. If it is determined that the check result does not meet the requirement of the node type, the determining unit 150 generates a judgment signal to the control unit 130, for example, the control unit 130 installs the operating system and the software package information to the node 110_1 according to the node type and the installation file, so that Node 110_1 joins the operation of server system 100. In this way, after the node 110_1 is replaced, the server system 100 can automatically determine whether the node 110_1 can directly join the operation of the server system 100 or need to reinstall the operating system and the software package data, thereby increasing the convenience of use.
接下來,將舉另一例來說明伺服器系統100進行節點置換後的處理操作。並且,以節點110_1為例進行說明,並假設節點110_1為置換過元件後的節點。Next, another example will be described to explain the processing operation after the node replacement by the server system 100. Further, the node 110_1 will be described as an example, and it is assumed that the node 110_1 is a node after the component has been replaced.
當節點110_1進行置換後,擷取單元120例如發出智慧平台管理介面指令給節點110_1上的基板管理控制器,以要求基板管理控制器去取得節點110_1的節點資訊並回傳給擷取單元120。接著,擷取單元120可依據節點資訊而得知節點110_1的節點類型(例如服務節點、運算節點或儲存節點)。After the node 110_1 performs the replacement, the capturing unit 120 issues a smart platform management interface command to the baseboard management controller on the node 110_1 to request the baseboard management controller to obtain the node information of the node 110_1 and transmit it back to the capturing unit 120. Then, the capturing unit 120 can learn the node type (for example, the service node, the computing node, or the storage node) of the node 110_1 according to the node information.
之後,控制單元130控制節點110_1開機,並執行自我開機測試程序,例如基本輸入輸出系統(Basic Input Output System,BIOS)自我測試程序(Power On Self Test,POST)。接著,判斷單元150會判斷節點110_1是否具有網路開機方式,亦即判斷節點110_1的開機旗標是否設定有網路開機方式。其中,網路開機方式例如為預啟動執行環境(Preboot eXecution Environment,PXE)開機,即節點110_1可以利用網路開機方式,以透過網路卡來安裝作業系統與軟體封裝資料。Thereafter, the control unit 130 controls the node 110_1 to power on, and executes a self-boot test program, such as a Basic Input Output System (BIOS) Power On Self Test (POST). Next, the determining unit 150 determines whether the node 110_1 has the network booting mode, that is, whether the booting flag of the node 110_1 is set to the network booting mode. The network booting mode is, for example, a Preboot eXecution Environment (PXE) booting, that is, the node 110_1 can use the network booting mode to install the operating system and the software package data through the network card.
接著,若節點110_1的開機旗標未具有網路開機方式,則判斷單元150會判斷節點110_1未具有網路開機方式,以例如產生判斷訊號給控制單元130,控制單元130則據此控制節點110_1啟動作業系統。接著,在作業系統啟動的過程中,判斷單元150所配置的計時器(例如FRB4 timer)會對作業系統啟動的過程進行計時,以判斷作業系統是否可於預設時間內啟動完畢。其中,此預設時間可由使用者視需求自行調整。Then, if the boot flag of the node 110_1 does not have the network boot mode, the determining unit 150 determines that the node 110_1 does not have the network boot mode, for example, generates a determination signal to the control unit 130, and the control unit 130 controls the node 110_1 accordingly. Start the operating system. Then, during the startup of the operating system, the timer configured by the determining unit 150 (for example, the FRB4 timer) counts the process of starting the operating system to determine whether the operating system can be started within a preset time. The preset time can be adjusted by the user according to the needs.
若判斷出作業系統於預設時間啟動完畢,表示作業系統正常運作(即未發生錯誤),判斷單元150例如產生判斷訊號給檢查單元140。接著,檢查單元140檢查節點110_1的作業系統與軟體封裝資料,以產生檢查結果。也就是,檢查作業系統與軟體封裝資歷的類型與版本。之後,將檢查結果傳送至判斷單元150。If it is determined that the operating system is started at the preset time, indicating that the operating system is operating normally (ie, no error has occurred), the determining unit 150 generates a determination signal to the checking unit 140, for example. Next, the checking unit 140 checks the operating system and the software package data of the node 110_1 to generate an inspection result. That is, check the type and version of the operating system and software package qualifications. Thereafter, the inspection result is transmitted to the judging unit 150.
接著,判斷單元150判斷檢查結果是否符合節點類型的需求。若判斷檢查結果符合節點類型的需求,判斷單元150例如產生判斷訊號給控制單元130。接著,控制單元130據此將節點110_1加入伺服器系統100,亦即將節點110_1加入伺服器系統100的運作。Next, the judging unit 150 judges whether or not the check result meets the demand of the node type. If it is determined that the check result meets the requirement of the node type, the determining unit 150 generates a judgment signal to the control unit 130, for example. Next, the control unit 130 joins the node 110_1 to the server system 100, that is, the node 110_1 joins the operation of the server system 100.
承接前述判斷節點110_1是否具有網路開機方式,若判斷節點110_1的開機旗標具有網路開機方式,表示節點110_1可以網路開機方式進行開機,則判斷單元150例如產生判斷訊號給控制單元130。接著,控制單元130據此而依據節點類型與安裝檔案(例如自動安裝檔案,Kick Start File),安裝節點110_1所需的作業系統與軟體封裝資料至節點110_1,使節點110_1具有置換前原有的運作類型。If the determining node 110_1 has the network booting mode, if the booting flag of the node 110_1 has the network booting mode, indicating that the node 110_1 can be powered on in the network boot mode, the determining unit 150 generates a determining signal to the control unit 130, for example. Then, the control unit 130 installs the operating system and the software package information required by the node 110_1 to the node 110_1 according to the node type and the installation file (for example, the Kick Start File), so that the node 110_1 has the original operation before the replacement. Types of.
承接前述判斷作業系統是否於預設時間啟動完成,若判斷作業系統未於預設時間啟動完成,表示作業系統不正常(亦即發生錯誤)或是節點110_1並未裝設有作業系統,則判斷單元150例如產生判斷訊號給控制單元130。接著,控制單元130據此將節點110_1的開機旗標設定具有網路開機方式,例如一次性網路開機方式。也就是說,當節點110_1利用網路開機方式且例如透過網路卡安裝作業系統後,則節點110_1的開機旗標就不具有網路開機方式。The foregoing determining whether the operating system is started at a preset time, and if it is determined that the operating system is not completed at the preset time, indicating that the operating system is abnormal (that is, an error occurs) or the node 110_1 is not equipped with the operating system, then determining Unit 150, for example, generates a decision signal to control unit 130. Next, the control unit 130 accordingly sets the boot flag of the node 110_1 to a network boot mode, such as a one-time network boot mode. That is to say, when the node 110_1 uses the network boot mode and installs the operating system through the network card, for example, the boot flag of the node 110_1 does not have the network boot mode.
當前述開機旗標設定完成後,控制單元130會控制節點110_1進行重開機,使節點110_1再次執行自我檢測程序。接著,判斷單元150會判斷出節點110_1的開機旗標具有網路開機方式,而例如產生判斷訊號給控制單元130。之後,控制單元130會依據節點110_1的節點類型與安裝檔案,使節點110_1透過網路安裝作業系統與軟體封裝資料至節點110_1,使節點110_1具有置換前原有的運作類型。After the foregoing boot flag setting is completed, the control unit 130 controls the node 110_1 to perform rebooting, so that the node 110_1 executes the self-detection program again. Next, the determining unit 150 determines that the boot flag of the node 110_1 has a network booting mode, and generates a determining signal to the control unit 130, for example. Then, the control unit 130 causes the node 110_1 to install the operating system and the software package data to the node 110_1 according to the node type and the installation file of the node 110_1, so that the node 110_1 has the original operation type before the replacement.
承接前述判斷檢查結果是否符合節點類型的需求,若判斷檢查結果未符合節點類型的需求,表示節點110_1所有的作業系統與軟體封裝資料都不符合原始的類型,故判斷單元150例如產生判斷訊號給控制單元130。接著,控制單元130據此將節點110_1的開機旗標設定具有網路開機方式。If the result of the foregoing judgment check is consistent with the requirement of the node type, if it is judged that the check result does not meet the requirement of the node type, it indicates that all the operating systems and the software package data of the node 110_1 do not conform to the original type, so the determining unit 150 generates a judgment signal, for example. Control unit 130. Next, the control unit 130 accordingly sets the boot flag of the node 110_1 to the network boot mode.
之後,控制單元130會控制節點110_1進行重開機,使節點110_1再次執行自我檢測程序。接著,判斷單元150會判斷出節點110_1的開機旗標具有網路開機方式,而例如產生判斷訊號給控制單元130。之後,控制單元130會依據節點110_1的節點類型與安裝檔案,使節點110_1透過網路安裝作業系統與軟體封裝資料至節點110_1,使節點110_1具有置換前原有的運作類型。Thereafter, the control unit 130 controls the node 110_1 to perform a reboot, causing the node 110_1 to perform the self-detection procedure again. Next, the determining unit 150 determines that the boot flag of the node 110_1 has a network booting mode, and generates a determining signal to the control unit 130, for example. Then, the control unit 130 causes the node 110_1 to install the operating system and the software package data to the node 110_1 according to the node type and the installation file of the node 110_1, so that the node 110_1 has the original operation type before the replacement.
承接前述判斷檢查結果是否符合節點類型的需求,若判斷檢查結果部分符合節點類型的需求,表示節點110_1的作業系統與軟體封裝資料有部分相符,則判斷單元150更進一步判斷節點110_1所配置的作業系統是否符合節點類型的需求。若判斷作業系統符合節點類型的需求,判斷單元150例如產生控制訊號給控制單元130。接著,控制單元130據此而依據節點110_1的節點類型,安裝相關的軟體封裝資料至節點110_1,使節點110_1具有置換前原有的運作類型。If the result of the foregoing judgment is consistent with the requirement of the node type, if it is determined that the inspection result partially meets the requirement of the node type, and the operating system of the node 110_1 is partially matched with the software package data, the determining unit 150 further determines the operation configured by the node 110_1. Whether the system meets the needs of the node type. If it is determined that the operating system meets the requirements of the node type, the determining unit 150 generates a control signal to the control unit 130, for example. Next, the control unit 130 installs the relevant software package data to the node 110_1 according to the node type of the node 110_1, so that the node 110_1 has the original operation type before the replacement.
另一方面,若判斷作業系統未符合節點類型的需求,故判斷單元150例如產生判斷訊號給控制單元130。接著,控制單元130據此將節點110_1的開機旗標設定具有網路開機方式。On the other hand, if it is judged that the operating system does not meet the requirements of the node type, the determining unit 150 generates a determination signal to the control unit 130, for example. Next, the control unit 130 accordingly sets the boot flag of the node 110_1 to the network boot mode.
之後,控制單元130會控制節點110_1進行重開機,使節點110_1再次執行自我檢測程序。接著,判斷單元150會判斷出節點110_1的開機旗標具有網路開機方式,而例如產生判斷訊號給控制單元130。之後,控制單元130會依據節點110_1的節點類型與安裝檔案,使節點110_1透過網路安裝作業系統與軟體封裝資料至節點110_1,使節點110_1具有置換前原有的運作類型。Thereafter, the control unit 130 controls the node 110_1 to perform a reboot, causing the node 110_1 to perform the self-detection procedure again. Next, the determining unit 150 determines that the boot flag of the node 110_1 has a network booting mode, and generates a determining signal to the control unit 130, for example. Then, the control unit 130 causes the node 110_1 to install the operating system and the software package data to the node 110_1 according to the node type and the installation file of the node 110_1, so that the node 110_1 has the original operation type before the replacement.
另外,在前述節點110_1透過網路開機方式重新安裝作業系統與軟體封裝資料後,可重複前述的處理操作,直到判斷出節點110_1所安裝的作業系統與軟體封裝資料都符合節點型態的需求,以將節點110_1加入伺服器系統100的運作為止。In addition, after the node 110_1 reinstalls the operating system and the software package data through the network boot mode, the foregoing processing operations may be repeated until it is determined that the operating system and the software package data installed by the node 110_1 meet the node type requirements. The node 110_1 is added to the operation of the server system 100.
如此一來,藉由前述實施例的說明,可以歸納出一種節點置換處理方法。請參考「第2圖」所示,其係為本揭露之節點置換處理方法的流程圖。本實施例之節點置換處理方法適於伺服器系統。在步驟S202中,接收節點的節點資訊,以取得節點類型。在步驟S204中,將節點開機。在步驟S206中,啟動節點的作業系統。在步驟S208中,檢查作業系統與節點的多個軟體封裝資料,以產生檢查結果。在步驟S210中,判斷檢查結果是否符合節點類型的需求。若檢查結果符合節點類型的需求,則進入步驟S212,將節點加入伺服器系統。若檢查結果未符合節點類型的需求,則進入步驟S214,依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In this way, a description of the foregoing embodiment can be summarized as a node replacement processing method. Please refer to "Figure 2" for a flowchart of the node replacement processing method disclosed herein. The node replacement processing method of this embodiment is suitable for a server system. In step S202, the node information of the node is received to obtain the node type. In step S204, the node is powered on. In step S206, the operating system of the node is started. In step S208, a plurality of software package materials of the operating system and the node are checked to generate an inspection result. In step S210, it is determined whether the check result meets the requirement of the node type. If the check result meets the requirement of the node type, the process proceeds to step S212 to join the node to the server system. If the result of the check does not meet the requirements of the node type, proceed to step S214 to install the operating system and the software package data to the node according to the node type and the installation file.
請參考「第3圖」所示,其係為本揭露之另一節點置換處理方法的流程圖。本實施例之節點置換處理方法適於伺服器系統。Please refer to "Figure 3" for a flowchart of another node replacement processing method disclosed herein. The node replacement processing method of this embodiment is suitable for a server system.
在步驟S302中,接收節點的節點資訊,以取得節點類型。在步驟S304中,將節點開機。在步驟S306中,執行自我開機測試程序。在步驟S308中,判斷該節點是否具有網路開機方式。若判斷節點未具有網路開機方式,則進入步驟S310,啟動節點的作業系統。In step S302, the node information of the node is received to obtain the node type. In step S304, the node is powered on. In step S306, a self-boot test program is executed. In step S308, it is determined whether the node has a network boot mode. If it is determined that the node does not have the network booting mode, the process proceeds to step S310 to start the operating system of the node.
在步驟S312中,判斷作業系統是否於預設時間啟動完成。若判斷作業系統於預設時間啟動完成,則進入步驟S314檢查作業系統與節點的多個軟體封裝資料,以產生檢查結果。在步驟S316中,判斷檢查結果是否符合節點類型的需求。若檢查結果符合節點類型的需求,則進入步驟S318,將節點加入伺服器系統。In step S312, it is determined whether the operating system is started up at a preset time. If it is determined that the operating system is started up at the preset time, then the process proceeds to step S314 to check a plurality of software package materials of the operating system and the node to generate an inspection result. In step S316, it is determined whether the check result meets the requirement of the node type. If the result of the check conforms to the requirement of the node type, the process proceeds to step S318 to join the node to the server system.
承接步驟S308,若判斷節點具有網路開機方式,則進入步驟S320,依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In step S308, if it is determined that the node has the network boot mode, the process proceeds to step S320, and the operating system and the software package information are installed to the node according to the node type and the installation file.
承接步驟S312,若判斷作業系統未於預設時間啟動完成,則進入步驟S322,將節點的開機旗標設定具有網路開機方式。接著,在步驟S324中,將節點進行重開機,並回到步驟S306中。之後,在步驟S308中,判斷出節點會以網路開機方式進行開機,以於步驟S320,依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In step S312, if it is determined that the operating system is not completed at the preset time, the process proceeds to step S322, and the node startup flag setting has a network boot mode. Next, in step S324, the node is rebooted, and the process returns to step S306. Then, in step S308, it is determined that the node is powered on in the network boot mode, and in step S320, the operating system and the software package information are installed to the node according to the node type and the installation file.
承接步驟S316,若判斷檢查結果未符合節點類型的需求,則進入步驟S322,將節點的開機旗標設定具有網路開機方式。接著,在步驟S324中,將節點進行重開機,並回到步驟S306中。之後,在步驟S308中,判斷出節點會具有網路開機方式,以於步驟S320,依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。In step S316, if it is determined that the check result does not meet the requirement of the node type, the process proceeds to step S322, and the node boot flag setting has a network boot mode. Next, in step S324, the node is rebooted, and the process returns to step S306. Then, in step S308, it is determined that the node will have a network boot mode, and in step S320, the operating system and the software package information are installed to the node according to the node type and the installation file.
承接步驟S316,若判斷檢查結果部分符合該節點類型的需求,進入步驟S326,判斷作業系統是否符合節點類型的需求。若判斷作業系統符合節點類型的需求,則進入步驟S328中,依據節點類型,安裝軟體封裝資料至節點。接著,進入步驟S318,將此節點加入伺服器系統。In step S316, if it is determined that the inspection result partially meets the requirements of the node type, the process proceeds to step S326 to determine whether the operating system meets the requirements of the node type. If it is determined that the operating system meets the requirements of the node type, the process proceeds to step S328, and the software package information is installed to the node according to the node type. Next, proceeding to step S318, the node is added to the server system.
若判斷作業系統未符合節點類型的需求,則進入步驟S322,將節點的開機旗標設定具有網路開機方式。接著,在步驟S324中,將節點進行重開機,並回到步驟S306中。之後,在步驟S308中,判斷出節點會以網路開機方式進行開機,以於步驟S320,依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。If it is determined that the operating system does not meet the requirements of the node type, then the process proceeds to step S322, and the node's boot flag setting has a network boot mode. Next, in step S324, the node is rebooted, and the process returns to step S306. Then, in step S308, it is determined that the node is powered on in the network boot mode, and in step S320, the operating system and the software package information are installed to the node according to the node type and the installation file.
另外,在執行完步驟S320之後,會回到步驟S304,以重複執行除了步驟S318以外的步驟S304~S324,直到於步驟S316判斷出檢查結果符合節點類型的需求,並進入步驟S318將節點加入伺服器系統為止,或是直到於步驟S326判斷出作業系統符合節點類型的需求,則進入步驟S328中,依據節點類型,安裝軟體封裝資料至節點,再進入步驟S318,將此節點加入伺服器系統為止。In addition, after step S320 is performed, the process returns to step S304 to repeatedly perform steps S304 to S324 except for step S318 until it is determined in step S316 that the check result meets the requirement of the node type, and proceeds to step S318 to join the node to the servo. Up to the system, or until it is determined in step S326 that the operating system meets the requirement of the node type, proceeding to step S328, installing the software package data to the node according to the node type, and proceeding to step S318 to join the node to the server system .
本揭露之實施例的節點置換處理方法與使用其之伺服器系統,藉由啟動節點的作業系統,並判斷節點所配置的作業系統與軟體封裝資料是否符合節點類型的需求,而據以將節點加入伺服器系統的運作,或是依據節點類型與安裝檔案,安裝作業系統與軟體封裝資料至節點。The node replacement processing method of the embodiment of the present disclosure and the server system using the same, according to the operating system of the node, and determining whether the operating system and the software package data configured by the node meet the requirements of the node type, Join the operation of the server system, or install the operating system and software package information to the node according to the node type and installation file.
另外,還可藉由判斷節點是否具有網路開機程序,而據以對節點安裝符合其節點類型之需求的作業系統與軟體封裝資料。並且,還可進一步藉由判斷作業系統是否於預定時間啟動完畢,以確認節點所安裝的作業系統是否產生錯誤或是節點並無裝設作業系統。如此一來,可避免在每次進行節點置換後,都需要重新配置作業系統與軟體封裝資料而使伺服器系統的效率降低,進而增加節點置換後的使用便利性。In addition, by determining whether the node has a network booting procedure, the operating system and software package data corresponding to the requirements of its node type are installed on the node. Moreover, it is further determined whether the operating system is started at a predetermined time to confirm whether the operating system installed by the node generates an error or the node does not install the operating system. In this way, it is possible to avoid the need to reconfigure the operating system and the software package data after each node replacement, thereby reducing the efficiency of the server system, thereby increasing the usability after node replacement.
雖然本揭露以前述之較佳實施例揭露如上,然其並非用以限定本揭露,任何熟習相像技藝者,在不脫離本揭露之精神和範圍內,當可作些許之更動與潤飾,因此本揭露之專利保護範圍須視本說明書所附之申請專利範圍所界定者為準。The present disclosure has been disclosed in the foregoing preferred embodiments. However, it is not intended to limit the scope of the disclosure, and it is obvious to those skilled in the art that the present invention can be modified and retouched without departing from the spirit and scope of the disclosure. The scope of patent protection disclosed is subject to the definition of the scope of the patent application attached to this specification.
100...伺服器系統100. . . Server system
100_1~100_N...節點100_1~100_N. . . node
120...擷取單元120. . . Capture unit
130...控制單元130. . . control unit
140...檢查單元140. . . Inspection unit
150...判斷單元150. . . Judging unit
第1圖係為本揭露之伺服器系統的方塊圖。Figure 1 is a block diagram of the server system of the present disclosure.
第2圖係為本揭露之節點置換處理方法的流程圖。Figure 2 is a flow chart of the node replacement processing method disclosed herein.
第3圖係為本揭露之另一節點置換處理方法的流程圖。Figure 3 is a flow chart of another node replacement processing method of the present disclosure.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100147791A TWI554876B (en) | 2011-12-21 | 2011-12-21 | Method for processing node replacement and server system using the same |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW100147791A TWI554876B (en) | 2011-12-21 | 2011-12-21 | Method for processing node replacement and server system using the same |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201327139A TW201327139A (en) | 2013-07-01 |
TWI554876B true TWI554876B (en) | 2016-10-21 |
Family
ID=49225020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW100147791A TWI554876B (en) | 2011-12-21 | 2011-12-21 | Method for processing node replacement and server system using the same |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI554876B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI501090B (en) * | 2013-12-06 | 2015-09-21 | Inventec Corp | Server system and node detection method |
TWI750726B (en) * | 2020-07-09 | 2021-12-21 | 緯穎科技服務股份有限公司 | Server device and method for recognizing server modules thereof |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW512279B (en) * | 2000-06-29 | 2002-12-01 | Inventec Corp | Method for computer to automatically install software on production line |
TWI317069B (en) * | 2006-07-18 | 2009-11-11 | Inventec Corp | Method for supporting riser card by basic input/output system |
TWI324459B (en) * | 2006-12-07 | 2010-05-01 | Inventec Corp | Method for detecting network equipments on sub network domain nodes |
-
2011
- 2011-12-21 TW TW100147791A patent/TWI554876B/en not_active IP Right Cessation
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW512279B (en) * | 2000-06-29 | 2002-12-01 | Inventec Corp | Method for computer to automatically install software on production line |
TWI317069B (en) * | 2006-07-18 | 2009-11-11 | Inventec Corp | Method for supporting riser card by basic input/output system |
TWI324459B (en) * | 2006-12-07 | 2010-05-01 | Inventec Corp | Method for detecting network equipments on sub network domain nodes |
Also Published As
Publication number | Publication date |
---|---|
TW201327139A (en) | 2013-07-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107122321B (en) | Hardware repair method, hardware repair system, and computer-readable storage device | |
WO2022160756A1 (en) | Server fault positioning method, apparatus and system, and computer-readable storage medium | |
TWI754317B (en) | Method and system for optimal boot path for a network device | |
US9946553B2 (en) | BMC firmware recovery | |
US20150220411A1 (en) | System and method for operating system agnostic hardware validation | |
US12001285B2 (en) | System booting method and apparatus, node device, and computer-readable storage medium | |
JP2016518654A (en) | Server control method and server control apparatus | |
US9372702B2 (en) | Non-disruptive code update of a single processor in a multi-processor computing system | |
WO2018120200A1 (en) | Server management method and server | |
CN111338698A (en) | Method and system for accurately booting server by BIOS (basic input output System) | |
CN110109782B (en) | Method, device and system for replacing fault PCIe (peripheral component interconnect express) equipment | |
US10474517B2 (en) | Techniques of storing operational states of processes at particular memory locations of an embedded-system device | |
WO2023109880A1 (en) | Service recovery method, data processing unit and related device | |
CN111090546A (en) | Method, device and equipment for restarting operating system and readable storage medium | |
TWI554876B (en) | Method for processing node replacement and server system using the same | |
JP2017078998A (en) | Information processor, log management method, and computer program | |
CN116881929B (en) | Safety protection method and device, electronic equipment and substrate controller chip | |
US20170344360A1 (en) | Protecting firmware flashing from power operations | |
CN116627702A (en) | Method and device for restarting virtual machine in downtime | |
CN110688130A (en) | Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment | |
US10509656B2 (en) | Techniques of providing policy options to enable and disable system components | |
CN103186403A (en) | Node replacement processing method and server system using same | |
CN106547583B (en) | Operating system installation method and device | |
EP3974979A1 (en) | Platform and service disruption avoidance using deployment metadata | |
JP2023544001A (en) | Static configuration of accelerator card security mode |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |