Apache Geode CHANGELOG

Disk Store Management Commands and Operations

You can manage your disk stores using the gfsh command-line tool. For more information on gfsh commands, see gfsh and Disk Store Commands.

Note: Each of these commands operates either on the online disk stores or offline disk stores, but not both.

gfsh Command Online or Offline Command See …
alter disk-store Off Keeping a Disk Store Synchronized with the Cache
compact disk-store On Running Compaction on Disk Store Log Files
backup disk-store On Creating Backups for System Recovery and Operational Management
compact offline-disk-store Off Running Compaction on Disk Store Log Files
export offline-disk-store Off Creating Backups for System Recovery and Operational Management
revoke missing-disk-store On Handling Missing Disk Stores
show missing-disk-stores On Handling Missing Disk Stores
shutdown On Start Up and Shut Down with Disk Stores
validate offline disk-store Off Validating a Disk Store

For complete command syntax of any gfsh command, run help <command> at the gfsh command line.

Online Disk Store Operations

For online operations, gfsh must be connected to a cluster via a JMX manager and sends the operation requests to the members that have disk stores. These commands will not run on offline disk stores.

Offline Disk Store Operations

For offline operations, gfsh runs the command against the specified disk store and its specified directories. You must specify all directories for the disk store. For example:

gfsh>compact offline-disk-store --name=mydiskstore --disk-dirs=MyDirs 

Offline operations will not run on online disk stores. The tool locks the disk store while it is running, so the member cannot start in the middle of an operation.

If you try to run an offline command for an online disk store, you get a message like this:

gfsh>compact offline-disk-store --name=DEFAULT --disk-dirs=s1
This disk store is in use by another process. "compact disk-store" can 
be used to compact a disk store that is currently in use.