Main menu

Navigation

Major problem when running any scripts in the $DOUT_S_ROOT directory while the short term archiver is active.

1 post / 0 new
aliceb
Major problem when running any scripts in the $DOUT_S_ROOT directory while the short term archiver is active.

There is a known and potentially severe problem that can remove all your data
in the short term archive directory ($DOUT_S_ROOT) accidently.  This could cause
you to lose your model data forever.  The problem occurs in CESM1.0.z and CESM1.1.z. 
when

- the short term archiver is running as part of a case
AND

- diagnostics or post-processing scripts are accessing the same short term archive directory

This problem has been fixed in CESM1.2.z.

For CESM1.0.z and CESM1.1.z, we currently recommend that users never run diagnostics or
post-processing packages in the same location as the short-term archiver when the short term
archiver is active.

Another option in CESM1.0.z and CESM1.1.x is to replace the following code segment at
the end of the scripts/ccsm_utils/Tools/st_archive.sh script:

Old Code (lines 305-306):

mv ${sta}/* ${DOUT_S_ROOT}
rm -fr ${sta}

New Code (lines 305-312):

if mv ${sta}/* ${DOUT_S_ROOT}; then
    rm -fr ${sta}
else
    echo "st_archive.sh: error, final move command unsuccessful"
    echo "               some short-term archive data may be in ${sta}"
    echo "st_archive.sh: exiting"
    exit 1
fi

Alice Bertini
Software Engineer
NCAR / CESM

Who's new

  • m.kliphuis@...
  • ddc3061993@...
  • hui.ding@...
  • zhouc@...
  • arianna.valmass...