cancel
Showing results for 
Search instead for 
Did you mean: 

command not working

ayodeji
Level 6
Certified
i am trying to move media from a media server to another. i run netbackup 6.5.1. the command is

bpmedia -movedb -allvolumes -oldserver <old_server> -newserver <new_server>


but i get error
 

C:\Program Files\VERITAS\NetBackup\bin\admincmd>bpmedia -movedb  -allvolumes -oldserver sv001idc01 -
newserver sv001vms01
bpmedia: unrecognized option -allvolumes
bpmedia:
  -freeze|-unfreeze|-suspend|-unsuspend -m <media_id> [-h <hostname>] [-v]
  -movedb -m <media_id> -newserver <hostname>
        [-newsvr_group <groupname>] [-oldserver <hostname>] [-v]


can you please help.


thank you.
1 ACCEPTED SOLUTION

Accepted Solutions

Anonymous
Not applicable
Taken from the technote DOCUMENTATION: What is the process for decommissioning a NetBackup 6.5 media server?
 

If both <old_server> and <new_server> are at NetBackup 6.0MP7 or later, or NetBackup 6.5.2 or later, run the following command:

 bpmedia -movedb -allvolumes -oldserver <old_server> -newserver <new_server>
 

If <old_server> or <new_server> is at a version earlier than NetBackup 6.0MP7, or NetBackup 6.5.2, run the following command for each volume that has active  images as identified in step 1:

 bpmedia -movedb -ev media_ID -oldserver <old_server> -newserver <new_server>


The second command you need to use for 6.5.1


 

View solution in original post

8 REPLIES 8

Anonymous
Not applicable
Taken from the technote DOCUMENTATION: What is the process for decommissioning a NetBackup 6.5 media server?
 

If both <old_server> and <new_server> are at NetBackup 6.0MP7 or later, or NetBackup 6.5.2 or later, run the following command:

 bpmedia -movedb -allvolumes -oldserver <old_server> -newserver <new_server>
 

If <old_server> or <new_server> is at a version earlier than NetBackup 6.0MP7, or NetBackup 6.5.2, run the following command for each volume that has active  images as identified in step 1:

 bpmedia -movedb -ev media_ID -oldserver <old_server> -newserver <new_server>


The second command you need to use for 6.5.1


 

Marianne
Level 6
Partner    VIP    Accredited Certified
Don't be scared to upgrade! Not only do the updates contain a lot of bug fixes, it also introduce lots of new features!

ayodeji
Level 6
Certified
i will upgrade. but need to get this going first.pleaseeeeeee

Marianne
Level 6
Partner    VIP    Accredited Certified
As Stuart pointed out - on your version, one-by-one media-id:

bpmedia -movedb -ev media_ID -oldserver <old_server> -newserver <new_server>

Use bpmedialist to obtain list of media-id's belonging to old_server:
bpmedialist -mlist -l -h <media_server_being_decommissioned>

ayodeji
Level 6
Certified
i have 200 media. i  need a command that will pick rthem all together

Anonymous
Not applicable
OK hope you got UNIX as heres the script to do it from the Master Server
Replace <old_server> <new_server> with the respective hostnames in your NetBackup config


for i in `bpmedialist -mlist -l -h <old_server> | awk '{print $1}'`
do
bpmedia  -movedb -ev $i -oldserver <old_server> -newserver <new_server>
echo "Moving MediaID $i"
done

ayodeji
Level 6
Certified
thanks stuart, but i operate windows 2003.  can i get the windows version

Anonymous
Not applicable
Im no programming guru but the quickest way....

Use Excel and grab the output of the command
bpmedialist -mlist -l -h <old_server>
Paste it into EXCEL. Possibly convert text to columns. Anyway the first column should be mediaID's Take the first column value in another cell formula, that uses the string
bpmedia  -movedb -ev <column1> -oldserver <old_server> -newserver <new_server>
NOTE: Follow string convetion usage in EXCEL with & and " to wrap the text. Then just drag this down across all 200 media row entries Copy the output to text file. Save as .bat file and run.