Monday, January 21, 2008

Step by step documentation configuring HP-UX as SAN Media server on Veritas Netbackup 5.X environtments.
Before configure the drives in netbackup, at first we must configure the drives at OS level and zoning the tape drives from HP-UX to Tape Library.

List all HBA (Host Bus Adapter) in the HP-UX server to get the hardware path :
root@j5d # ioscan -funC fc
Class I H/W Path Driver S/W State H/W Type Description
=================================================================
fc 2 4/1/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Channel Mass Storage Adapter
/dev/td2
fc 0 1/1/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Channel Mass Storage Adapter
/dev/td0
fc 1 1/2/0 td CLAIMED INTERFACE HP Tachyon TL/TS Fibre Channel Mass Storage Adapter
/dev/td1

Check FC cable connectivity (driver state) and WWN for Zoning purpose on SAN Switch Level :
root@j5d # fcmsutil /dev/td2
Vendor ID is = 0x00103c
Device ID is = 0x001028
TL Chip Revision No is = 2.3
PCI Sub-system Vendor ID is = 0x00103c
PCI Sub-system ID is = 0x000006
Topology = PTTOPT_FABRIC
Local N_Port_id is = 0x043900
N_Port Node World Wide Name = 0x50060b000006714f
N_Port Port World Wide Name = 0x50060b000006714e
Driver state = ONLINE
Hardware Path is = 4/1/0
Number of Assisted IOs = -1906797105
Number of Active Login Sessions = 1
After get the wwn do zoning on SAN Switch, next step, check the tape drives on the hp-ux :
root@j5d # ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
tape 20 0/1/1/1.6.0 stape CLAIMED DEVICE HP Ultrium 2-SCSI
/dev/rmt/20m /dev/rmt/20mn /dev/rmt/c3t6d0BEST /dev/rmt/c3t6d0BESTn
/dev/rmt/20mb /dev/rmt/20mnb /dev/rmt/c3t6d0BESTb /dev/rmt/c3t6d0BESTnb
tape 1 0/4/1/0.234.18.255.5.5.0 stape CLAIMED DEVICE IBM ULTRIUM-TD1
Install the driver for this tape drives, when the OS has detected :
root@j5d # insf -e
insf: Installing special files for stape instance 1 address 0/4/1/0.234.18.255.5.5.0
Check again to make sure all the tape drives and drivers for the tape drives has been detect and installed :
root@j5d # ioscan -funC tape
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
tape 1 0/4/1/0.234.18.255.5.5.0 stape CLAIMED DEVICE IBM ULTRIUM-TD1
/dev/rmt/1m /dev/rmt/1mn /dev/rmt/c16t5d0BEST /dev/rmt/c16t5d0BESTn
/dev/rmt/1mb /dev/rmt/1mnb /dev/rmt/c16t5d0BESTb /dev/rmt/c16t5d0BESTnb
After above step successfully done, than we can continue to configure on netbackup level :
- Install Netbackup Master/Media agent.
- Do "scan" from netbackup to check the drives has been detect by netbackup :
root@j5d # /usr/openv/volmgr/bin/scan
make sure all tape drives has been successfully detect.
If netbackup still cannot detect the tape drives, re-start the server ....

- Set parameter Global Device :
root@j5d # /usr/openv/volmgr/bin/vmglob -set_gdbhost "master" -h "master" --> master = master backup hostname
- Configure tape drives :
root@j5d # /usr/openv/volmgr/bin/tpautoconf -a --> automatic configure tape drives
- Stop all Netbackup process :
root@j5d # /usr/openv/netbackup/bin/goodies/netbackup stop "or" /usr/openv/netbackup/bin/goodies/netbackup/bp.kill_all
- Start all Netbackup process :
root@j5d # /usr/openv/netbackup/bin/goodies/netbackup start
- Check All Netbackup Process running well.
root@j5d # /usr/openv/netbackup/bin/bpps -a
After completed the devices configuration, create the storage unit, volume pool, and backup policy. Afterward test Backup and Restore. Thanks.

Wednesday, January 16, 2008

Steps:
# rman target /
RMAN>
RMAN> show all;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
RMAN> SET CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F';

RMAN> SET CONFIGURE DEFAULT DEVICE TYPE TO 'SBT_TAPE';

RMAN> show all;
CONFIGURE DEFAULT DEVICE TYPE TO SBT_TAPE; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default

CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default

