Finding SAN Lun's on Linux.


 
Thread Tools Search this Thread
Special Forums Hardware Filesystems, Disks and Memory Finding SAN Lun's on Linux.
# 1  
Old 10-31-2008
Error 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  
Old 11-02-2008
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  
Old 11-03-2008
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  
Old 11-03-2008
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?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Linux Thin Lun space reclamation

Hello, We have IBM storwize v7000 storage. I have created thin provisioned LUN and attached it to my server(dell r910, Centos 7). Whenever I copy files in that LUN correspondingly Thin provisioned LUN's used space increases but when I remove files to free up space the LUN's size isn't... (5 Replies)
Discussion started by: Vit0_Corleone
5 Replies

2. Solaris

Solaris 10, adding new LUN from SAN storage

Hello to all, Actually, currently on my Solaris box, I've a LUN (5TB space) from a EMC storage which is working fine, and a partition with ZFS filesystem is created for that LUN. as further you'll see in the logs, the "c4t6006016053802E00E6A9196B6506E211d0s2" is the current configured LUN in the... (4 Replies)
Discussion started by: Anti_Evil
4 Replies

3. Red Hat

adding LUN to linux server

Hi All, I am new for this blog and this is my first Query on this blog. I would like to dael with graet masters on linux. Here we go, After storage people created the LUN, How to add that LUN to Linux server. (Make that LUN visibility on linux server.) ? How to view the LUN... (5 Replies)
Discussion started by: abhay1983
5 Replies

4. Solaris

Can't see Newly created LUN by SAN admin

hello, i am an oracle DBA and trying to scan a newly created LUN of 200 GB on fiber channel by SAN admin.we have solaris 10 and SANtoolkit is installed.i tried following to get the new LUN at my machine. go /opt/Netapp/Santoolkit/bin and then ./sanlun lun show but i see only the existing... (12 Replies)
Discussion started by: janakors
12 Replies

5. UNIX for Dummies Questions & Answers

Basic SAN LUN query

Hi guys, We have created a LUN on SAN and assigned it to a server. On top of it we have created 4 LVM shares which are holding the data. Is it possible to add this LUN to some other server and access the data on LVM shares?(noob here) (1 Reply)
Discussion started by: pinga123
1 Replies

6. AIX

Mount a SAN LUN which contains clone copy - AIX 6.1

Hello Everyone, Can someone help me to mount a SAN hdisk which contains a clone data copy(san) of the remote server to the another machine. Both servers are running in AIX. Thanks in advance ! Regards, Gowtham.G (3 Replies)
Discussion started by: gowthamakanthan
3 Replies

7. HP-UX

Finding the correct LUN

I am using hp ux 11.31 Our SAN storage is being presented from an IBM XIV. We have 3 HP servers (rx4640's), and the XIV has them setup in a cluster, so that when a disk is presented all 3 servers can see the new LUN. I'm setting up a new VM on one of the HP servers. I have allocated a 34Gb... (1 Reply)
Discussion started by: xtoverus1
1 Replies

8. Red Hat

Grow LUN presented on Linux host

Hi, I have a SAN LUN of 550 GB created as an ext3 partition of the entire lun and need to make the lun and partition larger... 600 GB # fdisk -l /dev/sdj Disk /dev/sdj: 590.5 GB, 590558003200 bytes 255 heads, 63 sectors/track, 71797 cylinders Units = cylinders of 16065 * 512 = 8225280... (3 Replies)
Discussion started by: jamba1
3 Replies

9. Filesystems, Disks and Memory

Help with finding WWN of SAN disks

Hi, I'm new to SAN storage so I was wondering if someone can assist me with a problem. I have a solaris 10 OS with 3 SAN devices attached. We are trying to troubleshoot performance so I was asked to get the WWN of each SAN disk and show what it's attached to via the SVM mount in the metastat... (1 Reply)
Discussion started by: rkruck
1 Replies

10. Linux

Linux on SAN

Hello everyone. I was wondering if there is a way to increase the size on the LUN on a SAN and make the Linux kernel understand the changes without restarting? In the past it has always been rebooted to see the new values but im sure that there is a way now for the lvm to see the Free PE in... (8 Replies)
Discussion started by: d_ark
8 Replies
Login or Register to Ask a Question