Note: You should be logged on as slacuserid@fermilnx-v14 , e.g. chee@fermilnx-v14 when installing java patches and versions. Use Once the chee account has downloaded the files use the scp command to copy files across to glast@fermilnx-v14 if you are not logged in to the host (scp how-to). From glast@fermilnx copy files from chee@fermilnx, not the other way around otherwise the file permissions will be set for chee not glast.
Basic Basic overview
- down load the files from the java download site to /tmp. You will use gtar -C <path> or execute *.bin to put the files to the directory.
- check space availablity for each target directory by running /afs/.slac/package/java/common/install/checkQuota
- make sure you are in the shadow directory, e.g. /afs/.slac... and not /afs/slac (dot slac, not just slac)
- IF you get an executable (*.bin) then use the installJava script and you create the jdk-* subdirectory under each OS directory first, e.g. linux, solaris, etc.
- IF you get zipped tarballs (*.gz) use the installJava7 script which uses gtar -C to unpack and create/install the directories.
- change the patch variable in the install script (installJava or installJava7) to the latest patch number
- cd to the place where you downloaded all the files, e.g. /tmp on fermilnx-v14
- Make sure to change the patch number before running the script.
- Edit the install script and check that the new version names will unpack properly. Run the installJava* script.
- run the release script to deploy the new versions to the read-only disk.
- restart the test server and check that everything still works
- restart all the other servers. Use the server monitoring page to do this. If that doesn't work, logon to the machine and run the stop/start scripts.
- update the web page (see url address below)
- announce to mailing lists (see list names below)
- (optional) if you need to change the default version update javawrap script
...
Date | Java Directory | Astore directory | Comments |
---|---|---|---|
12 Nov 2014 | /afs/.slac.stanford.edu/package/java/amd64_linux | /nfs/astore/g/glstore/amd64_linux_javadir.tar.gz | Back up directory so I can delete versions from the package area |
/afs/.slac.stanford.edu/package/java/i386_linux2 | /nfs/astore/g/glstore/i_386_linux2_javadir12nov2014.tar.gz | Back up directory so I can delete versions from the package area | |
/afs/.slac.stanford.edu/package/java/sun4x_55 | /nfs/astore/g/glstore/sun4x_55_javadir12nov2014.tar.gz | Back up directory so I can delete versions from the package area |
Maven Versions - How to install new version
- login as glast or srs on host like fermilnx-14.
- Use the command 'wget -v <url>' to download the version of maven from maven home/Download. Select the closest mirror site.
- Download the file to the shadow directory /afs/.slac/package/java/common/contrib, unzip and untar the file
- Run the release command /afs/slac/package/java/build/release (7 and 8 are the same except one says '7' the other says '8'
- or Run the release command with the argument 'common' to just release maven
- Done. Don't need to announce it.