Check a Directory

Check that an OpenIO namespace has been fully deployed. This checks the directory of services.

meta0 Check that meta0 services are registered on zookeeper.
meta1 Check that meta1 services are reachable.
directory Check that prefixes are reachable and are the same as prefixes on meta0, and check if meta1 services are registered on meta0.
rdir Check that all rawx services have associated rdir and check that rdir are up.

Preparation

You can check if services are UP using openio cluster list

Launch check

Run openio-admin <SERVICE> check. SERVICE is a value among meta0, meta1, directory, rdir.

For example you can check meta1 with:

# openio-admin meta1 check
+--------+--------+
| Status | Errors |
+--------+--------+
| OK     | None   |
+--------+--------+

You can use the option --catalog to check if services present in conscience are the same as services in catalog. Each line of catalog represents a service and must be formatted like Type IP PORT. You can generate a catalog using openio cluster list -c Type -c Addr -f value | tr ':' ' '