当前位置:   article > 正文

中兴R5300G4服务器查看服务器、主板序列号及硬盘RAID信息

中兴R5300G4服务器查看服务器、主板序列号及硬盘RAID信息

本文在操作系统带内通过指令操作查看中兴R5300G4服务器、主板序列号及硬盘RAID信息。

一、中兴R5300G4服务器查看服务器、主板序列号

Linux服务器上,可以使用dmidecode命令来查看服务器的硬件相关信息,由于命令要读取系统的硬件信息,因此需要切换到root用户来执行或使用sudo来提供足够的权限。

1、查看服务器序列号及信息

如下命令会返回服务器的序列号,该序列号会以字符串形式显示::

  1. [root@localhost ~]# dmidecode -s system-serial-number
  2. 219306478018

如下命令显示系统的完整信息,包括制造商、型号、序列号、BIOS信息等:

  1. [root@localhost ~]# dmidecode -t system
  2. # dmidecode 3.4
  3. Getting SMBIOS data from sysfs.
  4. SMBIOS 3.2.1 present.
  5. Handle 0x0001, DMI type 1, 27 bytes
  6. System Information
  7. Manufacturer: ZTE
  8. Product Name: R5300 G4
  9. Version: 1.0.0
  10. Serial Number: 219306478018
  11. UUID: 613cc86c-0000-1000-0000-bc1695199c23
  12. Wake-up Type: Power Switch
  13. SKU Number: N/A
  14. Family: Server
  15. Handle 0x001D, DMI type 32, 20 bytes
  16. System Boot Information
  17. Status: No errors detected
2、查看主板序列号及信息

如下命令会返回主板的序列号,该序列号会以字符串形式显示:

  1. [root@localhost ~]# dmidecode -s baseboard-serial-number
  2. 739554000276

如果想查看主板的完整信息,包括制造商、型号、版本、序列号等,可以使用以下命令:

  1. [root@localhost ~]# sudo dmidecode -t baseboard
  2. # dmidecode 3.4
  3. Getting SMBIOS data from sysfs.
  4. SMBIOS 3.2.1 present.
  5. Handle 0x0002, DMI type 2, 15 bytes
  6. Base Board Information
  7. Manufacturer: ZTE
  8. Product Name: R5300G4
  9. Version: 16030200
  10. Serial Number: 739554000276
  11. Asset Tag: N/A
  12. Features:
  13. Board is a hosting board
  14. Board is replaceable
  15. Location In Chassis: INSIDE
  16. Chassis Handle: 0x0003
  17. Type: Motherboard
  18. Contained Object Handles: 0
  19. Handle 0x001C, DMI type 10, 10 bytes
  20. On Board Device 1 Information
  21. Type: Video
  22. Status: Enabled
  23. Description: Video AST2500 x1
  24. On Board Device 2 Information
  25. Type: Ethernet
  26. Status: Enabled
  27. Description: Ethernet 4*X722 x16
  28. On Board Device 3 Information
  29. Type: SAS Controller
  30. Status: Enabled
  31. Description: SAS Controller x8
  32. Handle 0x001E, DMI type 41, 11 bytes
  33. Onboard Device
  34. Reference Designation: Video AST2500 x1
  35. Type: Video
  36. Status: Enabled
  37. Type Instance: 1
  38. Bus Address: 0000:03:00.0
  39. Handle 0x001F, DMI type 41, 11 bytes
  40. Onboard Device
  41. Reference Designation: Ethernet X722 1
  42. Type: Ethernet
  43. Status: Enabled
  44. Type Instance: 1
  45. Bus Address: 0000:1a:00.0
  46. Handle 0x0020, DMI type 41, 11 bytes
  47. Onboard Device
  48. Reference Designation: Ethernet X722 2
  49. Type: Ethernet
  50. Status: Enabled
  51. Type Instance: 2
  52. Bus Address: 0000:1a:00.1
  53. Handle 0x0021, DMI type 41, 11 bytes
  54. Onboard Device
  55. Reference Designation: Ethernet X722 3
  56. Type: Ethernet
  57. Status: Enabled
  58. Type Instance: 3
  59. Bus Address: 0000:1a:00.2
  60. Handle 0x0022, DMI type 41, 11 bytes
  61. Onboard Device
  62. Reference Designation: Ethernet X722 4
  63. Type: Ethernet
  64. Status: Enabled
  65. Type Instance: 4
  66. Bus Address: 0000:1a:00.3
  67. Handle 0x0023, DMI type 41, 11 bytes
  68. Onboard Device
  69. Reference Designation: SAS Controller x8
  70. Type: SAS Controller
  71. Status: Enabled
  72. Type Instance: 1
  73. Bus Address: 0000:3c:00.0

