New LUN available on Linux without reboot

Christopher Fowler cfowler at outpostsentinel.com
Thu May 4 16:42:38 CDT 2006


I was under the impression that when the driver started up it would scan
for hardware then that would be it.  I did not know you could add
hardware and then it would see it.  The only time I have seen different
was with the usb-storage module and muti-card readers.  A muti-card
reader has a different LUN for each slot.

The only idea that I can offer is to look at the source and see if there
is an ioctl() that you can call that would force the driver to scan and
add the device.


On Thu, 2006-05-04 at 17:38 -0400, A Cline wrote:
> I have tried partprobe, but since this scans for "partitions" and I'm
> hoping to see a new "disk", I didn't give it much hope.  And I was
> rewarded, because it didn't work.
> 
> Unloading the driver would mean I would drop any other mounts from the
> SAN.  There has to be a better way.  I've tried the following, but it
> didn't work either: 
> 
> [root at low-san-903 data1]# cat /proc/scsi/scsi
> Attached devices:
> Host: scsi2 Channel: 00 Id: 00 Lun: 00
>   Vendor: ATA      Model: ST380013AS       Rev: 8.12
>   Type:   Direct-Access                    ANSI SCSI revision: 05 
> Host: scsi3 Channel: 00 Id: 00 Lun: 00
>   Vendor: DGC      Model: RAID 5           Rev: 0219
>   Type:   Direct-Access                    ANSI SCSI revision: 04
> Host: scsi3 Channel: 00 Id: 00 Lun: 01
>   Vendor: DGC      Model: RAID 5           Rev: 0219 
>   Type:   Direct-Access                    ANSI SCSI revision: 04
> Host: scsi3 Channel: 00 Id: 00 Lun: 02
>   Vendor: DGC      Model: RAID 5           Rev: 0219
>   Type:   Direct-Access                    ANSI SCSI revision: 04 
> [root at low-san-903 data1]# echo "scsi add-single-device 3 0 0 3"
> > /proc/scsi/scsi
> 
> Any other thoughts?
> 
> Aaron
> 
> On 5/4/06, Jones, Chris <chris.jones at atmosenergy.com> wrote:
>         You can load and then unload the HPA driver then watch your
>         dmesg output to see if it shows up. I have never had any luck
>         with luns just showing up.
>         
>          
>         
>                                        
>         ______________________________________________________________
>         
>         From:linux-poweredge-bounces at dell.com [mailto:linux-poweredge-
>         bounces at dell.com] On Behalf Of A Cline
>         
>         
>         
>         Sent: Thursday, May 04, 2006 4:22 PM
>         
>         To: linux-poweredge at dell.com
>         
>         Subject: New LUN available on Linux without reboot
>         
>          
>         
>         Hi all:
>         
>         I made a new LUN on a SAN (EMC, Navisphere).  I gave the LUN
>         to a storage group.  How can I get Linux to see the LUN as a
>         disk (without a reboot) so that I can then get PowerPath to
>         make a device and then add it to a LVM disk?  
>         
>         Anyone ever done this?
>         
>         Aaron
>         
>         
> 
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq



More information about the Linux-PowerEdge mailing list