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:
-
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
hdisk17 hdisk18 hdisk3 hdisk4 hdisk5 hdisk6 hdisk7 hdisk8 hdisk9 hdisk10 hdisk11
hdisk12 hdisk13 hdisk15 hdisk16 hdisk19
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:
-
/usr/lib/methods/cfgscsidisk -l hdisk1
-
/usr/lib/methods/cfgscsidisk -l hdisk2
-
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