![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Virtual Machine and Mapped Raw LUN's | kennyw1000 | Filesystems, Disks and Memory | 1 | 03-13-2008 06:40 PM |
| finding duplicate files by size and finding pattern matching and its count | jerome Sukumar | Shell Programming and Scripting | 2 | 12-01-2006 04:20 AM |
| Help finding a BOS | zuessh | AIX | 1 | 07-25-2006 03:48 AM |
| Finding last row | indo1144 | UNIX for Advanced & Expert Users | 7 | 09-23-2005 04:25 AM |
| Finding max value | Enigma23 | Shell Programming and Scripting | 1 | 04-10-2005 09:34 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Am trying to differentiate between the local disks and LUN's presented from SAN onto the server. Have Tried fdisk -l, however I quite cudn't differentiate the local disks from SAN presented LUN's.
Can you pls. let me know the procedure and commands to find this. OS - RHEL 4 SAN - EMC Clariion CX 600 Thanks, Murali. |
|
||||
|
The output of ls -l /sys/block/*/device should give you an idea about how each device is connected to the system. In the example below red is a virtual disk on an internal RAID controller, green is a CD-ROM connected via an IDE controller, and the rest are SAN-connected SCSI disks where "hostN" refers to the instance of the Host Bus Adapter they are connected to. Code:
# ls -l /sys/block/*/device lrwxrwxrwx 1 root root 0 Sep 19 02:11 /sys/block/cciss!c0d0/device -> ../../devices/pci0000:00/0000:00:04.0/0000:0d:00.0/disk0 lrwxrwxrwx 1 root root 0 Sep 19 02:11 /sys/block/hda/device -> ../../devices/pci0000:00/0000:00:1f.1/ide0/0.0 lrwxrwxrwx 1 root root 0 Sep 18 14:58 /sys/block/sda/device -> ../../devices/pci0000:00/0000:00:02.0/0000:13:00.0/host0/target0:0:0/0:0:0:0 lrwxrwxrwx 1 root root 0 Sep 18 14:58 /sys/block/sdb/device -> ../../devices/pci0000:00/0000:00:02.0/0000:13:00.0/host0/target0:0:0/0:0:0:1 lrwxrwxrwx 1 root root 0 Sep 18 14:58 /sys/block/sdc/device -> ../../devices/pci0000:00/0000:00:02.0/0000:13:00.0/host0/target0:0:0/0:0:0:64 lrwxrwxrwx 1 root root 0 Sep 18 14:58 /sys/block/sdd/device -> ../../devices/pci0000:00/0000:00:02.0/0000:13:00.0/host0/target0:0:0/0:0:0:120 ... |
|
||||
|
Hi,
Thanks for the reply. ls -l /sys/block/*/device Does give me the details as how many block devices are connected to the server. But how would I compare or correlate the same with the fdisk -l output, which shows total storage { local & SAN connected} devices with size etc. Thats what am precisely looking for. Any help on those lines is appreciated. regards, Murali. |
|
||||
|
I'm not sure what you're confused about... the device name under /sys/block corresponds with the device names listed by fdisk -l. Are you saying that you want to join the two pieces of information together automatically, i.e. a script, or you just aren't able to figure out which ones belong together by visual inspection?
|
![]() |
| Bookmarks |
| Tags |
| linux commands |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|