1.0

Table Of Contents
For the complete command syntax of any sqlf command, run sqlf <command> --help at the command
line.
Online sqlf Disk Store Operations
For online operations, sqlf connects to a distributed system and sends the operation requests to the members
that have disk stores. These commands do not run on ofine disk stores. You must provide the command with
a distributed system properties in a sqlfire.properties le, or specify the multicast port or locator
properties to connect to the cluster (for example, -mcast-port= port_number).
Offline sqlf Disk Store Operations
For ofine operations, sqlf runs the command against the specied disk store and its specied directories.
You must specify all directories for the disk store.
Ofine 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 ofine 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.
Validate a Disk Store
The sqlf validate-disk-store command veries the health of your ofine disk store. It gives you
information about the tables in it, the total rows, and the number of records that would be removed if you
compacted the store.
When to use this command:
Before compacting an ofine disk store to help decide whether its worth doing.
Before restoring a disk store.
Any time you want to be sure the disk store is in good shape.
Example
sqlf validate-disk-store ds1 hostB/bupDirectory
/partitioned_table entryCount=6 bucketCount=10
Disk store contains 1 compactable records.
Total number of table entries in this disk store is: 6
Compacting Disk Store Log Files
You can congure automatic compaction for an operation log based on percentage of garbage content. You can
also request compaction manually for online and ofine disk stores.
The following topics deal with compaction:
How Compaction Works on page 80
Online Compaction Diagram on page 81
Run Online Compaction on page 81
Run Ofine Compaction on page 82
Performance Benets of Manual Compaction on page 82
Directory Size Limits on page 82
vFabric SQLFire User's Guide80
Managing Your Data in vFabric SQLFire