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
(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
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
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:
-
Execute the eztool deletecache --with_deleteecf command.
-
Execute the eztool deletecache command and then execute the eztool deleteecf command.
Executing the eztool deletecache --with_deleteecf command
eztool deletecache cache-name --with_deleteecf
Command execution example
Executing the eztool deletecache command and then the eztool deleteecf command
eztool deletecache cache-name eztool deleteecf cache-name
Command execution example
(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
If you have deleted caches, execute the eztool listecf -v command to display information about persistent data.
eztool listecf -v
Command execution example
-
Executing the eztool deletecache --with_deleteecf or eztool deletecache command and then executing the eztool deleteecf command
If caches and cache files have been deleted successfully, false is displayed in the following columns:
-
ExCache column
-
ExCI column
-
ExCD column
In the figure, cache1's cache and cache files have been deleted successfully.
-
-
Executing only the eztool deletecache command
If caches have been deleted successfully, false is displayed in the ExCache column and true is displayed in the ExCI and ExCD columns. No values are displayed in the columns starting with UnusedFC.
In the figure, cache3's cache has been deleted successfully.
(5) Open the cluster
Execute the eztool open command to open the cluster.
eztool open
Command execution example
(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
If the EADS servers have been opened, running is displayed in the State column.