Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-21033

lctl dk: no control on temporary raw file location

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • Upstream
    • None
    • 3
    • 9223372036854775807

      By default, lctl dk uses the temporary file LIBCFS_DEBUG_FILE_PATH_DEFAULT (/tmp/lustre-log<EPOCH>.<pid>) to store raw kernel dump. This allow a distinct file for any other calls to lctl dk.

      There are some issue with this path:

      • If the /tmp directory doesn't have enough space, the temporary raw file is truncated.
      • If /tmp is colocated with another directory, it may fill up the filesystem with other consequences on the system.
      • During the run of lctl dk /tmp/debugfile, it takes more than the amount of disk space specified in debug_mb.
      • The user is not aware that it needs extra space to dump lustre kernel logs in the ASCII mode.

      Suggested solution:

      • Use TMPDIR variable to give users the ability to choose the temporary file location
      • Display the path of the temporary file
      • Improve lctl man page

            acedeyn Aurélien Cedeyn
            acedeyn Aurélien Cedeyn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: