Detect the lun

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Detect the lun
# 1  
Old 03-30-2012
Detect the lun

Hi,

Is there command to detect the newly added LUN is linux box. I tried with below commands, but that doesn't work out.

Code:
fdisk -l,
fdisk -l | grep Disk
pvscan


Last edited by radoulov; 10-25-2012 at 03:22 PM..
# 2  
Old 03-30-2012
fdisk shows already discovered devices. pvscan only works if the LUN is discovered and is a Physical Volume (made through pvcreate command)

Here's what you need to do:
Code:
echo "scsi-qlascan" > /proc/scsi/<driver-name>/<adapter-id>

To find driver_name, try dmesg | tail

Then, try this:
Code:
echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi

Now you should be able to see the LUN.
# 3  
Old 03-30-2012
you can either use tools provided by the adapter, or you can find a script online called "rescan-scsi-bus.sh"

It is open source, and free to use. That will do all the magic behind the scenes for you.
# 4  
Old 03-31-2012
Hi,

Thanks admin_xor,

I tried with the below command to identify the lun

Code:
echo "- - -" > /sys/class/scsi_host/host5/scan

Here, I have an another issue, how to identify the allocated lun id

Forg eg :

Code:
fbvol  462E  lun # 04 (hx)


Last edited by radoulov; 10-25-2012 at 03:22 PM..
# 5  
Old 03-31-2012
If you are using EMC storage take output of powermt display dev=all output before scan and after scan find the difference of both output.It will help you to identify newly added luns..
# 6  
Old 04-02-2012
@ Susindram,

Its a IBM SAN storage.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

AIX server do not detect LUN from HP storage

ssssssssssss (0 Replies)
Discussion started by: sampathenjoy
0 Replies

2. Linux

How to detect FC lun on Server?

I have created a lun on Storage and connected it to server using fiber channel. LUN is presented on new Server . How do i check and mount this newly created LUN? (1 Reply)
Discussion started by: pinga123
1 Replies

3. AIX

Not getting Lun Id

Hi, I am not getiting lun id information on VIO Server. I have used the command fget_config command. just showing # prompt. I would like know wheather any other command is there equiv of fget_config which will display lun id? (4 Replies)
Discussion started by: manoj.solaris
4 Replies

4. Red Hat

LUN Presentation

Hi, I have presented a LUN from my EVA 4400 to a RHEL server. The server sees 4 paths to the LUN which I can see from fdisk. If I want to add this LUN to my OS i.e. # fdisk /dev/sd??? ....which actual device do I run fdisk against? I am running multipath so is there... (12 Replies)
Discussion started by: Duffs22
12 Replies

5. HP-UX

Mounting LUN on HP 11.31

Hello, I want monting a LUN on a RX2660 I have created a LUN of 100Go with HP StorageWorks EVA and associated to my server. For the moment I see it with the command below but after i can't used it # ioscan -fnkC disk Class I H/W Path Driver S/W State H/W Type Description ... (10 Replies)
Discussion started by: letters
10 Replies

6. AIX

Expand LUN

Hello all, I have the following env: * DS4300 storage SAN * AIX 5.3 Lpar (storage through vio server) * AIX 5.3 Server Some FS are too small do I'm setting up a process to increase the size of the FS. To expand the size of the FS I plan to do the following for the physical AIX server,... (1 Reply)
Discussion started by: petervg
1 Replies

7. HP-UX

How to get WWNN of the LUN in HP-UX

Good day! I’m a beginner HP-UX administrator. I have a task to create mulitipassing (I can mistake in this word) to new 3 disks which connected to my server from EVA. It is my first task to work with Secure Path. I have read what command I need to execute, but I don’t know, how to get the WWNN... (2 Replies)
Discussion started by: Delphin911
2 Replies

8. Solaris

I have LUN ID, how to find disk relate to that LUN ID?

I have a list of LUN ID, my task is to find if disk has been added or not. How do I do that? I have been searching the forum and not able to find answer. thanks (4 Replies)
Discussion started by: uuontario
4 Replies

9. UNIX for Dummies Questions & Answers

LUN mapping

Hi, We recently purchased a 3 tb RAID. In the setup, it created 2 slices, one 2 tb and one 1 tb slice. Right now only the 2 tb slice is visible when booting up. I was told that the second slice needs to be mapped to a lun and a port like the first slice is. Does anyone know how I would go... (1 Reply)
Discussion started by: user23
1 Replies

10. HP-UX

LUN concept

In my location we have Hp storage (san),from there they created luns, so could u plz send me clear document for understanding LUN. (1 Reply)
Discussion started by: Prem
1 Replies
Login or Register to Ask a Question