Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
Expand all | Collapse all

/usr/bin/readcd: Invalid argument. Cannot send SCSI cmd via ioctl

  • 1.  /usr/bin/readcd: Invalid argument. Cannot send SCSI cmd via ioctl

    Posted Tue February 12, 2019 06:14 PM

    Originally posted by: rhatch


    I have a client that is attempting to create a mksysb backup to DVD, using mkdvd.  I have been able to trace the problem to the readcd command:

    /usr/bin/readcd -w dev=1,0 f=/mkcd/cd_images/cd_image_21037506

    Capacity: 2236704 Blocks = 4473408 kBytes = 4368 MBytes = 4580 prMB
    Sectorsize: 2048 Bytes

    Copy from file '/mkcd/cd_images/cd_image_21037506' to SCSI (0,1,0) disk
    end: 2236704
    /usr/bin/readcd: Invalid argument. Cannot send SCSI cmd via ioctl

     

    At first, I thought this might be a problem with the DVD-RAM media, but the problem persists after replacing the media.

     

    Can you offer any assistance with this issue?

     

    More information:

    oslevel -s --> 7200-02-02

    # what /usr/bin/readcd
    /usr/bin/readcd:
            61      1.15  src/bos/usr/ccs/lib/libc/__threads_init.c, libcthrd, bos53H, h2006_10B1 3/5/06 16:44:58
            readcd.c        1.20 00/07/20 Copyright 1987 J. Schilling
            scsihack.c      1.28 00/06/30 Copyright 1997 J. Schilling
            scsi-aix.c      1.22 00/07/01 Copyright 1997 J. Schilling
            scsitransp.c    1.53 00/07/01 Copyright 1988,1995,2000 J. Schilling
            scsierrs.c      2.22 00/05/07 Copyright 1987-1996 J. Schilling
            scsi_cdr.c      1.93 00/07/02 Copyright 1995 J. Schilling
            modes.c 1.14 00/05/07 Copyright 1988 J. Schilling
            cd_misc.c       1.8 00/07/02 Copyright 1997 J. Schilling
            io.c    1.19 98/10/10 Copyright 1988 J. Schilling
            cmpbytes.c      1.13 00/05/07 Copyright 1988 J. Schilling
            getargs.c       2.28 00/05/20 Copyright 1985, 1988, 1995 J. Schilling
            scsiopen.c      1.82 00/06/23 Copyright 1995 J. Schilling

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 2.  Re: /usr/bin/readcd: Invalid argument. Cannot send SCSI cmd via ioctl

    Posted Wed February 13, 2019 07:56 AM

    Originally posted by: sangameshm


    We will look into it and get back to you soon.

     

    Thanks,

    Sangamesh


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 3.  Re: /usr/bin/readcd: Invalid argument. Cannot send SCSI cmd via ioctl

    Posted Fri February 15, 2019 01:10 PM

    Originally posted by: sangameshm


    Please  open a PMR for this issue.

    Since readcd is part of AIX base lpp package it will be handled via the AIX support.

     

    Thanks,

    Sangamesh

     


    #AIX-Open-Source-Software
    #AIXOpenSource