Too many scsi hosts in /sys/class/scsi_host. Only one SCSI controller is used, other two are not usedAre any...
Different past tense for various *et words
Can my UK debt be collected because I have to return to US?
How could reincarnation magic be limited to prevent overuse?
Why wasn't Linda Hamilton in T3?
How can I store milk for long periods of time?
Do universities maintain secret textbooks?
Tasha's Hideous Laughter used on a deaf person?
New coworker has strange workplace requirements - how should I deal with them?
Calculate Landau's function
Killing task by name - start menu shortcut
How to have the "Restore Missing Files" function from Nautilus without installing Nautilus?
In Toy Story, are toys the only inanimate objects that become alive? And if so, why?
Blogging in LaTeX
How do you manage to study and have a balance in your life at the same time?
Why do modes sound so different, although they are basically the same as a mode of another scale?
Can a system of three stars exist?
Why are CEOs generally fired rather being demoted?
An alternative to "two column" geometry proofs
The 7-numbers crossword
How to solve this inequality , when there is a irrational power?
How were US credit cards verified in-store in the 1980's?
Why didn't Thatcher give Hong Kong to Taiwan?
Can UV radiation be safe for the skin?
Is Chuck the Evil Sandwich Making Guy's head actually a sandwich?
Too many scsi hosts in /sys/class/scsi_host. Only one SCSI controller is used, other two are not used
Are any SCSI modules needed in initrd if only SATA and IDE disks are used?Why there are many BSD systems but only one Linux kernel?How to map a sata device name to a physical sata interface for RAID systemsPL2303/PL2303X USB-Serial driver
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have 8 disks in my virtual bastion server whose PCI address is also shared here along with the host ID which controls them. However lspci lists three drive controllers. Does it mean that the other two are not used at all and only SCSI Controller: LSI Logic is used here. Why host0 and other hosts are there if only host2 is used.
[root@linux_server ~]# fdisk -l | grep -i disk |grep -v identifer | grep -v identifier | grep -v mapper
Disk /dev/sda: 46.2 GB, 46170898432 bytes
Disk /dev/sdb: 8589 MB, 8589934592 bytes
Disk /dev/sdd: 21.5 GB, 21474836480 bytes
Disk /dev/sde: 53.7 GB, 53687091200 bytes
Disk /dev/sdc: 10.7 GB, 10737418240 bytes
Disk /dev/sdf: 8589 MB, 8589934592 bytes
Disk /dev/sdg: 2147 MB, 2147483648 bytes
Disk /dev/sdh: 2147 MB, 2147483648 bytes
[root@linux_server ~]# ls -l /sys/block/sd*
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sda -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:0/2:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdb -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:1/2:0:1:0/block/sdb
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdc -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:2/2:0:2:0/block/sdc
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdd -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:3/2:0:3:0/block/sdd
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sde -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:4/2:0:4:0/block/sde
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdf -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:5/2:0:5:0/block/sdf
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdg -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:6/2:0:6:0/block/sdg
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdh -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:8/2:0:8:0/block/sdh
[root@linux_server ~]# lspci | egrep -i "sata|scsi|ide"
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
02:04.0 SATA controller: VMware SATA AHCI controller
[root@linux_server ~]# cat /sys/class/scsi_host/host*/proc_name | wc -l
33
[root@linux_server ~]# ls -l /sys/class/scsi_host/host*
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host0 -> ../../devices/pci0000:00/0000:00:07.1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host1 -> ../../devices/pci0000:00/0000:00:07.1/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host10 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host10/scsi_host/host10
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host11 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host11/scsi_host/host11
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host12 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host12/scsi_host/host12
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host13 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host13/scsi_host/host13
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host14 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host14/scsi_host/host14
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host15 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host15/scsi_host/host15
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host16 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host16/scsi_host/host16
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host17 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host17/scsi_host/host17
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host18 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host18/scsi_host/host18
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host19 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host19/scsi_host/host19
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host2 -> ../../devices/pci0000:00/0000:00:10.0/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host20 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host20/scsi_host/host20
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host21 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host21/scsi_host/host21
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host22 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host22/scsi_host/host22
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host23 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host23/scsi_host/host23
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host24 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host24/scsi_host/host24
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host25 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host25/scsi_host/host25
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host26 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host26/scsi_host/host26
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host27 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host27/scsi_host/host27
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host28 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host28/scsi_host/host28
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host29 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host29/scsi_host/host29
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host3 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host30 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host30/scsi_host/host30
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host31 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host31/scsi_host/host31
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host32 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host32/scsi_host/host32
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host4 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host5 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host6 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host6/scsi_host/host6
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host7 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host7/scsi_host/host7
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host8 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host8/scsi_host/host8
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host9 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host9/scsi_host/host9
[root@linux_server ~]#
[root@linux_server ~]# for i in ls /sys/class/scsi_host/; do echo $i; cat /sys/class/scsi_host/$i/proc_name| grep -i mpt; done
host0
host1
host10
host11
host12
host13
host14
host15
host16
host17
host18
host19
host2
mptspi
host20
host21
host22
host23
host24
host25
host26
host27
host28
host29
host3
host30
host31
host32
host4
host5
host6
host7
host8
host9
linux
add a comment |
I have 8 disks in my virtual bastion server whose PCI address is also shared here along with the host ID which controls them. However lspci lists three drive controllers. Does it mean that the other two are not used at all and only SCSI Controller: LSI Logic is used here. Why host0 and other hosts are there if only host2 is used.
[root@linux_server ~]# fdisk -l | grep -i disk |grep -v identifer | grep -v identifier | grep -v mapper
Disk /dev/sda: 46.2 GB, 46170898432 bytes
Disk /dev/sdb: 8589 MB, 8589934592 bytes
Disk /dev/sdd: 21.5 GB, 21474836480 bytes
Disk /dev/sde: 53.7 GB, 53687091200 bytes
Disk /dev/sdc: 10.7 GB, 10737418240 bytes
Disk /dev/sdf: 8589 MB, 8589934592 bytes
Disk /dev/sdg: 2147 MB, 2147483648 bytes
Disk /dev/sdh: 2147 MB, 2147483648 bytes
[root@linux_server ~]# ls -l /sys/block/sd*
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sda -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:0/2:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdb -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:1/2:0:1:0/block/sdb
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdc -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:2/2:0:2:0/block/sdc
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdd -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:3/2:0:3:0/block/sdd
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sde -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:4/2:0:4:0/block/sde
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdf -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:5/2:0:5:0/block/sdf
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdg -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:6/2:0:6:0/block/sdg
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdh -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:8/2:0:8:0/block/sdh
[root@linux_server ~]# lspci | egrep -i "sata|scsi|ide"
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
02:04.0 SATA controller: VMware SATA AHCI controller
[root@linux_server ~]# cat /sys/class/scsi_host/host*/proc_name | wc -l
33
[root@linux_server ~]# ls -l /sys/class/scsi_host/host*
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host0 -> ../../devices/pci0000:00/0000:00:07.1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host1 -> ../../devices/pci0000:00/0000:00:07.1/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host10 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host10/scsi_host/host10
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host11 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host11/scsi_host/host11
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host12 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host12/scsi_host/host12
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host13 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host13/scsi_host/host13
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host14 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host14/scsi_host/host14
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host15 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host15/scsi_host/host15
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host16 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host16/scsi_host/host16
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host17 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host17/scsi_host/host17
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host18 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host18/scsi_host/host18
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host19 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host19/scsi_host/host19
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host2 -> ../../devices/pci0000:00/0000:00:10.0/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host20 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host20/scsi_host/host20
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host21 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host21/scsi_host/host21
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host22 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host22/scsi_host/host22
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host23 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host23/scsi_host/host23
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host24 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host24/scsi_host/host24
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host25 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host25/scsi_host/host25
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host26 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host26/scsi_host/host26
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host27 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host27/scsi_host/host27
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host28 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host28/scsi_host/host28
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host29 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host29/scsi_host/host29
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host3 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host30 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host30/scsi_host/host30
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host31 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host31/scsi_host/host31
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host32 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host32/scsi_host/host32
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host4 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host5 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host6 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host6/scsi_host/host6
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host7 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host7/scsi_host/host7
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host8 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host8/scsi_host/host8
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host9 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host9/scsi_host/host9
[root@linux_server ~]#
[root@linux_server ~]# for i in ls /sys/class/scsi_host/; do echo $i; cat /sys/class/scsi_host/$i/proc_name| grep -i mpt; done
host0
host1
host10
host11
host12
host13
host14
host15
host16
host17
host18
host19
host2
mptspi
host20
host21
host22
host23
host24
host25
host26
host27
host28
host29
host3
host30
host31
host32
host4
host5
host6
host7
host8
host9
linux
add a comment |
I have 8 disks in my virtual bastion server whose PCI address is also shared here along with the host ID which controls them. However lspci lists three drive controllers. Does it mean that the other two are not used at all and only SCSI Controller: LSI Logic is used here. Why host0 and other hosts are there if only host2 is used.
[root@linux_server ~]# fdisk -l | grep -i disk |grep -v identifer | grep -v identifier | grep -v mapper
Disk /dev/sda: 46.2 GB, 46170898432 bytes
Disk /dev/sdb: 8589 MB, 8589934592 bytes
Disk /dev/sdd: 21.5 GB, 21474836480 bytes
Disk /dev/sde: 53.7 GB, 53687091200 bytes
Disk /dev/sdc: 10.7 GB, 10737418240 bytes
Disk /dev/sdf: 8589 MB, 8589934592 bytes
Disk /dev/sdg: 2147 MB, 2147483648 bytes
Disk /dev/sdh: 2147 MB, 2147483648 bytes
[root@linux_server ~]# ls -l /sys/block/sd*
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sda -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:0/2:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdb -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:1/2:0:1:0/block/sdb
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdc -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:2/2:0:2:0/block/sdc
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdd -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:3/2:0:3:0/block/sdd
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sde -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:4/2:0:4:0/block/sde
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdf -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:5/2:0:5:0/block/sdf
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdg -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:6/2:0:6:0/block/sdg
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdh -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:8/2:0:8:0/block/sdh
[root@linux_server ~]# lspci | egrep -i "sata|scsi|ide"
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
02:04.0 SATA controller: VMware SATA AHCI controller
[root@linux_server ~]# cat /sys/class/scsi_host/host*/proc_name | wc -l
33
[root@linux_server ~]# ls -l /sys/class/scsi_host/host*
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host0 -> ../../devices/pci0000:00/0000:00:07.1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host1 -> ../../devices/pci0000:00/0000:00:07.1/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host10 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host10/scsi_host/host10
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host11 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host11/scsi_host/host11
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host12 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host12/scsi_host/host12
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host13 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host13/scsi_host/host13
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host14 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host14/scsi_host/host14
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host15 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host15/scsi_host/host15
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host16 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host16/scsi_host/host16
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host17 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host17/scsi_host/host17
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host18 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host18/scsi_host/host18
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host19 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host19/scsi_host/host19
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host2 -> ../../devices/pci0000:00/0000:00:10.0/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host20 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host20/scsi_host/host20
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host21 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host21/scsi_host/host21
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host22 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host22/scsi_host/host22
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host23 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host23/scsi_host/host23
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host24 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host24/scsi_host/host24
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host25 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host25/scsi_host/host25
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host26 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host26/scsi_host/host26
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host27 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host27/scsi_host/host27
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host28 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host28/scsi_host/host28
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host29 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host29/scsi_host/host29
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host3 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host30 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host30/scsi_host/host30
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host31 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host31/scsi_host/host31
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host32 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host32/scsi_host/host32
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host4 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host5 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host6 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host6/scsi_host/host6
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host7 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host7/scsi_host/host7
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host8 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host8/scsi_host/host8
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host9 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host9/scsi_host/host9
[root@linux_server ~]#
[root@linux_server ~]# for i in ls /sys/class/scsi_host/; do echo $i; cat /sys/class/scsi_host/$i/proc_name| grep -i mpt; done
host0
host1
host10
host11
host12
host13
host14
host15
host16
host17
host18
host19
host2
mptspi
host20
host21
host22
host23
host24
host25
host26
host27
host28
host29
host3
host30
host31
host32
host4
host5
host6
host7
host8
host9
linux
I have 8 disks in my virtual bastion server whose PCI address is also shared here along with the host ID which controls them. However lspci lists three drive controllers. Does it mean that the other two are not used at all and only SCSI Controller: LSI Logic is used here. Why host0 and other hosts are there if only host2 is used.
[root@linux_server ~]# fdisk -l | grep -i disk |grep -v identifer | grep -v identifier | grep -v mapper
Disk /dev/sda: 46.2 GB, 46170898432 bytes
Disk /dev/sdb: 8589 MB, 8589934592 bytes
Disk /dev/sdd: 21.5 GB, 21474836480 bytes
Disk /dev/sde: 53.7 GB, 53687091200 bytes
Disk /dev/sdc: 10.7 GB, 10737418240 bytes
Disk /dev/sdf: 8589 MB, 8589934592 bytes
Disk /dev/sdg: 2147 MB, 2147483648 bytes
Disk /dev/sdh: 2147 MB, 2147483648 bytes
[root@linux_server ~]# ls -l /sys/block/sd*
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sda -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:0/2:0:0:0/block/sda
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdb -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:1/2:0:1:0/block/sdb
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdc -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:2/2:0:2:0/block/sdc
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdd -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:3/2:0:3:0/block/sdd
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sde -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:4/2:0:4:0/block/sde
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdf -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:5/2:0:5:0/block/sdf
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdg -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:6/2:0:6:0/block/sdg
lrwxrwxrwx 1 root root 0 Sep 2 06:39 /sys/block/sdh -> ../devices/pci0000:00/0000:00:10.0/host2/target2:0:8/2:0:8:0/block/sdh
[root@linux_server ~]# lspci | egrep -i "sata|scsi|ide"
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
02:04.0 SATA controller: VMware SATA AHCI controller
[root@linux_server ~]# cat /sys/class/scsi_host/host*/proc_name | wc -l
33
[root@linux_server ~]# ls -l /sys/class/scsi_host/host*
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host0 -> ../../devices/pci0000:00/0000:00:07.1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host1 -> ../../devices/pci0000:00/0000:00:07.1/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host10 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host10/scsi_host/host10
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host11 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host11/scsi_host/host11
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host12 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host12/scsi_host/host12
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host13 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host13/scsi_host/host13
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host14 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host14/scsi_host/host14
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host15 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host15/scsi_host/host15
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host16 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host16/scsi_host/host16
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host17 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host17/scsi_host/host17
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host18 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host18/scsi_host/host18
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host19 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host19/scsi_host/host19
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host2 -> ../../devices/pci0000:00/0000:00:10.0/host2/scsi_host/host2
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host20 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host20/scsi_host/host20
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host21 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host21/scsi_host/host21
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host22 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host22/scsi_host/host22
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host23 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host23/scsi_host/host23
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host24 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host24/scsi_host/host24
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host25 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host25/scsi_host/host25
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host26 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host26/scsi_host/host26
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host27 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host27/scsi_host/host27
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host28 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host28/scsi_host/host28
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host29 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host29/scsi_host/host29
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host3 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host3/scsi_host/host3
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host30 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host30/scsi_host/host30
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host31 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host31/scsi_host/host31
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host32 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host32/scsi_host/host32
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host4 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host4/scsi_host/host4
lrwxrwxrwx 1 root root 0 Sep 2 06:24 /sys/class/scsi_host/host5 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host5/scsi_host/host5
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host6 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host6/scsi_host/host6
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host7 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host7/scsi_host/host7
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host8 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host8/scsi_host/host8
lrwxrwxrwx 1 root root 0 Sep 2 06:27 /sys/class/scsi_host/host9 -> ../../devices/pci0000:00/0000:00:11.0/0000:02:04.0/host9/scsi_host/host9
[root@linux_server ~]#
[root@linux_server ~]# for i in ls /sys/class/scsi_host/; do echo $i; cat /sys/class/scsi_host/$i/proc_name| grep -i mpt; done
host0
host1
host10
host11
host12
host13
host14
host15
host16
host17
host18
host19
host2
mptspi
host20
host21
host22
host23
host24
host25
host26
host27
host28
host29
host3
host30
host31
host32
host4
host5
host6
host7
host8
host9
linux
linux
asked 25 mins ago
rootroot
51 bronze badge
51 bronze badge
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f538632%2ftoo-many-scsi-hosts-in-sys-class-scsi-host-only-one-scsi-controller-is-used-o%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f538632%2ftoo-many-scsi-hosts-in-sys-class-scsi-host-only-one-scsi-controller-is-used-o%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown