Novell is now a part of Micro Focus

Cool Blog: Doing Stuff (like Updating GroupWise ...)

Novell Cool Solutions: Feature
By Alex Evans

Digg This - Slashdot This

Posted: 27 Feb 2007

I have said it before, but there are a bunch of things that I just do without really thinking about them. And no, I'm not talking about the time I poured a gallon of petrol on a bonfire and then lit it with a very short match - I'm talking about GroupWise things. One of those things is updating GroupWise code on a server. It's so intuitive to me that I stopped actually thinking about it years go, as have most of my colleagues in the GW team. It's times like now, where everyone is trying to get the DST patches installed, where I actually stop and think about it.

So many people find it very confusing, and it doesn't need to be. There are a few golden rules, but it's pretty simple. Starting from the ground up - what do you do with the service pack once you have downloaded it? If you extract the service pack and just run the install, it will ask you for the location of an existing software distribution directory (SDD). Forget that. Quit the install. Start again. All of our service packs are a full build, minus a couple of key files - the .DC files. Just extract the service pack and then copy the DOMAIN and PO directories from your original media or SDD to the place you just extracted the service pack to. You are now the proud owner of a full overlay SDD to do whatever you want with. Got a bunch of other SDD's out there? Just replace them with the shiny new one you just created. Burn it to DVD? Go ahead. Point at it and call it names? Feel free.

Now, this is just the first step in updating your servers. Most of you will now go and run the install, go though the graphical interface to update your agents, GWIAs and WebAccess - forget that too. The installs want to collect a whole load of information that you already supplied the first time you installed them - you don't need to provide it again, as it already exists in either the GroupWise object or in the startup files. All we need to achieve is to update the NLMs, RPMs, EXEs etc. I'll cover NetWare for now and cover the rest later on. Open up your new SDD, browse to \AGENTS\NLM\ - here are all the binaries for your agents. You can simply copy them from here to location on the server that you run the agents from, normally sys:\system. Don't copy the 2 directories though; instead open "Language" and copy the contents to the same place you just copied the binaries. Do the same with "ldap". You've now patched your agents.

1st Golden Rule

If you have multiple GW components on the same server you need to update them all at the same time. This is because all of the components share files, specifically the GWENN. If you do not update them all at the same time, you run a chance of getting Public Symbol errors, and something won't load. So with that rule said, how to update the GWIA and WebAccess? Simple - exactly the same way. For GWIA, open up the SDD, browse to \INTERNET\GWIA\NLM\EXE, and copy the contents to the server - the default is sys:\system again. Done. For WebAccess, open the SDD, browse to \INTERNET\WEBACCES\NLM, and copy the content, minus the "ldap" directory, to the server - yep, sys:\system if you have a default install.

2nd Golden Rule

If you are patching multiple GW components on a server, stop them all, patch them and then start them all. By stopping them all you are ensuring that all the shared files are removed from memory so that the new instance is loaded instead of an agent trying to reuse the memory- resident one.

Many of you are aware of the fact the WebAccess is a slightly special case, in that there are 2 components - the Agent and the Application. If you have followed along so far, all you have patched is the agent. The agent, or GWINTER, consists of the NLMs that you just copied. The Application is a Java application that runs in Tomcat and Apache. Run through the install for that one - it's much easier and more foolproof than copying it manually. However, the agent and application do not need to be done at the same time, even if they reside on the same server. There's no sharing of files, so no need.

You're probably still left with questions, so let me cover all the ones I can think of. If you have more, just post a comment.

How to Install Hot Patches

In between major service pack releases we will periodically post Hot Patches (used to be called FTFs). How to install those? Well, the rules and methods are exactly the same as I described above. The problem you face is that we don't post them as a single, large download - we post the individual components. We do strive to post all the components at the same time, however, so that you can download them all and don't run into the public symbol errors I mentioned above. So, make sure you update all the components on the server at the same time with the same level Hot Patch release. There may be times, like with the Rev E FTF for GW6.5 WebAccess, where we only post that one component. This is because there are no changes in any of the other agents, so compatibility is not a problem.

