This section contains instructions on how to resolve various storage tasks using the REST API.
Reconfigure Pre-Configured DAC Attached to Decoder Using REST API
Th scenario covers how to reconfigure a DAC using the REST API that was configured using another tool and clear any pre-existing data (if no longer need or backed up to another storage device).
The following information describes the state of the host and storage hardware prior to the attempt to reconfigure the storage devices using the REST API.
When the DAC was added, it had old data and was configured (but not using the REST API). This prevented the REST API from executing the raidNew command and returned the Physical disk does not have appropriate attributes error message.
The following steps describe the scenario and with its resolution.
- From the Decoder Linux console (or SSH to Decoder), submitted the following command string.
/opt/MegaRAID/perccli/perccli64 /c2/fall del
You will find detailed information on perccli commands in the Dell PowerEdge RAID Controller CLI Reference Guide (https://topics-cdn.dell.com/pdf/dell-sas-hba-12gbps_reference-guide_en-us.pdf).
This deleted all foreign configuration from controller 2 and cleared all data from the DAC.
- Tried to partition the DAC, but the partNew command failed because that information was already defined on the DAC. partNew displayed that you must use one an available device, but devList showed it in use.
- Assuming that the partitions were defined, tried to allocate the storage devices, but this did not work because the DAC was not mounted.
- Tried to mount the DAC from the command line, but received mount failed: structure needs to be cleaned error message.
- There was no data that needed to be preserved on the DAC, so submitted the following command strings to clean the structure.
mkfs.xfs -f /dev/decoder0/packetdb
mkfs.xfs -f /dev/decoder1/packetdb
- Mounted devices to their appropriate locations in /var/netwitness/decoder.
- Completed the remainder of the applicable steps as described in Configure Storage Using the REST API to reconfigure the DAC