upgrade

This command upgrades an older server snapshot to a current version.

Syntax

Enter the command using the syntax shown below. Available options are shown in brackets.

zosadmin upgrade snapshotdir

Arguments

snapshotdir

Specify the directory containing a server configuration snapshot.

Options

When you add an option, use the syntax in the command line as shown above (where options are shown in their long form). Short and long options for this command are listed below.

-v, --verbose

Turn on verbose output during this operation.

-V, --debug

Turn on debug output during this operation.

-h, --help

Display a help message for this operation.

The zosadmin upgrade command does not actually upgrade a server instance. Use the zosadmin create and zosadmin start commands for manually upgrading an instance using a transformed configuration snapshot.

The zosadmin create command with the --upgrade option removes everything from the server instance directory except the logs/, dataGrid/, and snapshot/ sub-directories. It then invokes zosadmin upgrade to apply XSL transforms on the /snapshot directory. This last action might be a problem if you want more control over where your snapshot is stored: the --upgrade option assumes that the snapshot exists in the /var/opt/novell/zenworks/zos/server/<snapshot_default_location>.

If you want more control or flexibility over where you store the snapshot, use the zosadmin upgrade command and specify the location of the /snapshot directory.

When you use either this command or the zosadmin create --upgrade command, you need to follow it with the zosadmin start --upgrade command, optionally specifying the location of the upgraded /snapshot directory to complete the upgrade.

Examples

Example 1

To upgrade the server snapshot in the current directory, use the following command:

zosadmin upgrade ./snapshot