Unable to deassign media

this is driving me crazy

i created a test volume pool and put one tape in it , tape 00000A . i am unable to delete the tape or remove it from the volume pool

when i try to delete the pool i get this
the specified pool is not empty . pool still contains medai

i have expired the images on the tape but still unable to deasssign and delete ther media
cannot delete assigned volume  . cannt delete assigned media

i tried the deassignbymedia command but that didn't work either . any ideaS ?
1 Solution

Accepted Solutions
Accepted Solution!

Hi everyone - Update on this

Hi everyone - Update on this . This issue is resolved now and the only way to resolve it is by having a backline engineer with symantec write a code and apply the fix . a fix was wrote by a programmer at symntec that i had to apply . applying 6.5.6 patch will prevet this from happening again . if anyone out there having this exact isue . call symnatec , they will help you because there is simply no other options Smiley Happy Thanks again for everyone that tried to help . much appreciated

35 Replies

i need to be able to delete

i need to be able to delete the pool and reuse the tape

try command line, vmdelete

 vmdelete [-h <EMM_server> | <volume_database_host>]
     [-m <media_id> | -v <volume_group>]

bpexpdate -d 0 -m 00000A


then press Y
later on you can remove media and finally the volume pool Smiley Wink

Look at the media

Look at your pool and look at the media if there is a Time assigned on the tape in then all the images on the tape have NOT been expired.

at command line try this

bpmedialist -m <media id>
if it comes back with anything is has not been expired

now

bpexpdate -m <media id> -d 0

it will ask if you really want to say yes

then do the bpmedialist again

if it shows anything it is not being expired and you will have to figure out why.


 

this didn't work

this didn't work

didn't work , here is what i

didn't work , here is what i get

-bash-3.00# bpexpdate -d 0 -m 000007
Media 000007 is due to expire at 04/18/2010 15:28:00
Are you sure that the data on this media is not critical to
your business, and you are sure you want to delete 000007 y/n (n)? y
invalid command parameter

didn't work either , here is

didn't work either , here is what i get

-bash-3.00# bpmedialist -m 000007
Server Host = tmnaim01

 
 id     rl  images   allocated        last updated      density  kbytes restores
           vimages   expiration       last read         <------- STATUS ------->
--------------------------------------------------------------------------------
000007  19      0   04/16/2010 14:58  04/16/2010 15:28   hcart           0     0
                0   04/18/2010 15:28        N/A         EXPIRED
-bash-3.00#
-bash-3.00# bpexpdate -m 000007 -d 0
Media 000007 is due to expire at 04/18/2010 15:28:00
Are you sure that the data on this media is not critical to
your business, and you are sure you want to delete 000007 y/n (n)? y
invalid command parameter
 

any other ideas ... anyone

any other ideas ... anyone ???

Do you get the same error "invalid command parameter"

if you run the image cleanup process bpimage -cleanup -allclients ?

bpexpdate -deassignempty


Search for empty media that meet the following criteria:
        Media id: All

Continue? y/n (n)y


maybe this command will help you - its scheduled to ran on daily basis.

vmquery -deassignbyid


The last resort I see is to play with vmquery command, but be warned - play with it with extreme careful Smiley Wink

here is synopsis:
"vmquery(1M)
NAME
vmquery - query EMM database, or assign and unassign volumes
SYNOPSIS
/usr/openv/volmgr/bin/vmquery [-h EMM_server | volume_database_host, ...
-h EMM_server | -h volume_database_host, ... -h volume_database_host]
[-vltcid vault_container_id] [-W] [-b | -w] -a | -m media_id | -v
volume_group | -rn robot_number | -rt robot_type | -mt media_type | -p
pool_number | -pn pool_name | -res robot_type robot_number robot_host
rob_slot rob_side | -assignbyid media_id media_type pool_number stat
asg_time | -deassignbyid media_id pool_number stat"

the image clean up runs dail

the image clean up runs daily but i run it anyways and it didn't help

i've used vmquery  with

i've used vmquery  with different arguments , still no luck

Check this earlier post:

https://www-secure.symantec.com/connect/forums/cannot-expire-media-invalid-command-parameter

Points from  the above:
SLP in use? (May need to involve Symantec?)
Try the -h host option in bpexpdate.

no luck with this one

no luck with this one either

Could not deassign media-id 000007, host tmnaim01: invalid command parameter (20)


vmquery -m 000007 Find out if


vmquery -m 000007

Find out if the tape is frozen.

Try: bpmedia -unfreeze -m 000007

Then after unfreezing it, try again:

bpexpdate -deassign_empty -m 000007

If that all does not help. Please send output of:

nbemmcmd -listmedia -mediaid 000007

Then we will see, what is going on with that tape.

I wonder how you managed to get it in there Smiley Happy

The last thing is: Do you put it manually in that pool?

Try to change the media to scratchpool (with GUI).

I think Andy has hit the nail


I think Andy has hit the nail on the head.

Extract from Nicolai's post in the thread that Andy has mentioned:

I got the invalid parameter message also

But got around the issue by specifying the -h {host_option}.

Try bpexpdate -m STK470 -d 0 -h {media_server_that wrote_the_backup}

*** EDIT ****
Please post output of:
nbemmcmd -listmedia -mediaid <media-id>


However

the curious thing I've just noticed from r1's previous post in response to Judys prompt

"...

-bash-3.00# bpmedialist -m 000007
Server Host = tmnaim01
 
 id     rl  images   allocated        last updated      density  kbytes restores
           vimages   expiration       last read         <------- STATUS ------->
--------------------------------------------------------------------------------
000007  19      0   04/16/2010 14:58  04/16/2010 15:28   hcart           0     0
                0   04/18/2010 15:28        N/A         EXPIRED
-bash-3.00#
-bash-3.00# bpexpdate -m 000007 -d 0
Media 000007 is due to expire at 04/18/2010 15:28:00
Are you sure that the data on this media is not critical to
your business, and you are sure you want to delete 000007 y/n (n)? y
invalid command parameter
..."

So already expired (& no images), but still thinks it's due to expire in the past?

The other curious thing is that this media id (000007) is different from the original post (00000A) - or is that just a typo?

could it be the shell?

It looks like from his prompt that he is using the bash shell.
I use ksh.

Any chance the bash shell does not work with the comand and params?