|
Backup HowTo's -
Netbackup HowTo's
|
|
Written by linuxdynasty
|
|
Sunday, 10 February 2008 18:11 |
|
This is not really a howto but more of a quick lookup on what commands to use to debug/troubleshoot.
So this is not lay out in any order what so ever. Just a bunch of random notes.... I hope this helps you the way it has helped me..... :)
1. There are 2 directories where logs exist! 1st dir is /usr/openv/logs (Low level logs) and
2nd dir is /usr/openv/netbackup/logs (Here you will have to create the subdirectories in order
for logs to be created here) BEWARE these logs tend to get huge!
-
Also if the /usr dir becomes a 100% full Netbackup will basically stop functioning!! Always check the logs dir!
-
If DNS goes bad Netbackup will also stop functioning and will need a restart of Netbackup!
-
Commands you should use for everyday trouble shooting.
-
/usr/openv/netbackup/bin/bpclntcmd -hn client
(This command is extremely helpful, it tells you if Netbackup can do a successful lookup of the dns name)
-
bpclntcmd -ip ip_address
(This command is also very helpfuls, it tells you if Netbackup can do a reverse dns lookup)
-
/usr/openv/netbackup/bin/bpexpdate -m 03000I -d 0
(This command allows you to expire media when needed instead of waiting for it to expire)
-
bpstulist
(This command will tell you all drives and there hosts connected to the master server)
-
/usr/openv/volmgr/bin/tpautoconf -a
(This cmd will scan all local device on the media manager)
-
/usr/openv/volmgr/bin/vmoprcmd
(excellent cmd for verifying that all media managers have their drives)
-
/usr/openv/netbackup/bin/admincmd/bpmedialist -rl 1
(This cmd is retrieving all info about media that is available/full/expired/other) NOTE: available_media uses this cmd to get some of its info
-
/usr/openv/netbackup/bin/admincmd/bpmedia -unfreeze -m 03001
(This cmd unfreezes the media)
- /usr/openv/netbackup/bin/bpadm
(is a script that runs cmds for you in a easier format and also does about 90% of what the gui does)
-
example how to change a volume pool for a media;
-
run bpadm
-
choose option (e) media management
-
choose option (s) special actions
-
choose option (p) Change volume pool for volume pools
-
choose a volume pool from where you are want to move media to, and you are done!
-
Troubleshooting SYBASE GOING FUBAR! These are the steps to take to get a clean EMM database up and running with .
-
Stop Netbackup services.
-
Move the contents our of the /usr/openv/db/data/ directory.
-
Start the database server up with the command "nbdbms_start_server" from the /usr/openv/db/bin directory
-
Run a "nbdbms_start_server -stat" to make sure the database server was up
-
Run "create_nbdb" to created in default locations to database files.
-
Start Netbackup services.
-
Run "tpext" from the /volmgr/bin directory
-
Then restart Netbackup on all servers!
-
Now scan for all devices on <hostname>.
-
Check a jukebox at the command line:
-
Inventory Jukebox from the command line:
-
Check to see which disk are expired, full, available
-
If you notice that you are running out of tapes and you know tapes shouldve expired,
run the previous command and get all of the expire tapes and run this command.
-
The /usr/openv/netbackup/bin/admincmd/nbemmcmd (This is the sybase cmd utility
(PLEASE BE CAREFUL USING THIS CMD!!
This cmd is very useful in situations where you have to remove/add a client/media manager/device. here are some examples:
-
This deletes a media manger (nbemmcmd -deletehost -machinename media_server -machinetype media)
-
This deletes a tape (nbemmcmd -deletemedia -mediaid 03000I -originhost server)
-
This tells you if which boxes are have a emmserver and if they are reachable (nbemmcmd -getemmserver)
-
This will let you know if there are any media conflicts (nbemmcmd -listmedia -conflicts)
-
This will let you know what hosts are seen as media_managers and master servers (nbemmcmd -listhosts)
- /usr/openv/netbackup/bin/bpps -x (shows all Netbackup process that are running).
- /usr/openv/netbackup/bin/admincmd/bpdbjobs (This is esentially the activity monitor)
|
|
Last Updated on Monday, 22 September 2008 10:41 |