二、查看硬盘RAID信息

  本服务器使用了Adaptec RAID 控制器。arcconf 是一个用于管理 Adaptec RAID 控制器的命令行工具。它允许用户查询和控制 RAID 控制器及其相关设备的状态。以下是一些 arcconf 的常用指令

  1. arcconf setstate <Controller_Number> device <Device_Number> <State>
    这个命令用于设置设备的状态。<Controller_Number> 是控制器的编号,<Device_Number> 是设备的编号,而 <State> 是要设置的状态。例如,将设备设置为热备状态可以使用 arcconf setstate 1 device 0 3 hsp,其中 1 是控制器编号,0 是设备编号,3 表示设置操作,hsp 表示热备状态。

  2. arcconf getconfig <Controller_Number> all
    这个命令用于获取控制器的配置信息。<Controller_Number> 是控制器的编号。使用 all 参数可以获取所有设备的配置信息。例如,arcconf getconfig 1 all 将显示控制器 1 的所有设备配置信息。

  3. arcconf identify <Controller_Number> device <Device_Number>
    这个命令用于启动设备的识别灯,通常用于物理定位设备。<Controller_Number> 是控制器的编号,<Device_Number> 是设备的编号。例如,./arcconf-linux identify 1 device 0 将启动控制器 1 的设备 0 的识别灯。

1、查看RAID卡控制器信息
  1. [root@localhost ~]# ./arcconf-linux list
  2. Controllers found: 1
  3. ----------------------------------------------------------------------
  4. Controller information
  5. ----------------------------------------------------------------------
  6. Controller ID : Status, Slot, Mode, Name, SerialNumber, WWN
  7. ----------------------------------------------------------------------
  8. Controller 1: : Optimal, Slot 0, RAID (Hide RAW), ZTE SmartROC3100 SDPSx V2.54, 739186000138, 50015EBE047A1C3F
  9. Command completed successfully.
