nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Newly added luns in Linux

This is a discussion on Newly added luns in Linux within the Linux software forums, part of the Linux Getting Started category; Hi All: I am having HDS SAN box and mapped the luns to Linux box (rhel 4) after zoning. To ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-13-2005, 06:02 PM
Member
User
 
Join Date: Jan 2005
Location: Pune, India.
Posts: 47
Rep Power: 0
Ashish Pathak
Send a message via MSN to Ashish Pathak Send a message via Yahoo to Ashish Pathak
Default Newly added luns in Linux

Hi All:

I am having HDS SAN box and mapped the luns to Linux box (rhel 4) after zoning. To see newly added luns I have to restart my Linux server. The same way, If I use Solaris here, then I can see those luns after running devfsadm command on Solaris. I am looking for same kind of command for Linux, I already tried kudzu but it did not worked. Do you know any other command in Linux which will detect my newly added luns without rebooting the machine.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-14-2005, 12:28 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Try the script http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh; you may also need to read the scsidev.
Reply With Quote
  #3 (permalink)  
Old 07-14-2005, 05:22 PM
Member
User
 
Join Date: Jan 2005
Location: Pune, India.
Posts: 47
Rep Power: 0
Ashish Pathak
Send a message via MSN to Ashish Pathak Send a message via Yahoo to Ashish Pathak
Default

Thanks for your help.
I tried the script but no luck. I have connected to my SAN box using QLogic HBA card.
I guess this script is scanning IDE and SCSI slots, It will be usefull when we hotplug/hotswap any HDD. We need to customise it so that it will scan HBA also.
Reply With Quote
  #4 (permalink)  
Old 07-14-2005, 05:31 PM
Member
User
 
Join Date: Jan 2005
Location: Pune, India.
Posts: 47
Rep Power: 0
Ashish Pathak
Send a message via MSN to Ashish Pathak Send a message via Yahoo to Ashish Pathak
Default

Cool.. I tried it agin on another server and it worked. Now I am trying the same script on my previos server. Lets see how it goes.
Reply With Quote
  #5 (permalink)  
Old 07-15-2005, 05:18 PM
Member
User
 
Join Date: Jan 2005
Location: Pune, India.
Posts: 47
Rep Power: 0
Ashish Pathak
Send a message via MSN to Ashish Pathak Send a message via Yahoo to Ashish Pathak
Default

It's only detecting one lun and not detecting others.
I have also tried following commands but result is the same.
echo "scsi-qlascan" > /proc/scsi/qla2300/2 : Scans Qlogic card
echo "scsi add-single-device 1" > /proc/scsi/scsi : Scans newly added luns.

Any other script or solution?
Reply With Quote
  #6 (permalink)  
Old 07-16-2005, 06:32 AM
Guest
 
Posts: n/a
Default

Try as follows, by increasing the number
Code:
echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
Reply With Quote
  #7 (permalink)  
Old 07-16-2005, 06:39 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

Hmm..

Do you have following line in your /etc/modules.conf OR /etc/modprobe.conf :

Code:
options scsi_mod max_scsi_luns=255
Then you need to rebuild your initrd file using mkinitrd command.
Reply With Quote
  #8 (permalink)  
Old 07-19-2005, 01:01 PM
Member
User
 
Join Date: Jan 2005
Location: Pune, India.
Posts: 47
Rep Power: 0
Ashish Pathak
Send a message via MSN to Ashish Pathak Send a message via Yahoo to Ashish Pathak
Default

I tried
Quote:
echo "scsi add-single-device 0 1 2 3" >/proc/scsi/scsi
and added
Quote:
options scsi_mod max_scsi_luns=255
but result is the same.
Now after adding above line in /etc/modules.conf its not detecting any lun.
Any suggestions??
Reply With Quote
  #9 (permalink)  
Old 07-19-2005, 08:38 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Which SCSI adapter you are using i.e. make of your adapter? Some scsi adapters can be configured via /proc/scsi/YOURADAPTER/

Let me know that...
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #10 (permalink)  
Old 07-19-2005, 08:47 PM
Member
User
 
Join Date: Jan 2005
Location: Pune, India.
Posts: 47
Rep Power: 0
Ashish Pathak
Send a message via MSN to Ashish Pathak Send a message via Yahoo to Ashish Pathak
Default

Thanks for replying Vivek Sir!!
I am using LSI Logic SCSI adapter and QLogic HBA card.
Following are the details::
SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 0
Fibre Channel: QLogic Corp. QLA2312 Fibre Channel Adapter (rev 02)
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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

Similar Threads

Thread Thread Starter Forum Replies Last Post
Setup multiple LUNs on Red Hat Enterprise Linux 4 raj Linux hardware 2 01-03-2007 09:02 AM
Create a new ext3 file system if a disk was added to the sys chiku Linux software 1 07-23-2006 09:55 PM


All times are GMT +5.5. The time now is 09:24 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36