Disk Store Management

The gfxd command-line tool has several options for examining and managing your disk stores. The gfxd tool, along with the CREATE DISKSTORE statement, are your management tools for online and offline disk stores.

Note: Each of these commands operates either on the online disk stores or offline disk stores, but not both.
gfxd Command Online or Offline Command See . . .
validate-disk-store Off Validate a Disk Store
compact-all-disk-stores On Compacting Disk Store Log Files
compact-disk-store Off Compacting Disk Store Log Files
backup On Backing Up and Restoring Disk Stores
list-missing-disk-stores On Handling Missing Disk Stores
revoke-missing-disk-store On Handling Missing Disk Stores

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

Online gfxd Disk Store Operations

For online operations, gfxd connects to a distributed system and sends the operation requests to the members that have disk stores. These commands do not run on offline disk stores. You must provide the command with a distributed system properties in a gemfirexd.properties file, or specify the multicast port or locator properties to connect to the cluster (for example, -mcast-port=port_number).

Offline gfxd Disk Store Operations

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

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:
ERROR: Operation "validate-disk-store" failed because: disk-store=ds1: 
com.gemstone.gemfire.cache.DiskAccessException: For DiskStore: ds1: 
Could not lock "hostA/ds1dir1/DRLK_IFds1.lk". Other JVMs might have created 
diskstore with same name using the same directory., caused by 
java.io.IOException: The file "hostA/ds1dir1/DRLK_IFds1.lk" is being used 
by another process.