cancel
Showing results for 
Search instead for 
Did you mean: 

error while running bpimmedia command - anyone seen this?

Sto_Rage
Level 3
NBU 5.1 no MP running on Solaris 2.8 Master server

When we run the following command, it errors out. How does one fix this?
#bpimmedia -spangroups -U -mediaid 000254
could not find previously added media id (000734), aborting command
unable to process request

Running the command without the -snapgroups option works fine:
#bpimmedia -U -mediaid 000254
no entity was found

We run this command with spangroups option before expiring tapes to make sure it has expired and used to work fine before.
TIA
6 REPLIES 6

zippy
Level 6
Sto,


Your database is out of whack. Its complining about 000734, rescan the library and update contents.

#bpimmedia -spangroups -U -mediaid 000254
could not find previously added media id (000734), aborting command
unable to process reques
t

JD

Sto_Rage
Level 3
James,
Well, we have been rescanning and updating the contents almost every day, but still the problem won't go away. How do we get the database fixed? Will removing the media (000734) fix it? The images on 000734 should have expired by now.
As far as we know the only issue its causing is when we run this bpimmedia command with the spangroups option.
Thanks

-G

zippy
Level 6
Sto,

I have seen this error in the past on my systems, I have also seen that some folks have had this error on the forum. I would remove the tape from the database and pull the tape out of the library, this should fix this error.

Jim

Stumpr2
Level 6
Sto,
If James was helpful then please reply with some points. We want the contributers to be well fed :)

TempoVisitor
Level 4
Hya

If ur still on 5.x, you can get info and modify the volume :
vmquery -m 000734

If the tape is assigned (field Time Assigned), check if it still have data :
bpmedialist -m 000734

If you don't get anything from the bpmedialist command, you can deassign it if it's still :
vmquery -deassignbyid 000734
(Get the and from the previous vmquery.)

If there are still info about 000734, try this :
bpexpdate -d 0 -m 000734

If it does not work :
bpexpdate: -deassignempty -m 000734 -force
then :
vmquery -deassignbyid 000734

Cheers

Sto_Rage
Level 3
Thanks a lot for all those who replied. I was finally able to get rid of the error by deleting the tape.

-G