Releasing data from your file system - FSx for Lustre

Releasing data from your file system

If you want to create storage space on your file system, you can release files from your file system. Releasing a file retains the file listing and metadata, but removes the local copy of that file's contents. You cannot release a file if it's in use or if it has not been exported to a linked data repository. You can release individual files from your file system using the following commands:

  • To release one or more files from your file system if you are the file owner:

    lfs hsm_release file1 file2 ...
  • To release one or more files from your file system if you are not the file owner:

    sudo lfs hsm_release file1 file2 ...

The hsm_release command can only release regular files as defined by POSIX. You cannot release sockets, symbolic links, block devices, character devices, or named pipes. To identify whether a file is a regular file, use the test -f command on that file.