Wednesday, January 7, 2009

How to stop and start Netbackup services-Best way!

Note: Below steps only applicable to netbackup server hosted in unix platform.


Cancel all active jobs using java console.
Close all open Java console windows
Go to /usr/openv/netbackup/bin/goodies
Execute below command
# netbackup stop
Delete the worklist files and the *lock files from /usr/openv/netbackup/bin/bpsched.d. Do the following in that directory:
#rm /usr/openv/netbackup/bin/bpsched.d/worklist.[0-9]*
#rm /usr/openv/netbackup/bin/bpsched.d/*.lock
On Netbackup 6
rm /usr/openv/netbackup/bin/bpsched.d/pempersist
#netbackup start

Let me know if you have any doubts...

How to enable netbackup ports in iptables.

Step1.Edit /etc/sysconfig/iptables
$sudo vi /etc/sysconfig/iptables
Append below entries.
-A INPUT -p tcp -i --dport 13782 -j ACCEPT-A INPUT -p tcp -i --dport 13724 -j ACCEPT
step 2:Refresh iptable configuration
$sudo /sbin/iptables-restore < ./iptables
step3:Verify these ruleas are loaded
$ sudo /sbin/iptables --listChain INPUT (policy ACCEPT)target prot opt source destinationRH-Firewall-1-INPUT all -- anywhere anywhere
Chain FORWARD (policy ACCEPT)target prot opt source destinationRH-Firewall-1-INPUT all -- anywhere anywhere
Chain OUTPUT (policy ACCEPT)target prot opt source destination
Chain RH-Firewall-1-INPUT (2 references)target prot opt source destinationACCEPT all -- anywhere anywhereACCEPT icmp -- anywhere anywhere icmp anyACCEPT esp -- anywhere anywhereACCEPT ah -- anywhere anywhereACCEPT udp -- anywhere 224.0.0.251 udp dpt:mdnsACCEPT udp -- anywhere anywhere udp dpt:ippACCEPT tcp -- anywhere anywhere tcp dpt:ippACCEPT all -- anywhere anywhere state RELATED,ESTABLISHEDACCEPT tcp -- anywhere anywhere state NEW tcp dpt:sshACCEPT tcp -- anywhere anywhere tcp dpt:bpcdACCEPT tcp -- anywhere anywhere tcp dpt:vnetdREJECT all -- anywhere anywhere reject-with icmp-host-prohibited