-
Notifications
You must be signed in to change notification settings - Fork 612
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
361 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
documentation/src/main/asciidoc/stories/assembly_server_patching.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[id='patching'] | ||
:context: server | ||
= Patching {brandname} Server Installations | ||
Install and manage patches for {brandname} server installations. | ||
|
||
You can apply patches to multiple {brandname} servers with different versions | ||
to upgrade to a desired target version. However, patches do not take effect if | ||
{brandname} servers are running. For this reason you install patches while | ||
servers are offline. If you want to upgrade {brandname} clusters without | ||
downtime, create a new cluster with the target version and perform a rolling | ||
upgrade to that version instead of patching. | ||
|
||
include::{topics}/ref_server_patches.adoc[leveloffset=+1] | ||
//Product only | ||
ifdef::productized[] | ||
include::{topics}/proc_server_downloading_patches.adoc[leveloffset=+1] | ||
endif::productized[] | ||
include::{topics}/proc_server_creating_patches.adoc[leveloffset=+1] | ||
include::{topics}/proc_server_installing_patches.adoc[leveloffset=+1] | ||
include::{topics}/proc_server_rolling_back_patches.adoc[leveloffset=+1] | ||
|
||
// Restore the parent context. | ||
ifdef::parent-context[:context: {parent-context}] | ||
ifndef::parent-context[:!context:] |
2 changes: 1 addition & 1 deletion
2
documentation/src/main/asciidoc/stories/assembly_server_quickstart.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
documentation/src/main/asciidoc/stories/assembly_server_rolling_upgrades.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
documentation/src/main/asciidoc/topics/con_cache_authorization.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
documentation/src/main/asciidoc/topics/proc_server_creating_patches.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
[id='patching_create-{context}'] | ||
= Creating Server Patches | ||
You can create patches for {brandname} servers from an existing server | ||
installation. | ||
|
||
ifndef::productized[] | ||
You can create patches for {brandname} servers starting from 10.1.7. You can | ||
patch any 10.1 or later server installation. However you cannot patch 9.4.x or | ||
earlier servers with 10.1.7 or later. | ||
|
||
You can also create patches that either upgrade or downgrade the {brandname} | ||
server version. For example, you can create a patch from version 10.1.7 and use | ||
it to upgrade version 10.1.5 or downgrade version 11.0.0. | ||
endif::productized[] | ||
ifdef::productized[] | ||
You can create patches for {brandname} servers starting from 8.0.1. You can | ||
patch 8.0 GA servers with 8.0.1. However you cannot patch 7.3.x or earlier | ||
servers with 8.0.1 or later. | ||
|
||
You can also create patches that either upgrade or downgrade the {brandname} | ||
server version. For example, you can create a patch from version 8.0.1 and use | ||
it to upgrade version 8.0 GA or downgrade a later version. | ||
|
||
[IMPORTANT] | ||
==== | ||
{RedHat} supports patched server deployments only with patches that you | ||
download from the {portal}. {RedHat} does not support server patches that you | ||
create yourself. | ||
==== | ||
endif::productized[] | ||
|
||
.Procedure | ||
|
||
. Navigate to `{server_home}` for a {brandname} server installation that has | ||
the target version for the patch you want to create. | ||
. Start the CLI. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
$ bin/cli.sh | ||
[disconnected]> | ||
---- | ||
+ | ||
. Use the `patch create` command to generate a patch archive and include the `-q` option with a meaningful qualifier to describe the patch. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
[disconnected]> patch create -q "this is my test patch" path/to/mypatch.zip \ | ||
path/to/target/server/home path/to/source/server/home | ||
---- | ||
+ | ||
The preceding command generates a `.zip` archive in the specified directory. | ||
Paths are relative to `{server_home}` for the target server. | ||
+ | ||
[TIP] | ||
==== | ||
Create single patches for multiple different {brandname} versions, for example: | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
[disconnected]> patch create -q "this is my test patch" path/to/mypatch.zip \ | ||
path/to/target/server/home \ | ||
path/to/source/server1/home path/to/source/server2/home | ||
---- | ||
Where `server1` and `server2` are different {brandname} versions where you can | ||
install "mypatch.zip". | ||
==== | ||
+ | ||
. Describe the generated patch archive. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
[disconnected]> patch describe path/to/mypatch.zip | ||
{fullbrandname} patch target=$target_version(my test patch) source=$source_version created=$timestamp | ||
---- | ||
+ | ||
* `$target_version` is the {brandname} server version from which the patch was created. | ||
* `$source_version` is one or more {brandname} server versions to which you can apply the patch. | ||
+ | ||
You can apply patches to {brandname} servers that match the `$source_version` | ||
only. Attempting to apply patches to other versions results in the following | ||
exception: | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
java.lang.IllegalStateException: The supplied patch cannot be applied to `$source_version` | ||
---- |
40 changes: 40 additions & 0 deletions
40
documentation/src/main/asciidoc/topics/proc_server_downloading_patches.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[id='patching_download-{context}'] | ||
= Downloading Server Patches | ||
Download patches that you can apply to {brandname} servers. | ||
|
||
.Procedure | ||
|
||
. Access the {portal}. | ||
. Download the appropriate {brandname} server patch from the link:{download_url}[software downloads section]. | ||
. Open a terminal window and navigate to `{server_home}`. | ||
. Start the CLI. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
$ bin/cli.sh | ||
[disconnected]> | ||
---- | ||
+ | ||
. Describe the patch file you downloaded. | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
[disconnected]> patch describe /path/to/redhat-datagrid-$version-server-patch.zip | ||
{fullbrandname} patch target=$target_version source=$source_version created=$timestamp | ||
---- | ||
+ | ||
* `$target_version` is the {brandname} version that applies when you install the patch on a server. | ||
* `$source_version` is one or more {brandname} server versions where you can install the patch. | ||
|
||
.Verification | ||
Use the checksum to verify the integrity of your download. | ||
|
||
. Run the `md5sum` or `sha256sum` command with the downloaded patch as the | ||
argument, for example: | ||
+ | ||
[source,options="nowrap",subs=attributes+] | ||
---- | ||
$ sha256sum redhat-datagrid-$version-server-patch.zip | ||
---- | ||
+ | ||
. Compare with the `MD5` or `SHA-256` checksum value on the {ProductName} *Software Details* page. |
Oops, something went wrong.