2、查看 RAID组逻辑卷相关信息

 执行以下命令,查看RAID组信息,包含逻辑卷下的硬盘信息:

  1. [root@localhost ~]# ./arcconf-linux getconfig 1 ld
  2. Controllers found: 1
  3. --------------------------------------------------------
  4. Logical device information
  5. --------------------------------------------------------
  6. Logical Device number 0
  7. Logical Device name : Logical Drive 1
  8. Disk Name : /dev/sda
  9. Block Size of member drives : 512 Bytes
  10. Array : 0
  11. RAID level : 1
  12. Status of Logical Device : Optimal
  13. Size : 457830 MB
  14. Stripe-unit size : 256 KB
  15. Full Stripe Size : 256 KB
  16. Interface Type : SATA SSD
  17. Device Type : Data
  18. Boot Type : None
  19. Heads : 255
  20. Sectors Per Track : 32
  21. Cylinders : 65535
  22. Caching : Disabled
  23. Mount Points : /boot/efi 600 MB Partition Number 1 /boot 1024 MB Partition Number 2
  24. LD Acceleration Method : SSD IO Bypass
  25. Logical Device On Boot Connector : No
  26. Volume Unique Identifier : 600508B1001CABF2A33CB293CD714BC8
  27. --------------------------------------------------------
  28. Array Physical Device Information
  29. --------------------------------------------------------
  30. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  31. --------------------------------------------------------
  32. Device 12 : Present (457862MB, SATA, SSD, Connector:3, Device:12) BTYF12230019480BGN
  33. Device 13 : Present (457862MB, SATA, SSD, Connector:3, Device:13) BTYF1223003J480BGN
  34. Logical Device number 1
  35. Logical Device name : 1
  36. Disk Name : /dev/sdb
  37. Block Size of member drives : 512 Bytes
  38. Array : 1
  39. RAID level : 1
  40. Status of Logical Device : Optimal
  41. Size : 1831388 MB
  42. Stripe-unit size : 256 KB
  43. Full Stripe Size : 256 KB
  44. Interface Type : SATA SSD
  45. Device Type : Data
  46. Boot Type : None
  47. Heads : 255
  48. Sectors Per Track : 32
  49. Cylinders : 65535
  50. Caching : Disabled
  51. Mount Points : Not Mounted
  52. LD Acceleration Method : SSD IO Bypass
  53. Logical Device On Boot Connector : No
  54. Volume Unique Identifier : 600508B1001CF9B0CA75E5D539AA91EE
  55. --------------------------------------------------------
  56. Array Physical Device Information
  57. --------------------------------------------------------
  58. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  59. --------------------------------------------------------
  60. Device 0 : Present (1831420MB, SATA, SSD, Connector:0, Device:0) S455NC0R904981
  61. Device 1 : Present (1831420MB, SATA, SSD, Connector:0, Device:1) S455NC0R909489
  62. Logical Device number 2
  63. Logical Device name : 0-2
  64. Disk Name : /dev/sdc
  65. Block Size of member drives : 512 Bytes
  66. Array : 2
  67. RAID level : 0
  68. Status of Logical Device : Optimal
  69. Size : 1831388 MB
  70. Stripe-unit size : 256 KB
  71. Full Stripe Size : 256 KB
  72. Interface Type : SATA SSD
  73. Device Type : Data
  74. Boot Type : None
  75. Heads : 255
  76. Sectors Per Track : 32
  77. Cylinders : 65535
  78. Caching : Disabled
  79. Mount Points : Not Mounted
  80. LD Acceleration Method : None
  81. Logical Device On Boot Connector : No
  82. Volume Unique Identifier : 600508B1001CC9F6AF6AC352A9F73939
  83. --------------------------------------------------------
  84. Array Physical Device Information
  85. --------------------------------------------------------
  86. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  87. --------------------------------------------------------
  88. Device 2 : Present (1831420MB, SATA, SSD, Connector:0, Device:2) S455NC0R915516
  89. Logical Device number 3
  90. Logical Device name : 0-3
  91. Disk Name : /dev/sdd
  92. Block Size of member drives : 512 Bytes
  93. Array : 3
  94. RAID level : 0
  95. Status of Logical Device : Optimal
  96. Size : 1831388 MB
  97. Stripe-unit size : 256 KB
  98. Full Stripe Size : 256 KB
  99. Interface Type : SATA SSD
  100. Device Type : Data
  101. Boot Type : None
  102. Heads : 255
  103. Sectors Per Track : 32
  104. Cylinders : 65535
  105. Caching : Disabled
  106. Mount Points : Not Mounted
  107. LD Acceleration Method : None
  108. Logical Device On Boot Connector : No
  109. Volume Unique Identifier : 600508B1001C08F6CFB967225F000998
  110. --------------------------------------------------------
  111. Array Physical Device Information
  112. --------------------------------------------------------
  113. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  114. --------------------------------------------------------
  115. Device 3 : Present (1831420MB, SATA, SSD, Connector:0, Device:3) S455NC0R915568
  116. Logical Device number 4
  117. Logical Device name : 0-4
  118. Disk Name : /dev/sde
  119. Block Size of member drives : 512 Bytes
  120. Array : 4
  121. RAID level : 0
  122. Status of Logical Device : Optimal
  123. Size : 1831388 MB
  124. Stripe-unit size : 256 KB
  125. Full Stripe Size : 256 KB
  126. Interface Type : SATA SSD
  127. Device Type : Data
  128. Boot Type : None
  129. Heads : 255
  130. Sectors Per Track : 32
  131. Cylinders : 65535
  132. Caching : Disabled
  133. Mount Points : Not Mounted
  134. LD Acceleration Method : None
  135. Logical Device On Boot Connector : No
  136. Volume Unique Identifier : 600508B1001C3D7DA083E19C9526DE7C
  137. --------------------------------------------------------
  138. Array Physical Device Information
  139. --------------------------------------------------------
  140. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  141. --------------------------------------------------------
  142. Device 4 : Present (1831420MB, SATA, SSD, Connector:1, Device:4) S455NC0R904969
  143. Logical Device number 5
  144. Logical Device name : 0-5
  145. Disk Name : /dev/sdf
  146. Block Size of member drives : 512 Bytes
  147. Array : 5
  148. RAID level : 0
  149. Status of Logical Device : Optimal
  150. Size : 1831388 MB
  151. Stripe-unit size : 256 KB
  152. Full Stripe Size : 256 KB
  153. Interface Type : SATA SSD
  154. Device Type : Data
  155. Boot Type : None
  156. Heads : 255
  157. Sectors Per Track : 32
  158. Cylinders : 65535
  159. Caching : Disabled
  160. Mount Points : Not Mounted
  161. LD Acceleration Method : None
  162. Logical Device On Boot Connector : No
  163. Volume Unique Identifier : 600508B1001CFCABEC062F31AD360408
  164. --------------------------------------------------------
  165. Array Physical Device Information
  166. --------------------------------------------------------
  167. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  168. --------------------------------------------------------
  169. Device 5 : Present (1831420MB, SATA, SSD, Connector:1, Device:5) S455NC0R904979
  170. Logical Device number 6
  171. Logical Device name : 0-6
  172. Disk Name : /dev/sdg
  173. Block Size of member drives : 512 Bytes
  174. Array : 6
  175. RAID level : 0
  176. Status of Logical Device : Optimal
  177. Size : 1831388 MB
  178. Stripe-unit size : 256 KB
  179. Full Stripe Size : 256 KB
  180. Interface Type : SATA SSD
  181. Device Type : Data
  182. Boot Type : None
  183. Heads : 255
  184. Sectors Per Track : 32
  185. Cylinders : 65535
  186. Caching : Disabled
  187. Mount Points : Not Mounted
  188. LD Acceleration Method : None
  189. Logical Device On Boot Connector : No
  190. Volume Unique Identifier : 600508B1001C1117753A950D01FF5394
  191. --------------------------------------------------------
  192. Array Physical Device Information
  193. --------------------------------------------------------
  194. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  195. --------------------------------------------------------
  196. Device 6 : Present (1831420MB, SATA, SSD, Connector:1, Device:6) S455NC0R904964
  197. Logical Device number 7
  198. Logical Device name : 0-7
  199. Disk Name : /dev/sdh
  200. Block Size of member drives : 512 Bytes
  201. Array : 7
  202. RAID level : 0
  203. Status of Logical Device : Optimal
  204. Size : 1831388 MB
  205. Stripe-unit size : 256 KB
  206. Full Stripe Size : 256 KB
  207. Interface Type : SATA SSD
  208. Device Type : Data
  209. Boot Type : None
  210. Heads : 255
  211. Sectors Per Track : 32
  212. Cylinders : 65535
  213. Caching : Disabled
  214. Mount Points : Not Mounted
  215. LD Acceleration Method : None
  216. Logical Device On Boot Connector : No
  217. Volume Unique Identifier : 600508B1001CBDE6C3E430DF7E4E5D81
  218. --------------------------------------------------------
  219. Array Physical Device Information
  220. --------------------------------------------------------
  221. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  222. --------------------------------------------------------
  223. Device 7 : Present (1831420MB, SATA, SSD, Connector:1, Device:7) S455NC0R904962
  224. Logical Device number 8
  225. Logical Device name : 0-8
  226. Disk Name : /dev/sdi
  227. Block Size of member drives : 512 Bytes
  228. Array : 8
  229. RAID level : 0
  230. Status of Logical Device : Optimal
  231. Size : 1831388 MB
  232. Stripe-unit size : 256 KB
  233. Full Stripe Size : 256 KB
  234. Interface Type : SATA SSD
  235. Device Type : Data
  236. Boot Type : None
  237. Heads : 255
  238. Sectors Per Track : 32
  239. Cylinders : 65535
  240. Caching : Disabled
  241. Mount Points : Not Mounted
  242. LD Acceleration Method : None
  243. Logical Device On Boot Connector : No
  244. Volume Unique Identifier : 600508B1001C0604E97D1A8BBC845A91
  245. --------------------------------------------------------
  246. Array Physical Device Information
  247. --------------------------------------------------------
  248. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  249. --------------------------------------------------------
  250. Device 8 : Present (1831420MB, SATA, SSD, Connector:2, Device:8) S455NC0R903477
  251. Logical Device number 9
  252. Logical Device name : 0-9
  253. Disk Name : /dev/sdj
  254. Block Size of member drives : 512 Bytes
  255. Array : 9
  256. RAID level : 0
  257. Status of Logical Device : Optimal
  258. Size : 1831388 MB
  259. Stripe-unit size : 256 KB
  260. Full Stripe Size : 256 KB
  261. Interface Type : SATA SSD
  262. Device Type : Data
  263. Boot Type : None
  264. Heads : 255
  265. Sectors Per Track : 32
  266. Cylinders : 65535
  267. Caching : Disabled
  268. Mount Points : Not Mounted
  269. LD Acceleration Method : None
  270. Logical Device On Boot Connector : No
  271. Volume Unique Identifier : 600508B1001C3600C13E0FB9A9600321
  272. --------------------------------------------------------
  273. Array Physical Device Information
  274. --------------------------------------------------------
  275. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  276. --------------------------------------------------------
  277. Device 9 : Present (1831420MB, SATA, SSD, Connector:2, Device:9) S455NC0R904756
  278. Logical Device number 10
  279. Logical Device name : 0-10
  280. Disk Name : /dev/sdk
  281. Block Size of member drives : 512 Bytes
  282. Array : 10
  283. RAID level : 0
  284. Status of Logical Device : Optimal
  285. Size : 1831388 MB
  286. Stripe-unit size : 256 KB
  287. Full Stripe Size : 256 KB
  288. Interface Type : SATA SSD
  289. Device Type : Data
  290. Boot Type : None
  291. Heads : 255
  292. Sectors Per Track : 32
  293. Cylinders : 65535
  294. Caching : Disabled
  295. Mount Points : Not Mounted
  296. LD Acceleration Method : None
  297. Logical Device On Boot Connector : No
  298. Volume Unique Identifier : 600508B1001C9D7DD9C57A71CFD32FFB
  299. --------------------------------------------------------
  300. Array Physical Device Information
  301. --------------------------------------------------------
  302. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  303. --------------------------------------------------------
  304. Device 10 : Present (1831420MB, SATA, SSD, Connector:2, Device:10) S455NC0R904971
  305. Logical Device number 11
  306. Logical Device name : 0-11
  307. Disk Name : /dev/sdl
  308. Block Size of member drives : 512 Bytes
  309. Array : 11
  310. RAID level : 0
  311. Status of Logical Device : Optimal
  312. Size : 1831388 MB
  313. Stripe-unit size : 256 KB
  314. Full Stripe Size : 256 KB
  315. Interface Type : SATA SSD
  316. Device Type : Data
  317. Boot Type : None
  318. Heads : 255
  319. Sectors Per Track : 32
  320. Cylinders : 65535
  321. Caching : Disabled
  322. Mount Points : Not Mounted
  323. LD Acceleration Method : None
  324. Logical Device On Boot Connector : No
  325. Volume Unique Identifier : 600508B1001C8E742D672959B26B4E98
  326. --------------------------------------------------------
  327. Array Physical Device Information
  328. --------------------------------------------------------
  329. Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
  330. --------------------------------------------------------
  331. Device 11 : Present (1831420MB, SATA, SSD, Connector:2, Device:11) S455NC0R904968
  332. Command completed successfully.
