07-02-2014 08:16 PM
Hi,
Please guide me how to install and configure the sg and the st drivers so that NBU can see VTL.
The following is my action:
bash-3.2# /usr/openv/volmgr/bin/sg.build all -mt 15 -ml 15
The file ./st.conf should be appended to /kernel/drv/st.conf.
A reboot may be necessary to create any new device files.
Created file ./sg.conf.
Created file ./sg.links
bash-3.2# cat /usr/openv/volmgr/bin/driver/st.conf
name="st" class="scsi" target=0 lun=0;
name="st" class="scsi" target=0 lun=1;
name="st" class="scsi" target=1 lun=0;
name="st" class="scsi" target=1 lun=1;
name="st" class="scsi" target=2 lun=0;
name="st" class="scsi" target=2 lun=1;
name="st" class="scsi" target=3 lun=0;
name="st" class="scsi" target=3 lun=1;
name="st" class="scsi" target=4 lun=0;
name="st" class="scsi" target=4 lun=1;
name="st" class="scsi" target=5 lun=0;
name="st" class="scsi" target=5 lun=1;
name="st" class="scsi" target=6 lun=0;
name="st" class="scsi" target=6 lun=1;
bash-3.2# cat /usr/openv/volmgr/bin/driver/sg.conf
# Configuration file for SCSA Generic.
#
name="sg" class="scsi" target=0 lun=0;
name="sg" class="scsi" target=0 lun=1;
name="sg" class="scsi" target=1 lun=0;
name="sg" class="scsi" target=1 lun=1;
name="sg" class="scsi" target=2 lun=0;
name="sg" class="scsi" target=2 lun=1;
name="sg" class="scsi" target=3 lun=0;
name="sg" class="scsi" target=3 lun=1;
name="sg" class="scsi" target=4 lun=0;
name="sg" class="scsi" target=4 lun=1;
name="sg" class="scsi" target=5 lun=0;
name="sg" class="scsi" target=5 lun=1;
name="sg" class="scsi" target=6 lun=0;
name="sg" class="scsi" target=6 lun=1;
bash-3.2# cat /usr/openv/volmgr/bin/driver/sg.links
# begin SCSA Generic devlinks file - creates nodes in /dev/sg
type=ddi_pseudo;name=sg;addr=0,0; sg/c\N0t0l0
type=ddi_pseudo;name=sg;addr=0,1; sg/c\N0t0l1
type=ddi_pseudo;name=sg;addr=1,0; sg/c\N0t1l0
type=ddi_pseudo;name=sg;addr=1,1; sg/c\N0t1l1
type=ddi_pseudo;name=sg;addr=2,0; sg/c\N0t2l0
type=ddi_pseudo;name=sg;addr=2,1; sg/c\N0t2l1
type=ddi_pseudo;name=sg;addr=3,0; sg/c\N0t3l0
type=ddi_pseudo;name=sg;addr=3,1; sg/c\N0t3l1
type=ddi_pseudo;name=sg;addr=4,0; sg/c\N0t4l0
type=ddi_pseudo;name=sg;addr=4,1; sg/c\N0t4l1
type=ddi_pseudo;name=sg;addr=5,0; sg/c\N0t5l0
type=ddi_pseudo;name=sg;addr=5,1; sg/c\N0t5l1
type=ddi_pseudo;name=sg;addr=6,0; sg/c\N0t6l0
type=ddi_pseudo;name=sg;addr=6,1; sg/c\N0t6l1
# SCSA devlinks for SAS-1 libraries:
type=ddi_pseudo;name=sgen;addr=0,0; sg/c\N0t0l0
type=ddi_pseudo;name=sgen;addr=0,1; sg/c\N0t0l1
type=ddi_pseudo;name=sgen;addr=1,0; sg/c\N0t1l0
type=ddi_pseudo;name=sgen;addr=1,1; sg/c\N0t1l1
type=ddi_pseudo;name=sgen;addr=2,0; sg/c\N0t2l0
type=ddi_pseudo;name=sgen;addr=2,1; sg/c\N0t2l1
type=ddi_pseudo;name=sgen;addr=3,0; sg/c\N0t3l0
type=ddi_pseudo;name=sgen;addr=3,1; sg/c\N0t3l1
type=ddi_pseudo;name=sgen;addr=4,0; sg/c\N0t4l0
type=ddi_pseudo;name=sgen;addr=4,1; sg/c\N0t4l1
type=ddi_pseudo;name=sgen;addr=5,0; sg/c\N0t5l0
type=ddi_pseudo;name=sgen;addr=5,1; sg/c\N0t5l1
type=ddi_pseudo;name=sgen;addr=6,0; sg/c\N0t6l0
type=ddi_pseudo;name=sgen;addr=6,1; sg/c\N0t6l1
# SCSA devlinks for Fibre Channel:
# end SCSA devlinks
Replace the following seven entries in the /kernel/drv/st.conf file with all of the entries from the /usr/openv/volmgr/bin/driver/st.conf file:
bash-3.2# cp /kernel/drv/st.conf /kernel/drv/st.conf.03July2014
bash-3.2# cp /usr/openv/volmgr/bin/driver/st.conf /kernel/drv/st.conf
Reboot
bash-3.2# reboot -- -r
bash-3.2# ls -l /dev/rmt/
total 0
bash-3.2#
bash-3.2# /usr/bin/rm -f /kernel/drv/sg.conf
bash-3.2# /usr/openv/volmgr/bin/driver/sg.installCopied files to /kernel/drv/amd64.
Doing add_drv of the sg driver
devfsadm: driver failed to attach: sg
Warning: Driver (sg) successfully added to system but failed to attachWARNING: /usr/sbin/add_drv failed.
There may be no SCSI devices on this machinebash-3.2# cat /kernel/drv/sg.conf
# Configuration file for SCSA Generic.
#
name="sg" class="scsi" target=0 lun=0;
name="sg" class="scsi" target=0 lun=1;
name="sg" class="scsi" target=1 lun=0;
name="sg" class="scsi" target=1 lun=1;
name="sg" class="scsi" target=2 lun=0;
name="sg" class="scsi" target=2 lun=1;
name="sg" class="scsi" target=3 lun=0;
name="sg" class="scsi" target=3 lun=1;
name="sg" class="scsi" target=4 lun=0;
name="sg" class="scsi" target=4 lun=1;
name="sg" class="scsi" target=5 lun=0;
name="sg" class="scsi" target=5 lun=1;
name="sg" class="scsi" target=6 lun=0;
name="sg" class="scsi" target=6 lun=1;
bash-3.2# /usr/openv/volmgr/bin/sgscan all
#
#WARNING: detected StorEdge Network Foundation connected devices not in
# SG configuration file:
#
# Device World Wide Port Name 50060e8016641b00
#
# See /usr/openv/volmgr/NetBackup_DeviceConfig_Guide.txt chapter
# "Special configuration for "Sun StorEdge Network Foundation" HBA/Driver"
# for information on how to use sg.build and sg.install to
# configure these devices
#
Thank you
Solved! Go to Solution.
07-08-2014 07:41 AM
Please show us output of the following:
# cd /dev/rmt
# ls -l *cbn
Please let us know if you are running Solaris Sparc or x86.
Herewith my steps that have always worked for me:
# cd /usr/openv/volmgr/bin/driver
# /usr/openv/volmgr/bin/sg.build all
****** Here you may need to add -mt and/or -ml depending on /dev/rmt output *****
Install the new sg driver configuration:
# /usr/bin/rm -f /kernel/drv/sg.conf
# /usr/openv/volmgr/bin/driver/sg.install
Check/verify config:
# /usr/openv/volmgr/bin/sgscan
07-08-2014 07:41 AM
Please show us output of the following:
# cd /dev/rmt
# ls -l *cbn
Please let us know if you are running Solaris Sparc or x86.
Herewith my steps that have always worked for me:
# cd /usr/openv/volmgr/bin/driver
# /usr/openv/volmgr/bin/sg.build all
****** Here you may need to add -mt and/or -ml depending on /dev/rmt output *****
Install the new sg driver configuration:
# /usr/bin/rm -f /kernel/drv/sg.conf
# /usr/openv/volmgr/bin/driver/sg.install
Check/verify config:
# /usr/openv/volmgr/bin/sgscan
07-15-2014 11:26 AM
hello..
i have a similar problem ... i have storageTEK SL150 tape library contains one HP ulterum 5 tape drive conncted to a T-5 Sparc server with solaris 10 .. the server can see the tape drive and the medum changer robot.. but the netbackup can see only the tape drive as a stand alone tape drive ...
here is my /dev/rmt directory
ls -l /dev/rmt
total 48
lrwxrwxrwx 1 root root 79 Jul 15 17:48 0 -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0b -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:b
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0bn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:bn
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0c -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:c
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0cb -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:cb
lrwxrwxrwx 1 root root 82 Jul 15 17:48 0cbn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:cbn
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0cn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:cn
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0h -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:h
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0hb -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:hb
lrwxrwxrwx 1 root root 82 Jul 15 17:48 0hbn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:hbn
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0hn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:hn
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0l -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:l
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0lb -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:lb
lrwxrwxrwx 1 root root 82 Jul 15 17:48 0lbn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:lbn
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0ln -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:ln
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0m -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:m
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0mb -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:mb
lrwxrwxrwx 1 root root 82 Jul 15 17:48 0mbn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:mbn
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0mn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:mn
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0n -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:n
lrwxrwxrwx 1 root root 80 Jul 15 17:48 0u -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:u
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0ub -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:ub
lrwxrwxrwx 1 root root 82 Jul 15 17:48 0ubn -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:ubn
lrwxrwxrwx 1 root root 81 Jul 15 17:48 0un -> ../../devices/pci@500/pci@2/pci@0/pci@a/lpfc@0,1/fp@0,0/st@w500104f000cd058b,0:un
and here is device probe at the ok prompt
{0} ok probe-scsi-all
/pci@500/pci@2/pci@0/pci@a/lpfc@0,1
Device ALPA 2 WWPN 500104f000cd058b
LUN 0 Removable Tape HP Ultrium 5-SCSI Y5BS
LUN 1 Removable Medium Changer STK SL150 0182
/pci@500/pci@2/pci@0/pci@a/lpfc@0
Cannot Init Link.
/pci@400/pci@2/pci@0/pci@e/scsi@0
FCode Version 1.00.63, MPT Version 2.00, Firmware Version 9.00.00.00
i tried to uninstall the sg drivers and install them again but no luck