cancel
Showing results for 
Search instead for 
Did you mean: 

ioscan equivallent in linux

SOLVED
Go to solution
KathyK
Regular Advisor

ioscan equivallent in linux

Hello again,

I need to find out the controller address and bus address for my drives on my linux box, is there a command like ioscan -fnC bus

for linux?

best to all,

kahy
7 REPLIES
Ivan Krastev
Honored Contributor

Re: ioscan equivallent in linux

Use lspci, dmidecode or hwbrowser.

regards,
ivan
KathyK
Regular Advisor

Re: ioscan equivallent in linux

Thanks Ivan,

demidecode and hwbrowser is not installed on my system with /sbin/lspci -v

i get:

00:00.0 Host bridge: Intel Corporation E7520 Memory Controller Hub (rev 0c)
Subsystem: Compaq Computer Corporation Unknown device 3200
Flags: bus master, fast devsel, latency 0
Capabilities: [40] Vendor Specific Information

00:02.0 PCI bridge: Intel Corporation E7525/E7520/E7320 PCI Express Port A (rev 0c) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=04, sec-latency=0
I/O behind bridge: 00004000-00004fff
Memory behind bridge: fdd00000-fdefffff
Prefetchable memory behind bridge: 0000000050000000-0000000050000000
Capabilities: [50] Power Management version 2
Capabilities: [58] Message Signalled Interrupts: 64bit- Queue=0/1 Enable-
Capabilities: [64] Express Root Port (Slot-) IRQ 0

00:06.0 PCI bridge: Intel Corporation E7520 PCI Express Port C (rev 0c) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=05, subordinate=0c, sec-latency=0
I/O behind bridge: 00005000-00005fff
Memory behind bridge: fdf00000-fdffffff
Prefetchable memory behind bridge: 0000000050100000-0000000050100000
Capabilities: [50] Power Management version 2
Capabilities: [58] Message Signalled Interrupts: 64bit- Queue=0/1 Enable-
Capabilities: [64] Express Root Port (Slot+) IRQ 0

00:1d.0 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
Subsystem: Compaq Computer Corporation Unknown device 3201
Flags: bus master, medium devsel, latency 0, IRQ 169
I/O ports at 6000 [size=32]

00:1d.1 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
Subsystem: Compaq Computer Corporation Unknown device 3201
Flags: bus master, medium devsel, latency 0, IRQ 177
I/O ports at 6020 [size=32]

00:1d.2 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
Subsystem: Compaq Computer Corporation Unknown device 3201
Flags: bus master, medium devsel, latency 0, IRQ 185
I/O ports at 6040 [size=32]

00:1d.3 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
Subsystem: Compaq Computer Corporation Unknown device 3201
Flags: bus master, medium devsel, latency 0, IRQ 169
I/O ports at 6060 [size=32]

00:1d.7 USB Controller: Intel Corporation 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
Subsystem: Compaq Computer Corporation Unknown device 3201
Flags: bus master, medium devsel, latency 0, IRQ 193
Memory at fbef0000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c2) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
I/O behind bridge: 00001000-00003fff
Memory behind bridge: fbf00000-fcffffff
Prefetchable memory behind bridge: 50200000-502fffff

00:1f.0 ISA bridge: Intel Corporation 82801EB/ER (ICH5/ICH5R) LPC Interface Bridge (rev 02)
Flags: bus master, medium devsel, latency 0

00:1f.1 IDE interface: Intel Corporation 82801EB/ER (ICH5/ICH5R) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
Subsystem: Compaq Computer Corporation Unknown device 3201
Flags: bus master, medium devsel, latency 0, IRQ 255
I/O ports at
I/O ports at
I/O ports at
I/O ports at
I/O ports at 0500 [size=16]
Memory at 50300000 (32-bit, non-prefetchable) [size=1K]

01:03.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27) (prog-if 00 [VGA])
Subsystem: Compaq Computer Corporation Proliant Rage XL
Flags: bus master, stepping, medium devsel, latency 64
Memory at fc000000 (32-bit, non-prefetchable) [size=16M]
I/O ports at 3000 [size=256]
Memory at fbff0000 (32-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 50200000 [disabled] [size=128K]
Capabilities: [5c] Power Management version 2

01:04.0 System peripheral: Compaq Computer Corporation Integrated Lights Out Controller (rev 01)
Subsystem: Compaq Computer Corporation Unknown device b206
Flags: medium devsel, IRQ 5
I/O ports at 1800 [size=256]
Memory at fbfe0000 (32-bit, non-prefetchable) [size=512]
Capabilities: [f0] Power Management version 2

01:04.2 System peripheral: Compaq Computer Corporation Integrated Lights Out Processor (rev 01)
Subsystem: Compaq Computer Corporation Unknown device b206
Flags: bus master, stepping, medium devsel, latency 64, IRQ 5
I/O ports at 3400 [size=256]
Memory at fbfd0000 (32-bit, non-prefetchable) [size=2K]
Memory at fbfc0000 (32-bit, non-prefetchable) [size=8K]
Memory at fbf00000 (32-bit, non-prefetchable) [size=512K]
[virtual] Expansion ROM at 50220000 [disabled] [size=64K]
Capabilities: [f0] Power Management version 2

02:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=02, secondary=03, subordinate=03, sec-latency=64
Memory behind bridge: fdd00000-fddfffff
Capabilities: [44] Express PCI/PCI-X Bridge IRQ 0
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [6c] Power Management version 2
Capabilities: [d8] PCI-X bridge device

02:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=02, secondary=04, subordinate=04, sec-latency=64
I/O behind bridge: 00004000-00004fff
Memory behind bridge: fde00000-fdefffff
Prefetchable memory behind bridge: 0000000050000000-0000000050000000
Capabilities: [44] Express PCI/PCI-X Bridge IRQ 0
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [6c] Power Management version 2
Capabilities: [d8] PCI-X bridge device

03:01.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
Subsystem: Compaq Computer Corporation NC7782 Gigabit Server Adapter (PCI-X, 10,100,1000-T)
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 217
Memory at fddf0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] PCI-X non-bridge device
Capabilities: [48] Power Management version 2
Capabilities: [50] Vital Product Data
Capabilities: [58] Message Signalled Interrupts: 64bit+ Queue=0/3 Enable-

