AIX

AIX

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

 View Only
  • 1.  iSCSI SAN setup - initiating from AIX

    Posted Thu June 18, 2009 12:38 PM

    Originally posted by: SystemAdmin


    I have a SAN set up to serve iSCSI disks, and I am having trouble using our AIX server to connect to it. I believe I have the initiator setup properly in SMIT, and the /etc/iscsi/targets file set up. The system shows /dev/iscsi0 exists. The command lspv shows it has created hdisk2 (hdisk0 and hdisk1 are local, mirroring volumes), but it is not assigned a pvid, and volume group shows 'none'.

    I've tried several troubleshooting steps over the last few days, I don't know where to start listing them.

    Anyone knowledgeable about this sort of thing able to lend a hand?


  • 2.  Re: iSCSI SAN setup - initiating from AIX

    Posted Thu June 18, 2009 08:34 PM

    Originally posted by: dukessd


    "The command lspv shows it has created hdisk2"
    "but it is not assigned a pvid, and volume group shows 'none'"

    Is there a volume group on the disk?
    Any 'new' disk would not have either of these.
    If it is a blank disk then use mkvg to create your new vg on the disk or use importvg to pick up this information.

    How did you check for a pvid or vg on the disk and what was the command used and its output?


  • 3.  Re: iSCSI SAN setup - initiating from AIX

    Posted Fri June 19, 2009 12:26 PM

    Originally posted by: SystemAdmin


    Trying to use mkvg gets the following:

    0516-1182 mkvg Open Failure on hdisk2.
    0516-862 mkvg: Unable to create volume group.

    importvg generates:

    0516-024 lqueryvg: Unable to open physical volume.
    Either PV was not configured or could not be opened. Run
    diagnostics.
    0516-024 lqueryvg: Unable to open physical volume.
    Either PV was not configured or could not be opened. Run
    diagnostics.
    0516-1140 importvg: Unable to read the volume group descriptor area
    on specified physical volume.
    Actually, these are new results... a previous attempt to run these commands resulted in admonishes to run varyonvg, which also failed (though I can't recall the exact error).

    I am sorry my issue statement is not more complete. I've been working on this for some time, and I've tried an awful lot of things with varying results. I didn't document very well what I was doing, and I can't recall it all, let alone pick out what is relevant or not.