Hitachi

In-Memory Data Grid Hitachi Elastic Application Data Store


11.5.2 How to add and delete disk caches and two-way caches

This subsection is applicable when you will be using disk caches and two-way caches.

This subsection explains how to add and delete disk caches and two-way caches.

Organization of this subsection

(1) Close the cluster

Execute the eztool close command to close the cluster.

eztool close

Command execution example

[Figure]

(2) Verify that the cluster is closed

After you have closed the EADS servers, execute the eztool status command to check the status of the cluster.

eztool status

Command execution example

[Figure]

If the cluster is closed, closed is displayed in the State column.

(3) Add or delete caches

(a) Adding caches

Create a cache property file for a cache that is to be added. For details about this procedure, see 10.2.2(1) Create cache property files.

Next, execute the eztool createcache command to add the cache.

eztool createcache cache-name

Command execution example

[Figure]

When a cache is created, cache files are created in the following directories:

  • Cache data files

    directory-specified-in-the-eads.cache.disk.n.dir-parameter-in-the-cache-properties/cache-name

  • Cache index files and cache information files

    directory-specified-in-the-eads.cache.disk.info.dir-parameter-in-the-cache-properties/cache-name (the default is management-directory/store/cache-name)

(b) Deleting caches

The following methods are provided for deleting a cache and its cache files:

Executing the eztool deletecache --with_deleteecf command

eztool deletecache cache-name --with_deleteecf

Command execution example

[Figure]

Executing the eztool deletecache command and then the eztool deleteecf command

eztool deletecache cache-name
 
eztool deleteecf cache-name

Command execution example

[Figure]

(4) Verify that the caches have been added or deleted

If you have added caches, execute the eztool listcache command to display a list of caches. Verify that the caches have been added.

eztool listcache

Command execution example

[Figure]

If you have deleted caches, execute the eztool listecf -v command to display information about persistent data.

eztool listecf -v

Command execution example

[Figure]

(5) Open the cluster

Execute the eztool open command to open the cluster.

eztool open

Command execution example

[Figure]

(6) Verify that the EADS servers have been opened

Execute the eztool status command to verify that all EADS servers have been opened.

eztool status

Command execution example

[Figure]

If the EADS servers have been opened, running is displayed in the State column.