[Veritas-bu] Re: sd.conf entries affecting what tape drives are seen
anthony.guzzi at storability.com
Tue Oct 2 10:29:35 CDT 2001
You're correct, it is in all likelihood the behavior of the JNI driver.
I'm dealing with the same issues right now. One additional point I'd like
to make is the driver appears to use the definitions in the 'sd.conf' file
before any in the 'st.conf'. This means that if you have a line in the
'sd.conf' file that reads something like
name="sd" class="scsi" target=2 hba="fcaw1";
if target 2 is not yet assigned when the tape drives are being processed
(ie. there is not disk on HBA fcaw1 that wants target 2), even if there is
a line in the 'st.conf' file with a 'target=5 hba="fcaw1"
wwpn="........."', the tape drive will be assigned target 2; the line in
the 'st.conf' will be ignored because that fibre device will already have
been bound to a SCSI target.
When it comes to fibre devices, I'd have to say its best make sure if you
specify and a 'hba=' entry on any line in either the 'st.conf' or the
'st.conf', you should always specify a 'wwpn=', 'wwnn=', or 'port=' entry
on the same line. Don't let the system assign it on its own.
-- Tony Guzzi
Sr. Solutions Engineer, AssuredRestore team
From: Mike Andres <mike_andres at cnt.com>
To: "Lumpkin, Buddy" <Buddy.Lumpkin at nordstrom.com>,
veritas-bu at mailman.eng.auburn.edu,
"'veritas-vx at mailman.eng.auburn.edu'"
<veritas-vx at mailman.eng.auburn.edu>,
"'sunmanager at sunmanager.org'"
<sunmanager at sunmanager.org>,
emc-l at lists.blinky-lights.org
Date: Tue, 2 Oct 2001 08:55:41 -0500
Subject: [Veritas-bu] RE: [Veritas-vx] sd.conf entries affecting what tape
drives are s
een (GURU's and H ACKERS please read!)
I believe what you are seeing is a side effect of the JNI driver. If,
the fcaw.conf file you have a line such as "def_hba_binding = fcaw*",
it. This setting unleashes the fcaw driver to bind to any device it sees,
at any target/LUN that is outlined in any SCSI compliant driver config
This inlcludes sd, st, ses, and others. You have very little control over
how things are configured with this setting, especially in a SAN
For instance, if you wish to have a tape drive set up on a SAN at target
LUN 0, on fcaw3, and you have "def_hba_binding = fcaw*" in the fcaw.conf
file, if JNI scans the ses.conf file first and a device responds at target
1, LUN 0, this controller cannot bind to the tape drive at that target/LUN
cause it is already assigned. A better way is to set the def_hba_binding
value to "non-jni" or any string that does not match the JNI driver name.
Next, in whatever driver config file you wish to configure a device, use
"hba = " directive to instruct that driver instance to go and look for the
device you wish to see.
From: Lumpkin, Buddy [mailto:Buddy.Lumpkin at nordstrom.com]
Sent: Monday, October 01, 2001 1:09 PM
To: veritas-bu at mailman.eng.auburn.edu;
'veritas-vx at mailman.eng.auburn.edu'; 'sunmanager at sunmanager.org';
emc-l at lists.blinky-lights.org
Subject: [Veritas-vx] sd.conf entries affecting what tape drives are
seen (GURU's and H ACKERS please read!)
We have seen many times where a custom sd.conf file prevents the system
(Solaris 2.x) from seeing tape drives.
an entry commented out in sd.conf for target 3, lun 0 prevents a tape
from being seen at this target and LUN.
another example would be any entry that specifies a parent, hba or wwn. So
in the above instance if the line wasn't commented out but rather had a
that also specified something like:
name="sd" class="scsi" target=2 hba="fcaw3" lun=0;
Unless there were an entry like this for hba="fcaw0" a drive on fcaw0 at
same target and lun would not be seen.
It seems to me that the st driver requires the sd driver for scsi access
at minimum relies on the sd driver to "probe" for scsi devices.
Many people have argued this point with me but I have seen this behavior
many times ... the sd driver definately has an affect on tape drive
When you look at the man page for sd, it says "sd - SCSI disk and
CD-ROM device driver".
Has anyone else witnessed this behaviour?
If so, does anyone have a clear understanding of how the two work
By what I have observed, im visualizing some kind of abstraction like
ioctl() system calls to control tape device
Does it really work this way?
I looked around in the Solaris source code and could not find the sd or
st driver anywhere, does anyone know where I can find them?
More information about the Veritas-bu