Results 1 to 12 of 12
  1. #1
    Member
    Join Date
    Nov 2002
    Location
    Cambridge Ontario Canada
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am trying to find a way to list the volumes required to restore a file or filespace.



    I do not have the library capacity to have all tapes in the library at the same time,

    so there are a few tapes not in. I would like to run a command to list all volumes

    required before I try the restore, so I can check in all required volumes before

    running the restore, thus minimizing checking the actlog for unavailable volumes and

    running to the library to checkin a required tape.



    Regards,

    John

  2. #2
    Member
    Join Date
    Mar 2003
    Location
    Birmingham, AL
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This should help narrow it down, tape-wise. I'm sure there is a better way, but this command has helped me find tapes that were not necessarily already in the library (like you said). Hope this helps...



    select distinct node_name,volume_name from volumeusage where node_name=’YOURNODE’ and stgpool_name=’YOUR_STGPOOL’

  3. #3
    Member
    Join Date
    Nov 2002
    Location
    Cambridge Ontario Canada
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the hint. If I find a solution I will let you know.



    Regards,

    John Wade

  4. #4
    Member
    Join Date
    Sep 2002
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hello,

    You could also try this - QUERY NODEDATA Nodename stg=storgepoolname

  5. #5
    Member
    Join Date
    May 2004
    Location
    Western Washingtion, USA
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Tried that just out of curiosity, doesn't work. I get UNKOWN COMMAND - QUERY NODEDATA.



    This is of interest to me because we're going through a big DR project here and while I've been able to get a list of copy pool tapes using q vol * stgp=<stgp name>, I would like a listing of what tapes have which filesystems on them. Hm...something like q occu but one that has actual volume names instead of just the stgp name. And I simply don't have the time to master the SQL involved, a situation I'm sure plenty of others are in. Nothing in Code Relief addresses this. Anyone?



    <TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Quote:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><BLOCKQUOTE>Hello,

    You could also try this - QUERY NODEDATA Nodename stg=storgepoolname</BLOCKQUOTE></FONT></TD></TR><TR><TD><HR></TD></TR></TABLE>

  6. #6
    Member
    Join Date
    Jan 2003
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The quickest way I know is to actually run the restore and it will fail because the tapes are not available. In the activity log or in an operator window (dsmadmc -mountmode) the volumes required will be listed.

  7. #7
    Member
    Join Date
    Mar 2003
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The Query Nodedata command is new to TSM Server version 5.3.



    CBell's Select statement works quite nicely. I just used it to narrow down the volume count of the DR tapes we need to send to our recovery site for a DR test we'll be running this weekend. The DR storage pool is pretty large, but we're only going to be recovering data from one client node after we rebuild the TSM server. The select command reduced the number of tapes to be shipped across the country by 75%.



    Thanks, CBell!

  8. #8
    Senior Member
    Join Date
    Mar 2003
    Location
    Philadelphia
    Posts
    264
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    CBell. Thanks for sharing the scripts man. IT will save me some time.



    Many thanks.

  9. #9
    Member
    Join Date
    May 2004
    Location
    Western Washingtion, USA
    Posts
    67
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Here's something I came across after some (very) quick research:



    First get a listing of offsite tapes



    q vol * stgp=&lt;name of your copy pool>



    Then to find a particular node's files on any of the tapes listed,



    q cont &lt;volume name> node=&lt;yournode>



    It's not quick if you have a lot of tapes, and I haven't looked for a way of querying the whole copy pool and picking out the contents and which volumes they're on, and unfortunately don't have the time to devote to finding out. I do hope this will be of use though, and maybe stimulate someone with much deeper SQL knowledge than I will ever have to post some code that would do this .

  10. #10

    Default

    This is the script I use to identify which tapes a client has data stored on. Any select statement that attempts to identify which tape a client's particular file is on, would be incredibly DB intensive.



    select volumeusage.volume_name, -

    volumes.access, -

    volumes.error_state, -

    volumeusage.stgpool_name -

    from volumeusage,volumes -

    where volumeusage.node_name=upper('$1') and -

    volumeusage.volume_name=volumes.volume_name -

    group by volumeusage.volume_name, -

    volumeusage.stgpool_name, -

    volumes.access, -

    volumes.error_state -

    order by volume_name



    Define a new administrative script and copy this into the body. Then run it and pass the client name as a parameter.

  11. #11

    Default





    A simpler select statment to find out what tapes contains data for a node.



    select volume_name from volumusage where node_name='NODE_NAME' group by volume_name



    -Good Luck

    Sias

  12. #12

    Default

    I'm in a similar spot, testing disaster recovery. Same issue here, library too small, tapepool tapes checked out and sitting in a safe, etc. Do any of the select statements below take into account active files only? If I'm restoring a certain node, it's possible 90% of my tapes contain something from a certain node. That's way more tapepool tapes than I have room to mount.

Similar Threads

  1. Replies: 0
    Last Post: 08-15-2006, 03:22 PM
  2. Restore Database - How to from 5.1.7.1 to 5.3.3 system?
    By whitehall in forum Restore / Recovery Discussion
    Replies: 1
    Last Post: 05-09-2006, 02:50 PM
  3. Very slow TDP for SAP restore from Virtual Volumes
    By psorrent in forum Restore / Recovery Discussion
    Replies: 0
    Last Post: 07-20-2005, 12:31 AM
  4. Restore Tape volumes needed
    By hmason300 in forum Backup / Archive Discussion
    Replies: 3
    Last Post: 04-12-2004, 12:42 PM
  5. Auditing of storage pools required after restore
    By JORDI in forum Disaster Recovery Module
    Replies: 0
    Last Post: 07-11-2003, 07:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •