install_cluster in Solaris 10 Recommended Patch Cluster

  • Follow


I am trying to install Solaris 10 Recommended Patch Cluster on a
machine by NFS mounting the patch set and by calling install_cluster.
This is what I am doing:

local# cd /net/remote/patches/10_Recommended
local# ./install_cluster -q
<snip>

install_cluster must be run from a local filesystem.

local#


I have browsed through the install_cluster script and it seems to doing
some validation and it's actually failing when it does a "df -l ."

My questions are:

* Why does the install need to be run from a local filesystem?
* Does this mean that I need to copy my patch cluster to all my clients
and run it locally? It does not make sense...

TIA
-- prasad

0
Reply prasadjlv439 (5) 8/4/2005 3:30:31 PM

"prasadjlv@gmail.com" <prasadjlv@gmail.com> writes:

> I am trying to install Solaris 10 Recommended Patch Cluster on a
> machine by NFS mounting the patch set and by calling install_cluster.
> This is what I am doing:
>
> local# cd /net/remote/patches/10_Recommended
> local# ./install_cluster -q
> <snip>
>
> install_cluster must be run from a local filesystem.

[snip]

> * Why does the install need to be run from a local filesystem?
> * Does this mean that I need to copy my patch cluster to all my clients
> and run it locally? It does not make sense...

Let's put it that way: you should be installing it in a single user mode
anyway ...

Dragan

-- 
Dragan Cvetkovic, 

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
0
Reply Dragan 8/4/2005 3:37:46 PM


>> * Why does the install need to be run from a local filesystem?
>> * Does this mean that I need to copy my patch cluster to all my clients
>> and run it locally? It does not make sense...

> Let's put it that way: you should be installing it in a single user mode
> anyway ...

But that doesn't always imply that you don't have any network facilities
available. On my Solaris 10/x86 box I've experienced having internet
access in single user mode several times.


-- 
Groetjes, Peter

..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc
0
Reply Lion 8/4/2005 5:10:33 PM

Lion-O <nosp@m.catslair.org> writes:

>>> * Why does the install need to be run from a local filesystem?
>>> * Does this mean that I need to copy my patch cluster to all my clients
>>> and run it locally? It does not make sense...
>
>> Let's put it that way: you should be installing it in a single user mode
>> anyway ...
>
> But that doesn't always imply that you don't have any network facilities
> available. On my Solaris 10/x86 box I've experienced having internet
> access in single user mode several times.

NFS as well? In releases before Solaris 10 NFS client was started at level
2:

