cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to deassign media

r1
Level 5
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 ACCEPTED SOLUTION

Accepted Solutions

r1
Level 5

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 :) Thanks again for everyone that tried to help . much appreciated

View solution in original post

35 REPLIES 35

r1
Level 5
i need to be able to delete the pool and reuse the tape

Holowinski
Level 3
Certified
 vmdelete [-h <EMM_server> | <volume_database_host>]
     [-m <media_id> | -v <volume_group>]

quebek
Moderator
Moderator
   VIP    Certified

then press Y
later on you can remove media and finally the volume pool ;)

J_H_Is_gone
Level 6

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.


 

r1
Level 5
this didn't work

r1
Level 5
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

r1
Level 5
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
 

r1
Level 5
any other ideas ... anyone ???

Andy_Welburn
Level 6
if you run the image cleanup process bpimage -cleanup -allclients ?

quebek
Moderator
Moderator
   VIP    Certified

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.

quebek
Moderator
Moderator
   VIP    Certified

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

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"

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

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

Andy_Welburn
Level 6
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.

r1
Level 5
no luck with this one either

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


Christoph_Linde
Level 5
Employee

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 :)

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

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

Marianne
Moderator
Moderator
Partner    VIP    Accredited Certified

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>


Andy_Welburn
Level 6
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?

J_H_Is_gone
Level 6
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?