Video Screencast Help
Symantec Appoints Michael A. Brown CEO. Learn more.

Media deletion from netbackup and datadomain or CDL's

Created: 20 Jun 2012 • Updated: 12 Jul 2012 | 7 comments
This issue has been solved. See solution.

Hi guys,

 

 I am looking for a detailed tech note or document which guides me step by step on how to delete medias from 1st netbackup and then delete them from data domain.

Also is it true that if a media has nothing in time assigned it's a media which has nothing on it or in other words a scratch media?

 

My point here is I think i have loads of virtual medias (coming from VTL's data domain) which has nothing in time assigned and that site is running on ddboost with no use of any medias, so How can I delete them from netbackup and data domain to get raw space freed up in data domains.

 

Please help.

 

Thanks

Sid

Comments 7 CommentsJump to latest comment

Marianne's picture

Please help us to understand the reason for this question.

Deleting tapes from NBU is easy - you simply bulk-select unassigned media right-click and select Delete.
How to delete on DD will be in your DD documentation.

This will leave you with no tapes to backup to. Is this what you want?

If you just want to clean out the tapes, in ordr to reclaim space on VTL, you can Label the unassigned tapes: Select media-id, right-click, Label.

A Connect member has shared a script here:

https://www-secure.symantec.com/connect/forums/bpl...

 

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

Nicolai's picture

I assume you want to delete the now unused VTL media to free up space because the installation now has switched to IP based BOOST.

First delete the unassigned media from Netbackup, use the GUI and delete the media's, then using the Enterprise Manager  (Web GUI) delete the media's from the data domain. Go to Data Management -> VTL. Make sure to use a support web browser, some section may disappear with a unsupported browser.

See picture 3 (as a reference) from this link:

http://www.datadomain.com/pdf/DataDomain-EnterpriseMgr-Datasheet.pdf

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Sid1987's picture

Thanks Marianne & Nicolai,

 

Marianne we don't need any tapes there as that site is running on ddboost to other dd boxes.

Also does tapes with nothing under time assigned means it is a scratch media.

Also does right click and delete medias from netbackup remove entries from database?

doesn't requires unassigning them from respective robots?

 

Also Nicolai the link which you gave for picture. i dont see check box infront of tapes and I see only export import and move options in tasks. So what to do?

 

Thanks

Sid

Nicolai's picture

I have only used Data Domain VTL in a very short  time period - we are using OST like you.

Deleting VTL tapes (even Netbackup unassigned ones) will release space on the DD device.

http://www.wise.co.il/Filemanager/Galleries/G22/user_guide_760-0406-0000.pdf

See the DD admin manual Page 378

Assumption is the mother of all mess ups.

If this post answered your'e qustion -  Please mark as a soloution.

Marianne's picture

Unassigned means there are no images associated with it. Scratch in effect (even if not in Scratch pool).

Deleting them in the GUI will completely remove them from NBU database. There is no 'unassign from robot'. Maybe a logical move to standalone. No need to do this if you want to get rid of them.

Delete from DD as well to prevent 'someone' from doing an inventory, which will re-add the tapes.

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links

SOLUTION
Sid1987's picture

Hi Marianne,

 could you go through the script below I have in place and validate that it will find out the medias which have no valid images(no time assigned) and are scratch.

 

echo "Media ID           Pool Name"
for i in `sudo /usr/openv/volmgr/bin/vmquery -a | grep -i "media ID:" | awk '{print $3}'`
do
x=`sudo /usr/openv/volmgr/bin/vmquery -m $i | grep -i "assigned:" | awk '{print $2}'`
z=`sudo /usr/openv/volmgr/bin/vmquery -m $i | grep -i "robot type:" | awk '{print $3}'`
if [ $x = --- ]
then
y=`sudo /usr/openv/volmgr/bin/vmquery -m $i | grep -i "volume pool:" | awk '{print $3}'`
if [ $z = TLD ]
then
echo "$i            " | tr  "\n" " "
echo "$y"
fi
fi
done
 

Thanks

Sid

Marianne's picture

Why not just use the Media section of the GUI?

Select the robot number to only display media in VTL robot (in case you have more than one robot).

Sort by 'Assign Time'. All Unassigned media will be at the top.

Bulk-select them and delete.

I am no scripting expert  (can oly do very basic stuff through trial and error) - I cannot just look at your script and tell you if it will work or not. I will need to test it on a working installation with tapes in a robot. Unfortunately I do not have access to such facilities right now....

Have you tried it?

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows
Handy NBU Links