$ ls -al /etc/rc?.d/*nfs*      
-rwxr--r--   6 root     sys         3080 Jan  5  2000 /etc/rc0.d/K28nfs.server*
-rwxr--r--   3 root     sys          836 Jan  5  2000 /etc/rc0.d/K41nfs.client*
-rwxr--r--   6 root     sys         3080 Jan  5  2000 /etc/rc1.d/K28nfs.server*
-rwxr--r--   6 root     sys         3080 Jan  5  2000 /etc/rc2.d/K28nfs.server*
-rwxr--r--   3 root     sys          836 Jan  5  2000 /etc/rc2.d/S73nfs.client*
-rwxr--r--   6 root     sys         3080 Jan  5  2000 /etc/rc3.d/S15nfs.server*
-rwxr--r--   6 root     sys         3080 Jan  5  2000 /etc/rcS.d/K28nfs.server*

But I don't see rcS.d/K41nfs.client here ...

Dragan

-- 
Dragan Cvetkovic, 

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
0
Reply Dragan 8/4/2005 5:29:47 PM

In a single user mode can't I bring up the necessary network services
and run install_cluster?

or

What happens if I want to install this patch cluster as part of my
JumpStart finish script?


It's a pain to copy the patch cluster on to 200+ machines and install
it in a single user mode and delete the patch cluster after it's done.

-- prasad

0
Reply prasadjlv 8/4/2005 5:34:03 PM

"prasadjlv@gmail.com" <prasadjlv@gmail.com> writes:

>> What happens if I want to install this patch cluster as part of my
> JumpStart finish script?

I think you can patch your JumpStart image, but I haven't done so. Yet.

Bye, Dragan

-- 
Dragan Cvetkovic, 

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
0
Reply Dragan 8/4/2005 5:37:11 PM

In article <lmzmrxy56g.fsf@privacy.net>,
Dragan Cvetkovic  <dragan_news2005@gmx.net> wrote:
>"prasadjlv@gmail.com" <prasadjlv@gmail.com> writes:
>
>>> What happens if I want to install this patch cluster as part of my
>> JumpStart finish script?
>
>I think you can patch your JumpStart image, but I haven't done so. Yet.

errr, i don't know about that.  what i do is modify the install_cluster
script to use -R /a and i get it installed during the jumpstart.
i hope you're not telling me that doesn't work?

one thing is for sure, the old install_cluster scripts did not know
how to install using -R switches.  read the man page for pkgadd
and you'll see that it's necessary if you're trying to do this 
in a finish script.

it used to be dirt simple.  i think the install cluster script
ought to support -R directly, to be honest, but the edit was
easy.  it's not broken at 10 is it?

j.

>
>Bye, Dragan
>
>-- 
>Dragan Cvetkovic, 
>
>To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer
>
>!!! Sender/From address is bogus. Use reply-to one !!!


-- 
Jay Scott		512-835-3553		gl@arlut.utexas.edu
Head of Sun Support, Sr. Operating Systems Specialist
Applied Research Labs, Computer Science Div.                   S224
University of Texas at Austin
0
Reply gl 8/4/2005 6:01:11 PM

<rant on>

My point was why force folks to install the cluster from a local file
system by doing this:

df -l . > /dev/null 2>&1
if [ $? != 0 ]; then
      echo "install_cluster must be run from a local filesystem.\n"
       return 1
fi

So if I am patching 200+ machines, it's forcing me to copy the patch
cluster set to each box and then run install_cluster.

Of course I can hack the install_cluster script to remove the
constraint and/or hack up a clever way to do a network install.

</rant off>

As far as imaging the JumpStart image, yes it can be done but what
about machines that are already running Solaris 10? and if I don't want
to reimage them.
 
-- prasad

0
Reply prasadjlv 8/4/2005 8:04:36 PM

Dragan Cvetkovic <me@privacy.net> wrote:
> I think you can patch your JumpStart image, but I haven't done so. Yet.

If you succeed in that and tell us how, you'll be my personal hero :)

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
0
Reply Martin 8/5/2005 12:25:53 PM

prasadjlv@gmail.com <prasadjlv@gmail.com> wrote:
> Of course I can hack the install_cluster script to remove the
> constraint ..

That's what I'd do - I can't think of a real reason why this
constraint was put into the script, and I guess it'll disappear
in the next version.

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
0
Reply Martin 8/5/2005 12:29:19 PM

Martin Paul <map@par.univie.ac.at> writes:

> Dragan Cvetkovic <me@privacy.net> wrote:
>> I think you can patch your JumpStart image, but I haven't done so. Yet.
>
> If you succeed in that and tell us how, you'll be my personal hero :)
>
OK, I won't be your personal hero :-), but there are some finishing scripts
for jumpstart that do something similar.

E.g.
http://www.manucomp.com/solaris_tips/jumpstart_custom_finish_scripts.html

or from
http://sunportal.sunmanagers.org/pipermail/summaries/2005-April/006327.html

# Copy patches
echo "Copying 9_Recommended.zip file"
cp ${MNT}/9_Recommended.zip ${BASE}/patches
chown root:other ${BASE}/patches/9_Recommended.zip
chmod 700 ${BASE}/patches/9_Recommended.zip
unzip ${BASE}/patches/9_Recommended.zip > ${BASE}/patches/9_Recommended.log 2>&1
echo "Installing Recommended patch bundle"
for patch in `cat ${BASE}/9_Recommended/patch_order`
do
   cd ${BASE}/9_Recommended/$patch
#   echo yes | patchadd -u -d -R ${BASE} .
    echo "Will install patch $patch to ${BASE}"
done

Bye, Dragan

-- 
Dragan Cvetkovic, 

To be or not to be is true. G. Boole      No it isn't.  L. E. J. Brouwer

!!! Sender/From address is bogus. Use reply-to one !!!
0
Reply Dragan 8/5/2005 2:34:46 PM

Dragan Cvetkovic <me@privacy.net> wrote:
> Martin Paul <map@par.univie.ac.at> writes:
>> Dragan Cvetkovic <me@privacy.net> wrote:
>>> I think you can patch your JumpStart image, but I haven't done so. Yet.
>>
>> If you succeed in that and tell us how, you'll be my personal hero :)
>>
> OK, I won't be your personal hero :-), but there are some finishing scripts
> for jumpstart that do something similar.

Similar, but not the same thing .. just to see how much time one would
save if patches could be preinstalled into the jumpstart server OS image:

A Blade 150 takes 41 minutes to be installed with the entire distribution
of Solaris 9 9/04 via Jumpstart. The finish script which installs all
R/S patches takes 1 hour and 19 minutes. So 2/3 of installation time
could be saved.

mp.
-- 
Systems Administrator | Institute of Scientific Computing | Univ. of Vienna
0
Reply Martin 8/8/2005 7:10:25 AM

[Single user mode]

>> But that doesn't always imply that you don't have any network
>> facilities available. On my Solaris 10/x86 box I've experienced
>> having internet access in single user mode several times.
>
> NFS as well? In releases before Solaris 10 NFS client was started at
> level 2:

That I don't know. I don't think it'll allow itself being used as a
server, but iirc (it has been a while, I'm not 100% sure) you should be
able to mount nfs shares from such an environment.


-- 
Groetjes, Peter

..\\ PGP/GPG key: http://www.catslair.org/pubkey.asc
0
Reply Lion 8/8/2005 11:04:51 PM

12 Replies
515 Views

(page loaded in 1.457 seconds)

Similiar Articles:


















7/19/2012 10:50:02 PM


Reply: