Sunday, April 19, 2009

Netbackup Tape Drive configuration

Tape Drive configuration procedure for Netbackup
Introduction:
Below procedure is for configuring new tape drives in Netbackup environment. Below steps needs to be carried out only afrer new Tape drivers are installedin Tape Library.All the below steps are only tested in Sun Solaris.

1. Login to the media server and stop the netbackup services.
$/usr/openv/netbackup/bin/goodies/netbackup stop
2. confirm OS found new Tape devices
$iostat -Engrep-i st
3. Confirm device files are created or not
$cd /dev/rmt
$ls -lrt *cbn
lrwxrwxrwx 1 root root 80 Apr 2 15:58 3cbn -> /../../devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0/st@w500104f0008e3050,0:cbnlrwxrwxrwx 1 root root 80 Apr 2 15:58 4cbn -> /../../devices/pci@7c0/pci@0/pci@9/SUNW,qlc@0,1/fp@0,0/st@w500104f0008e3053,0:cbn
IF device files are not found new tape drive, please restart the server using reboot -- -r
NetBackup Media Manager provides its own driver for communicating with SCSI-controlled robotic peripherals. This driver is called the SCSA (Generic SCSI passthrudriver), also referred to as the sg driver.If os found the drive and device files are created we can reconfigure sg driver for netbackup.

1. Make a copy of below files.
/usr/openv/volmgr/bin/driver/sg.conf
/usr/openv/volmgr/bin/driver/sg.links
2. Identfy the WWN number of new Tape drive
$/usr/sbin/cfgadm -algrep -i tape
or
$/usr/openv/volmgr/bin/sgscan
THis command will identify the tape drive and wwn number which are not configured in sg.conf
3. Edit below files add new WWN number identified from above step.
$vi /usr/openv/volmgr/bin/driver/sg.conf
name="sg" class="scsi" target=15 lun=0;name="sg" class="scsi" target=15 lun=1;name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500104f0008e3031";name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500104f0008e3031";name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500104f0008e304a";name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500104f0008e304a";name="sg" parent="fp" target=0 lun=0 fc-port-wwn="500104f0008e3047";name="sg" parent="fp" target=0 lun=1 fc-port-wwn="500104f0008e3047";.............$sudo vi /usr/openv/volmgr/bin/driver/sg.links................type=ddi_pseudo;name=sg;addr=e,1; sg/c\N0t14l1type=ddi_pseudo;name=sg;addr=f,0; sg/c\N0t15l0type=ddi_pseudo;name=sg;addr=f,1; sg/c\N0t15l1type=ddi_pseudo;name=sg;addr=w500104f0008e3031,0; sg/c\N0t\A1l0type=ddi_pseudo;name=sg;addr=w500104f0008e3031,1; sg/c\N0t\A1l1type=ddi_pseudo;name=sg;addr=w500104f0008e304a,0; sg/c\N0t\A1l0type=ddi_pseudo;name=sg;addr=w500104f0008e304a,1; sg/c\N0t\A1l1type=ddi_pseudo;name=sg;addr=w500104f0008e3047,0; sg/c\N0t\A1l0type=ddi_pseudo;name=sg;addr=w500104f0008e3047,1; sg/c\N0t\A1l1................
4. Make copy of file /kernel/drv/sg.conf
5. Now we need to install new sg driver configuration.
$/usr/bin/rm -f /kernel/drv/sg.conf
$/usr/openv/volmgr/bin/driver/sg.install
6. Start netbackup services in media server.
7. Loggin to Netbackup Admin console and run Configure storage Devices wizard. This will detect the new drives and configure to device database.

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