Test the control file backup to tape :
RMAN> backup current controlfile;

Friday, January 11, 2008

List all services :
# chkconfig --list
Active/Deactive services
# chkconfig "servicesname" on/off
Set service active on specific run level
# chkconfig --level 35 "servicesname" on/off
Remove service
# chkconfig --del "servicesname"
Add Service

# chkconfig --add "servicesname"
Restart service
# service "servicesname" restart

or using GUI/System Utility :
# system-config-services
# ntsysv


Use grub-install to fix:
# chroot /mnt/sysimage
# /sbin/grub-install /dev/hda
# quit
or
# /sbin/grub-install --directory="mountpoint" /dev/hda
where "mountpoint" is boot partition

If above steps fails try the following :
Launch a grub shell:

# /sbin/grub
grub>root (hd0,0)
grub>setup (hd0)
grub>quit

Create grub password :

# grub-md5-crypt
password : password
retype : password
Copy encryption password to /boot/grub/grub.conf under hiddenmenu
# vi /boot/grub/grub.conf
----------
hiddenmenu
password --md5 ialknda$SDLKANDADikaldnald9addasdad
----------

Monday, January 7, 2008

This procedure must be successfully "done" to troubleshoot Un-Detect tape drives after netbackup sg.install installation.
root@j5d # ls -l /dev/rmt/*cbn
root@j5d # /usr/openv/volmgr/bin/scan
Display PCI slot configuration information for tape drives

root@j5d # cfgadm –al
c0::dsk/c0t6d0 CD-ROM connected configured unknown
c1 fc-private connected configured unknown
c1::21xxxxxxxxxxxxx2 disk connected configured unknown
c5 fc-fabric connected configured unknown
c5::50xxxxxxxxxxxxx2 tape connected configured unknown
c5::50xxxxxxxxxxxxxe tape connected configured unknown
....
c6 fc connected unconfigured unknown
Unconfigure tape devices
root@j5d # cfgadm -c unconfigure c5
Clean-up device file
root@j5d # devfsadm –C
Reconfigure tape device
root@j5d # cfgadm -c configure c5
if configure failed, try force update with command :
root@j5d # cfgadm –c configure –o force_update c5
List PCI slot configuration information for tape drives
root@j5d # cfgadm –al
root@j5d # ls -l /dev/rmt/*cbn
lrwxrwxrwx 1 root root 71 Jan 7 15:39 /dev/rmt/0cbn ->
../../devices//fp@0,0/st@xxxxxxxxxxxxxxxbe,0:cbn
.......
lrwxrwxrwx 1 root root 71 Jan 7 15:41 /dev/rmt/9cbn ->
../../devices/fp@0,0/st@xxxxxxxxxxxxxxx82,0:cbn
root@j5d # /usr/sbin/rem_drv sg
root@j5d # /usr/bin/rm -f /kernel/drv/sg.conf
root@j5d # /usr/openv/volmgr/bin/driver/sg.install

Copied files to /kernel/drv and to /kernel/drv/sparcv9.
Doing add_drv of the sg driver
Removing old /dev/sg entries.
Editing /etc/devlink.tab...
Copying original /etc/devlink.tab to /etc/devlink.tab.01-07-08-15:44:06.
Added entry in /etc/devlink.tab file.
Made links in /dev/sg

root@j5d # /usr/openv/volmgr/bin/scan

************************************************************
*********************** SDT_TAPE ************************
*********************** SDT_CHANGER ************************
*********************** SDT_OPTICAL ************************
************************************************************
------------------------------------------------------------
Device Name : "/dev/rmt/0cbn"
Passthru Name: "/dev/sg/c0txxxxxxxxxxxxxxxbel0"
Volume Header: ""
Port: -1; Bus: -1; Target: -1; LUN: -1
Inquiry : "IBM ULTRIUM-TD3 5BG2"
Vendor ID : "IBM "
Product ID : "ULTRIUM-TD3 "
Product Rev: "5BG2"
Serial Number: "XXXXXXXXXX"
WWN : "IBM ULTRIUM-TD3 XXXXXXXXXX"
WWN Id Type : 1
Device Identifier: "IBM ULTRIUM-TD3 XXXXXXXXXX"
Device Type : SDT_TAPE
NetBackup Drive Type: 16
Removable : Yes
Device Supports: SCSI-3
Flags : 0x0
Reason: 0x0
------------------------------------------------------------