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.

No comments:

Post a Comment