X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C86708.A556EDDC@onstor-exch02.onstor.net>; Mon, 4 Feb 2008 01:33:41 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C86708.A556EDDC"
References: <BB375AF679D4A34E9CA8DFA650E2B04E03E9A5B4@onstor-exch02.onstor.net> <20080203205753.51eedea4@ripper.onstor.net>
Content-class: urn:content-classes:message
Subject: RE: BSD Question for LSI Escalation
Date: Mon, 4 Feb 2008 01:33:23 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E0353B525@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: BSD Question for LSI Escalation
Thread-Index: Achm6oDEKKSulXBJTlelJO68q6ManwAHhol/
From: "Chris Vandever" <chris.vandever@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C86708.A556EDDC
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks.  I'll try your suggestions.

ChrisV


-----Original Message-----
From: Andy Sharp
Sent: Sun 2/3/2008 8:57 PM
To: Chris Vandever
Subject: Re: BSD Question for LSI Escalation
=20
On Fri, 1 Feb 2008 20:20:59 -0800 "Chris Vandever"
<chris.vandever@onstor.com> wrote:

> I need to pick your brain on this one.
>=20
> I'm working on an escalation for LSI where bsd hangs in reboot (maybe
> 10% of the time).  I added instrumentation to /sbin/reboot to print
> how far I get.  Reboot, in its infinite wisdom, forks a child and the
> child calls revoke("/dev/console"), which as far as I can tell closes
> all open fd's for the device.  So, I added code to the parent to
> re-open "/dev/console" and dup it to stdin/out/err.  This works fine
> when nfxsh calls system("reboot"), but there is zero output when
> chassisd does the same thing.  I'm thinking it's because chassisd
> runs as a daemon.  Is there some other dev I can open from a daemon
> that will give me output on the ssc console?
>=20
> Thanks.
>=20
> ChrisV
>=20

There should be a regular serial device that corresponds to the serial
port in use.  /dev/console is largely an alias.  I don't know what it's
called in BSD but you should be able to tell by what is in /etc/inittab
or by using ps when BSD is up and running and seeing what device is
listed for login or csh, depending on whether you're logged in on the
console or not.  Unfortunately I don't have any systems with BSD cf
cards in them right now for me to boot up and see for myself.

Good luck,

a


------_=_NextPart_001_01C86708.A556EDDC
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7653.38">
<TITLE>RE: BSD Question for LSI Escalation</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=3D2>Thanks.&nbsp; I'll try your suggestions.<BR>
<BR>
ChrisV<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: Andy Sharp<BR>
Sent: Sun 2/3/2008 8:57 PM<BR>
To: Chris Vandever<BR>
Subject: Re: BSD Question for LSI Escalation<BR>
<BR>
On Fri, 1 Feb 2008 20:20:59 -0800 &quot;Chris Vandever&quot;<BR>
&lt;chris.vandever@onstor.com&gt; wrote:<BR>
<BR>
&gt; I need to pick your brain on this one.<BR>
&gt;<BR>
&gt; I'm working on an escalation for LSI where bsd hangs in reboot =
(maybe<BR>
&gt; 10% of the time).&nbsp; I added instrumentation to /sbin/reboot to =
print<BR>
&gt; how far I get.&nbsp; Reboot, in its infinite wisdom, forks a child =
and the<BR>
&gt; child calls revoke(&quot;/dev/console&quot;), which as far as I can =
tell closes<BR>
&gt; all open fd's for the device.&nbsp; So, I added code to the parent =
to<BR>
&gt; re-open &quot;/dev/console&quot; and dup it to stdin/out/err.&nbsp; =
This works fine<BR>
&gt; when nfxsh calls system(&quot;reboot&quot;), but there is zero =
output when<BR>
&gt; chassisd does the same thing.&nbsp; I'm thinking it's because =
chassisd<BR>
&gt; runs as a daemon.&nbsp; Is there some other dev I can open from a =
daemon<BR>
&gt; that will give me output on the ssc console?<BR>
&gt;<BR>
&gt; Thanks.<BR>
&gt;<BR>
&gt; ChrisV<BR>
&gt;<BR>
<BR>
There should be a regular serial device that corresponds to the =
serial<BR>
port in use.&nbsp; /dev/console is largely an alias.&nbsp; I don't know =
what it's<BR>
called in BSD but you should be able to tell by what is in =
/etc/inittab<BR>
or by using ps when BSD is up and running and seeing what device is<BR>
listed for login or csh, depending on whether you're logged in on =
the<BR>
console or not.&nbsp; Unfortunately I don't have any systems with BSD =
cf<BR>
cards in them right now for me to boot up and see for myself.<BR>
<BR>
Good luck,<BR>
<BR>
a<BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C86708.A556EDDC--
