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.

delete volume without confirmation

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

  1. shahim

    shahim New 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 Senior Member

    Joined:
    Oct 2, 2002
    Messages:
    355
    Likes Received:
    12
    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 New Member

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

    > dsmadmc -noconfirm
     

Share This Page