03:01.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet (rev 10)
Subsystem: Compaq Computer Corporation NC7782 Gigabit Server Adapter (PCI-X, 10,100,1000-T)
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 225
Memory at fdde0000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [40] PCI-X non-bridge device
Capabilities: [48] Power Management version 2
Capabilities: [50] Vital Product Data
Capabilities: [58] Message Signalled Interrupts: 64bit+ Queue=0/3 Enable-

04:03.0 RAID bus controller: Compaq Computer Corporation Smart Array 64xx (rev 01)
Subsystem: Compaq Computer Corporation Smart Array 6i
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 209
Memory at fdef0000 (64-bit, non-prefetchable) [size=8K]
I/O ports at 4000 [size=256]
Memory at fde80000 (64-bit, non-prefetchable) [size=256K]
[virtual] Expansion ROM at 50000000 [disabled] [size=256K]
Capabilities: [d0] Power Management version 2
Capabilities: [dc] PCI-X non-bridge device
Capabilities: [f0] Vital Product Data

05:00.0 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge A (rev 09) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=05, secondary=06, subordinate=09, sec-latency=64
I/O behind bridge: 00005000-00005fff
Memory behind bridge: fdf00000-fdffffff
Prefetchable memory behind bridge: 0000000050100000-0000000050100000
Capabilities: [44] Express PCI/PCI-X Bridge IRQ 0
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [6c] Power Management version 2
Capabilities: [d8] PCI-X bridge device

05:00.2 PCI bridge: Intel Corporation 6700PXH PCI Express-to-PCI Bridge B (rev 09) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=05, secondary=0a, subordinate=0c, sec-latency=64
Capabilities: [44] Express PCI/PCI-X Bridge IRQ 0
Capabilities: [5c] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-
Capabilities: [6c] Power Management version 2
Capabilities: [d8] PCI-X bridge device

06:01.0 Ethernet controller: QLogic Corp. ISP4022-based Ethernet NIC (rev 03)
Subsystem: QLogic Corp. Unknown device 0123
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 5
I/O ports at 5000 [size=256]
Memory at fdff0000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 50100000 [disabled] [size=512K]
Capabilities: [44] Power Management version 2
Capabilities: [4c] PCI-X non-bridge device
Capabilities: [54] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-

06:01.1 Network controller: QLogic Corp. ISP4022-based iSCSI TOE HBA (rev 03)
Subsystem: QLogic Corp. Unknown device 0124
Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 201
I/O ports at 5400 [size=256]
Memory at fdfe0000 (64-bit, non-prefetchable) [size=4K]
[virtual] Expansion ROM at 50180000 [disabled] [size=512K]
Capabilities: [44] Power Management version 2
Capabilities: [4c] PCI-X non-bridge device
Capabilities: [54] Message Signalled Interrupts: 64bit+ Queue=0/0 Enable-


not sure how to translate all that. I guess what I need is find out the address of my spare drive without rebooting the system so I can create a volume group on it.

Ivan Krastev
Honored Contributor
Solution

Re: ioscan equivallent in linux

What is you space drive?
for scsi : /dev/sdXX (sda,sdb ...)
IDE : /dev/hdXX
from SAN: /dev/sdXX - check with qlogic or other driver utilities.

regards,
ivan
KathyK
Regular Advisor

Re: ioscan equivallent in linux

Here is more information on my system disks:




pvdisplay -v /dev/sda1
Using physical volume(s) on command line
No physical volume label read from /dev/sda1
Failed to read physical volume "/dev/sda1"



/dev/sda1 258033560 229383152 15542980 94% /vol

root@sanfs01:/etc] /usr/sbin/pvs
PV VG Fmt Attr PSize PFree
/dev/cciss/c0d0p2 VolGroup00 lvm2 a- 135.53G 0


[root@sanfs01:/etc] /sbin/fdisk -l

Disk /dev/sda: 268.4 GB, 268440698880 bytes
255 heads, 63 sectors/track, 32636 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 32636 262148638+ 83 Linux

Disk /dev/cciss/c0d0: 145.6 GB, 145667358720 bytes
255 heads, 63 sectors/track, 17709 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/cciss/c0d0p1 * 1 13 104391 83 Linux
/dev/cciss/c0d0p2 14 17709 142143120 8e Linux LVM

Ivan Krastev
Honored Contributor

Re: ioscan equivallent in linux

You have one SCSI disk (sda1), mounted under /vol and one visible from HP array controller (/dev/cciss/c0t0) with 2 partitions: normal Linux c0t0p1 (/boot i assume) and LVM partition c0t0p2.

Check in dmesg for any additional disks - next disk from array should be visible as /dev/cciss/c0t1.
use:
dmesg | grep -e cciss -e disk

regards,
ivan
dirk dierickx
Honored Contributor

Re: ioscan equivallent in linux

lshw -businfo

lshw also has an output mode that is similar to ioscan with certain options.

check out the lshw site:
http://ezix.org/project/wiki/HardwareLiSter
KathyK
Regular Advisor

Re: ioscan equivallent in linux

Thank you Dirk and Ivan, great help.

love lshw!