users@glassfish.java.net

RE: How to update a standalone instance using the pkg command?

From: Zhang,Jun <JHZhang_at_mdanderson.org>
Date: Thu, 1 Aug 2013 19:33:58 +0000

Paul, Thank you for your reply. So the update using pkg is image specific, there is no way to update the standalone instances on nodes from a DAS host. Also I can do the update at nodes and keep image version at DAS an older one.

Best regards,
Jun

From: Paul Davies [mailto:paul.m.davies_at_oracle.com]
Sent: Monday, July 29, 2013 12:49 PM
To: users_at_glassfish.java.net
Subject: Re: How to update a standalone instance using the pkg command?

Hi,

The pkg(1) man page states:
pkg(1) attempts to determine, based on its working directory, in what image it has been invoked. If no image metadata can be found in the parent directories, the invocation will fail.
The instruction in Step 2 of To Update an Installed Component<http://docs.oracle.com/cd/E26576_01/doc.312/e24928/extending-updating.htm#ghhnc> to change to the base installation directory for GlassFish Server is provided to prevent invocation from failing.

Therefore, if you follow these instructions and run the pkg command on the DAS host, I would expect the DAS image to be updated.

For deatiled information about the pkg command, see the set of reference pages in the <as-install-parent>/pkg/man directory. The location of these reference pages is also given in The pkg Command<http://docs.oracle.com/cd/E26576_01/doc.312/e24928/extending-updating.htm#gkccp> in Oracle GlassFish Server Administration Guide.

If you believe that more detailed information on this topic is required, please file an RFE against the documentation.

Thanks!
-Paul Davies
On 7/29/2013 9:47 AM, Zhang,Jun wrote:
Hi Forum,
      I have a non-clusterred domain set up with standalone instances running on nodes. Before I use the "pkg image-update" command update the version, I noticed that the command pkg is available on both the DAS host and the node where the standalone instance is running. What will be the effect I run it on the DAS host compared to running it at the node (both the host and the node has /usr/local/glassfish3/bin/pkg available)? I did browse various documentations, but don't see anywhere mentioned about where to run pkg.

Jun