Highlighted
DanPJ
2 Iron

How to add/remove LUNs from Linux server without reboot

Jump to solution

I  have a Red Hat 5.8 Linux server running Emulex software and I need to able to present LUNs without rebooting. By searching the knowledge base, I find articles pointing to "emc77913" which no longer seems to exist. Does anyone have a doc that explains this issue?  I wish I can go back to Solaris.  .

Labels (1)
1 Solution

Accepted Solutions
dynamox
6 Gallium

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

very likely, does it mean that you have 4 Emulex HBAs ..or 2 dual port cards ? lpfc means emulex

0 Kudos
10 Replies
dynamox
6 Gallium

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

echo "1" > /sys/class/fc_host/host0/issue_lip

echo "- - -" > /sys/class/scsi_host/host0/scan

echo "1" > /sys/class/fc_host/host1/issue_lip

echo "- - -" > /sys/class/scsi_host/host1/scan

where host0 and host1 represent your HBA adapters

0 Kudos
DanPJ
2 Iron

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

I don't have host0 or host1. Can I get the adapter number from "powermt display dev=all". I guess I would have 5 & 7, correct?

7 lpfc                     sdaf      SP B1     active  alive       0      0

5 lpfc                     sde       SP B2     active  alive       0      0

5 lpfc                     sdn       SP A1     active  alive       0      0

7 lpfc                     sdw       SP A2     active  alive       0      0

0 Kudos
Ppal
1 Copper

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

I agree with dynamox, but I will also suggest you to check the compatibility of your Emulex HBA software and Device Firmware with RHEL 5.8 installed kernel. Sometimes the OS does not detect the LUNs after scan if there is a mismatch in the Firmware and installed Kernel version.

dynamox
6 Gallium

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

can you run ls in this directory and see what they are?

/sys/class/fc_host/

0 Kudos
DanPJ
2 Iron

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

I will check, thanks.

0 Kudos
DanPJ
2 Iron

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

Not really. I have two Emulex cards and two QLogics (used for tape). I'm only concerned about the Emulex cards. So, I figured the powermt output would show which HBA references I need.

drwxr-xr-x 3 root root 0 Nov 27 09:13 host10

drwxr-xr-x 3 root root 0 Dec  3 09:51 host5

drwxr-xr-x 3 root root 0 Nov 27 09:14 host6

drwxr-xr-x 3 root root 0 Nov 27 09:14 host7

drwxr-xr-x 3 root root 0 Nov 27 09:14 host8

drwxr-xr-x 3 root root 0 Nov 27 09:13 host9

0 Kudos
dynamox
6 Gallium

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

ok, try to run that command on host5 and host7

0 Kudos
DanPJ
2 Iron

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

So, you agree that I can find the HBA instance number from the powermt output?

0 Kudos
dynamox
6 Gallium

Re: How to add/remove LUNs from Linux server without reboot

Jump to solution

very likely, does it mean that you have 4 Emulex HBAs ..or 2 dual port cards ? lpfc means emulex

0 Kudos