sudo privilege on the Foundation Node on which the drive is being replaced.
Detection and Alerting
There are two approaches for detecting issues with NVMe drives on a Foundation Node. The device status of all drives on a specific Foundation Node can be checked using a SQL query of the system catalog to ensure all are active. Secondly, the presence of NVMe drives on the PCI bus can be inspected. You can run each command on a Foundation Node to assess the health of the drives on that node. Depending on the failure mode of a device, either of these methods could reveal an issue with an NVMe drive.In the case of an operating system drive failure, contact Ocient Support.
Check Drive Status Using System Catalog Tables
SQL queries on thesys.storage_device_status system catalog table provide a status of all payload drives. Connect to any SQL Node on the system and execute this query, replacing <NODE_NAME> with the name of your node.
SQL
Text
ACTIVE or FAILED. In this sample output, the device in PCI Address 0000:89:00.0 needs to be replaced.
If an NVMe drive is completely unavailable, it might not appear in the sys.storage_device_status table. For example, if a drive is not seated properly or if the node has rebooted and the drive is undetectable by Ocient. In this case, see the Alternative Methods to Identify Failed Drives to identify the serial number and PCI address of the drive.
In the event that a drive has failed or is experiencing issues, errors are logged in /var/log/messages and /var/opt/ocient/log/rolehostd.log* files. Inspection of these log files can assist with root cause analysis of the drive failure.
Troubleshooting
- To locate the failed drive in the chassis, use the query results from the Check Drive Status Using System Catalog Tables query to identify the PCI Address of the failed drive.
- Refer to the chassis diagram for your system to identify the slot of the failed drive based on the PCI address. Three common chassis and drive bay mappings are listed below:
Recovery
Prerequisites
- An NVMe drive of the same model and the same or larger capacity as the failed drive.
- The drive firmware is upgraded to the latest version using the NVMe Drive Firmware Upgrade Process.
Replacement Procedure
1. Log in to the Foundation Node that needs a drive replacement as an administrator user and stop therolehostd process on this node to ensure that the drive replacement does not impact the stability of the process:
Shell
rolehostd process has stopped. The result of this command should indicate that the process is Stopped.
Shell
Shell
nvme-driver-util.sh to ensure that the failed drive is not showing up in the output.
Shell
Text
nvme-driver-util.sh script.
Shell
Text
X and Y to match the device name using the replacement drive.
Text
nvme-driver-util.sh script to bind drives to the UIO driver:
Shell
nvme-driver-util.sh script and confirm that the new drive is bound to uio_pci_generic driver.
Shell
Text
rolehostd process.
Shell
sys.storage_device_status catalog table by connecting to a SQL Node and running by following query after replacing the <NODE_NAME> with the name of your node. Ensure that all drives appear on the node with status of ACTIVE.
SQL
Text
0000:89:00.0 is now active. This indicates that it has been successfully replaced.
Next Steps: Rebuild Segments
If the failed drive had data on it prior to failure, a rebuild of data segments stored on the replaced drive is required after the drive is replaced. Refer to the Guide to Rebuilding Segments for instructions on how to rebuild the missing segments.Alternative Methods to Identify Failed Drives
If the results of querying thesys.storage_device_status table do not indicate which drive has failed, alternative methods can be used to detect the failing drive. These methods require the command-line utility jq, but you can view the full results of the curl commands without it.
Option 1: Cross Reference API Results to Identify the PCI Address
You can cross-reference the result of two API commands to determine the PCI address of the failed drive that is not appearing. A drive that does not appear in thestats API or catalog table can be present in the sysconfig API output.
The output of the following API shows NVMe storage device statuses. Any device status other than 10 indicates a potential issue. Replace <IP_ADDRESS_OF_THE_NODE> with the IP Address of your node and inspect the results.
CURL
Text
Check Device Presence
The output of the following API will show the configured NVMe drives on the Foundation Node. Depending on the failure mode, the output of this command can show a reduced number of drives. For example, if the Foundation Node chassis has 12 drive bays populated and only 11 appear in this result, it would indicate that one drive is not visible to Ocient. Run the following command by replacing<IP_ADDRESS_OF_THE_NODE> with the IP Address of your node:
CURL
Text
Option 2: Inspect Drives Using Operating System Commands
If drives are not appearing in the Ocient outputs, they might be unavailable to the Ocient service. In this case, directly examine the drives on the system with standard disk utilities and operating system commands to find the serial numbers of drives that meet the following criteria:- The drive is not the operating system boot drive.
- The drive is not listed in the
sys.storage_device_statustable.
Related Links
System CatalogLinux® is the registered trademark of Linus Torvalds in the U.S. and other countries.

