The Spectrum ddm_load command returns error about tmpdir create failures
search cancel

The Spectrum ddm_load command returns error about tmpdir create failures

book

Article ID: 376322

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

After migrating to a new system when running the ddm_load command we see the following error.

Unable to create $SPECROOT/SS/DDM/ddmdb_<date>.tmpdir

The ddm_load doesn't complete and returns to the command line.

The ddm_load is being run as the Spectrum install owner. It is being run with the SpectroSERVER running, ProcessD running and Archive Manager down.

The spectrum install owner user is able to create, modify and delete files and directories in the $SPECROOT/SS/DDM directory.

Environment

All supported DX NetOps Spectrum releases

Cause

The $SPECROOT/SS/DDM/ddmdb_<date>.tmpdir is already created from a previous failed ddm_load run.

Resolution

Ensure the SS, ProcessD and MySql are running and Archive Manager is down.

Delete the existing $SPECROOT/SS/DDM/ddmdb_<date>.tmpdir directory.

Run the ddm_load and it should complete successfully.

Additional Information

Alternatively if the disk runs out of space when loading the DDM save file, you may need to manually delete the DDM temp files after they are being loaded.  Start the ddm_load -f <filename> and monitor the mysql output.  When it informs you that it has loaded an event file, you can manually delete the corresponding event file in the DDM temp directory.