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.

delete volume without confirmation

Discussion in 'Command Line Administrator Client' started by shahim, Sep 29, 2010.

  1. shahim

    shahim ADSM.ORG Member

    Joined:
    Dec 15, 2008
    Messages:
    12
    Likes Received:
    0
    Hi guys,
    I would like to know if there is a command to delete volumes without any confirmation.

    I had created about 210 volumes on a 5.5 TB disk about a week back. SInce the performance has been very bad, i would like to use RAID-0 instead of RAID-5 and thus need to re-do the array. This requires me to delete all the storage pool volumes created on it.
    So far I have been running the following commands for each volume name:
    delete volume K:\TSMDATA\FS-POOL\CHNL2DISK1.DSK01C discarddata=yes​
    delete volume K:\TSMDATA\FS-POOL\CHNL2DISK1.DSK01D discarddata=yes​
    delete volume K:\TSMDATA\FS-POOL\CHNL2DISK1.DSK01E discarddata=yes​
    delete volume K:\TSMDATA\FS-POOL\CHNL2DISK1.DSK01F discarddata=yes​
    delete volume K:\TSMDATA\FS-POOL\CHNL2DISK1.DSK020 discarddata=yes​
    delete volume K:\TSMDATA\FS-POOL\CHNL2DISK1.DSK021 discarddata=yes​
     
  2.  
  3. Jeroen

    Jeroen ADSM.ORG Senior Member

    Joined:
    Oct 2, 2002
    Messages:
    363
    Likes Received:
    14
    Occupation:
    AIX + storage administrator
    Location:
    netherlands
    put all commands in a file on the sytem and then run the file as a macro
    macro c:\del_them_all
    Not sure if deleting this many volumes can lock up TSM. You might consider "wait=yes" added to each entry
     
  4. pjcyr

    pjcyr Active Newcomer

    Joined:
    Apr 26, 2010
    Messages:
    21
    Likes Received:
    0
    start dsmadmc using the option "-noconfirm".

    > dsmadmc -noconfirm
     

Share This Page