AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  iSCSI LUNs missing on reboot

    Posted Wed February 16, 2011 03:31 PM

    Originally posted by: c_k_3


    I'm having a weird iSCSI issue on AIX 6.1. I'm using the software iSCSI Initiator to access a single target with 18 LUNs. On boot the first two LUNs are not properly acquired:

    1. lsdev |grep hdisk
    hdisk0 Available Virtual SCSI Disk Drive
    hdisk1 Defined Other iSCSI Disk Drive
    hdisk2 Defined Other iSCSI Disk Drive
    hdisk3 Available Other iSCSI Disk Drive
    hdisk4 Available Other iSCSI Disk Drive
    hdisk5 Available Other iSCSI Disk Drive
    hdisk6 Available Other iSCSI Disk Drive
    http://...

    Running cfgmgr doesn't seem to help any. I did a little digging through the output of "cfgmgr -v" and found this:


    attempting to configure device 'iscsi0'
    Time: 1 LEDS: 0x25b0
    invoking /usr/lib/methods/cfgiscsi -l iscsi0
    Number of running methods: 1

    Completed method for: iscsi0, Elapsed time = 0
    return code = 0
    • stdout ***********
    hdisk17 hdisk18 hdisk3 hdisk4 hdisk5 hdisk6 hdisk7 hdisk8 hdisk9 hdisk10 hdisk11
    hdisk12 hdisk13 hdisk15 hdisk16 hdisk19
    • no stderr ***********

    The first thing I noticed there is that hdisk1 and hdisk2 are missing. It looks like after that step cfgmgr goes through and runs "/usr/lib/methods/cfgscsidisk -l <disk>" for each disk returned by cfgiscsi. I tried manually running cfgscsidisk against the missing disks and that worked:
    1. /usr/lib/methods/cfgscsidisk -l hdisk1
    2. /usr/lib/methods/cfgscsidisk -l hdisk2
    3. lsdev |grep hdisk
    hdisk0 Available Virtual SCSI Disk Drive
    hdisk1 Available Other iSCSI Disk Drive
    hdisk2 Available Other iSCSI Disk Drive
    hdisk3 Available Other iSCSI Disk Drive
    hdisk4 Available Other iSCSI Disk Drive
    http://...

    At this point I can read and write from the devices fine, but they only stick around until I reboot. After that they're back to being Defined rather than Available.

    Any ideas as to what might be going on? Any help would be greatly appreciated.

    -Charles


  • 2.  Re: iSCSI LUNs missing on reboot

    Posted Wed February 16, 2011 03:33 PM

    Originally posted by: c_k_3


    Sorry, it looks like some of that command output got mangled by the forum tag system. I'm trying to figure out how to fix it. In the meantime if anything is unclear let me know.

    Thanks again!

    -Charles