DanPJ

updated

14 years ago

D

DanPJ

2 Intern

•

309 Posts

1

6962

December 3rd, 2012 05:00

How to add/remove LUNs from Linux server without reboot

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.  .

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    2250

    0

    Posted December 3rd, 2012 09:00

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

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    2250

    0

    Posted December 3rd, 2012 06:00

    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

  • DanPJ

    2 Intern

    •

    309 Posts

    2250

    0

    Posted December 3rd, 2012 06:00

    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

  • DanPJ

    2 Intern

    •

    309 Posts

    1417

    0

    Posted December 3rd, 2012 07:00

    I will check, thanks.

  • DanPJ

    2 Intern

    •

    309 Posts

    2250

    0

    Posted December 3rd, 2012 07:00

    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

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    2250

    0

    Posted December 3rd, 2012 07:00

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

    /sys/class/fc_host/

  • dynamox

    11 Legend

    •

    20419 Posts

    •

    87439 Points

    2250

    0

    Posted December 3rd, 2012 08:00

    ok, try to run that command on host5 and host7

  • DanPJ

    2 Intern

    •

    309 Posts

    2250

    0

    Posted December 3rd, 2012 08:00

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

  • DanPJ

    2 Intern

    •

    309 Posts

    1120

    0

    Posted December 3rd, 2012 10:00

    2 dual port Emulex HBAs. Each HBA has one port connected to two SPs.

    Thanks, I will test this shortly.