sgscan will not find the device if there is no link in /dev/sg for that
device. Get the raw device path for the device from /dev/rmt:
# ls -l /dev/rmt/*cbn
/dev/rmt/0cbn -> ../../devices/pci@1e,600000/JNI,FCE@2/st@1,0:cbn
Then check to see if there is a link for it in /dev/sg
# ls -l /dev/sg | grep "/devices/pci@1e,600000/JNI,FCE@2/sg@1,0:"
/dev/sg/c0t1l0 -> ../../devices/pci@1e,600000/JNI,FCE@2/sg@1,0:raw
If there is no link then you need to get that built before you can use
sgscan.
If it is using targets other than 0-15 and luns 0-1 then you need to
change the parameters for sg.build to the targets and luns that your
devices are using.
________________________________
From: veritas-bu-admin AT mailman.eng.auburn DOT edu
[mailto:veritas-bu-admin AT mailman.eng.auburn DOT edu] On Behalf Of Piszcz,
Justin
Sent: Thursday, September 08, 2005 6:38 AM
To: veritas-bu AT mailman.eng.auburn DOT edu
Subject: [Veritas-bu] I have figured out how to do Zoning with a Brocade
3250, but cannot get sgscan to show the devices! :(
I figured out zoning on my Brocade 3250, but sgscan is being a royal
PIA.
# cfgadm -alv output
c3 connected configured unknown
unavailable fc-fabric n
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:fc
c3::500104f00052cf1c connected configured unknown HP
Ultrium 2-SCSI
unavailable tape n
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:fc::500104f00052cf1c
c3::500104f00052cf1f connected configured unknown HP
Ultrium 2-SCSI
unavailable tape n
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:fc::500104f00052cf1f
c3::500104f00052cf22 connected configured unknown HP
Ultrium 2-SCSI
unavailable tape n
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:fc::500104f00052cf22
c3::500104f00052cf25 connected configured unknown HP
Ultrium 2-SCSI
unavailable tape n
/devices/pci@8,600000/SUNW,qlc@1/fp@0,0:fc::500104f00052cf25
c4 connected unconfigured unknown
root@backup01-dev# ls /dev/rmt/
0 0hb 0mb 1 1hb 1mb 2 2hb 2mb 3 3hb 3mb
0b 0hbn 0mbn 1b 1hbn 1mbn 2b 2hbn 2mbn 3b 3hbn 3mbn
0bn 0hn 0mn 1bn 1hn 1mn 2bn 2hn 2mn 3bn 3hn 3mn
0c 0l 0n 1c 1l 1n 2c 2l 2n 3c 3l 3n
0cb 0lb 0u 1cb 1lb 1u 2cb 2lb 2u 3cb 3lb 3u
0cbn 0lbn 0ub 1cbn 1lbn 1ub 2cbn 2lbn 2ub 3cbn 3lbn 3ub
0cn 0ln 0ubn 1cn 1ln 1ubn 2cn 2ln 2ubn 3cn 3ln 3ubn
0h 0m 0un 1h 1m 1un 2h 2m 2un 3h 3m 3un
root@backup01-dev#
Everything is there!
root@backup01-dev# sgscan
root@backup01-dev#
I have tried rebuilding the st/sg/etc files several times over, with no
success.
cd /usr/openv/volmgr/bin/driver
/usr/openv/volmgr/bin/sg.build all -mt 15 -ml 1
rem_drv sg
/usr/bin/rm -f /kernel/drv/sg.conf
/usr/openv/volmgr/bin/driver/sg.install
sgscan tape
Any ideas?
|