Discussion:
adding lun without reboot
yaşar tunçez
2014-05-22 18:06:23 UTC
Permalink
Hi,

I cannot adding a new disk (from storage unit) on Rhel 5.5 without reboot.

I run below command;
echo "1" > /sys/class/fc_host/host(x)/issue_lip

But, it appears "Devloss timeout on WWPN xxxxxx" messages on
/var/log/message.

hba: emulex

Thanks.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Widyachacra Rajapaksha
2014-05-22 18:33:06 UTC
Permalink
Hello,

Try running below;

This command will work for 'emulex' hba cards;

#echo "- - -" > /sys/class/scsi_host/host*/scan



-Chacra

Widyachacra Rajapaksha



From: yaşar tunçez <***@gmail.com>
To: General Red Hat Linux discussion list <redhat-***@redhat.com>
Date: 05/22/2014 11:39 PM
Subject: adding lun without reboot
Sent by: redhat-list-***@redhat.com



Hi,

I cannot adding a new disk (from storage unit) on Rhel 5.5 without reboot.

I run below command;
echo "1" > /sys/class/fc_host/host(x)/issue_lip

But, it appears "Devloss timeout on WWPN xxxxxx" messages on
/var/log/message.

hba: emulex

Thanks.
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
yaşar tunçez
2014-05-22 18:50:17 UTC
Permalink
Hello,

I've ran that command, but it didn't show new lun.

Thanks.
Post by Widyachacra Rajapaksha
Hello,
Try running below;
This command will work for 'emulex' hba cards;
#echo "- - -" > /sys/class/scsi_host/host*/scan
-Chacra
Widyachacra Rajapaksha
Date: 05/22/2014 11:39 PM
Subject: adding lun without reboot
Hi,
I cannot adding a new disk (from storage unit) on Rhel 5.5 without reboot.
I run below command;
echo "1" > /sys/class/fc_host/host(x)/issue_lip
But, it appears "Devloss timeout on WWPN xxxxxx" messages on
/var/log/message.
hba: emulex
Thanks.
--
redhat-list mailing list
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/
Jonathan Billings
2014-05-22 18:53:31 UTC
Permalink
On Thu, May 22, 2014 at 2:33 PM, Widyachacra Rajapaksha
Post by Widyachacra Rajapaksha
#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 <***@umich.edu>
College of Engineering - CAEN - Unix and Linux Support
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
yaşar tunçez
2014-05-22 19:00:35 UTC
Permalink
I didn't use host*, I used host0, host1 etc.
Post by Jonathan Billings
On Thu, May 22, 2014 at 2:33 PM, Widyachacra Rajapaksha
Post by Widyachacra Rajapaksha
#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.
--
College of Engineering - CAEN - Unix and Linux Support
--
redhat-list mailing list
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Surendra Kumar
2014-05-23 05:22:32 UTC
Permalink
hi yasar,

kindly use the systools

http://www.cyberciti.biz/faq/linux-find-fibre-channel-device-information/


Thanks
surendra kumar
mobile no:+919540105214
Post by yaşar tunçez
Hi,
I cannot adding a new disk (from storage unit) on Rhel 5.5 without reboot.
I run below command;
echo "1" > /sys/class/fc_host/host(x)/issue_lip
But, it appears "Devloss timeout on WWPN xxxxxx" messages on
/var/log/message.
hba: emulex
Thanks.
--
redhat-list mailing list
https://www.redhat.com/mailman/listinfo/redhat-list
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/ma
Barry Brimer
2014-05-23 05:48:24 UTC
Permalink
Post by yaşar tunçez
I cannot adding a new disk (from storage unit) on Rhel 5.5 without reboot.
Did you try runnung "scsi-rescan" as root? In some cases it needs to be
run twice.

Barry
--
redhat-list mailing list
unsubscribe mailto:redhat-list-***@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
Loading...