adding LUN to linux server | Unix Linux Forums | Red Hat

  Go Back    


Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

adding LUN to linux server

Red Hat


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 04-13-2012
abhay1983 abhay1983 is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 29 June 2012, 1:16 AM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
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 information ?

Thanks in advance !

Cheers !
Sponsored Links
    #2  
Old 04-13-2012
quimera quimera is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 24 July 2014, 2:41 PM EDT
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

After create the LUN and attach on the host You can run "echo 1 > /sys/block/device_name/device/rescan" to scan the disk or reboot your system.
After run "fdisk -l " to list all disks, you will see internal disks and luns.

@mbrozio
Sponsored Links
    #3  
Old 04-16-2012
abhay1983 abhay1983 is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 29 June 2012, 1:16 AM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
MySQL

Hey ! Thanks for your update.

And when i googled i saw something like below to add the lun to linux host.


Code:
echo > 1 "proc/scsi/sci"

Or


Code:
echo "- - -" > /sys/class/scsi_host/host<ID>/scan

what about these ...

Thanks buddy !
Moderator's Comments:
How to use code tags

Last edited by Scrutinizer; 04-16-2012 at 02:43 AM.. Reason: Code tags
    #4  
Old 04-16-2012
gsiva gsiva is offline
Registered User
 
Join Date: Dec 2008
Last Activity: 19 December 2014, 1:43 AM EST
Location: Singapore
Posts: 176
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,
Use the below commands to identify the newly added lun in the server.

dmesg|grep scsi
echo "- - -" > /sys/class/scsi_host/host5/scan
cat /proc/scsi/scsi
fdisk -l
pvscan
Sponsored Links
    #5  
Old 04-16-2012
quimera quimera is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 24 July 2014, 2:41 PM EDT
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Hi,

Red Hat documentain has the command "echo 1 > /sys/block/device_name/device/rescan", if not worked reboot your system.

@mbrozio.
Sponsored Links
    #6  
Old 04-17-2012
abhay1983 abhay1983 is offline
Registered User
 
Join Date: Apr 2012
Last Activity: 29 June 2012, 1:16 AM EDT
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks all for your valuable comments ...
catch u later in another query ...

Chrees
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Procedure for adding a new harddisk to a server gopikumar AIX 2 09-30-2011 08:32 AM
ascii FTP from Linux to Linux adding carriage returns roysterdoyster UNIX for Dummies Questions & Answers 0 05-19-2009 03:48 PM
adding memory to sun blade server ... netshu Solaris 5 11-04-2008 09:57 AM
Adding RAID to server user23 Filesystems, Disks and Memory 0 07-02-2008 10:07 PM
adding time server aladdin UNIX for Dummies Questions & Answers 4 08-09-2007 09:04 AM



All times are GMT -4. The time now is 07:17 AM.