X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C86EB0.FCB85A9A@onstor-exch02.onstor.net>; Wed, 13 Feb 2008 19:26:21 -0700
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C86EB0.FCB85A9A"
Content-class: urn:content-classes:message
Subject: RE: Initial config wiki page
Date: Wed, 13 Feb 2008 19:26:21 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E0856E15B@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E03E9A608@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Initial config wiki page
Thread-Index: Achuos7DCpx5ZKJWR7qhY7Q9LHQTLgAAhGGQAADX/QAAAS5mIAAAjeFA
References: <BB375AF679D4A34E9CA8DFA650E2B04E0856E13F@onstor-exch02.onstor.net> <BB375AF679D4A34E9CA8DFA650E2B04E03E9A608@onstor-exch02.onstor.net>
From: "Charissa Willard" <IMCEAEX-_O=ONSTOR_OU=FIRST+20ADMINISTRATIVE+20GROUP_CN=RECIPIENTS_CN=CHARISSA+2EWILLARD@onstor.com>
To: "Chris Vandever" <chris.vandever@onstor.com>
Cc: "Jan Seidel" <jan.seidel@onstor.com>,
	"Andy Sharp" <andy.sharp@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C86EB0.FCB85A9A
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

I was just listing the files for the /etc directory that include the
files for initial configuration. I think Larry was consolidating the
list of all files, so now I don't know where all of them are anymore
:-(. I'll need to search for the complete list when I get a chance.

=20

The /etc/hostname.sc1 contains "dhcp" initially so that the initial
config process will attempt to get the configuration from the dhcp
server first. If the filer is not configured, this will be the case.=20


From the Initial Config wiki page, under "Design":


/etc/rc script will be called by init process during boot up.=20

The rc script checks if the NG (NAS Gateway) is initialized. If the NG
is in Uninitialzed or in Initializing state, it will perform the
following operations=20

*	Deletes /usr/local/agile/conf/nasgwayinit.conf [File that
contains initial configuration values obtained via dhcp].=20
*	Writes *dhcp* entry to /etc/hostname.sc1 and /etc/hostname.sc2.
This allows NG to query IP address from the dhcp server.=20
*	Copies /usr/local/agile/etc/pmtab.init as
/usr/local/agile/etc/pmtab.=20
*	Creates /etc/passwd file from /etc/master.passwd file.=20
*	Creates /etc/mail/aliases file for sendmail.=20

rc then calls /etc/netstart script. netstart script will run
/sbin/dhclient since the /etc/hostname.<interface> file contains *dhcp*
entry.=20

dhclient will then call /dbin/dhclient-script based on the result of the
dhcp server query result. Below are the possible reasons for dhclient
calling dhclient-script.=20

=20

=20

________________________________

From: Chris Vandever=20
Sent: Wednesday, February 13, 2008 6:10 PM
To: Charissa Willard; Jan Seidel; Andy Sharp
Subject: RE: Initial config wiki page

=20

That's really old code because /usr/local/agile has been deprecated, and
agile.conf no longer exists.  The command should be copying not only
files that are common between bsd and linux (which should also include
/onstor/conf/cluster.conf and /onstor/conf/cluster.db.DB* off the top of
my head), but should also copy files that are OS-specific.  I know that
system upgrade and compact flash utilities were new for cougar in sub7,
but they shouldn't have broken the bsd versions, which it appears they
have.  :-(  I believe Andy was working in this area recently, so perhaps
he can shed some light there.

=20

Note that /etc/hostname.sc2 was not copied, and /etc/hostname.sc1 did
not appear to have been copied correctly as it contained "dhcp" rather
than the correct IP addr and netmask.

=20

I've suggested to Jan that he install sub5 to get the config copied via
FTI, as that's what I did yesterday and it seemed to work.

=20

ChrisV

=20

________________________________

From: Charissa Willard=20
Sent: Wednesday, February 13, 2008 5:48 PM
To: Jan Seidel
Cc: Chris Vandever
Subject: RE: Initial config wiki page

=20

The "system copy config" command in /ssc-nfxsh/cmd_system.c calls the
do_copy_config function to copy the config files in the /etc directory
to the secondary flash. The files are specified in the sys_config_files
declared in the cmd_flash.c file.=20

=20

int

do_copy_config(int argc, char **argv)

{

    return copy_to_secondary(sys_config_files, FALSE);

}

=20

/* List of system configuration files, to copy by "copy config" command"
*/

char *sys_config_files =3D "usr/local/agile/conf/agile.conf etc/hosts
etc/mygate etc/hostname.sc1 etc/hostname.sc2 etc/master.passwd
etc/passwd etc/pwd.db etc/spwd.db etc/myname";

=20

Which files listed above that exist on the primary flash were not copied
to the secondary flash?

=20

________________________________

From: Jan Seidel=20
Sent: Wednesday, February 13, 2008 5:02 PM
To: Charissa Willard
Cc: Chris Vandever
Subject: RE: Initial config wiki page

=20

Hello Charissa,

=20

The 'system config copy' didn't copy all the hostname files. We didn't
modify the nasgwayinit.status file, because we don't know what other
files might be missing.

See below the output of the system config copy command:

=20

eng25 diag> system config copy=20

Mounted secondary disk

Starting to copy the files to the secondary disk

etc/hosts

etc/mygate

etc/hostname.sc1

etc/master.passwd

etc/passwd

etc/pwd.db

etc/spwd.db

etc/myname

onstor/conf/cluster.conf

onstor/conf/cluster.db.DB0

onstor/conf/cluster.db.DBSYS1

etc/resolv.conf

etc/ssh/ssh_host_dsa_key.pub

etc/ssh/ssh_host_dsa_key

etc/ssh/ssh_host_key.pub

etc/ssh/ssh_host_key

etc/ssh/ssh_host_rsa_key

etc/ssh/ssh_host_rsa_key.pub

etc/localtime

etc/syslog.conf

etc/ntp.conf

etc/ntp/step-tickers

onstor/etc/elog.conf

onstor/etc/syslog.conf

onstor/etc/snmpd.conf

Unmounting /mnt1/onstor/conf...done.

Unmounting /mnt1/tmp...done.

Unmounting /mnt1/var...done.

Unmounting /mnt1/...done.

eng25 diag>

=20

________________________________

From: Charissa Willard=20
Sent: Wednesday, February 13, 2008 4:45 PM
To: Jan Seidel
Cc: Chris Vandever
Subject: Initial config wiki page

=20

http://wiki.onstor.net/wiki/SW:Initial_Configuration

=20

NAS Gateway can be in one of the following states=20

1. Uninitialized - Initial parameters not configured until now or
"system config reset" command=20
has been issued
2. Initializing - some other user is currently doing filer
initialization and initialization=20
process is in progress
3. Initialized - filer is already configured

These states are stored in /usr/local/agile/conf/nasgwayinit.status file


=20


------_=_NextPart_001_01C86EB0.FCB85A9A
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Wingdings;
	panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
h2
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:18.0pt;
	font-family:"Times New Roman";
	font-weight:bold;}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
p
	{mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman";}
pre
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
tt
	{font-family:"Courier New";}
span.EmailStyle20
	{mso-style-type:personal;
	font-family:"Courier New";
	color:windowtext;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:Arial;
	color:navy;}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Courier New";
	color:windowtext;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
span.EmailStyle23
	{mso-style-type:personal;
	font-family:Arial;
	color:navy;}
span.EmailStyle24
	{mso-style-type:personal-reply;
	font-family:"Courier New";
	color:windowtext;
	font-weight:normal;
	font-style:normal;
	text-decoration:none none;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
 /* List Definitions */
 @list l0
	{mso-list-id:2011368121;
	mso-list-template-ids:-187038410;}
@list l0:level1
	{mso-level-number-format:bullet;
	mso-level-text:\F0B7;
	mso-level-tab-stop:.5in;
	mso-level-number-position:left;
	text-indent:-.25in;
	mso-ansi-font-size:10.0pt;
	font-family:Symbol;}
ol
	{margin-bottom:0in;}
ul
	{margin-bottom:0in;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D1 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:9.0pt;color:black'>I was just listing the files for =
the /etc
directory that include the files for initial configuration. I think =
Larry was
consolidating the list of all files, so now I don&#8217;t know where all =
of
them are anymore </span></font><font size=3D1 color=3Dblack =
face=3DWingdings><span
style=3D'font-size:9.0pt;font-family:Wingdings;color:black'>L</span></fon=
t><font
size=3D1 color=3Dblack><span style=3D'font-size:9.0pt;color:black'>. =
I&#8217;ll need
to search for the complete list when I get a =
chance.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:9.0pt;color:black'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D1 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:9.0pt;color:black'>The /etc/hostname.sc1 contains =
&#8220;dhcp&#8221;
initially so that the initial config process will attempt to get the
configuration from the dhcp server first. If the filer is not =
configured, this
will be the case. <o:p></o:p></span></font></p>

<h2><b><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>From
the Initial Config wiki page, under =
&#8220;Design&#8221;:<o:p></o:p></span></font></b></h2>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>/etc/rc
script will be called by init process during boot up. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>The
rc script checks if the NG (NAS Gateway) is initialized. If the NG is in =
<font
color=3Dblue><span style=3D'color:blue'>Uninitialzed</span></font> or in =
<font
color=3Dblue><span style=3D'color:blue'>Initializing</span></font> =
state, it will
perform the following operations <o:p></o:p></span></font></p>

<ul type=3Ddisc>
 <li class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=3D3 face=3D"Times New =
Roman"><span
     style=3D'font-size:12.0pt;font-family:"Times New Roman"'>Deletes =
</span></font>/usr/local/agile/conf/nasgwayinit.conf<font
     size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:
     "Times New Roman"'> [File that contains initial configuration =
values
     obtained via dhcp]. <o:p></o:p></span></font></li>
 <li class=3DMsoNormal =
style=3D'color:blue;mso-margin-top-alt:auto;mso-margin-bottom-alt:
     auto;mso-list:l0 level1 lfo1'><font size=3D3 color=3Dblue
     face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>Writes
     *dhcp* entry to </span></font>/etc/hostname.sc1<font size=3D3
     face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>
     and </span></font>/etc/hostname.sc2<font size=3D3 face=3D"Times New =
Roman"><span
     style=3D'font-size:12.0pt;font-family:"Times New Roman"'>. This =
allows NG to
     query IP address from the dhcp server. =
<o:p></o:p></span></font></li>
 <li class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=3D3 face=3D"Times New =
Roman"><span
     style=3D'font-size:12.0pt;font-family:"Times New Roman"'>Copies =
</span></font>/usr/local/agile/etc/pmtab.init<font
     size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:
     "Times New Roman"'> as =
</span></font>/usr/local/agile/etc/pmtab<font
     size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:
     "Times New Roman"'>. <o:p></o:p></span></font></li>
 <li class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=3D3 face=3D"Times New =
Roman"><span
     style=3D'font-size:12.0pt;font-family:"Times New Roman"'>Creates =
</span></font>/etc/passwd<font
     size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:
     "Times New Roman"'> file from </span></font>/etc/master.passwd<font
     size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:
     "Times New Roman"'> file. <o:p></o:p></span></font></li>
 <li class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;
     mso-list:l0 level1 lfo1'><font size=3D3 face=3D"Times New =
Roman"><span
     style=3D'font-size:12.0pt;font-family:"Times New Roman"'>Creates =
</span></font>/etc/mail/aliases<font
     size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:
     "Times New Roman"'> file for </span></font>sendmail<font size=3D3
     face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>.
     <o:p></o:p></span></font></li>
</ul>

<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>rc
then calls </span></font>/etc/netstart<font size=3D3 face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;font-family:"Times New Roman"'> script. =
netstart script
will run </span></font>/sbin/dhclient<font size=3D3 face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;font-family:"Times New Roman"'> since the
/etc/hostname.&lt;interface&gt; file contains *dhcp* entry. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><font
size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>dhclient
will then call </span></font>/dbin/dhclient-script<font size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>
based on the result of the dhcp server query result. Below are the =
possible
reasons for dhclient calling dhclient-script. =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:9.0pt;color:black'><o:p>&nbsp;</o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
face=3DTahoma><span
style=3D'font-family:Tahoma'> <st1:PersonName w:st=3D"on">Chris =
Vandever</st1:PersonName>
<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, February =
13, 2008
6:10 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName =
w:st=3D"on">Charissa
 Willard</st1:PersonName>; Jan Seidel; Andy Sharp<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Initial =
config wiki
page</span></font><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>That&#8217;s really old code =
because
/usr/local/agile has been deprecated, and agile.conf no longer exists.
&nbsp;The command should be copying not only files that are common =
between bsd
and linux (which should also include /onstor/conf/cluster.conf and =
/onstor/conf/cluster.db.DB*
off the top of my head), but should also copy files that are =
OS-specific.
&nbsp;I know that system upgrade and compact flash utilities were new =
for
cougar in sub7, but they shouldn&#8217;t have broken the bsd versions, =
which it
appears they have.&nbsp; </span></font><font color=3Dnavy =
face=3DWingdings><span
style=3D'font-family:Wingdings;color:navy'>L</span></font><font =
color=3Dnavy
face=3DArial><span style=3D'font-family:Arial;color:navy'>&nbsp; I =
believe Andy was
working in this area recently, so perhaps he can shed some light =
there.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Note that /etc/hostname.sc2 was not
copied, and /etc/hostname.sc1 did not appear to have been copied =
correctly as
it contained &#8220;dhcp&#8221; rather than the correct IP addr and =
netmask.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>I&#8217;ve suggested to Jan that he
install sub5 to get the config copied via FTI, as that&#8217;s what I =
did
yesterday and it seemed to work.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>ChrisV<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
face=3DTahoma><span
style=3D'font-family:Tahoma'> <st1:PersonName w:st=3D"on">Charissa =
Willard</st1:PersonName>
<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, February =
13, 2008
5:48 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Jan Seidel<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> <st1:PersonName =
w:st=3D"on">Chris
 Vandever</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Initial =
config wiki
page</span></font><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'>The
&#8220;system copy config&#8221; command in /ssc-nfxsh/cmd_system.c =
calls the
do_copy_config function to copy the config files in the /etc directory =
to the
secondary flash. The files are specified in the sys_config_files =
declared in
the cmd_flash.c file. <o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><b><font size=3D2 =
color=3D"#7f0055"
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:#7F0055;font-weight:
bold'>int</span></font></b><o:p></o:p></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><b><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black;font-weight:bold'>do_copy_config</s=
pan></font></b><font
color=3Dblack><span style=3D'color:black'>(</span></font><b><font =
color=3D"#7f0055"><span
style=3D'color:#7F0055;font-weight:bold'>int</span></font></b><font =
color=3Dblack><span
style=3D'color:black'> argc, </span></font><b><font =
color=3D"#7f0055"><span
style=3D'color:#7F0055;font-weight:bold'>char</span></font></b><font =
color=3Dblack><span
style=3D'color:black'> **argv)</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black'>{</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black'>&nbsp;&nbsp;&nbsp;
</span></font><b><font color=3D"#7f0055"><span =
style=3D'color:#7F0055;font-weight:
bold'>return</span></font></b><font color=3Dblack><span =
style=3D'color:black'>
copy_to_secondary(</span></font><font color=3Dblue><span =
style=3D'color:blue'>sys_config_files</span></font><font
color=3Dblack><span style=3D'color:black'>, </span></font><i><font =
color=3D"#0000c0"><span
style=3D'color:#0000C0;font-style:italic'>FALSE</span></font></i><font
color=3Dblack><span =
style=3D'color:black'>);</span></font><o:p></o:p></p>

<p class=3DMsoNormal style=3D'text-autospace:none'><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;color:black'>}</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'>/*
List of system configuration files, to copy by &quot;copy config&quot;
command&quot; */<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'>char
*<font color=3Dblue><span =
style=3D'color:blue'>sys_config_files</span></font> =3D
&quot;usr/local/agile/conf/agile.conf etc/hosts etc/mygate =
etc/hostname.sc1
etc/hostname.sc2 etc/master.passwd etc/passwd etc/pwd.db etc/spwd.db
etc/myname&quot;;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'>Which
files listed above that exist on the primary flash were not copied to =
the
secondary flash?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
face=3DTahoma><span
style=3D'font-family:Tahoma'> Jan Seidel <br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, February =
13, 2008
5:02 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> <st1:PersonName =
w:st=3D"on">Charissa
 Willard</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> <st1:PersonName =
w:st=3D"on">Chris
 Vandever</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> RE: Initial =
config wiki
page</span></font><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt;font-family:"Times New Roman"'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hello =
Charissa,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>The &#8216;system config =
copy&#8217;
didn&#8217;t copy all the hostname files. We didn&#8217;t modify the =
nasgwayinit.status
file, because we don&#8217;t know what other files might be =
missing.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>See below the output of the system =
config
copy command:<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>eng25 diag&gt; system config copy =
<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Mounted secondary =
disk<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Starting to copy the files to the
secondary disk<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/hosts<o:p></o:p></span></font></=
p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/mygate<o:p></o:p></span></font><=
/p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/hostname.sc1<o:p></o:p></span></=
font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/master.passwd<o:p></o:p></span><=
/font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/passwd<o:p></o:p></span></font><=
/p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/pwd.db<o:p></o:p></span></font><=
/p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/spwd.db<o:p></o:p></span></font>=
</p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/myname<o:p></o:p></span></font><=
/p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>onstor/conf/cluster.conf<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>onstor/conf/cluster.db.DB0<o:p></o:p=
></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>onstor/conf/cluster.db.DBSYS1<o:p></=
o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/resolv.conf<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ssh/ssh_host_dsa_key.pub<o:p></o=
:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ssh/ssh_host_dsa_key<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ssh/ssh_host_key.pub<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ssh/ssh_host_key<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ssh/ssh_host_rsa_key<o:p></o:p><=
/span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ssh/ssh_host_rsa_key.pub<o:p></o=
:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/localtime<o:p></o:p></span></fon=
t></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/syslog.conf<o:p></o:p></span></f=
ont></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ntp.conf<o:p></o:p></span></font=
></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>etc/ntp/step-tickers<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>onstor/etc/elog.conf<o:p></o:p></spa=
n></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>onstor/etc/syslog.conf<o:p></o:p></s=
pan></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>onstor/etc/snmpd.conf<o:p></o:p></sp=
an></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Unmounting =
/mnt1/onstor/conf...done.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Unmounting =
/mnt1/tmp...done.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Unmounting =
/mnt1/var...done.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Unmounting =
/mnt1/...done.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>eng25 =
diag&gt;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New Roman"'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
face=3DTahoma><span
style=3D'font-family:Tahoma'> <st1:PersonName w:st=3D"on">Charissa =
Willard</st1:PersonName>
<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Wednesday, February =
13, 2008
4:45 PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> Jan Seidel<br>
<b><span style=3D'font-weight:bold'>Cc:</span></b> <st1:PersonName =
w:st=3D"on">Chris
 Vandever</st1:PersonName><br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> Initial config =
wiki page</span></font><font
size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt;font-family:"Times New =
Roman"'><o:p></o:p></span></font></p>

</div>

<p class=3DMsoNormal><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><a
href=3D"http://wiki.onstor.net/wiki/SW:Initial_Configuration">http://wiki=
.onstor.net/wiki/SW:Initial_Configuration</a><o:p></o:p></span></font></p=
>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>NAS
Gateway can be in one of the following states =
<o:p></o:p></span></font></p>

<pre><font size=3D2 face=3D"Courier New"><span =
style=3D'font-size:10.0pt'>1. Uninitialized - Initial parameters not =
configured until now or &#8220;system config reset&#8221; command =
<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>has been =
issued<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>2. =
Initializing - some other user is currently doing filer initialization =
and initialization <o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>process =
is in progress<o:p></o:p></span></font></pre><pre><font
size=3D2 face=3D"Courier New"><span style=3D'font-size:10.0pt'>3. =
Initialized &#8211; filer is already =
configured<o:p></o:p></span></font></pre>

<p><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:12.0pt'>These
states are stored in </span></font><tt><font size=3D2 face=3D"Courier =
New"><span
style=3D'font-size:10.0pt'>/usr/local/agile/conf/nasgwayinit.status</span=
></font></tt>
file <o:p></o:p></p>

<p class=3DMsoNormal><font size=3D1 face=3D"Courier New"><span =
style=3D'font-size:9.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C86EB0.FCB85A9A--
