Results 1 to 6 of 6
  1. #1
    Newcomer joshmo's Avatar
    Join Date
    Jul 2010
    Location
    Cardiff, Wales, UK
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Deleting an orphaned volume

    Hi,

    I've recently upgraded the tape libraries on our TSM instalation as part of this I migrated the storage pools associated with the old tape library to new storagepools using the new tape library device class.

    Have complete this operation I am left with one empty volume that is part of one of the old storage pools that I can't delete.

    I've tried the folowing:

    1: del volume hf6454l4 discard=yes

    This fails with an error saying that the volume state is mountablenotinlib.

    2: Tried the move media command to update the state above.

    move media hf6454l4 stg=* wherestate=mountablenotinlib

    This also fails with an error that the old library is not defined (I've already deleted the old library, may be a bad move in hindsight!)

    Anyone have any other ways I can delete this volume reference. BTW this is stopping me from deleting the old storagepool this volume is in aswell.

    Thanks!

  2. #2
    Moderator Harry_Redl's Avatar
    Join Date
    Dec 2003
    Location
    Czech Republic
    Posts
    2,220
    Thanks
    3
    Thanked 99 Times in 98 Posts

    Default

    Hi,

    try to update the access to "readwrite"
    upd vol HF6454L4 acc=readw
    and then try to delete it again (in case it is empty it may be deleted immediately you change the access mode)
    Show us the complete actlog part where you change the access and try to delete it - so we can see all the errors.
    Attaching "q vol HF6454L4 f=d" would be helpful as well.

    Hope it helps

    Harry

  3. #3
    Newcomer joshmo's Avatar
    Join Date
    Jul 2010
    Location
    Cardiff, Wales, UK
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry for the late reply, here are the details.

    The volume is already in read/write access

    tsm: HGA160>q vol HF6454L4 f=d
    Volume Name: HF6454L4
    Storage Pool Name: VIRTUALVOLSOLD
    Device Class Name: HHH_LT04
    Estimated Capacity: 0.0 M
    Scaled Capacity Applied:
    Pct Util: 0.0
    Volume Status: Empty
    Access: Read/Write
    Pct. Reclaimable Space: 0.0
    Scratch Volume?: Yes
    In Error State?: No
    Number of Writable Sides: 1
    Number of Times Mounted: 6
    Write Pass Number: 1
    Approx. Date Last Written: 11/20/2010 14:09:25
    Approx. Date Last Read: 11/19/2010 01:50:35
    Date Became Pending:
    Number of Write Errors: 0
    Number of Read Errors: 0
    Volume Location: tapesafe
    Volume is MVS Lanfree Capable : No
    Last Update by (administrator): ADMIN
    Last Update Date/Time: 07/04/2011 11:16:35
    Begin Reclaim Period:
    End Reclaim Period:
    Drive Encryption Key Manager: None

    When trying to delete.....


    09/09/2011 15:04:27 ANR2017I Administrator ADMIN issued command: DELETE VOLUME
    HF6454L4 (SESSION: 69890)
    09/09/2011 15:04:28 ANR2017I Administrator ADMIN issued command: DELETE VOLUME
    HF6454L4 (SESSION: 69890)
    09/09/2011 15:04:29 ANR1425W Scratch volume HF6454L4 is empty but will not be
    deleted - volume state is "mountablenotinlib". (SESSION:
    69890)

    So try to change the volume state to mountableinlib by moving media...
    ...
    ANR2017I Administrator ADMIN issued command: MOVE MEDIA
    HF6454L4 stg=* (SESSION: 69890)
    ANR0984I Process 1029 for MOVE MEDIA started in the
    BACKGROUND at 15:06:56. (SESSION: 69890, PROCESS: 1029)
    ANR0609I MOVE MEDIA started as process 1029. (SESSION:
    69890, PROCESS: 1029)
    ANR0610I MOVE MEDIA started by ADMIN as process 1029.
    (SESSION: 69890, PROCESS: 1029)
    ANR6682I MOVE MEDIA command ended: 0 volumes processed.
    (SESSION: 69890, PROCESS: 1029)
    ANR6691E MOVE MEDIA: No match is found for this move.
    (SESSION: 69890, PROCESS: 1029)
    ANR0611I MOVE MEDIA started by ADMIN as process 1029 has
    ended. (SESSION: 69890, PROCESS: 1029)
    ANR0985I Process 1029 for MOVE MEDIA running in the
    BACKGROUND completed with completion state SUCCESS at
    15:06:56. (SESSION: 69890, PROCESS: 1029)

  4. #4
    Moderator Harry_Redl's Avatar
    Join Date
    Dec 2003
    Location
    Czech Republic
    Posts
    2,220
    Thanks
    3
    Thanked 99 Times in 98 Posts

    Default

    Hi,

    if I understand it correctly there is a stgpool VIRTUALVOLSOLD (is it primary or copy?) and it is defined using (old) device class HHH_LTO4. This device class does not point to any library now (as you said you have deleted it).
    In that case it may be the root of the problem as the MOVE MEDIA does not process volumes in stgpools with no automated library
    STGpool (Required)
    Specifies the name of the sequential access primary or copy storage
    pool that is used to select the volumes for processing. You can use a
    wildcard character to specify the name. All matching storage pools
    are processed. If the storage pool specified is not managed by an
    automated library, no volumes are processed.
    So I would try to update the old devclass with the new library (does not matter - ANY library should do the trick) and then use MOVE MEDIA again.

    Really not sure if it helps - but seems we cannot break it more

    Harry

  5. #5
    Newcomer joshmo's Avatar
    Join Date
    Jul 2010
    Location
    Cardiff, Wales, UK
    Posts
    20
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Excellent idea...

    Still didn't work tho.... Does the tape have to be in the library for this to work?

    ANR0609I MOVE MEDIA started as process 1060. (SESSION:
    71427, PROCESS: 1060)
    ANR0610I MOVE MEDIA started by ADMIN as process 1060.
    (SESSION: 71427, PROCESS: 1060)
    ANR6682I MOVE MEDIA command ended: 0 volumes processed.
    (SESSION: 71427, PROCESS: 1060)
    ANR6691E MOVE MEDIA: No match is found for this move.
    (SESSION: 71427, PROCESS: 1060)
    ANR0611I MOVE MEDIA started by ADMIN as process 1060 has
    ended. (SESSION: 71427, PROCESS: 1060)
    ANR0985I Process 1060 for MOVE MEDIA running in the
    BACKGROUND completed with completion state SUCCESS at
    08:03:04. (SESSION: 71427, PROCESS: 1060)

  6. #6
    Moderator Harry_Redl's Avatar
    Join Date
    Dec 2003
    Location
    Czech Republic
    Posts
    2,220
    Thanks
    3
    Thanked 99 Times in 98 Posts

    Default

    Hi,

    do not know - you may try it (checking the tape back in the library - the new one).
    What about running
    move media hf6454l4 stg=virtualvolsold
    now, when the library is defined ....
    If it does not help, try to check the tape in the library ... if possible.

    Harry

Similar Threads

  1. Deleting data from a volume
    By Rhuobhe in forum Tape / Media Library
    Replies: 5
    Last Post: 07-09-2011, 02:16 PM
  2. Error deleting empty disk volume
    By Bubba31337 in forum TSM Operation
    Replies: 4
    Last Post: 07-06-2009, 10:36 AM
  3. Deleting Volume History t=dbs
    By jharris in forum Performance Tuning
    Replies: 2
    Last Post: 04-17-2007, 12:21 AM
  4. Deleting a database volume
    By OKTSMGURU21 in forum Capacity Planning
    Replies: 1
    Last Post: 07-07-2006, 12:57 PM
  5. deleting a dbbackup volume not in volhistory?
    By jon.milliren in forum Backup / Archive Discussion
    Replies: 2
    Last Post: 11-21-2002, 11:08 AM

Tags for this Thread

Posting Permissions

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