AIX

 View Only
  • 1.  Create a spot of a mksysb - fail - 0511-126 Cannot open

    Posted Tue June 05, 2012 04:22 AM

    Originally posted by: Tux11


    Hello,
    we have a NIM Server with AIX 6100-07-02-1150.
    I created a mksysb of a LPAR with AIX 6100-06-05-1115.
    Tryed to create a spot of this mksysb to install another LPAR with it.
    (smitty nim_mkres)

    But i get this errors:

    Creating SPOT in "/export/spot" on machine "master" from "/export/images/lpar2_040612" ...

    Restoring files from BOS image. This may take several minutes ...

    0042-001 nim: processing error encountered on "master":
    0042-001 m_mkspot: processing error encountered on "master":
    0042-175 c_mkspot: An unexpected result was returned by the "/usr/sbin/restbyname" command:
    restore: 0511-126 Cannot open /export/images/lpar2_040612/usr/sys/inst.images/bos: A parameter must be a directory.
    Mount volume 1 on /export/images/lpar2_040612/usr/sys/inst.images/bos.
    Press the Enter key to continue.

    i tryed commandline to:

    nim -o define -t spot -a source=/export/images/lpar2_040612 -a server=master -a location=/export/spot lpar2_040612_spot

    get the same error
    what is the problem ?
    thanks


  • 2.  Re: Create a spot of a mksysb - fail - 0511-126 Cannot open

    Posted Tue June 05, 2012 12:46 PM

    Originally posted by: ostost


    Maybe your mksysb file is corrupt. Try a restore -Tqvf <mksysbfilename> . If it shows an error recreate the mksysb.


  • 3.  Re: Create a spot of a mksysb - fail - 0511-126 Cannot open

    Posted Wed June 06, 2012 04:21 AM

    Originally posted by: PontiacGeronimo


    definitely sounds your mksysb is corrupted.

    I had similiar problem doing spot of VIOS mksysb image attached to VIO installation media (there was third smaller file - part of mksysb file - which also had to be appaneded to the output file (cat) )


  • 4.  Re: Create a spot of a mksysb - fail - 0511-126 Cannot open

    Posted Fri July 31, 2015 05:26 AM

    Originally posted by: adold


    Hi,

    I just had the same problem with an ios_mksysb.

    The problem is not that the image is broken. The problem is the wrong source parameter.

    You have to first define the mksysb as NIM resource.

    When defining the spot, you need to specify the nim name of the mksysb, not the path of the mksysb file.

    In above case you should define nim resource lpar2_040612_mksysb, then run
    nim -o define -t spot -a source=lpar2_040612_mksysb -a server=master -a location=/export/spot lpar2_040612_spot



  • 5.  Re: Create a spot of a mksysb - fail - 0511-126 Cannot open

    Posted Wed September 02, 2015 05:04 AM

    Originally posted by: Wouter Liefting


    One thing to be aware of when dealing with mksysbs and NIM in general, is that AIX by default imposes a 2 GB file limit on all files created by all users. You can change this limit in /etc/security/limits, but this needs to be done both on the NIM clients and on the NIM server.

    Otherwise you end up with mksysb files that are clipped at 2 GB.



  • 6.  RE: Re: Create a spot of a mksysb - fail - 0511-126 Cannot open

    Posted 13 days ago

    thank you.  that's the mistake i was making.



    ------------------------------
    Tom Lyon
    ------------------------------