Skip to main content
A newer release of this product is available.

Troubleshooting metadata issues

Contributors netapp-lhalbert

There are several tasks you can perform to help determine the source of metadata problems.

Troubleshooting the Low metadata storage alert

If the Low metadata storage alert is triggered, you must add new Storage Nodes.

What you'll need
  • You must be signed in to the Grid Manager using a supported browser.

About this task

StorageGRID reserves a certain amount of space on volume 0 of each Storage Node for object metadata. This space is known as the actual reserved space, and it is subdivided into the space allowed for object metadata (the allowed metadata space) and the space required for essential database operations, such as compaction and repair. The allowed metadata space governs overall object capacity.

Metadata Allowed Space Volume 0

If object metadata consumes more than 100% of the space allowed for metadata, database operations cannot run efficiently and errors will occur.

StorageGRID uses the following Prometheus metric to measure how full the allowed metadata space is:

storagegrid_storage_utilization_metadata_bytes/storagegrid_storage_utilization_metadata_allowed_bytes

When this Prometheus expression reaches certain thresholds, the Low metadata storage alert is triggered.

  • Minor: Object metadata is using 70% or more of the allowed metadata space. You should add new Storage Nodes as soon as possible.

  • Major: Object metadata is using 90% or more of the allowed metadata space. You must add new Storage Nodes immediately.

    Important When object metadata is using 90% or more of the allowed metadata space, a warning appears on the Dashboard. If this warning appears, you must add new Storage Nodes immediately. You must never allow object metadata to use more than 100% of the allowed space.
  • Critical: Object metadata is using 100% or more of the allowed metadata space and is starting to consume the space required for essential database operations. You must stop the ingest of new objects, and you must add new Storage Nodes immediately.

In the following example, object metadata is using more than 100% of the allowed metadata space. This is a critical situation, which will result in inefficient database operation and errors.

Metadata Dashboard Alarm
Important If the size of volume 0 is smaller than the Metadata Reserved Space storage option (for example, in a non-production environment), the calculation for the Low metadata storage alert might be inaccurate.
Steps
  1. Select Alerts > Current.

  2. From the table of alerts, expand the Low metadata storage alert group, if required, and select the specific alert you want to view.

  3. Review the details in the alert dialog box.

  4. If a major or critical Low metadata storage alert has been triggered, perform an expansion to add Storage Nodes immediately.

    Note Because StorageGRID keeps complete copies of all object metadata at each site, the metadata capacity of the entire grid is limited by the metadata capacity of the smallest site. If you need to add metadata capacity to one site, you should also expand any other sites by the same number of Storage Nodes.

    After you perform the expansion, StorageGRID redistributes the existing object metadata to the new nodes, which increases the overall metadata capacity of the grid. No user action is required. The Low metadata storage alert is cleared.

Troubleshooting the Services: Status - Cassandra (SVST) alarm

The Services: Status - Cassandra (SVST) alarm indicates that you might need to rebuild the Cassandra database for a Storage Node. Cassandra is used as the metadata store for StorageGRID.

What you'll need
  • You must be signed in to the Grid Manager using a supported browser.

  • You must have specific access permissions.

  • You must have the Passwords.txt file.

About this task

If Cassandra is stopped for more than 15 days (for example, the Storage Node is powered off), Cassandra will not start when the node is brought back online. You must rebuild the Cassandra database for the affected DDS service.

You can use the Diagnostics page to obtain additional information on the current state of your grid.

Important If two or more of the Cassandra database services are down for more than 15 days, contact technical support, and do not proceed with the steps below.
Steps
  1. Select Support > Tools > Grid Topology.

  2. Select site > Storage Node > SSM > Services > Alarms > Main to display alarms.

    This example shows that the SVST alarm was triggered.

    Alarms: SSM: Services page

    The SSM Services Main page also indicates that Cassandra is not running.

    Overview: SSM: Services page
  1. Try restarting Cassandra from the Storage Node:

    1. Log in to the grid node:

      1. Enter the following command: ssh admin@grid_node_IP

      2. Enter the password listed in the Passwords.txt file.

      3. Enter the following command to switch to root: su -

      4. Enter the password listed in the Passwords.txt file. When you are logged in as root, the prompt changes from $ to #.

    2. Enter: /etc/init.d/cassandra status

    3. If Cassandra is not running, restart it: /etc/init.d/cassandra restart

  2. If Cassandra does not restart, determine how long Cassandra has been down. If Cassandra has been down for longer than 15 days, you must rebuild the Cassandra database.

    Important If two or more of the Cassandra database services are down, contact technical support, and do not proceed with the steps below.

    You can determine how long Cassandra has been down by charting it or by reviewing the servermanager.log file.

  3. To chart Cassandra:

    1. Select Support > Tools > Grid Topology. Then select site > Storage Node > SSM > Services > Reports > Charts.

    2. Select Attribute > Service: Status - Cassandra.

    3. For Start Date, enter a date that is at least 16 days before the current date. For End Date, enter the current date.

    4. Click Update.

    5. If the chart shows Cassandra as being down for more than 15 days, rebuild the Cassandra database.

The following chart example shows that Cassandra has been down for at least 17 days.

Overview: SSM: Services page
  1. To review the servermanager.log file on the Storage Node:

    1. Log in to the grid node:

      1. Enter the following command: ssh admin@grid_node_IP

      2. Enter the password listed in the Passwords.txt file.

      3. Enter the following command to switch to root: su -

      4. Enter the password listed in the Passwords.txt file. When you are logged in as root, the prompt changes from $ to #.

    2. Enter: cat /var/local/log/servermanager.log

      The contents of the servermanager.log file are displayed.

      If Cassandra has been down for longer than 15 days, the following message is displayed in the servermanager.log file:

      "2014-08-14 21:01:35 +0000 | cassandra | cassandra not
      started because it has been offline for longer than
      its 15 day grace period - rebuild cassandra
    3. Make sure the timestamp of this message is the time when you attempted restarting Cassandra as instructed in step Restart Cassandra from the Storage Node.

      There can be more than one entry for Cassandra; you must locate the most recent entry.

    4. If Cassandra has been down for longer than 15 days, you must rebuild the Cassandra database.

      For instructions, see “Recovering from a single Storage Node down more than 15 days” in the recovery and maintenance instructions.

    5. Contact technical support if alarms do not clear after Cassandra is rebuilt.

Related information

Maintain & recover

Troubleshooting Cassandra Out of Memory errors (SMTT alarm)

A Total Events (SMTT) alarm is triggered when the Cassandra database has an out-of-memory error. If this error occurs, contact technical support to work through the issue.

About this task

If an out-of-memory error occurs for the Cassandra database, a heap dump is created, a Total Events (SMTT) alarm is triggered, and the Cassandra Heap Out Of Memory Errors count is incremented by one.

Steps
  1. To view the event, select Nodes > grid node > Events.

  2. Verify that the Cassandra Heap Out Of Memory Errors count is 1 or greater.

    You can use the Diagnostics page to obtain additional information on the current state of your grid.

  3. Go to /var/local/core/, compress the Cassandra.hprof file, and send it to technical support.

  4. Make a backup of the Cassandra.hprof file, and delete it from the /var/local/core/ directory.

    This file can be as large as 24 GB, so you should remove it to free up space.

  5. Once the issue is resolved, click Reset event counts.

    Note To reset event counts, you must have the Grid Topology Page Configuration permission.
Related information

Resetting event counts