I believe the plan to have them in the default directory was so that=
the code would work "out of the box" -- you could use the de=
faults without having to do you copy. Only if you want to modify them=
or add do you need to use the custom directory so they are not overlay=
ed by the next install.

But we have discussed implementing the "config noreplace" =
options for our installs.

I was experiencing the same issue after setting up the
/install/custom/install/$OS directories. Looking at my install template=
s, I
see two ways of calling the postscripts:

#INCLUDE:#ENV:XCATROOT#/share/xcat/install/scripts/post.$OS

&

#INCLUDE:../scripts/post.$OS
/
Obviously, if you're template is coming from /install/custom/install/$O=
S,
you'll want to have /install/custom/install/scripts populated with the<=
br>
scripts you're calling. Unfortunately, I would rather use the default
scripts in the /opt/xcat/share/xcat/install/scripts directory. If they'=
re
updated, I don't have to remember to copy them over to
/install/custom/install/scripts. I suppose a symlink would solve this..=
.

Honestly, the /install/custom directory seems to unnecessarily complica=
te
things. I know nobody's forcing me to use it. But, rather than split up=
where those files reside, why not have xCAT packages install default
templates to a 'samples' or 'examples' directory or name them so as to =
set
them apart (ex: default.compute.tmpl or compute.tmpl.default)? This way=
,
users can copy over only what they need and not worry about future soft=
ware
updates overwriting their modified templates. That, or use the "co=
nfig
noreplace" alternative mentioned in the compute.tmpl thread.