3、结合lsscsi -s查看逻辑卷情况
  1. [root@localhost ~]# lsscsi -s
  2. [12:0:0:0] cd/dvd AMI Virtual CDROM0 1.00 /dev/sr0 1.07GB
  3. [15:0:0:0] enclosu ZTE Smart Adapter 3.22 - -
  4. [15:1:0:0] disk ZTE LOGICAL VOLUME 3.22 /dev/sda 480GB
  5. [15:1:0:1] disk ZTE LOGICAL VOLUME 3.22 /dev/sdb 1.92TB
  6. [15:1:0:2] disk ZTE LOGICAL VOLUME 3.22 /dev/sdd 1.92TB
  7. [15:1:0:3] disk ZTE LOGICAL VOLUME 3.22 /dev/sdc 1.92TB
  8. [15:1:0:4] disk ZTE LOGICAL VOLUME 3.22 /dev/sde 1.92TB
  9. [15:1:0:5] disk ZTE LOGICAL VOLUME 3.22 /dev/sdf 1.92TB
  10. [15:1:0:6] disk ZTE LOGICAL VOLUME 3.22 /dev/sdg 1.92TB
  11. [15:1:0:7] disk ZTE LOGICAL VOLUME 3.22 /dev/sdh 1.92TB
  12. [15:1:0:8] disk ZTE LOGICAL VOLUME 3.22 /dev/sdi 1.92TB
  13. [15:1:0:9] disk ZTE LOGICAL VOLUME 3.22 /dev/sdj 1.92TB
  14. [15:1:0:10] disk ZTE LOGICAL VOLUME 3.22 /dev/sdk 1.92TB
  15. [15:1:0:11] disk ZTE LOGICAL VOLUME 3.22 /dev/sdl 1.92TB
  16. [15:2:0:0] storage ZTE SDPSx V2.54 3.22 - -
4、综合以上指令,确认本服务器磁盘RAID逻辑组情况

结合以上两条指令,将信息进行综合汇总,可以确认本服务器磁盘RAID逻辑组情况如下:

逻辑盘逻辑盘名物理盘逻辑盘大小RAID方式
0/dev/sda12480GBRAID1
13
1/dev/sdb01.92TBRAID1
1
2/dev/sdc21.92TBRAID0
3/dev/sdd31.92TBRAID0
4/dev/sde41.92TBRAID0
5/dev/sdf51.92TBRAID0
6/dev/sdg61.92TBRAID0
7/dev/sdh71.92TBRAID0
8/dev/sdi81.92TBRAID0
9/dev/sdj91.92TBRAID0
10/dev/sdk101.92TBRAID0
11/dev/sdl111.92TBRAID0

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/69168
推荐阅读
相关标签
  

闽ICP备14008679号