在 Oracle Linux 7 上
[root@host ~]# uname -a
Linux host 4.1.12-61.1.18.el7uek.x86_64 #2 SMP Fri Nov 4 15:48:30 PDT 2016 x86_64 x86_64 x86_64 GNU/Linux
我可以用
[root@host ~]# dmidecode -V
3.0
[root@host ~]# dmidecode -t slot | grep -E "Designation|Usage|Bus Address"
Designation: PCIE0
Current Usage: In Use
Bus Address: ffff:13:00.0
Designation: PCIE1
Current Usage: In Use
Bus Address: ffff:21:00.0
Designation: PCIE2
Current Usage: In Use
Bus Address: ffff:2f:00.0
Designation: PCIE3
Current Usage: Available
Designation: PCIE4
Current Usage: Available
Designation: PCIE5
Current Usage: Available
在 Oracle Linux 6 上
[root@host ~]# uname -a
Linux host 3.8.13-68.3.4.el6uek.x86_64 #2 SMP Tue Jul 14 15:03:36 PDT 2015 x86_64 x86_64 x86_64 GNU/Linux
dmidecode
是2.12版本
[root@host ~]# dmidecode -V
2.12
其中未列出总线地址
[root@host ~]# dmidecode -t slot | grep -E "Designation|Usage|Bus Address"
Designation: PCIExp SLOT0
Current Usage: In Use
Designation: PCIExp SLOT1
Current Usage: Available
Designation: PCIExp SLOT2
Current Usage: Available
我尝试过lshw
,但这没有提供正确的信息。
还有其他想法(除了升级到 Oracle Linux 7 之外)吗?
答案1
我安装了 Oracle Linux 6 来尝试重现您的问题。首先,它确实列出了我的设置中的总线地址:
文件/etc/os-release
(截断):
NAME="Oracle Linux Server"
VERSION="6.10"
输出uname -a
:
Linux oracle6.local 4.1.12-124.28.5.el6uek.x86_64 #2 SMP Thu Jun 20 11:57:41 PDT 2019 x86_64 x86_64 x86_64 GNU/Linux
输出dmidecode -V
:
2.12
输出dmidecode -t slot | grep -E "Designation|Usage|Bus Address"
:
Designation: ISA Slot J8
Current Usage: Unknown
Bus Address: 00ff:ff:1f.7
Designation: ISA Slot J9
Current Usage: Unknown
Bus Address: 00ff:ff:1f.7
Designation: ISA Slot J10
Current Usage: Unknown
Bus Address: 00ff:ff:1f.7
Designation: PCI Slot J11
Current Usage: In Use
Bus Address: 0000:00:0f.0
Designation: PCI Slot J12
Current Usage: Available
Bus Address: 0000:00:10.0
Designation: PCI Slot J13
Current Usage: In Use
Bus Address: 0000:00:11.0
Designation: PCI Slot J14
Current Usage: Available
Bus Address: 0000:00:12.0
显然,在您的情况下,它没有列出总线地址。因此,为了编译最新的dmidecode
,我做了:
yum groupinstall Development
cd
wget "http://download.savannah.gnu.org/releases/dmidecode/dmidecode-3.2.tar.xz"
tar -xvf dmidecode-3.2.tar.xz
cd dmidecode-3.2
make && make install
为了检查版本,我运行了/usr/local/sbin/dmidecode -V
以下命令:
3.2
我重复了你的命令/usr/local/sbin/dmidecode -t slot | grep -E "Designation|Usage|Bus Address"
:
Designation: ISA Slot J8
Current Usage: Unknown
Bus Address: 00ff:ff:1f.7
Designation: ISA Slot J9
Current Usage: Unknown
Bus Address: 00ff:ff:1f.7
Designation: ISA Slot J10
Current Usage: Unknown
Bus Address: 00ff:ff:1f.7
Designation: PCI Slot J11
Current Usage: In Use
Bus Address: 0000:00:0f.0
Designation: PCI Slot J12
Current Usage: Available
Bus Address: 0000:00:10.0
Designation: PCI Slot J13
Current Usage: In Use
Bus Address: 0000:00:11.0
Designation: PCI Slot J14
Current Usage: Available
Bus Address: 0000:00:12.0
...在我的例子中给出了完全相同的输出。但您的里程当然可能会有所不同,请告诉我们上述内容是否适合您。