1. Community Tip: Please Give Thanks to Those Sharing Their Knowledge.
    If you receive helpful answer on this forum, please show thanks to the poster by clicking "LIKE" link for the answer that you found helpful.
  2. Community Tip: Forum Rules (PLEASE CLICK HERE TO READ BEFORE POSTING)
    Click the link above 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 notice will disappear after you have made at least 3 posts.

Deleting a STGPOOL and get disk space back.

Discussion in 'TSM Server' started by vkky2k, Sep 6, 2017.

  1. vkky2k

    vkky2k Newcomer

    Joined:
    Jun 17, 2017
    Messages:
    3
    Likes Received:
    0
    It is a disk based Primary storage pool with no dedup/compression.



    For a disk pool, after delete the stgpool, the question is:

    if it is necessary to delete directories from OS to free up the space?

    OR

    If reclamation process has to be involved at all to free up the space?
     
  2.  
  3. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,533
    Likes Received:
    354
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    If the volumes are already deleted from Spectrum Protect, then reclamation has nothing to process because the volumes don't exist as far as Spectrum Protect is concerned.

    So if the files that used to be the stgpool volumes still exist on the disk after deleting them from Spectrum Protect, you will need to manually delete them.
     
  4. vkky2k

    vkky2k Newcomer

    Joined:
    Jun 17, 2017
    Messages:
    3
    Likes Received:
    0
    Thanks for explaining the reclamation part.

    If we already deleted all volumes in the stgpool, and then delete the stgpool itself, should any files still exist in OS directories?

    The reason I am asking is because the stgpool here is an appliance as a NFS mount, and used for evicting backups to Cloud. data on the appliance and Cloud is managed by TSM software, and almost impossible to use OS commands to delete data on NFS share.
     
  5. vkky2k

    vkky2k Newcomer

    Joined:
    Jun 17, 2017
    Messages:
    3
    Likes Received:
    0
    If I delete a volume (5GB, ex) from TSM, the corresponding file/volume will be then gone from OS , and I will have 5GB more available on OS without the need of using OS command to delete the file. Correct?
     
  6. roger

    roger ADSM.ORG Member

    Joined:
    Dec 4, 2003
    Messages:
    28
    Likes Received:
    10
    What matters is what kind of disk storage pool it is. It is either:

    DEVCLASS=DISK (random access disk space)
    DEVTYPE=FILE (sequential access disk files; DEVCLASS will be a name of your choosing)

    There has been debate for years about which is better; we aren't going to argue that here. We use both.

    If it's DISK, reclamation is not involved. Data moves out via migration, and then it's gone. Once it's really empty, you can Q VOL to see the files that make up the stgpool, then DELETE VOL for each. If it's not really empty, DELETE VOL will fail; use MOVE DATA to empty it. Once all TSM volumes are deleted, you can reuse the space for other uses. DELETE STGPOOL can be good housekeeping, but it is not necessary.

    If it's FILE, you need to reclaim each file (aka volume). If you set it up for allocating from scratch, then reclamation (or MOVE DATA) will delete each file (volume) as it is emptied, after the reuse delay. If it's set up for permanent allocation, then you can DELETE VOL once it shows as empty. The space can be reused once you use UPDATE DEVCLASS to leave out the directories you want to repurpose, while leaving in the others you want to keep using. It is OK to UPDATE DEVCLASS before you reclaim or DELETE VOL, which will prevent any new allocations in the space you want to empty, as you work.
     
  7. marclant

    marclant ADSM.ORG Moderator

    Joined:
    Jun 16, 2006
    Messages:
    2,533
    Likes Received:
    354
    Occupation:
    Accelerated Value Specialist for Spectrum Protect
    Location:
    Canada
    Not 100% sure. Check the filesystem after to be sure.
     

Share This Page