Re: adding lun without reboot

yaşar tunçez <[email protected]> Thu, 22 May 2014 22:00:35 +0300
Newsgroups gmane.linux.redhat.general
Message-ID <CALjHWrzNHzEObtbeoJXCJxdUrjvKZi55mCq9Gts1sOfySDpH2w@mail.gmail.com>
I didn't use host*, I used host0, host1 etc.


2014-05-22 21:53 GMT+03:00 Jonathan Billings <[email protected]>:

> On Thu, May 22, 2014 at 2:33 PM, Widyachacra Rajapaksha
> <[email protected]>wrote:
>
> > #echo "- - -" > /sys/class/scsi_host/host*/scan
> >
>
> Due to the way Bash I/O redirection works, that probably won't work the way
> you think it does.  If there is a /sys/class/scsi_host/host0 and a
> /sys/class/scsi_host/host1, for example, bash will simply error out with
> "/sys/class/scsi_host/host*/scan: ambiguous redirect".  It gets even more
> fun if you ran 'echo "- - -" > /sys/class/scsi_host/host0/scan
> /sys/class/scsi_host/host1/scan' because that's the equivalent of running
> 'echo "- - -" /sys/class/scsi_host/host1/scan >
> /sys/class/scsi_host/host0/scan'.  EIther way, it's not what you want.
>
> You need to either issue the command against each entry in
> /sys/class/scsi_host/ (manually or with a loop), or figure out which points
> to the device you want to rescan.
>
> --
> Jonathan Billings <[email protected]>
> College of Engineering - CAEN - Unix and Linux Support
> --
> redhat-list mailing list
> unsubscribe mailto:[email protected]?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>
-- 
redhat-list mailing list
unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list