The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > Hardware > Filesystems, Disks and Memory
.
google unix.com



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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-31-2008
Crazy_murli Crazy_murli is offline
Registered User
  
 

Join Date: Jun 2006
Location: UK
Posts: 26
Exclamation Finding SAN Lun's on Linux.

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.
  #2 (permalink)  
Old 11-02-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
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
...

  #3 (permalink)  
Old 11-03-2008
Crazy_murli Crazy_murli is offline
Registered User
  
 

Join Date: Jun 2006
Location: UK
Posts: 26
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.
  #4 (permalink)  
Old 11-03-2008
Annihilannic Annihilannic is offline Forum Advisor  
  
 

Join Date: May 2008
Location: Sydney, Australia
Posts: 1,009
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?
Closed Thread

Bookmarks

Tags
linux commands

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:44 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0