AIX

AIX

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


#Power
 View Only
  • 1.  Change tape on command Line

    Posted Sun September 11, 2011 10:21 AM

    Originally posted by: donver83


    Hello everyone
    i am building a script to send my database backups to tape everyday and it is been working fine but the only problem i have is that every Monday i have to manually change the tape logging into the web console and change the tape.
    I would like to know if there is a way to change the tape on command line lets say i am working this week on the AGP742L and on monday i want to change to the AGP743L
    If anyone knows how please help!
    Thanks for your help in advance
    #AIX-Forum


  • 2.  Re: Change tape on command Line

    Posted Sun September 11, 2011 11:48 PM

    Originally posted by: SystemAdmin


    Hi,

    It's probably something that you can incorporate into your script using the "tapeutil" application. It used to come with the Atape driver, but has now been moved to IBM Tape Diagnostic Tool (ITDT). You can download the IBM Tape Diagnostic Tool from FixCentral using the following menus (Storage Systems > Tape Systems > Tape Device Drivers and Software > Tape Diagnostic Tool (ITDT) > AIX).

    You can also find the installation and user guide here https://www-304.ibm.com/support/docview.wss?rs=577&uid=ssg1S7002972

    In short, you should be able to do something like;

    tapeutil -f /dev/rmt0 mount 1 <-- Will load the drive with tape in slot location 1
    tapeutil -f /dev/rmt0 unmount 1 <-- Will unload the drive and put the tape in slot location 1

    I don't have it installed in the environment that I'm working in now, but from memory that's how it worked. You might be able to tapeutil -h to get more help. I think you'll need to open the device (/dev/rmt0) first before you can perform read/write operations to it.

    Let me know how you go.

    -Kristijan
    #AIX-Forum


  • 3.  Re: Change tape on command Line

    Posted Sun September 11, 2011 11:54 PM

    Originally posted by: SystemAdmin


    Further more, here is something that I stumbled across. It's old, but may still be relevant http://ps-2.kev009.com:8081/eprmhtml/epr3e/h16448.htm

    -Kristijan
    #AIX-Forum