This topic describes the upgrade offline-disk-store
command in gfsh
, the VMware Tanzu GemFire command-line interface.
Use this command to upgrade offline disk stores from the format used in Tanzu GemFire releases prior to 10.1 to the segmented disk store type introduced in Tanzu GemFire version 10.1. See Defining and Configuring Disk Stores for more information about the benefits of segmented disk stores.
If the disk store is large, additional memory may need to be allocated to the process using the --J=-Xmx###
parameter.
Availability: Offline.
Syntax:
upgrade offline-disk-store --name=value --source-disk-dirs=value(,value)*
[--destination-disk-dirs=value(,value)] [--segments=value]
[--max-oplog-size=value] [--J=value(,value)*]
Name | Description | Default Value |
---|---|---|
‑‑name | Required. Name of the offline disk store to be upgraded. | |
‑‑source-disk-dirs | Required. Directories where data for the disk store was previously written. | |
‑‑destination-disk-dirs | Directories where data for the disk store is to be written. | source-disk-dirs |
‑‑segments | Number of segments to upgrade to. | Current number of available CPUs on the this host. |
‑‑delete-source | Delete source from disk store on successful upgrade. | false |
‑‑max-oplog-size | Maximum size, in megabytes, of the oplogs created by the upgrade. A value of -1 indicates that there is no maximum size limit for oplogs. |
-1 |
‑‑J | Arguments passed to the Java Virtual Machine performing the upgrade operation on the disk store. |
Example Commands:
upgrade offline-disk-store --name=DiskStore1 --source-disk-dirs=/Disks/DiskStore1 --segments=32 --delete-source=true
upgrade offline-disk-store --name=DiskStore1 --source-disk-dirs=/Disks/DiskStore1 --segments=32 --delete-source=true --J=-DXmx512