CN107800802A - A kind of Rack whole machine cabinets write-in and the method for reading UUID - Google Patents
A kind of Rack whole machine cabinets write-in and the method for reading UUID Download PDFInfo
- Publication number
- CN107800802A CN107800802A CN201711104579.6A CN201711104579A CN107800802A CN 107800802 A CN107800802 A CN 107800802A CN 201711104579 A CN201711104579 A CN 201711104579A CN 107800802 A CN107800802 A CN 107800802A
- Authority
- CN
- China
- Prior art keywords
- node
- write
- uuid
- reading
- node server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000013515 script Methods 0.000 claims description 4
- 230000005540 biological transmission Effects 0.000 claims 1
- 230000001360 synchronised effect Effects 0.000 abstract description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/457—Network directories; Name-to-address mapping containing identifiers of data entities on a computer, e.g. file names
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/25—Mapping addresses of the same type
- H04L61/2503—Translation of Internet protocol [IP] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及整机柜服务器技术领域,特别涉及一种Rack整机柜写入及读取UUID的方法。The invention relates to the technical field of rack-mounted servers, in particular to a method for writing and reading UUIDs in a Rack rack-mounted rack.
背景技术Background technique
随着IT领域技术的不断发展,互联网+的提出,Smart Rack堪称目前最成熟和领先的、可灵活配置和集中管理的整机柜服务器,其形态可分为计算和存储节点。由于机柜可容纳的节点数量巨大,而且一个机房内又有很多机柜。With the continuous development of technology in the IT field and the introduction of Internet+, Smart Rack is currently the most mature and leading full-rack server that can be flexibly configured and managed centrally. Its form can be divided into computing and storage nodes. Because the number of nodes that the cabinet can accommodate is huge, and there are many cabinets in one computer room.
UUID(Universally Unique Identifier)是指在一台机器上生成的数字,它保证对在同一时空中的所有机器都是唯一的。通常平台会提供生成的API。按照开放软件基金会(OSF)制定的标准计算,用到了以太网卡地址、纳秒级时间、芯片ID码和许多可能的数字。UUID (Universally Unique Identifier) refers to a number generated on a machine, which is guaranteed to be unique to all machines in the same time and space. Usually the platform provides a generated API. Calculated according to the standard set by the Open Software Foundation (OSF), using the Ethernet card address, nanosecond time, chip ID code and many possible numbers.
UUID作为服务器唯一的辨识资讯,目前的Smart Rack服务器在出厂检测或者交付客户使用时需要预写入UUID信息。因此对Smart Rack整机柜所有节点的UUID的信息进行写入或者读取是非常必要的。UUID is the only identification information of the server. The current Smart Rack server needs to pre-write UUID information when it is tested at the factory or delivered to customers. Therefore, it is very necessary to write or read the UUID information of all nodes in the Smart Rack cabinet.
出厂预设UUID的需求越来越多,如果对每个节点都进行单独操作,势必耗费大量的时间和人力如果能有一种方法能够在短时间内就可以对整个机柜同步进行配置,将会大大提高的工作效率,增强产品的市场竞争力。There are more and more demands for factory preset UUID. If each node is operated separately, it will consume a lot of time and manpower. If there is a method that can configure the entire cabinet synchronously in a short time, it will be greatly improved. Improve work efficiency and enhance the market competitiveness of products.
基于此,本发明设计了一种Rack整机柜写入及读取UUID的方法。Based on this, the present invention designs a method for writing and reading UUIDs in the entire Rack cabinet.
发明内容Contents of the invention
本发明为了弥补现有技术的缺陷,提供了一种简单高效的Rack整机柜写入及读取UUID的方法。In order to make up for the defects of the prior art, the present invention provides a simple and efficient method for writing and reading UUIDs in the entire Rack cabinet.
本发明是通过如下技术方案实现的:The present invention is achieved through the following technical solutions:
一种Rack整机柜写入及读取UUID的方法,其特征在于:将Rack整机柜中的全部节点作为从节点均连接到主节点服务器,包括以下步骤:A method for writing and reading UUID in a Rack whole cabinet is characterized in that: all nodes in the Rack whole cabinet are connected to the master node server as slave nodes, comprising the following steps:
(1)主节点服务器将从节点按照从下到上顺序设置节点名称并分配IP地址;(1) The master node server will set the node name and assign IP addresses to the slave nodes in order from bottom to top;
(2)依次点亮各个从节点的BMC标识LED,确保各从节点网络通畅;(2) Light up the BMC identification LEDs of each slave node in turn to ensure that the network of each slave node is smooth;
(3)主节点服务器登录全部从节点,并同时向各从节点发送写入UUID信息指令;(3) The master node server logs in to all slave nodes, and simultaneously sends instructions to write UUID information to each slave node;
(4)各从节点写入UUID信息成功后,分别将各自的写成功响应信息返回给主节点服务器;(4) After each slave node successfully writes the UUID information, it returns its respective write success response information to the master node server;
(5)主节点服务器同时向各从节点发送读取UUID信息指令;(5) The master node server sends a command to read UUID information to each slave node at the same time;
(6)各从节点读取UUID信息成功后,分别将各自的读成功响应信息返回给主节点服务器。(6) After each slave node successfully reads the UUID information, it returns its respective read success response information to the master node server.
所述步骤(1)中,主节点服务器设置各个从节点的节点名称并分配IP地址,同时修改各个从节点系统下的/etc/hosts文件,将各个从节点的节点名称信息和IP地址信息加入到hosts文件内,以保证以后使用ssh+主机名即可登录。In the step (1), the master node server sets the node name of each slave node and assigns an IP address, and at the same time modifies the /etc/hosts file under each slave node system, and adds the node name information and IP address information of each slave node to Go to the hosts file to ensure that you can log in with ssh+hostname in the future.
所述步骤(3)中,主节点服务器利用一键无密码访问脚本配置ssh自动登陆各个从节点。In the step (3), the master node server uses a one-key passwordless access script to configure ssh to automatically log in to each slave node.
所述步骤(4)中,各个从节点根据从主节点服务器接收的写入UUID信息指令完成UUID信息写入操作,获取相应的写成功响应信息,并向主节点服务器返回写成功响应信息;所述主节点服务器接收到所有从节点返回的写成功响应信息后,向各从节点发送读取UUID信息指令。In the step (4), each slave node completes the UUID information writing operation according to the write UUID information instruction received from the master node server, obtains the corresponding write success response information, and returns the write success response information to the master node server; After receiving the write success response information returned by all the slave nodes, the master node server sends an instruction to read UUID information to each slave node.
所述步骤(6)中,各个从节点根据从主节点服务器接收的读取UUID信息指令完成UUID信息读取操作,获取相应的读成功响应信息,并向主节点服务器返回读成功响应信息;所述主节点服务器接收到所有从节点返回的读成功响应信息即可。In the step (6), each slave node completes the UUID information reading operation according to the read UUID information instruction received from the master node server, obtains the corresponding read success response information, and returns the read success response information to the master node server; The master node server only needs to receive the read success response information returned by all the slave nodes.
本发明的有益效果:该Rack整机柜写入及读取UUID的方法,可以快速、高效、准确的对Rack整机柜上的所有节点进行同步作业,节省了大量的人力和时间,大大提高了测试工作的工作效率。Beneficial effects of the present invention: the method for writing and reading UUID in the entire Rack cabinet can quickly, efficiently and accurately perform synchronous operations on all nodes on the Rack complete cabinet, saving a lot of manpower and time, and greatly improving the Test the productivity of your work.
具体实施方式Detailed ways
为了使本发明所要解决的技术问题、技术方案及有益效果更加清楚明白,以下结合实施例,对本发明进行详细的说明。应当说明的是,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention clearer, the present invention will be described in detail below in conjunction with the embodiments. It should be noted that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
该Rack整机柜写入及读取UUID的方法,主要应用在Smart Rack上,以当前主流Linux Redhat 6.4为载体,由linux bash语言编写的脚本加上调用一些linux服务和工具来实现对所有节点的UUID的信息进行写入或者读取,下面以Rack整机柜48节点为例进行说明。The method of writing and reading UUID in the Rack whole cabinet is mainly applied to Smart Rack, using the current mainstream Linux Redhat 6.4 as the carrier, scripts written in linux bash language and calling some linux services and tools to implement all nodes To write or read the UUID information, the following uses the 48-node Rack cabinet as an example to illustrate.
该Rack整机柜写入及读取UUID的方法,将Rack整机柜中的全部节点作为从节点均连接到主节点服务器,包括以下步骤:The method for writing and reading the UUID of the Rack whole cabinet is to connect all the nodes in the Rack whole cabinet as slave nodes to the master node server, including the following steps:
(1)主节点服务器将从节点按照从下到上顺序设置节点名称并分配IP地址;(1) The master node server will set the node name and assign IP addresses to the slave nodes in order from bottom to top;
所述步骤(1)中,主节点服务器设置各个从节点的节点名称并分配IP地址(例如m01/192.168.1.1;m02/192.168.1.2;……;m48/192.168.1.48),同时修改各个从节点系统下的/etc/hosts文件,将各个从节点的节点名称信息和IP地址信息(192.168.1.1 m01;192.168.1.2 m02;……;192.168.1.48 m48信息)加入到hosts文件内,以保证以后使用ssh+主机名即可登录。In the step (1), the master node server sets the node name of each slave node and assigns an IP address (such as m01/192.168.1.1; m02/192.168.1.2; ...; m48/192.168.1.48), and at the same time modifies the In the /etc/hosts file under the node system, add the node name information and IP address information (192.168.1.1 m01; 192.168.1.2 m02; ...; 192.168.1.48 m48 information) of each slave node to the hosts file to ensure You can log in later using ssh+hostname.
(2)然后通过命令:(2) Then pass the command:
for i in {01..48}for i in {01..48}
do ssh m$i ipmitool chassis identifydo ssh m$i ipmitool chassis identify
依次点亮各个从节点的BMC标识LED,确保各从节点网络通畅;Turn on the BMC identification LED of each slave node in turn to ensure that the network of each slave node is smooth;
(3)主节点服务器登录全部从节点,并同时向各从节点发送写入UUID信息指令;(3) The master node server logs in to all slave nodes, and simultaneously sends instructions to write UUID information to each slave node;
(4)各从节点写入UUID信息成功后,分别将各自的写成功响应信息返回给主节点服务器;(4) After each slave node successfully writes the UUID information, it returns its respective write success response information to the master node server;
(5)主节点服务器同时向各从节点发送读取UUID信息指令;(5) The master node server sends a command to read UUID information to each slave node at the same time;
(6)各从节点读取UUID信息成功后,分别将各自的读成功响应信息返回给主节点服务器。(6) After each slave node successfully reads the UUID information, it returns its respective read success response information to the master node server.
所述步骤(3)中,主节点服务器利用一键无密码访问脚本配置ssh自动登陆各个从节点。In the step (3), the master node server uses a one-key passwordless access script to configure ssh to automatically log in to each slave node.
所述步骤(4)中,各个从节点根据从主节点服务器接收的写入UUID信息指令完成UUID信息写入操作,获取相应的写成功响应信息,并向主节点服务器返回写成功响应信息;所述主节点服务器接收到所有从节点返回的写成功响应信息后,向各从节点发送读取UUID信息指令。In the step (4), each slave node completes the UUID information writing operation according to the write UUID information instruction received from the master node server, obtains the corresponding write success response information, and returns the write success response information to the master node server; After receiving the write success response information returned by all the slave nodes, the master node server sends an instruction to read UUID information to each slave node.
所述步骤(6)中,各个从节点根据从主节点服务器接收的读取UUID信息指令完成UUID信息读取操作,获取相应的读成功响应信息,并向主节点服务器返回读成功响应信息;所述主节点服务器接收到所有从节点返回的读成功响应信息即可。In the step (6), each slave node completes the UUID information reading operation according to the read UUID information instruction received from the master node server, obtains the corresponding read success response information, and returns the read success response information to the master node server; The master node server only needs to receive the read success response information returned by all the slave nodes.
Claims (5)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711104579.6A CN107800802A (en) | 2017-11-10 | 2017-11-10 | A kind of Rack whole machine cabinets write-in and the method for reading UUID |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201711104579.6A CN107800802A (en) | 2017-11-10 | 2017-11-10 | A kind of Rack whole machine cabinets write-in and the method for reading UUID |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107800802A true CN107800802A (en) | 2018-03-13 |
Family
ID=61535818
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201711104579.6A Pending CN107800802A (en) | 2017-11-10 | 2017-11-10 | A kind of Rack whole machine cabinets write-in and the method for reading UUID |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107800802A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108763019A (en) * | 2018-05-22 | 2018-11-06 | 郑州云海信息技术有限公司 | A method of it is tested simultaneously towards SR whole machine cabinets and captures all node power consumptions |
| CN110059056A (en) * | 2019-04-18 | 2019-07-26 | 北京思特奇信息技术股份有限公司 | The distributed system read/writable detection method of multinode multifile, device, equipment |
| CN110955382A (en) * | 2018-09-26 | 2020-04-03 | 华为技术有限公司 | Method and device for writing data in distributed system |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102073741A (en) * | 2011-01-30 | 2011-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Method for realizing file reading and/or writing and data server |
| US8793351B2 (en) * | 2011-05-24 | 2014-07-29 | Facebook, Inc. | Automated configuration of new racks and other computing assets in a data center |
| US20150304233A1 (en) * | 2014-04-22 | 2015-10-22 | Cisco Technology, Inc. | Efficient management and configuration of in-band resources |
| CN105024849A (en) * | 2015-06-02 | 2015-11-04 | 浪潮电子信息产业股份有限公司 | A method for batch operation of BMC of each node by high-density cabinet server |
| CN105389218A (en) * | 2015-10-12 | 2016-03-09 | 浪潮电子信息产业股份有限公司 | Methods of server cabinet for processing basic input output system (BIOS) information, and nodes |
| CN105426184A (en) * | 2015-11-12 | 2016-03-23 | 浪潮电子信息产业股份有限公司 | A method of batch setting the static IP of the whole cabinet Linux system |
| CN106982241A (en) * | 2016-01-18 | 2017-07-25 | 中兴通讯股份有限公司 | Method for managing resource, device and system |
-
2017
- 2017-11-10 CN CN201711104579.6A patent/CN107800802A/en active Pending
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102073741A (en) * | 2011-01-30 | 2011-05-25 | 宇龙计算机通信科技(深圳)有限公司 | Method for realizing file reading and/or writing and data server |
| US8793351B2 (en) * | 2011-05-24 | 2014-07-29 | Facebook, Inc. | Automated configuration of new racks and other computing assets in a data center |
| US20150304233A1 (en) * | 2014-04-22 | 2015-10-22 | Cisco Technology, Inc. | Efficient management and configuration of in-band resources |
| CN105024849A (en) * | 2015-06-02 | 2015-11-04 | 浪潮电子信息产业股份有限公司 | A method for batch operation of BMC of each node by high-density cabinet server |
| CN105389218A (en) * | 2015-10-12 | 2016-03-09 | 浪潮电子信息产业股份有限公司 | Methods of server cabinet for processing basic input output system (BIOS) information, and nodes |
| CN105426184A (en) * | 2015-11-12 | 2016-03-23 | 浪潮电子信息产业股份有限公司 | A method of batch setting the static IP of the whole cabinet Linux system |
| CN106982241A (en) * | 2016-01-18 | 2017-07-25 | 中兴通讯股份有限公司 | Method for managing resource, device and system |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108763019A (en) * | 2018-05-22 | 2018-11-06 | 郑州云海信息技术有限公司 | A method of it is tested simultaneously towards SR whole machine cabinets and captures all node power consumptions |
| CN110955382A (en) * | 2018-09-26 | 2020-04-03 | 华为技术有限公司 | Method and device for writing data in distributed system |
| CN110059056A (en) * | 2019-04-18 | 2019-07-26 | 北京思特奇信息技术股份有限公司 | The distributed system read/writable detection method of multinode multifile, device, equipment |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107580083B (en) | Method and system for allocating container IP addresses | |
| CN113268308B (en) | Information processing method, device and storage medium | |
| CN107431651B (en) | Life cycle management method and equipment for network service | |
| CN112328440B (en) | Method and device for determining physical location of hard disk | |
| CN106681738A (en) | Method of modifying BIOS current values of Rack server based on Map String | |
| CN102316043B (en) | Port virtualization method, switch and communication system | |
| CN103297985B (en) | Base station collocation method and system | |
| CN102143229A (en) | Method and system for upgrading terminals in batches | |
| CN113067739B (en) | High-density container network deployment method and system | |
| CN107729176A (en) | The disaster recovery method and disaster tolerance system of a kind of profile management systems | |
| CN105893097A (en) | Method and device for processing option information of BIOS (basic input output system) | |
| CN114489931B (en) | Container creation method and system for function instance | |
| CN106789327A (en) | The automatic method and system that host is added for cloud platform | |
| CN103118073A (en) | Virtual machine data persistence storage system and method in cloud environment | |
| CN107800802A (en) | A kind of Rack whole machine cabinets write-in and the method for reading UUID | |
| WO2023000672A1 (en) | Network switching method and apparatus, electronic device, and storage medium | |
| CN115622878A (en) | Implementation method, device, electronic device and readable storage medium of k8s network bridge plug-in | |
| CN114466000B (en) | CDN gateway source returning method and device | |
| WO2020151447A1 (en) | Offline configuration method and apparatus for smart device | |
| CN109408376B (en) | Configuration data generation method, device, equipment and storage medium | |
| CN105373398A (en) | A batch setting method of BMC IP of whole cabinet server based on Xshell script | |
| US10841163B2 (en) | Autoinitialization of clustered storage | |
| CN107395456A (en) | Distributed file system stream directly deposits method of testing and platform | |
| CN111339055A (en) | Big data cluster expansion method and device | |
| CN106407264A (en) | High-availability and high-consistency database cluster system and command processing method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |
|
| RJ01 | Rejection of invention patent application after publication |