Do I need to have my entire system at the same patch level?

Nope! Your system can be a complete mix of both major and minor versions. There are certain rules: for example, an upstream major version client can't talk to a downstream agent, and a 7.0.x client cannot login to a 6.5.x Post Office. A 7.0.1 client can happily talk to a 7.0.0 agent, though. Also, note that "client" doesn't just refer to the clients installed on workstations; it means anything that acts as a client. So, got POP and IMAP on GWIA enabled? Then GWIA is acting as a client to the POA, so a 7.0 GWIA can't connect to a 6.5 PO. It's the same for WebAccess.

C'mon, I really only want to patch [insert component name here]

OK, I admit it - it is possible to only update a single GW component on a server. This is the exception that proves Rule #1. We normally don't take you down this path, as the potential to mess it up can be quite high if you don't understand the concepts. This leverages NetWare address spaces. An address space allows you to completely isolate one agent instance from another - any required NLMs for that agent to run will be loaded into that address space. So, how do you do it? First, make sure each component is installed into a seperate directory - for example, on my test servers I have sys:\system\7agent, sys:\system\7gwia and sys:\system\7wa. Then you need to add each location as a search path - "search add sys:\system\7agent", and so on. Then the magical command: load protected gwia @gwia.cfg, or load protected gwmta @mydom.mta. This will load the agent and dependent files, such as the GWENN, from the proper directory into the proper address space.

I am installing a new system. Do I need to install GW7 and then patch?

First, welcome to GroupWise. And to answer the question - no you don't. If you follow the instructions up at the top to create a shiny new SDD, you can create a new system from this. There's no need to create a 7.0 system and then apply the patches.

Is it possible to back out a patch?

Yes it is, and it's incredibly easy. Just follow the same steps and rules you followed above, but copy in older code instead of new code. A patch does not update any of the GroupWise databases, so there is no problem going forwards or backwards. OK, so there are some rules to this. You can't go back major versions, so you can't go back from 7.0 to 6.5. Also, I know I just said that patches don't update the databases - not entirely true, our GW SP1's often do. So it's probably best not to go back from SP1 to an older 7.0 release, but there is no problem apply a recent Hot Patch and then going back to an earlier one, or to 7.0.1.

How about an upgrade - does it work the same way?

Well, first let's define upgrade - an upgrade is going from one major version to another. The way I do an upgrade is as follows:

1. Copy agents files to sys:\system

2. Copy .dc files to the domain and po (making sure I put the right ones in the right place).

3. Copy the view files from the client install dir to the PO ofviews directory.

4. Start the agents.

What you will miss if you upgrade this way instead of running through the install, is that the startup files won't be updated to reflect any new startup switches we may have added in between versions. The install only ever enables 1 or 2 switches (/home and /cluster), so you won't lose any functionality - you just won't see what new switches may be available. You can find the startup file templates in the agent install directory \AGENTS\Startups\Language.

I ALWAYS run the install to upgrade GWIA and WebAccess, and I never use the GWIA /copyonly switch.

Hey, you forgot to talk about Linux and Windows!

Oops. Linux patching? Dead easy. Run the install and try to install one of the components that you want to update. It will tell you that there are a bunch of other components on the server and that they all need updating. Alternatively, copy all the .rpm files to a single location (with no other .rpms in there) and run the command rpm -Uvh *.rpm. You do not need to run the "configure" options in the install.

Windows works the same basic way as NetWare, but just copy the files from the NT directories instead of from the NLM. Having a common version on Windows is actually less important than on NetWare, as Windows will load the dependencies multiple times.

Did I miss anything?

Oh, and yeah, my eyebrows eventually grew back. The dog was never the same, though.

Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions.

© Copyright Micro Focus or one of its affiliates