command not working
Updated: 21 May 2010 | 8 comments
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
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:
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.
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
upgrade
i will upgrade. but need to get this going first.pleaseeeeeee
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
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
200 media
i have 200 media. i need a command that will pick rthem all together
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
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" doneTip: Get overview/document your NBU environment. Run 'nbsu' and review the output.
• If this provides help, please vote or mark appropriate solution.
windows
thanks stuart, but i operate windows 2003. can i get the windows version
Ayodeji Oni
NetApp/VERITAS/IBM/SCS
Quick fix
Im no programming guru but the quickest way....
Use Excel and grab the output of the command
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
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.
Would you like to reply?
Login or Register to post your comment.