- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- command for detecting scsi LUNs
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 10:09 PM
тАО10-06-2004 10:09 PM
command for detecting scsi LUNs
Is there a command to detect SCSI luns in linux without rebooting the machine?
regards
chakri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 10:18 PM
тАО10-06-2004 10:18 PM
Re: command for detecting scsi LUNs
ezix.sourceforge.net/software/lshw.html
Bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2004 11:06 PM
тАО10-06-2004 11:06 PM
Re: command for detecting scsi LUNs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 12:24 AM
тАО10-07-2004 12:24 AM
Re: command for detecting scsi LUNs
you don't need reboot all server.
You just have to modprobe -r xxxx (or rmmod xxxx) and after modprobe xxxx,
where xxxx is the module (driver) that supports your scsi device.
But remember that you have to unmount all scsi devices that are supported by the xxxx module.
To see if the module is in use or not, before you can remove it, you have to list all modules using lsmod and verify if the use count is zero.
Hope it helps.
regards,
Xyko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2004 07:59 AM
тАО10-07-2004 07:59 AM
Re: command for detecting scsi LUNs
On SuSE, you can use:
hwinfo (output too large to include here)
sginfo -l
/dev/sda /dev/sdb /dev/scd0 /dev/sr0
/dev/sg0 [=/dev/sda scsi0 ch=0 id=0 lun=0]
/dev/sg1 [=/dev/sdb scsi0 ch=0 id=1 lun=0]
/dev/sg2 [=/dev/scd0 scsi4 ch=0 id=0 lun=0]
sg_scan
/dev/sg0: scsi0 channel=0 id=0 lun=0 [em]
/dev/sg1: scsi0 channel=0 id=1 lun=0 [em]
/dev/sg2: scsi4 channel=0 id=0 lun=0 [em]
sg_map
/dev/sg0 /dev/sda
/dev/sg1 /dev/sdb
/dev/sg2 /dev/scd0
If you are trying to force a rescan of a SCSI bus (after hot-plugging a disk) - well, that isn't supported under kernel 2.4 - I'd have to check into 2.6. But you can add/remove devices on the fly:
Existing devices can be removed using echo "scsi remove-single-device
New devices can be added using echo "scsi add-single-device
Col.