=
--1__=0ABBFC1BDFF8909B8f9e8a93df938690918c0ABBFC1BDFF8909B--
--0__=0ABBFC1BDFF8909B8f9e8a93df938690918c0ABBFC1BDFF8909B
Content-type: image/gif;
name="graycol.gif"
Content-Disposition: inline; filename="graycol.gif"
Content-ID: <1__=0ABBFC1BDFF8909B8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64
R0lGODlhEAAQAKECAMzMzAAAAP///wAAACH5BAEAAAIALAAAAAAQABAAAAIXlI+py+0PopwxUbpu
ZRfKZ2zgSJbmSRYAIf4fT3B0aW1pemVkIGJ5IFVsZWFkIFNtYXJ0U2F2ZXIhAAA7
--0__=0ABBFC1BDFF8909B8f9e8a93df938690918c0ABBFC1BDFF8909B
Content-type: image/gif;
name="ecblank.gif"
Content-Disposition: inline; filename="ecblank.gif"
Content-ID: <2__=0ABBFC1BDFF8909B8f9e8a93df938@us.ibm.com>
Content-transfer-encoding: base64
R0lGODlhEAABAIAAAAAAAP///yH5BAEAAAEALAAAAAAQAAEAAAIEjI8ZBQA7
--0__=0ABBFC1BDFF8909B8f9e8a93df938690918c0ABBFC1BDFF8909B--
--===============5640053793758575786==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
--===============5640053793758575786==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
--===============5640053793758575786==--
From nobody Thu Jan 7 18:51:38 2010
MIME-Version: 1.0
Received: by 10.231.151.200 with HTTP; Tue, 15 Dec 2009 14:20:56 -0800 (PST)
In-Reply-To: <5caae8c60912031651h2f61734dh3a9dbdcb869ef036@mail.gmail.com>
References: <20091203162936.GD27813@polop.usc.edu>
<5caae8c60912031651h2f61734dh3a9dbdcb869ef036@mail.gmail.com>
Date: Tue, 15 Dec 2009 15:20:56 -0700
Delivered-To: egan@sense.net
Message-ID: <258e18ac0912151420i45c0b56bv2bf2adec71759aa3@mail.gmail.com>
Subject: Re: [torqueusers] Torque: checkpoint/resume function
From: Egan Ford
To: Glen Beane
Content-Type: text/plain; charset=ISO-8859-1
Status: O
Content-Length: 650
Lines: 23
There was a reason we disabled it on ultra scale systems. At least in
2007 when the docs were written (I wrote that section). But I do not
recall the issue.
On Thu, Dec 3, 2009 at 5:51 PM, Glen Beane wrote:
>
>
> 2009/12/3 Xiang Jun Wu
>>
>> --disable-rpp
>>
>
> I'll beat Garrick to the punch:
>
> Do not disable RPP!!! disabling it doesn't help anything and can case
> problems with momctl in some cases
>
> _______________________________________________
> torqueusers mailing list
> torqueusers@supercluster.org
> http://www.supercluster.org/mailman/listinfo/torqueusers
>
>
From nobody Thu Jan 7 18:51:41 2010
Delivered-To: egan@sense.net
Received: by 10.231.151.200 with SMTP id d8cs197ibw;
Thu, 10 Dec 2009 01:51:32 -0800 (PST)
Received: by 10.91.18.24 with SMTP id v24mr3060882agi.61.1260438690473;
Thu, 10 Dec 2009 01:51:30 -0800 (PST)
Return-Path:
Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88])
by mx.google.com with ESMTP id 3si953348iwn.121.2009.12.10.01.51.30;
Thu, 10 Dec 2009 01:51:30 -0800 (PST)
Received-SPF: pass (google.com: domain of
xcat-user-bounces@lists.sourceforge.net designates
216.34.181.88 as permitted sender) client-ip=216.34.181.88;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of
xcat-user-bounces@lists.sourceforge.net designates
216.34.181.88 as permitted sender)
smtp.mail=xcat-user-bounces@lists.sourceforge.net
Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com)
by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69)
(envelope-from )
id 1NIfgF-0003O3-GV; Thu, 10 Dec 2009 09:51:27 +0000
Received: from sfi-mx-4.v28.ch3.sourceforge.com ([172.29.28.124]
helo=mx.sourceforge.net)
by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.69)
(envelope-from ) id 1NIfgE-0003Nu-Dm
for xcat-user@lists.sourceforge.net; Thu, 10 Dec 2009 09:51:26 +0000
Received-SPF: pass (sfi-mx-4.v28.ch3.sourceforge.com: domain of gmail.com
designates 209.85.220.225 as permitted sender)
client-ip=209.85.220.225; envelope-from=arifali1@gmail.com;
helo=mail-fx0-f225.google.com;
Received: from mail-fx0-f225.google.com ([209.85.220.225])
by sfi-mx-4.v28.ch3.sourceforge.com with esmtp (Exim 4.69)
id 1NIfg6-0003lB-TB
for xcat-user@lists.sourceforge.net; Thu, 10 Dec 2009 09:51:26 +0000
Received: by fxm25 with SMTP id 25so7461189fxm.6
for ;
Thu, 10 Dec 2009 01:51:12 -0800 (PST)
Received: by 10.223.74.91 with SMTP id t27mr2980577faj.62.1260438672037;
Thu, 10 Dec 2009 01:51:12 -0800 (PST)
Received: from ?192.168.10.52? (mail.ocf.co.uk [81.23.53.224])
by mx.google.com with ESMTPS id 13sm1050314fks.45.2009.12.10.01.51.10
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Thu, 10 Dec 2009 01:51:11 -0800 (PST)
Message-ID: <4B20C484.5080505@arif-ali.co.uk>
Date: Thu, 10 Dec 2009 09:51:00 +0000
From: Arif Ali
Organization: OCF plc
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: xCAT Users Mailing list
References:
In-Reply-To:
X-Spam-Score: -1.5 (-)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
See http://spamassassin.org/tag/ for more details.
-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
sender-domain
-0.0 SPF_PASS SPF: sender matches SPF record
-0.0 DKIM_VERIFIED Domain Keys Identified Mail: signature passes
verification
0.0 DKIM_SIGNED Domain Keys Identified Mail: message has a signature
X-Headers-End: 1NIfg6-0003lB-TB
Subject: Re: [xcat-user] postscripts issue difference between 2.2.1 and 2.3
X-BeenThere: xcat-user@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: xCAT Users Mailing list
List-Id: xCAT Users Mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: xcat-user-bounces@lists.sourceforge.net
Status: O
Content-Length: 2106
Lines: 48
My thoughts below,
>
> Folks,
> Now that we are going to have "postscripts" and "postbootscripts" on
> the postscripts table, I have the following questions:
> 1. what scripts will be run for diskless deployment where there is no
> reboot? scripts on both? The "postscripts" contains the default
> scripts that needed by xCAT such as syslog and remoteshell.
>
I think we do the scripts in postreboot, as those scripts will have the
relevant stuff such as restarting services, configuring the the networks
etc. There's no need to do the prescripts, as most of that would have
been done while image creation.
>
> 2. what scripts will be run for updatenode command when no scripts are
> specified. Before, when no scripts are specified, the scripts under
> "postscripts" are executed. Should we switch to "postbootscripts" or both?
>
I think it should be both, if we had a machine that was installed
manually (by CD), but wanted to use xCAT to deploy the applications,
then it would make sense to use both.
>
> 3. for SLES, the old way was running the "postscripts" after the boot
> but before the init.d process. I am going to switch it to old way, but
> adding running "postbootscripts" at the init.d process. For RH and
> others, the "postscripts" will be run before the boot and
> "postbootscripts" will be run at the init.d process after the boot. Is
> this acceptable?
>
what if we had scripts listed in postscripts as well, for SLES what
would happen there?
With CSM, we used to have an update directory, and used that for the
updatenode feature, would it not make sense to have a similar feature,
rather than run all the scripts using the updatenode feature. thoughts?
regards,
Arif
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
From nobody Thu Jan 7 18:51:42 2010
Delivered-To: egan@sense.net
Received: by 10.231.156.19 with SMTP id u19cs738738ibw;
Wed, 9 Dec 2009 10:45:53 -0800 (PST)
Received: by 10.151.88.10 with SMTP id q10mr7029565ybl.191.1260384353004;
Wed, 09 Dec 2009 10:45:53 -0800 (PST)
Return-Path:
Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88])
by mx.google.com with ESMTP id 28si151963iwn.81.2009.12.09.10.45.52;
Wed, 09 Dec 2009 10:45:52 -0800 (PST)
Received-SPF: pass (google.com: domain of
xcat-user-bounces@lists.sourceforge.net designates
216.34.181.88 as permitted sender) client-ip=216.34.181.88;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of
xcat-user-bounces@lists.sourceforge.net designates
216.34.181.88 as permitted sender)
smtp.mail=xcat-user-bounces@lists.sourceforge.net
Received: from localhost ([127.0.0.1] helo=sfs-ml-2.v29.ch3.sourceforge.com)
by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69)
(envelope-from )
id 1NIRXl-0001J3-0M; Wed, 09 Dec 2009 18:45:45 +0000
Received: from sfi-mx-3.v28.ch3.sourceforge.com ([172.29.28.123]
helo=mx.sourceforge.net)
by sfs-ml-2.v29.ch3.sourceforge.com with esmtp (Exim 4.69)
(envelope-from ) id 1NIRXj-0001Ip-0F
for xcat-user@lists.sourceforge.net; Wed, 09 Dec 2009 18:45:43 +0000
Received-SPF: pass (sfi-mx-3.v28.ch3.sourceforge.com: domain of us.ibm.com
designates 32.97.110.153 as permitted sender)
client-ip=32.97.110.153; envelope-from=linggao@us.ibm.com;
helo=e35.co.us.ibm.com;
Received: from e35.co.us.ibm.com ([32.97.110.153])
by sfi-mx-3.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256)
(Exim 4.69) id 1NIRXc-0000yi-4j
for xcat-user@lists.sourceforge.net; Wed, 09 Dec 2009 18:45:42 +0000
Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com
[9.17.195.227])
by e35.co.us.ibm.com (8.14.3/8.13.1) with ESMTP id nB9IWwVJ001254
for ; Wed, 9 Dec 2009 11:32:58 -0700
Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169])
by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id
nB9IjJWp175132
for ; Wed, 9 Dec 2009 11:45:22 -0700
Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1])
by d03av03.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP
id nB9IjFkk006035
for ; Wed, 9 Dec 2009 11:45:15 -0700
Received: from d03nm124.boulder.ibm.com (d03nm124.boulder.ibm.com
[9.17.195.150])
by d03av03.boulder.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id
nB9IjFKS006029
for ; Wed, 9 Dec 2009 11:45:15 -0700
In-Reply-To:
To: Ling Gao
X-Mailer: Lotus Notes Release 7.0 HF277 June 21, 2006
Message-ID:
From: Ling Gao
Date: Wed, 9 Dec 2009 13:45:14 -0500
X-MIMETrack: Serialize by Router on D03NM124/03/M/IBM(Release 8.0.1|February
07, 2008) at 12/09/2009 11:45:15
MIME-Version: 1.0
X-Spam-Score: -3.2 (---)
X-Spam-Report: Spam Filtering performed by mx.sourceforge.net.
See http://spamassassin.org/tag/ for more details.
-1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for
sender-domain
-4.0 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/,
medium trust [32.97.110.153 listed in list.dnswl.org]
-0.0 SPF_PASS SPF: sender matches SPF record
1.2 TVD_FW_GRAPHIC_NAME_MID BODY: TVD_FW_GRAPHIC_NAME_MID
1.0 HTML_MESSAGE BODY: HTML included in message
0.1 AWL AWL: From: address is in the auto white-list
X-Headers-End: 1NIRXc-0000yi-4j
Cc: xCAT Users Mailing list
Subject: Re: [xcat-user] postscripts issue difference between 2.2.1 and 2.3
X-BeenThere: xcat-user@lists.sourceforge.net
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: xCAT Users Mailing list
List-Id: xCAT Users Mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Content-Type: multipart/mixed; boundary="===============5586645440208673349=="
Errors-To: xcat-user-bounces@lists.sourceforge.net
Status: O
Content-Length: 33312
Lines: 777
--===============5586645440208673349==
Content-type: multipart/related;
Boundary="0__=08BBFC14DFF588598f9e8a93df938690918c08BBFC14DFF58859"
--0__=08BBFC14DFF588598f9e8a93df938690918c08BBFC14DFF58859
Content-type: multipart/alternative;
Boundary="1__=08BBFC14DFF588598f9e8a93df938690918c08BBFC14DFF58859"
--1__=08BBFC14DFF588598f9e8a93df938690918c08BBFC14DFF58859
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: quoted-printable
Folks,
Now that we are going to have "postscripts" and "postbootscripts" o=
n
the postscripts table, I have the following questions:
1. what scripts will be run for diskless deployment where there is no
reboot? scripts on both? The "postscripts" contains the default scri=
pts
that needed by xCAT such as syslog and remoteshell.
2. what scripts will be run for updatenode command when no scripts are
specified. Before, when no scripts are specified, the scripts under
"postscripts" are executed. Should we switch to "postbootscripts" or bo=
th?
3. for SLES, the old way was running the "postscripts" after the boot b=
ut
before the init.d process. I am going to switch it to old way, but add=
ing
running "postbootscripts" at the init.d process. For RH and others, the=
"postscripts" will be run before the boot and "postbootscripts" will be=
run
at the init.d process after the boot. Is this acceptable?
Ling
Ling Gao
Poughkeepsie Unix Development Lab
IBM Systems and Technology Group
Internal: T/L 293-5692
External: linggao@us.ibm.com, 845-433-5692
"I never worry about the future. It comes soon enough." --- Albert Eins=
tein
=
Ling =
Gao/Poughkeepsie/ =
IBM =
To
xCAT Users Mailing list =
12/07/2009 04:08
PM =
cc
xCAT Users Mailing list =
Subj=
ect
Re: [xcat-user] postscripts issu=
e
difference between 2.2.1 and 2.3=
(Document link: Ling Gao) =
=
=
=
=
=
=
ok,ok, folks, we have heard your cry :-).
We are planing to move the postscripts back to pre-reboot. A colu=
mn
called "postbootscripts" will be added to the postscripts table to hand=
le
scripts that are to be run at post-reboot phase. However, otherpks wil=
l be
kept in the postbootscripts column because for SLES, the zypper is lock=
ed
by the autoyast process during the boot. If you want to do kernel updat=
e
during the pre-reboot phase using otherpkgs, you need either manually m=
ove
the otherpkgs from "postbootscripts" column to "postscripts" column, or=
supply your own scripts to do so.
I am going to implement this if it souds ok with you guys.
Ling
----------------Mark Loveridge
-------------------------------
As I've not yet moved on to 2.3 I've not encountered this issue yet,
however, I think it is
definitely a retrograde step:.
- with post-scripts being run pre-reboot if I actually have anyt=
hing
that can't be run until post-reboot
I can write a post script that creates a script that can be run out=
of
rc.local on the first reboot. The
converse is obviously not possible
- in a similar vein to one of the earlier comments in the thread=
,
for some OS releases I do a kernel
update in the otherpkgs script. This means that I now require two
reboots instead of one.
I will definitely second having the ability of having both pre- and pos=
t-
reboot scripts. I would go further
and say that I much prefer to get as much as possible done pre-reboot a=
s
this means that the system I hand
over to operations has had as few modifications as possible since the l=
ast
reboot (currently we only do
stateful installations so we may be running systems for months if not
years; we don't like surprises
when there's another reboot a long way down the road).
Mark
From: Scott Denham [mailto:sdenham@us.ibm.com]
Sent: 03 December 2009 20:01
To: xCAT Users Mailing list
Subject: Re: [xcat-user] postscripts issue difference between 2.2=
.1
and 2.3
I agree here. xCAT behavior has always been to run the postscript=
s
pre-boot so the target is not live, and there are a number of thi=
ngs
that either don't work or have to be done differently in a
"firstboot" kind of environment.
I like the idea proposed here for a preboot:/postboot: tag with t=
he
default being existing behavior. That's much better for existing
customers who may have extensive postscripts that might not work =
in
the postboot environment. Another option would be to create a thi=
rd
class of scripts as "firstboot", but the tag seems like less work=
and
a more logical arrangement.
||=3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D=
- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D-
=3D- =3D- =3D-
|| Scott S. Denham
|| Consulting IT Specialist
|| Petroleum Lead - Deep Computing Technical Team
|| IBM Systems & Technology Group
|| Two Riverway Email: sdenham@us.ibm.com
|| Houston, TX 77056 Voice/Fax: 713.940.1178
|| (CDT / GMT - 6)
||=3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D=
- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D- =3D-
=3D- =3D- =3D-
Kilian CAVALOTTI wrote on
12/03/2009 11:58:20 AM:
> From: Kilian CAVALOTTI
> To: xCAT Users Mailing list
> Date: 12/03/2009 12:00 PM
> Subject: Re: [xcat-user] postscripts issue difference between 2=
.2.1
and 2.3
>
> On Thu, Dec 3, 2009 at 6:33 PM, Arif Ali
wrote:
> > A good workaround, but, then that's fiddling with the
installation
> > media, and the other thing you have there is that, not all no=
des
need an
> > update to the kernel, so then you are stuck, unless we put in=
both of
> > the kernels, do a createrepo, and then specifically put the
version of
> > kernel required in the compute.tmpl files, messy, but workabl=
e.
>
> I agree.
>
> > The best solution would be the one that we had with CSM (i.e.=
prereboot,
> > postreboot).
>
> Ditto.
>
> > I thought the prescripts table would be a good name for a tab=
le,
but
> > looks like that table name has been taken for some other proc=
ess.
> >
> > thoughts?
>
> Prescripts are indeed a feature present in xCAT 2.3. They are u=
sed
to
> run commands before initiating a node installation. This is pre=
tty
> useful for a bunch of things, typically stuff that need to be
executed
> on the master nodes before the compute nodes come up. Like
configuring
> nodes as execution hosts in SGE, for instance (this has to be =
done
> from an administration node, before the actual installation).
>
> So what about a modifier in the postscripts table to indicate w=
hen
the
> script has to be executed (see the prescripts man page, and the=
> "action:" syntax)?Something like:
>
> #node,postscripts,comments,disable
> "xcatdefaults","syslog,remoteshell,otherpkgs,syncfiles",,
> "compute","preboot:update_kernel,postboot:install_ofed",,
>
> With a default of postboot, if no {preboot:,postboot:} is
specified,
> to minimize transitional effects from the current syntax.
>
> Just a thought,
> Cheers,
> --
> Kilian
>
>
-----------------------------------------------------------------=
-------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
-----------------------------------------------------------------------=
----->
Mark Loveridge
markl@gatwick.westerngeco.slb.com>
Tel: +44(0)1293 556870 --- Fax: +44(0)1293 556800 --- Mob: +44(0)7824
473477>
Registered Name: WesternGeco Limited
Registered Office: Schlumberger House, Buckingham Gate, Gatwick Airport=
,
West Sussex RH6 0NZ, UK
Registered in England & Wales: No. 1389716
-----------------------------------------------------------------------=
-------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
=
--1__=08BBFC14DFF588598f9e8a93df938690918c08BBFC14DFF58859
Content-type: text/html; charset=US-ASCII
Content-Disposition: inline
Content-transfer-encoding: quoted-printable

Folks,
Now that we are going to have "postscripts" and "pos=
tbootscripts" on the postscripts table, I have the following ques=
tions:
1. what scripts will be run for diskless deployment where there is no r=
eboot? scripts on both? The "postscripts" contains the def=
ault scripts that needed by xCAT such as syslog and remoteshell.
2. what scripts will be run for updatenode command when no scripts are =
specified. Before, when no scripts are specified, the scripts under &qu=
ot;postscripts" are executed. Should we switch to "postbootsc=
ripts" or both?
3. for SLES, the old way was running the "postscripts" after =
the boot but before the init.d process. I am going to switch it to old=
way, but adding running "postbootscripts" at the init.d proc=
ess. For RH and others, the "postscripts" will be run before =
the boot and "postbootscripts" will be run at the init.d proc=
ess after the boot. Is this acceptable?

We are planing to move the postscripts back to pre-reboot. A colu=
mn called "postbootscripts" will be added to the postscripts =
table to handle scripts that are to be run at post-reboot phase. Howev=
er, otherpks will be kept in the postbootscripts column because for SLE=
S, the zypper is locked by the autoyast process during the boot. If you=
want to do kernel update during the pre-reboot phase using otherpkgs, =
you need either manually move the otherpkgs from "postbootscripts&=
quot; column to "postscripts" column, or supply your own scri=
pts to do so.

As I've not yet moved on t=
o 2.3 I've not encountered this issue yet, however, I think it isdefinitely a retrograde st=
ep:

- with post-scripts=
being run pre-reboot if I actually have anything that can't be run unt=
il post-rebootI can write a post script =
that creates a script that can be run out of rc.local on the first rebo=
ot. Theconverse is obviously not =
possible- in a similar vein to =
one of the earlier comments in the thread, for some OS releases I do a =
kernelupdate in the otherpkgs sc=
ript. This means that I now require two reboots instead of one.=

I will definitely second h=
aving the ability of having both pre- and post- reboot scripts. I would=
go furtherand say that I <=
font color=3D"#1F497D" face=3D"Courier New">much prefer to get as much as possible done =
pre-reboot as this means that the system I handover to operations has had=
as few modifications as possible since the last reboot (currently we o=
nly do stateful installations so =
we may be running systems for months if not years; we don't like surpri=
seswhen there's another reboo=
t a long way down the road).Mark

I agree here. xCAT behavio=
r has always been to run the postscripts pre-boot so the target is not =
live, and there are a number of things that either don't work or have t=
o be done differently in a "firstboot" kind of environment. <=
br>
I like the idea proposed here for a preboot:/postboot: tag with the def=
ault being existing behavior. That's much better for existing customers=
who may have extensive postscripts that might not work in the postboot=
environment. Another option would be to create a third class of script=
s as "firstboot", but the tag seems like less work and a more=
logical arrangement.

> From: Kilian CAVALOTTI <kilian.cavalotti.work@gmail.com>=
> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net&gt=
;
> Date: 12/03/2009 12:00 PM
> Subject: Re: [xcat-user] postscripts issue difference between 2.2.=
1 and 2.3
>
> On Thu, Dec 3, 2009 at 6:33 PM, Arif Ali <mail@arif-ali.co.uk&g=
t; wrote:
> > A good workaround, but, then that's fiddling with the install=
ation
> > media, and the other thing you have there is that, not all no=
des need an
> > update to the kernel, so then you are stuck, unless we put in=
both of
> > the kernels, do a createrepo, and then specifically put the v=
ersion of
> > kernel required in the compute.tmpl files, messy, but workabl=
e.
>
> I agree.
>
> > The best solution would be the one that we had with CSM (i.e.=
prereboot,
> > postreboot).
>
> Ditto.
>
> > I thought the prescripts table would be a good name for a tab=
le, but
> > looks like that table name has been taken for some other proc=
ess.
> >
> > thoughts?
>
> Prescripts are indeed a feature present in xCAT 2.3. They are used=
to
> run commands before initiating a node installation. This is pretty=
> useful for a bunch of things, typically stuff that need to be exec=
uted
> on the master nodes before the compute nodes come up. Like configu=
ring
> nodes as execution hosts in SGE, for instance (this has to be don=
e
> from an administration node, before the actual installation).
>
> So what about a modifier in the postscripts table to indicate when=
the
> script has to be executed (see the prescripts man page, and the
> "action:" syntax)?Something like:
>
> #node,postscripts,comments,disable
> "xcatdefaults","syslog,remoteshell,otherpkgs,syncfi=
les",,
> "compute","preboot:update_kernel,postboot:install_o=
fed",,
>
> With a default of postboot, if no {preboot:,postboot:} is specifie=
d,
> to minimize transitional effects from the current syntax.
>
> Just a thought,
> Cheers,
> --
> Kilian
>
> ------------------------------------------------------------------=
------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.=
> http://p.sf.net/sfu/redhat-sfdev2=
dev
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.s=
ourceforge.net/lists/listinfo/xcat-user

For me that sounds great, I'll be waiting for this update, will this
appear as a patch with 2.3, or later?

Any Ideas of timescale (not trying to rush)

regards,

Arif Ali

Mobile: +44 (0)7742 240 720
E-mail: mail@arif-ali.co.uk

2009/12/7 Ling Gao <linggao@us.ibm.com>:
> ok,ok, folks, we have heard your cry :-).
>
> We are planing to move the postscripts back to pre-reboot. A column called
> "postbootscripts" will be added to the postscripts table to handle scripts
> that are to be run at post-reboot phase. However, otherpks will be kept in
> the postbootscripts column because for SLES, the zypper is locked by the
> autoyast process during the boot. If you want to do kernel update during the
> pre-reboot phase using otherpkgs, you need either manually move the
> otherpkgs from "postbootscripts" column to "postscripts" column, or supply
> your own scripts to do so.
>
> I am going to implement this if it souds ok with you guys.
>
> Ling
>
>
> ----------------Mark Loveridge <markl@slb.com>
> -------------------------------
>
> As I've not yet moved on to 2.3 I've not encountered this issue yet,
> however, I think it is
> definitely a retrograde step:
>
> - with post-scripts being run pre-reboot if I actually have anything that
> can't be run until post-reboot
> I can write a post script that creates a script that can be run out of
> rc.local on the first reboot. The
> converse is obviously not possible
> - in a similar vein to one of the earlier comments in the thread, for some
> OS releases I do a kernel
> update in the otherpkgs script. This means that I now require two reboots
> instead of one.
>
> I will definitely second having the ability of having both pre- and post-
> reboot scripts. I would go further
> and say that I much prefer to get as much as possible done pre-reboot as
> this means that the system I hand
> over to operations has had as few modifications as possible since the last
> reboot (currently we only do
> stateful installations so we may be running systems for months if not years;
> we don't like surprises
> when there's another reboot a long way down the road).
>
> Mark
>
> From: Scott Denham [mailto:sdenham@us.ibm.com]
> Sent: 03 December 2009 20:01
> To: xCAT Users Mailing list
> Subject: Re: [xcat-user] postscripts issue difference between 2.2.1 and 2.3
>
> I agree here. xCAT behavior has always been to run the postscripts pre-boot
> so the target is not live, and there are a number of things that either
> don't work or have to be done differently in a "firstboot" kind of
> environment.
>
> I like the idea proposed here for a preboot:/postboot: tag with the default
> being existing behavior. That's much better for existing customers who may
> have extensive postscripts that might not work in the postboot environment.
> Another option would be to create a third class of scripts as "firstboot",
> but the tag seems like less work and a more logical arrangement.
>
>
>
> ||=- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =-
> || Scott S. Denham
> || Consulting IT Specialist
> || Petroleum Lead - Deep Computing Technical Team
> || IBM Systems & Technology Group
> || Two Riverway Email: sdenham@us.ibm.com
> || Houston, TX 77056 Voice/Fax: 713.940.1178
> || (CDT / GMT - 6)
> ||=- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =- =-
>
> Kilian CAVALOTTI <kilian.cavalotti.work@gmail.com> wrote on 12/03/2009
> 11:58:20 AM:
>
>> From: Kilian CAVALOTTI <kilian.cavalotti.work@gmail.com>
>> To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
>> Date: 12/03/2009 12:00 PM
>> Subject: Re: [xcat-user] postscripts issue difference between 2.2.1 and
>> 2.3
>>
>> On Thu, Dec 3, 2009 at 6:33 PM, Arif Ali <mail@arif-ali.co.uk> wrote:
>> > A good workaround, but, then that's fiddling with the installation
>> > media, and the other thing you have there is that, not all nodes need an
>> > update to the kernel, so then you are stuck, unless we put in both of
>> > the kernels, do a createrepo, and then specifically put the version of
>> > kernel required in the compute.tmpl files, messy, but workable.
>>
>> I agree.
>>
>> > The best solution would be the one that we had with CSM (i.e. prereboot,
>> > postreboot).
>>
>> Ditto.
>>
>> > I thought the prescripts table would be a good name for a table, but
>> > looks like that table name has been taken for some other process.
>> >
>> > thoughts?
>>
>> Prescripts are indeed a feature present in xCAT 2.3. They are used to
>> run commands before initiating a node installation. This is pretty
>> useful for a bunch of things, typically stuff that need to be executed
>> on the master nodes before the compute nodes come up. Like configuring
>> nodes as execution hosts in SGE, for instance (this has to be done
>> from an administration node, before the actual installation).
>>
>> So what about a modifier in the postscripts table to indicate when the
>> script has to be executed (see the prescripts man page, and the
>> "action:" syntax)?Something like:
>>
>> #node,postscripts,comments,disable
>> "xcatdefaults","syslog,remoteshell,otherpkgs,syncfiles",,
>> "compute","preboot:update_kernel,postboot:install_ofed",,
>>
>> With a default of postboot, if no {preboot:,postboot:} is specified,
>> to minimize transitional effects from the current syntax.
>>
>> Just a thought,
>> Cheers,
>> --
>> Kilian
>>
>>
>> ------------------------------------------------------------------------------
>> Join us December 9, 2009 for the Red Hat Virtual Experience,
>> a free event focused on virtualization and cloud computing.
>> Attend in-depth sessions from your desk. Your couch. Anywhere.
>> http://p.sf.net/sfu/redhat-sfdev2dev
>> _______________________________________________
>> xCAT-user mailing list
>> xCAT-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
> ----------------------------------------------------------------------------
> Mark Loveridge markl@gatwick.westerngeco.slb.com
>
> Tel: +44(0)1293 556870 --- Fax: +44(0)1293 556800 --- Mob: +44(0)7824 473477
>
> Registered Name: WesternGeco Limited
> Registered Office: Schlumberger House, Buckingham Gate, Gatwick Airport,
> West Sussex RH6 0NZ, UK
> Registered in England & Wales: No. 1389716
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev_______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
> ------------------------------------------------------------------------------
> Join us December 9, 2009 for the Red Hat Virtual Experience,
> a free event focused on virtualization and cloud computing.
> Attend in-depth sessions from your desk. Your couch. Anywhere.
> http://p.sf.net/sfu/redhat-sfdev2dev
> _______________________________________________
> xCAT-user mailing list
> xCAT-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>

After you have it successfully running, do you still get the messages on=
=20
restart.service xcatd stopservice xcatd startservice xcatd=20
restart

Lissa K. Valletta414/3-8Poughkeepsie, NY 12601(t=
ie=20
293) 433-3102

"Putz,=20
Andreas" ---12/08/2009 12:22:18 PM---It seems that the original xcat proces=
s did=20
not terminate with the init script. I killed the process

From:=

"Putz, Andreas"=20
<Andreas.Putz@afcc-auto.com>

To:=
TD>

"'xCAT Users Mailing list'"=20
<xcat-user@lists.sourceforge.net>

Date:=

12/08/2009 12:22 PM

Subject:

Re: [xcat-user] Missing depen=
dencies=20
with Fedora 11

It seems that the original x=
cat=20
process did not terminate with the init script. I killed the process manual=
ly,=20
and the init-script behaves correctly since then.AndreasFrom: Putz, Andreas=20
[mailto:Andreas.Putz@afcc-auto.co=
m] Sent:=20
Tuesday, December 08, 2009 8:32 AMTo: 'xCAT Users Mailing=20
list'Subject: Re:=20
[xcat-user] Missing dependencies with Fedora 11

Hi Lissa,=
after logout and log=
in the=20
weird characters on the command line are gone. But I still get some error=20
messages on a xcatd restart:=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D[root@mnode andput]# /etc/init.d/xcatd=20
restartStopping xCATd cat: /var/run/xcatd.pid: No such file or=20
directory/etc/init.d/xcatd: line 93: kill: -: arguments must be process=
or=20
job IDscat: /var/run/xcatd.pid: No such file or=20
directory/etc/init.d/xcatd: line 101: kill: -: arguments must be proces=
s or=20
job IDs[FAILED][root@mnode andput]# /etc/init.d/xcatd statusxCA=
T=20
service is running-----------------------------------------------------------=
----------------------------------------------------------------------Thanks,Andreas

"Putz,=20
Andreas" ---12/07/2009 03:26:15 PM---Hi Lissa, oops, that sounds somewhat=20
familiar. I guess I should have remebered that by now. I recrea

From:

"Putz, Andreas" <Andreas.Putz@afcc-auto.com>

=

To:

"'xCAT Users Mailing list'"=20
<xcat-user@lists.sourceforge.net>

Date:

12/07/2009 03:26 PM

Subject:

Re: [xcat-user] Missing dependencies with Fedora=20
11

<=
BR>Hi=20
Lissa,oops, that sounds somewhat familiar. I guess I should have rem=
ebered=20
that by now. I recreated the credentials and then restarted xcat. I get som=
e=20
strange messages on the shutdown part, but the startup works fine. Also the=
=20
tabdump site command works now. I will install the UI next and continue fro=
m=20
there. The other stange thing is that after a xcat start or restart I get s=
ome=20
characters on the command line. I have attached this part together with the=
=20
other outputs.Thanks again for the quick help,Andreas

"Putz,=20
Andreas" ---12/04/2009 07:13:22 PM---I have the same problem as Diego, and =
I=20
submitted a bug report on sourceforge in parallel (Fedora 11=20

From:

"Putz, Andreas"=20
<Andreas.Putz@afcc-auto.com>

To:

xCAT Users Mailing list=20
<xcat-user@lists.sourceforge.net>

Date:

12/04/2009 07:13 PM

Subject:

Re: [xcat-user] Missing dependencies wit=
h Fedora=20
11

I have the sa=
me problem=20
as Diego, and I submitted a bug report on sourceforge in parallel (Fedo=
ra=20
11: xCAT installation problems. - ID: 2902762).

I have to migrate to=
=20
Fedora 11 and I am trying to install xcat and my new future management=20
node.I tried to install from different repositories (stable, update, de=
v),=20
but run into the same problem for all of them.

I install via yum and=
the=20
online repository xcat repository and the Fedora9 dependency repository=
. In=20
addition, I manually installed the Fedora 12package for conserver:=20
conserver-8.1.16-9.fc12.x86_64.rpm, as I could not find the appropriate=
=20
package for Fedora 11. This was a bit tricky as the corresponding ssl packa=
ges=20
are notavailable with fedora 11. (Now the conserver package wants a too=
new=20
one, instead of the too old one if the Fedora 9 package is installed). =
My=20
workaround was to create corresponding system links to ksh, libcrypto.so and=20
to libssl.so. I also created an empty rpm package to provide the dependenci=
es. I=20
also tried to create thekinks automatically through the rpm, but my rpm=
build=20
knowledge proved to be too limited so far.

I suspect ssl to be=20
responsible for the problem, as I had similar problemswith my Fedora 9=
=20
management node and ssl has been the culprit before. Itried to follow t=
he=20
same solution steps as for Fedora 9, but so far with nosuccess.<=
FONT=20
size=3D6>

Hi Lissa,after logout and login the weird=
characters on the command line are gone. But I still get some error me=
ssages on a xcatd restart:=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D[root@mnode andput]# /etc/init.d=
/xcatd restart
Stopping xCATd cat: /var/run/xcatd.pid: No such file or directory
/etc/init.d/xcatd: line 93: kill: -: arguments must be process or job I=
Ds
cat: /var/run/xcatd.pid: No such file or directory
/etc/init.d/xcatd: line 101: kill: -: arguments must be process or job =
IDs
[FAILED]=
[root@mnode andput]# /etc/init.d/xcatd status
xCAT service is running--------------------------------=
-----------------------------------------------------------------------=
--------------------------Thanks,Andreas

<=
br>
Hi Lissa,
oops, that sounds somewhat familiar. I guess I should have remebered th=
at by now. I recreated the credentials and then restarted xcat. I get s=
ome strange messages on the shutdown part, but the startup works fine. =
Also the tabdump site command works now. I will install the UI next and=
continue from there. The other stange thing is that after a xcat start=
or restart I get some characters on the command line. I have attached =
this part together with the other outputs.
Thanks again for the quick help,
Andreas

It sounds like the credentials did not generate cor=
rectly. Could you run xcatconfig -c and see if you get any errors. Then=
run service xcatd start and see if it will start successfully.

Lissa K. Valletta
414/3-8
Poughkeepsie, NY 12601
(tie 293) 433-3102

&quot=
;Putz, Andreas" ---12/04/2009 07:13:22 PM---I have the same proble=
m as Diego, and I submitted a bug report on sourceforge in parallel (Fe=
dora 11

=

From:

<=
br>
"Putz, Andreas" <Andreas.Putz@afcc-auto.com>

To:

xCAT Users Mailing list <xcat-user@lists.sourceforge.net><=
/td>

Date:

<=
br>
12/04/2009 07:13 PM

Subject:

Re: [xcat-user] Missing dependencies with Fedora 11

<=
br>

I have the same problem as Diego, and I submitted a bug report on sourc=
eforge in parallel
(Fedora 11: xCAT installation problems. - ID: 2902762).

I have to migrate to Fedora 11 and I am trying to install xcat and my n=
ew future management node.
I tried to install from different repositories (stable, update, dev), b=
ut run into the same problem for all of them.

I install via yum and the online repository xcat repository and the Fed=
ora
9 dependency repository. In addition, I manually installed the Fedora 1=
2
package for conserver: conserver-8.1.16-9.fc12.x86_64.rpm, as I could n=
ot find the
appropriate package for Fedora 11. This was a bit tricky as the corresp=
onding ssl packages are not
available with fedora 11. (Now the conserver package wants a too new on=
e, instead of the too old one
if the Fedora 9 package is installed). My workaround was to create corr=
esponding system links to ksh, libcrypto.so
and to libssl.so. I also created an empty rpm package to provide the de=
pendencies. I also tried to create the
kinks automatically through the rpm, but my rpmbuild knowledge proved t=
o be too limited so far.

I suspect ssl to be responsible for the problem, as I had similar probl=
ems
with my Fedora 9 management node and ssl has been the culprit before. I=
tried to follow the same solution steps as for Fedora 9, but so far wit=
h no
success.

"Putz,=20
Andreas" ---12/04/2009 07:13:22 PM---I have the same problem as Diego, and =
I=20
submitted a bug report on sourceforge in parallel (Fedora 11

From:

"Putz, Andreas" <Andreas.Putz@afcc-auto.com>

=

To:

xCAT Users Mailing list=20
<xcat-user@lists.sourceforge.net>

Date:

12/04/2009 07:13 PM

Subject:

Re: [xcat-user] Missing dependencies with Fedora=20
11

I have the sa=
me problem=20
as Diego, and I submitted a bug report on sourceforge in parallel (Fedo=
ra=20
11: xCAT installation problems. - ID: 2902762).I have to migrate to Fe=
dora 11 and=20
I am trying to install xcat and my new future management node.I tried t=
o=20
install from different repositories (stable, update, dev), but run into the=
same=20
problem for all of them.

I install via yum and the online repository=
xcat=20
repository and the Fedora9 dependency repository. In addition, I manual=
ly=20
installed the Fedora 12package for conserver:=20
conserver-8.1.16-9.fc12.x86_64.rpm, as I could not find the appropriate=
=20
package for Fedora 11. This was a bit tricky as the corresponding ssl packa=
ges=20
are notavailable with fedora 11. (Now the conserver package wants a too=
new=20
one, instead of the too old one if the Fedora 9 package is installed). =
My=20
workaround was to create corresponding system links to ksh, libcrypto.so and=20
to libssl.so. I also created an empty rpm package to provide the dependenci=
es. I=20
also tried to create thekinks automatically through the rpm, but my rpm=
build=20
knowledge proved to be too limited so far.

I suspect ssl to be=20
responsible for the problem, as I had similar problemswith my Fedora 9=
=20
management node and ssl has been the culprit before. Itried to follow t=
he=20
same solution steps as for Fedora 9, but so far with nosuccess.<=
FONT=20
size=3D5>