AIX

 View Only
  • 1.  mkcd is failed to convert the mksysb image to cd

    Posted Wed December 06, 2023 11:51 PM

    Hi ,

    I am trying to mkcd for a mksysb backup image, get below error

    mkcd -m /home/<mksysb backup image> -S -L -I /backup

    itializing mkcd log: /var/adm/ras/mkcd.log...
    Verifying command parameters...
    Creating temporary file system: /mkcd/cd_fs...
    Populating the CD or DVD file system...
    Building chrp boot image...
    /usr/sbin/bosboot[62]: /usr/bin/sed:  not found
    /usr/sbin/bosboot[17]: /usr/bin/sed:  not found
    /usr/sbin/bosboot[51]: /usr/bin/sed:  not found
    Filesystem Helper: Implementation-specific error, code =  (112)

    0301-155 bosboot: mkfs failed for /tmp/bosboot_13828604_30617/Bootram.fs.
    mv: 0653-401 Cannot rename /mkcd/cd_fs/14418428/cd.bi to /mkcd/cd_fs/14418428/ppc/chrp/bootfile.exe:
                 A file or directory in the path name does not exist.
    0512-300 mkcd: Error in routine: build_boot_images.

    I've been use it in several servers, just got issue on this AIX 7.2 server. 


    Cleaning up...
    Removing temporary file system: /mkcd/cd_fs...

    I appreciate your help.



    ------------------------------
    wang chen
    ------------------------------


  • 2.  RE: mkcd is failed to convert the mksysb image to cd

    Posted Thu December 07, 2023 04:14 AM

    Bosboot is encountering issues here. We're executing bosboot from the chroot environment of the mksysb. I'm concerned that the mksysb backup image might be missing the sed binary.



    ------------------------------
    Srikanth Thanneeru
    ------------------------------



  • 3.  RE: mkcd is failed to convert the mksysb image to cd

    IBM Champion
    Posted Thu December 07, 2023 04:16 AM

    Is sed present and executable ?

    ls -al /usr/bin/sed
    -r-xr-xr-x    1 bin      bin           36409 Jul 09 2021  /usr/bin/sed



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------



  • 4.  RE: mkcd is failed to convert the mksysb image to cd

    Posted Thu December 07, 2023 04:37 AM
    During mkcd process, the /mkcd/cd_fs directory is generated. Navigate to that directory and verify the presence of the sed binary.
    # lsfs | grep /mkcd
    /dev/fslv03     --         /mkcd/cd_fs            jfs2  6291456 rw         no   no
    # pwd
    /mkcd/cd_fs/<>
    (0) root @ idevp9-lp14: /mkcd/cd_fs/9372126
    # ls
    OSLEVEL       RPMS          bosinst.data  etc           image.data    installp      ismp          mkcd.data     ppc           root          sbin          udi           usr
    # ls usr/bin/sed
    usr/bin/sed



    ------------------------------
    Srikanth Thanneeru
    ------------------------------



  • 5.  RE: mkcd is failed to convert the mksysb image to cd

    Posted Thu December 07, 2023 06:09 AM

    The first problem in the /usr/bin/sed: not found.

    Have you mucked up the shell environment?
    Try running this as the root user.

    On my AIX

    demo42:nag:/home/nag $ whence sed
    /usr/bin/sed


    demo42:nag:/home/nag $ echo $PATH
    /usr/bin:/etc:/usr/sbin:/usr/ucb:/home/nag/bin:/usr/bin/X11:/sbin:.:/opt/freeware/bin

    Hope this helps,



    ------------------------------
    Nigel Griffiths
    ------------------------------



  • 6.  RE: mkcd is failed to convert the mksysb image to cd

    Posted Thu December 07, 2023 09:01 AM

    Thank you all of your input.

    the image is not include the sed binary which is in the /opt/freware

    I put the sed binary into /usr/bin/sed and remake the image.

    again, Thank you'all



    ------------------------------
    wang chen
    ------------------------------



  • 7.  RE: mkcd is failed to convert the mksysb image to cd

    Posted Thu December 07, 2023 09:09 AM

    While that may work, /usr/bin/sed is typically installed from an AIX installp package, i.e. not as part of the Linux toolbox. I wonder what else is missing from the installation on this LPAR.



    ------------------------------
    Dave Marquardt
    Sr. Software Engineer
    IBM
    Austin TX
    ------------------------------



  • 8.  RE: mkcd is failed to convert the mksysb image to cd

    IBM Champion
    Posted Thu December 07, 2023 09:58 AM

    If /usr/bin/sed was missing, you have a corrupted bos.rte.edit.  You have to fix that, rather than copy the RPM version over.



    ------------------------------
    José Pina Coelho
    IT Specialist at Kyndryl
    ------------------------------