cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete images on a disk pool which is no longer accessible

Kai2209
Level 4

Since we moved from a nbu 7.1 to 8.0 and another hardware we still do have a DataDomain with existing images which cannot be accessed within the new environment due to incompatibility issues.

I would like to remove this storage server and diskpool completely but i cannot expire and remove images because it is not accessible. I did a "bpexpdate -stype DataDomain -dp <diskpoolname>" but i got Status 2017 disk volume is down.

Any idea how to proceed here?

 

thanks Kai

1 ACCEPTED SOLUTION

Accepted Solutions

Nicolai
Moderator
Moderator
Partner    VIP   

I am not 100% sure on this so cation is needed - consider to open a support request with Veritas

Before starting the operation obtain the media id for the now gone data domain. Media is @aaaa{something}.

Try using the -nodelete to the bpexpdate command.  bpexpdate -nodelete will remove images from the catalog but not try to delete the image itself.

See : https://www.veritas.com/support/en_US/article.000117798

Subsequent you need to clean up the EMM table as it keep track of images it can't delete. The -fore option to nbdelete will remove the image from EMM, deletable or not.

/usr/openv/netbackup/bin/admincmd/bpimage -cleanup -allclients
/usr/openv/netbackup/bin/admincmd/nbdelete -allvolumes -force

Verify afterwards clean up is complete by running 

nbdelete -deletion_stats [-U] -media_id name (name is @aaaaa{something} again.

Also check the image clean job in Netbackup.

View solution in original post

10 REPLIES 10

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Try to add  -justimage .

I remember this option from years ago and not sure if it is still a valid option. 

Nicolai
Moderator
Moderator
Partner    VIP   

I am not 100% sure on this so cation is needed - consider to open a support request with Veritas

Before starting the operation obtain the media id for the now gone data domain. Media is @aaaa{something}.

Try using the -nodelete to the bpexpdate command.  bpexpdate -nodelete will remove images from the catalog but not try to delete the image itself.

See : https://www.veritas.com/support/en_US/article.000117798

Subsequent you need to clean up the EMM table as it keep track of images it can't delete. The -fore option to nbdelete will remove the image from EMM, deletable or not.

/usr/openv/netbackup/bin/admincmd/bpimage -cleanup -allclients
/usr/openv/netbackup/bin/admincmd/nbdelete -allvolumes -force

Verify afterwards clean up is complete by running 

nbdelete -deletion_stats [-U] -media_id name (name is @aaaaa{something} again.

Also check the image clean job in Netbackup.

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

I have been wondering since my reply why the compatibility issue was not picked up before the upgrade?
Or if the DD cannot be upgraded?

thanks Marianne but it is not a valid option :(

since the DD is no longer needed i was not aware of the "need". I thought i can just delete :(

so this means i have to upgrade DD, install the plugin and connect...just to cleanup my database

 

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

Please have a look at @Nicolai's post?

 

Nicolai
Moderator
Moderator
Partner    VIP   

No you don't have to - but it quite a mess to do the clean-up afterwards :D

thanks Nicolai

so i did a "bpexpdate -stype DataDomain -dp dd-de-dp -nodelete" which was working fine. Then i checked again for the images
[root@franbp1 ~]# bpimmedia -stype DataDomain -dp dd-de-dp
no entity was found
[root@franbp ~]# bpimage -cleanup -allclients
[root@franbp ~]# nbdelete -allvolumes -force
[root@franbp ~]# nbdelete -deletion_stats -U -media_id @aaaah
Frags : 0
KB    : 0
[root@franbp ~]#

And next cleanup was running fine no longer partially successful Smiley Happy

But i do not understand what means "quite a mess to do the clean-up afterwards" ? I am missing anything ?

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

"Quite a mess" is the reason why you requested assistance in this discussion. 

This process is not automatic and not documented since this issue should not present itself with proper planning.

agree...thougt it would be simple but missed some parts...

thank you so much for your assistance !