Veritas-bu

[Veritas-bu] sgscan not picking up drives

2006-03-18 14:41:06
Subject: [Veritas-bu] sgscan not picking up drives
From: algorithm AT gmail DOT com (Algo Seeker)
Date: Sat, 18 Mar 2006 14:41:06 -0500
------=_Part_7351_10386081.1142710866414
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

 have fixed the sgscan issue, by hacking the supplied scripts. I have
changed the grep with egrep and modifed the code so it should also pickup
emlx

bash-2.05# grep SUNW /usr/openv/volmgr/bin/sg*
/usr/openv/volmgr/bin/sg.build :   hbaports=3D`luxadm -e port 2>/dev/null|
/bin/egrep 'SUNW,|emlx' |
/usr/openv/volmgr/bin/sg.build:   hbaports=3D`luxadm -e port 2>/dev/null|
/bin/egrep 'SUNW,|emlx' |
/usr/openv/volmgr/bin/sgscan:  hbaports=3D`luxadm -e port 2>/dev/null |
/bin/egrep 'SUNW,|emlx' |
bash-2.05# /usr/openv/volmgr/bin/sgscan all conf -v
Tape device types enabled in the Solaris tape driver, st(7D), configuration
file:


All devices recognized by the SCSI Generic (sg) driver:
/dev/sg/c0tw21000004cf202ca9l0: Disk (???): "SEAGATE ST336605FSUN36G 0438"
/dev/sg/c0tw21000004cf203d11l0: Disk (???): "SEAGATE ST336605FSUN36G 0438"
/dev/sg/c0tw500308c00166f80bl1: Changer: "ADIC    Scalar i2000    300A"
/dev/sg/c0tw500308c00166f80bl2: Tape (/dev/rmt/0): "IBM     ULTRIUM-TD3
5481" : NOT-IN-ST-CONFIG-FILE
bash-2.05#


Thanks,

Yasir


On 3/18/06, Christopher Jay Manders <CJManders AT lbl DOT gov> wrote:
>
>
> Exactly.
>
> sgscan does not know what to do if it is not set up with its sg.conf.
>
> Also, you will probably need to add some entries (created in an st.conf
> file inside of 'driver' when you do the sg.build) to your st.conf.
>
> Then a reboot -- -r will be necessary to reconfigure the new sg driver
> and st.conf entries.
>
> HTH
>
> Cheers!
>
> --Chris
>
>
> > > I have gone thru the standard excercise of sgscan builld
> >> all blah blah thing.
> >
> > I don't know what you do with blah blah, it normally works like this:
> >
> > # cd /usr/openv/volmgr/bin/driver
> > # ../sg.build all
> > # rm /kernel/drv/sg.conf
> > # ./sg.install
> >
> > HTH, Joost
> > _______________________________________________
> > Veritas-bu maillist  -  Veritas-bu AT mailman.eng.auburn DOT edu
> > http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu
>
>

------=_Part_7351_10386081.1142710866414
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

 have fixed the sgscan issue, by hacking the supplied scripts. I have
changed the grep with egrep and modifed the code so it should also
pickup emlx<br>

<br>

bash-2.05# grep SUNW /usr/openv/volmgr/bin/sg*&nbsp;&nbsp; <br>

/usr/openv/volmgr/bin/sg.build
<div style=3D"direction: ltr;">:&nbsp;&nbsp; hbaports=3D`luxadm -e port 2&g=
t;/dev/null| /bin/egrep 'SUNW,|emlx' |<br>
/usr/openv/volmgr/bin/sg.build:&nbsp;&nbsp; hbaports=3D`luxadm -e port 2&gt=
;/dev/null| /bin/egrep 'SUNW,|emlx' |<br>
/usr/openv/volmgr/bin/sgscan:&nbsp; hbaports=3D`luxadm -e port 2&gt;/dev/nu=
ll | /bin/egrep 'SUNW,|emlx' |<br>
bash-2.05# /usr/openv/volmgr/bin/sgscan all conf -v<br>
Tape device types enabled in the Solaris tape driver, st(7D), configuration=
 file:<br>
<br>
<br>
All devices recognized by the SCSI Generic (sg) driver:<br>
/dev/sg/c0tw21000004cf202ca9l0: Disk (???): &quot;SEAGATE ST336605FSUN36G 0=
438&quot;<br>
/dev/sg/c0tw21000004cf203d11l0: Disk (???): &quot;SEAGATE ST336605FSUN36G 0=
438&quot;<br>
/dev/sg/c0tw500308c00166f80bl1: Changer: &quot;ADIC&nbsp;&nbsp;&nbsp; Scala=
r i2000&nbsp;&nbsp;&nbsp; 300A&quot;<br>
/dev/sg/c0tw500308c00166f80bl2: Tape (/dev/rmt/0):
&quot;IBM&nbsp;&nbsp;&nbsp;&nbsp; ULTRIUM-TD3&nbsp;&nbsp;&nbsp;&nbsp; 5481&=
quot;
: NOT-IN-ST-CONFIG-FILE<br>
bash-2.05# <br>
<br>
<br>
Thanks, <br>
<br>
Yasir</div>
<br><br><div><span class=3D"gmail_quote">On 3/18/06, <b class=3D"gmail_send=
ername">Christopher Jay Manders</b> &lt;<a href=3D"mailto:CJManders AT lbl DOT 
gov=
">CJManders AT lbl DOT gov</a>&gt; wrote:</span><blockquote 
class=3D"gmail_quote" =
style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8=
ex; padding-left: 1ex;">
<br>Exactly.<br><br>sgscan does not know what to do if it is not set up wit=
h its sg.conf.<br><br>Also, you will probably need to add some entries (cre=
ated in an st.conf<br>file inside of 'driver' when you do the sg.build) to =
your=20
st.conf.<br><br>Then a reboot -- -r will be necessary to reconfigure the ne=
w sg driver<br>and st.conf entries.<br><br>HTH<br><br>Cheers!<br><br>--Chri=
s<br><br><br>&gt; &gt; I have gone thru the standard excercise of sgscan bu=
illd
<br>&gt;&gt; all blah blah thing.<br>&gt;<br>&gt; I don't know what you do =
with blah blah, it normally works like this:<br>&gt;<br>&gt; # cd /usr/open=
v/volmgr/bin/driver<br>&gt; # ../sg.build all<br>&gt; # rm /kernel/drv/sg.c=
onf
<br>&gt; # ./sg.install<br>&gt;<br>&gt; HTH, Joost<br>&gt; ________________=
_______________________________<br>&gt; Veritas-bu maillist&nbsp;&nbsp;-&nb=
sp;&nbsp;<a href=3D"mailto:Veritas-bu AT mailman.eng.auburn DOT 
edu">Veritas-bu@ma=
ilman.eng.auburn.edu
</a><br>&gt; <a href=3D"http://mailman.eng.auburn.edu/mailman/listinfo/veri=
tas-bu">http://mailman.eng.auburn.edu/mailman/listinfo/veritas-bu</a><br><b=
r></blockquote></div><br>

------=_Part_7351_10386081.1142710866414--

<Prev in Thread] Current Thread [Next in Thread>