本文主要是介绍中兴R5300G4服务器查看服务器、主板序列号及硬盘RAID信息,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
本文在操作系统带内通过指令操作查看中兴R5300G4服务器、主板序列号及硬盘RAID信息。
一、中兴R5300G4服务器查看服务器、主板序列号
在Linux服务器上,可以使用dmidecode
命令来查看服务器的硬件相关信息,由于该
命令要读取系统的硬件信息,因此需要切换到root用户来执行或使用sudo
来提供足够的权限。
1、查看服务器序列号及信息
如下命令会返回服务器的序列号,该序列号会以字符串形式显示::
[root@localhost ~]# dmidecode -s system-serial-number
219306478018
如下命令显示系统的完整信息,包括制造商、型号、序列号、BIOS信息等:
[root@localhost ~]# dmidecode -t system
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.2.1 present.Handle 0x0001, DMI type 1, 27 bytes
System InformationManufacturer: ZTEProduct Name: R5300 G4Version: 1.0.0Serial Number: 219306478018UUID: 613cc86c-0000-1000-0000-bc1695199c23Wake-up Type: Power SwitchSKU Number: N/AFamily: ServerHandle 0x001D, DMI type 32, 20 bytes
System Boot InformationStatus: No errors detected
2、查看主板序列号及信息
如下命令会返回主板的序列号,该序列号会以字符串形式显示:
[root@localhost ~]# dmidecode -s baseboard-serial-number
739554000276
如果想查看主板的完整信息,包括制造商、型号、版本、序列号等
,可以使用以下命令:
[root@localhost ~]# sudo dmidecode -t baseboard
# dmidecode 3.4
Getting SMBIOS data from sysfs.
SMBIOS 3.2.1 present.Handle 0x0002, DMI type 2, 15 bytes
Base Board InformationManufacturer: ZTEProduct Name: R5300G4Version: 16030200Serial Number: 739554000276Asset Tag: N/AFeatures:Board is a hosting boardBoard is replaceableLocation In Chassis: INSIDEChassis Handle: 0x0003Type: MotherboardContained Object Handles: 0Handle 0x001C, DMI type 10, 10 bytes
On Board Device 1 InformationType: VideoStatus: EnabledDescription: Video AST2500 x1
On Board Device 2 InformationType: EthernetStatus: EnabledDescription: Ethernet 4*X722 x16
On Board Device 3 InformationType: SAS ControllerStatus: EnabledDescription: SAS Controller x8Handle 0x001E, DMI type 41, 11 bytes
Onboard DeviceReference Designation: Video AST2500 x1Type: VideoStatus: EnabledType Instance: 1Bus Address: 0000:03:00.0Handle 0x001F, DMI type 41, 11 bytes
Onboard DeviceReference Designation: Ethernet X722 1Type: EthernetStatus: EnabledType Instance: 1Bus Address: 0000:1a:00.0Handle 0x0020, DMI type 41, 11 bytes
Onboard DeviceReference Designation: Ethernet X722 2Type: EthernetStatus: EnabledType Instance: 2Bus Address: 0000:1a:00.1Handle 0x0021, DMI type 41, 11 bytes
Onboard DeviceReference Designation: Ethernet X722 3Type: EthernetStatus: EnabledType Instance: 3Bus Address: 0000:1a:00.2Handle 0x0022, DMI type 41, 11 bytes
Onboard DeviceReference Designation: Ethernet X722 4Type: EthernetStatus: EnabledType Instance: 4Bus Address: 0000:1a:00.3Handle 0x0023, DMI type 41, 11 bytes
Onboard DeviceReference Designation: SAS Controller x8Type: SAS ControllerStatus: EnabledType Instance: 1Bus Address: 0000:3c:00.0
二、查看硬盘RAID信息
本服务器使用了Adaptec RAID 控制器。arcconf 是一个用于管理 Adaptec RAID 控制器的命令行工具。它允许用户查询和控制 RAID 控制器及其相关设备的状态。以下是一些 arcconf 的常用指令
:
-
arcconf setstate <Controller_Number> device <Device_Number> <State>
这个命令用于设置设备的状态。<Controller_Number>
是控制器的编号,<Device_Number>
是设备的编号,而<State>
是要设置的状态。例如,将设备设置为热备状态可以使用arcconf setstate 1 device 0 3 hsp
,其中1
是控制器编号,0
是设备编号,3
表示设置操作,hsp
表示热备状态。 -
arcconf getconfig <Controller_Number> all
这个命令用于获取控制器的配置信息。<Controller_Number>
是控制器的编号。使用all
参数可以获取所有设备的配置信息。例如,arcconf getconfig 1 all
将显示控制器 1 的所有设备配置信息。 -
arcconf identify <Controller_Number> device <Device_Number>
这个命令用于启动设备的识别灯,通常用于物理定位设备。<Controller_Number>
是控制器的编号,<Device_Number>
是设备的编号。例如,./arcconf-linux identify 1 device 0
将启动控制器 1 的设备 0 的识别灯。
1、查看RAID卡控制器信息
[root@localhost ~]# ./arcconf-linux list
Controllers found: 1
----------------------------------------------------------------------
Controller information
----------------------------------------------------------------------Controller ID : Status, Slot, Mode, Name, SerialNumber, WWN
----------------------------------------------------------------------Controller 1: : Optimal, Slot 0, RAID (Hide RAW), ZTE SmartROC3100 SDPSx V2.54, 739186000138, 50015EBE047A1C3FCommand completed successfully.
2、查看 RAID组逻辑卷相关信息
执行以下命令,查看RAID组信息,包含逻辑卷下的硬盘信息:
[root@localhost ~]# ./arcconf-linux getconfig 1 ld
Controllers found: 1
--------------------------------------------------------
Logical device information
--------------------------------------------------------
Logical Device number 0Logical Device name : Logical Drive 1Disk Name : /dev/sdaBlock Size of member drives : 512 BytesArray : 0RAID level : 1Status of Logical Device : OptimalSize : 457830 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : /boot/efi 600 MB Partition Number 1 /boot 1024 MB Partition Number 2 LD Acceleration Method : SSD IO BypassLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001CABF2A33CB293CD714BC8
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 12 : Present (457862MB, SATA, SSD, Connector:3, Device:12) BTYF12230019480BGNDevice 13 : Present (457862MB, SATA, SSD, Connector:3, Device:13) BTYF1223003J480BGNLogical Device number 1Logical Device name : 1Disk Name : /dev/sdbBlock Size of member drives : 512 BytesArray : 1RAID level : 1Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : SSD IO BypassLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001CF9B0CA75E5D539AA91EE
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 0 : Present (1831420MB, SATA, SSD, Connector:0, Device:0) S455NC0R904981Device 1 : Present (1831420MB, SATA, SSD, Connector:0, Device:1) S455NC0R909489Logical Device number 2Logical Device name : 0-2Disk Name : /dev/sdcBlock Size of member drives : 512 BytesArray : 2RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001CC9F6AF6AC352A9F73939
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 2 : Present (1831420MB, SATA, SSD, Connector:0, Device:2) S455NC0R915516Logical Device number 3Logical Device name : 0-3Disk Name : /dev/sddBlock Size of member drives : 512 BytesArray : 3RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C08F6CFB967225F000998
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 3 : Present (1831420MB, SATA, SSD, Connector:0, Device:3) S455NC0R915568Logical Device number 4Logical Device name : 0-4Disk Name : /dev/sdeBlock Size of member drives : 512 BytesArray : 4RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C3D7DA083E19C9526DE7C
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 4 : Present (1831420MB, SATA, SSD, Connector:1, Device:4) S455NC0R904969Logical Device number 5Logical Device name : 0-5Disk Name : /dev/sdfBlock Size of member drives : 512 BytesArray : 5RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001CFCABEC062F31AD360408
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 5 : Present (1831420MB, SATA, SSD, Connector:1, Device:5) S455NC0R904979Logical Device number 6Logical Device name : 0-6Disk Name : /dev/sdgBlock Size of member drives : 512 BytesArray : 6RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C1117753A950D01FF5394
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 6 : Present (1831420MB, SATA, SSD, Connector:1, Device:6) S455NC0R904964Logical Device number 7Logical Device name : 0-7Disk Name : /dev/sdhBlock Size of member drives : 512 BytesArray : 7RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001CBDE6C3E430DF7E4E5D81
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 7 : Present (1831420MB, SATA, SSD, Connector:1, Device:7) S455NC0R904962Logical Device number 8Logical Device name : 0-8Disk Name : /dev/sdiBlock Size of member drives : 512 BytesArray : 8RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C0604E97D1A8BBC845A91
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 8 : Present (1831420MB, SATA, SSD, Connector:2, Device:8) S455NC0R903477Logical Device number 9Logical Device name : 0-9Disk Name : /dev/sdjBlock Size of member drives : 512 BytesArray : 9RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C3600C13E0FB9A9600321
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 9 : Present (1831420MB, SATA, SSD, Connector:2, Device:9) S455NC0R904756Logical Device number 10Logical Device name : 0-10Disk Name : /dev/sdkBlock Size of member drives : 512 BytesArray : 10RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C9D7DD9C57A71CFD32FFB
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 10 : Present (1831420MB, SATA, SSD, Connector:2, Device:10) S455NC0R904971Logical Device number 11Logical Device name : 0-11Disk Name : /dev/sdlBlock Size of member drives : 512 BytesArray : 11RAID level : 0Status of Logical Device : OptimalSize : 1831388 MBStripe-unit size : 256 KBFull Stripe Size : 256 KBInterface Type : SATA SSDDevice Type : DataBoot Type : NoneHeads : 255Sectors Per Track : 32Cylinders : 65535Caching : DisabledMount Points : Not MountedLD Acceleration Method : NoneLogical Device On Boot Connector : NoVolume Unique Identifier : 600508B1001C8E742D672959B26B4E98
--------------------------------------------------------Array Physical Device Information
--------------------------------------------------------Device ID : Availability (SizeMB, Protocol, Type, Connector ID, Location) Serial Number
--------------------------------------------------------Device 11 : Present (1831420MB, SATA, SSD, Connector:2, Device:11) S455NC0R904968Command completed successfully.
3、结合lsscsi -s查看逻辑卷情况
[root@localhost ~]# lsscsi -s
[12:0:0:0] cd/dvd AMI Virtual CDROM0 1.00 /dev/sr0 1.07GB
[15:0:0:0] enclosu ZTE Smart Adapter 3.22 - -
[15:1:0:0] disk ZTE LOGICAL VOLUME 3.22 /dev/sda 480GB
[15:1:0:1] disk ZTE LOGICAL VOLUME 3.22 /dev/sdb 1.92TB
[15:1:0:2] disk ZTE LOGICAL VOLUME 3.22 /dev/sdd 1.92TB
[15:1:0:3] disk ZTE LOGICAL VOLUME 3.22 /dev/sdc 1.92TB
[15:1:0:4] disk ZTE LOGICAL VOLUME 3.22 /dev/sde 1.92TB
[15:1:0:5] disk ZTE LOGICAL VOLUME 3.22 /dev/sdf 1.92TB
[15:1:0:6] disk ZTE LOGICAL VOLUME 3.22 /dev/sdg 1.92TB
[15:1:0:7] disk ZTE LOGICAL VOLUME 3.22 /dev/sdh 1.92TB
[15:1:0:8] disk ZTE LOGICAL VOLUME 3.22 /dev/sdi 1.92TB
[15:1:0:9] disk ZTE LOGICAL VOLUME 3.22 /dev/sdj 1.92TB
[15:1:0:10] disk ZTE LOGICAL VOLUME 3.22 /dev/sdk 1.92TB
[15:1:0:11] disk ZTE LOGICAL VOLUME 3.22 /dev/sdl 1.92TB
[15:2:0:0] storage ZTE SDPSx V2.54 3.22 - -
4、综合以上指令,确认本服务器磁盘RAID逻辑组情况
结合以上两条指令,将信息进行综合汇总,可以确认本服务器磁盘RAID逻辑组情况如下:
逻辑盘 | 逻辑盘名 | 物理盘 | 逻辑盘大小 | RAID方式 |
0 | /dev/sda | 12 | 480GB | RAID1 |
13 | ||||
1 | /dev/sdb | 0 | 1.92TB | RAID1 |
1 | ||||
2 | /dev/sdc | 2 | 1.92TB | RAID0 |
3 | /dev/sdd | 3 | 1.92TB | RAID0 |
4 | /dev/sde | 4 | 1.92TB | RAID0 |
5 | /dev/sdf | 5 | 1.92TB | RAID0 |
6 | /dev/sdg | 6 | 1.92TB | RAID0 |
7 | /dev/sdh | 7 | 1.92TB | RAID0 |
8 | /dev/sdi | 8 | 1.92TB | RAID0 |
9 | /dev/sdj | 9 | 1.92TB | RAID0 |
10 | /dev/sdk | 10 | 1.92TB | RAID0 |
11 | /dev/sdl | 11 | 1.92TB | RAID0 |
这篇关于中兴R5300G4服务器查看服务器、主板序列号及硬盘RAID信息的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!