1. Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING) Click the link to access ADSM.ORG Acceptable Use Policy and forum rules which should be observed when using this website. Violators may be banned from this website. This message will disappear after you have made at least 12 posts. Thank you for your cooperation.

How can I check out multiple volumes using the VOLlist command?

Discussion in 'Tape / Media Library' started by MediaGuy, Dec 8, 2012.

  1. MediaGuy

    MediaGuy New Member

    Joined:
    Dec 8, 2012
    Messages:
    2
    Likes Received:
    0
    Hello,

    I am fairly new to TSM. Just about every Friday, I have to eject around 100 plus volumes to make room for scratch- currently I am doing this one at a time, and it is time consuming.

    My question is, how can I use the VOLlist cmd properly? Do I need to create a file with the volumes I intend to eject before this cmd will work?

    Thanks for your help.
     
  2.  
  3. moon-buddy

    moon-buddy Moderator

    Joined:
    Aug 24, 2005
    Messages:
    6,177
    Likes Received:
    277
    Occupation:
    Electronics Engineer, Security Professional
    Location:
    Somewhere in the US
    If your library is equipped with a multi I/O slot:

    checkout libvol <library_name> remove=bulk voll=c:\file.txt checkl=no waitt=0

    file.txt contains:

    VOL1
    VOL2
    VOL3
    .
    .
    .

    The number of tapes ejected at a time will be limited to the number of I/O slots. After removing the tapes and closing the I/O door, the next batch is ejected, and so on.

    The big question: why is that you have to eject this big number of tapes every week? Are these copy tapes? If they are, you should really be checking out daily. If they are not copy tapes, there is something fundamentally wrong with your TSM setup - as online tapes should be kept in the library.
     
    MediaGuy likes this.
  4. LED888

    LED888 Moderator

    Joined:
    Oct 15, 2002
    Messages:
    684
    Likes Received:
    49
    Alt solution:
    Physically remove the 100 tapes from the library.
    Then from the TSM Server issue audit library.

    NOTE: The AUDIT LIBRARY command does not automatically add new volumes to a library. To add new volumes, you must use the CHECKIN LIBVOLUME command.

    Like moon-buddy inquire - why are we checking out soooo many tapes?
    Legal wants to keep the data forever?

    Good Luck,
    Sias
     
  5. MediaGuy

    MediaGuy New Member

    Joined:
    Dec 8, 2012
    Messages:
    2
    Likes Received:
    0
    Thanks YOU guys are awesome! I will try this out on Friday. Can I use a simuliar cmd to update the access of volumes? For example, when I eject volumes, I turn around and update those volumes to read-only. Again very time consuming....ugh.

    To answer your question, these are private vols (not always 100-but seems like it has been over the past few weeks) with a read date of over 60 days that I eject out. We have daily ejects (copies), but to prevent weekend tape movement; I have to get our scratch counts (in multiple instances) up, to hold us until Monday.

    Thanks for your time!
     
  6. axisminden

    axisminden New Member

    Joined:
    Mar 18, 2008
    Messages:
    170
    Likes Received:
    4
    Location:
    Minden
    Hi,
    this is what i'm use to checkout tapes. you can change to read the Vollist. The are update to acc=offsite in one step.
    $1 are spaceholder if run the script as batch for one tape. then syntax is batch tape nr.

    CHECKOUT LIBVOLUME YourStgp $1 CHECKLABEL=Yes FORCE=NO REMOVE=bulk
    if (rc_ok)
    upd vol $1 access=offsite wherestgpool=Yourstgp wheredevclass=YourDevclass

    michael
     
  7. chad_small

    chad_small Moderator

    Joined:
    Dec 17, 2002
    Messages:
    2,205
    Likes Received:
    44
    Occupation:
    AIX/SAN/TSM
    Location:
    Gilbert, AZ
    Sounds like you either need additional frames or need to switch to a disk based dedupe solution.
     

Share This Page