Topic
3 replies Latest Post - ‏2012-12-07T14:52:32Z by sajjadhashimi
SystemAdmin
SystemAdmin
1744 Posts
ACCEPTED ANSWER

Pinned topic cannot make cdrom available to lpar from VIO

‏2012-12-05T08:10:58Z |
hi,

Am new on AIX.
I have to install a new nim server on an lpar. my cdrom was available on VIO server.
I ran these commands:

lsmap -vadapter vhost0 - showed me the output

SVSA Physloc Client Partition ID

--------------------------------------------
vhost0 U8233.E8B.061490P-V1-C3 0x00000003

VTD vtopt0
Status Defined
LUN 0x8100000000000000
Backing device cd0
Physloc U78A0.001.DNWHTH7-P2-D2
Mirrored N/A

then i ran the: mkvdev -f -vdev cd0 -vadapter vhost1, to make the cdrom available to my lpar.
am getting the following error:

Some error messages may contain invalid information
for the Virtual I/O Server environment.

Method error (/usr/lib/methods/cfg_vt_optical):
0514-027 The specified device is in the wrong state to
perform the requested function.

$ lsmap -vadapter vhost0
SVSA Physloc Client Partition ID

--------------------------------------------
vhost0 U8233.E8B.061490P-V1-C3 0x00000003

VTD NO VIRTUAL TARGET DEVICE FOUND
Please someone advise, how to proceed as am stuck.
Updated on 2012-12-07T14:52:32Z at 2012-12-07T14:52:32Z by sajjadhashimi
  • SystemAdmin
    SystemAdmin
    1744 Posts
    ACCEPTED ANSWER

    Re: cannot make cdrom available to lpar from VIO

    ‏2012-12-05T16:55:46Z  in response to SystemAdmin
    It looks like the state of your vtopt0 before you did the mkvdev -f was in Defined state - that indicates something is wrong.

    Look at the state of the cd0 itself (lsdev | grep cd0). Is it in Defined state? If so - are you sure you actually have the cd assigned to the VIOS partition itself?
  • SystemAdmin
    SystemAdmin
    1744 Posts
    ACCEPTED ANSWER

    Re: cannot make cdrom available to lpar from VIO

    ‏2012-12-07T00:14:50Z  in response to SystemAdmin
    Have you considered using a Virtual Media Repository (see mkrep). You can then use the mkvopt command to copy the contents of the CD into a virtual optical device. You can then use the loadopt command to copy from the virtual media repository to vopt0.
  • sajjadhashimi
    sajjadhashimi
    10 Posts
    ACCEPTED ANSWER

    Re: cannot make cdrom available to lpar from VIO

    ‏2012-12-07T14:52:32Z  in response to SystemAdmin
    I do not completely follow what you are doing here, I recommend try deleting what you have and recreate/assign vtopt0 to vhost0, try this;

    rmvdev -vtd vtopt0

    mkvopt -name <filename>.iso -dev cd0 -ro
    where <filename> is what you want to call the file.

    mkvdev -fbo -vadapter vhost0

    (should see message: vtopt0 Available)

    loadopt -vtd vtopt0 -disk <filename>