Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

command not working

Updated: 21 May 2010 | 8 comments
ayodeji's picture
0 0 Votes
Login to vote

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.

discussion Filed Under:

Comments

Stuart Green's picture
05
Oct
2009
1 Vote +1
Login to vote

Taken from the technote If

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

 

Tip: Get overview/document your NBU environment. Run 'nbsu' and review the output.

• If this provides help, please vote or mark appropriate solution.

Marianne van den Berg's picture
05
Oct
2009
1 Vote +1
Login to vote

Don't be scared to upgrade!

Don't be scared to upgrade! Not only do the updates contain a lot of bug fixes, it also introduce lots of new features!

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows.
Handy NBU links

ayodeji's picture
05
Oct
2009
0 Votes 0
Login to vote

upgrade

i will upgrade. but need to get this going first.pleaseeeeeee

Ayodeji Oni
NetApp/VERITAS/IBM/SCS

Marianne van den Berg's picture
05
Oct
2009
1 Vote +1
Login to vote

As Stuart pointed out - on

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>

Supporting Storage Foundation and VCS on Unix and Windows as well as NetBackup on Unix and Windows.
Handy NBU links

ayodeji's picture
05
Oct
2009
0 Votes 0
Login to vote

200 media

i have 200 media. i  need a command that will pick rthem all together

Ayodeji Oni
NetApp/VERITAS/IBM/SCS

Stuart Green's picture
05
Oct
2009
2 Votes +2
Login to vote

OK hope you got UNIX as heres

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

Tip: Get overview/document your NBU environment. Run 'nbsu' and review the output.

• If this provides help, please vote or mark appropriate solution.

ayodeji's picture
05
Oct
2009
0 Votes 0
Login to vote

windows

thanks stuart, but i operate windows 2003.  can i get the windows version

Ayodeji Oni
NetApp/VERITAS/IBM/SCS

Stuart Green's picture
05
Oct
2009
0 Votes 0
Login to vote

Quick fix

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.

Tip: Get overview/document your NBU environment. Run 'nbsu' and review the output.

• If this provides help, please vote or mark appropriate solution.