Files deleted via Nautilus do not free disk space on NSS volumes.

  • 7012454
  • 21-May-2013
  • 24-May-2013

Environment

Novell Open Enterprise Server 2 (OES 2)
Novell Open Enterprise Server 11 (OES 11)

Situation

  • Deleting NSS files (using Nautilus) does not free the disk space in NSS.
  • Deleted NSS files (using Nautilus) do not show up in the Salvage system.
  • Delete several GB of NSS files (using Nautilus) and the space is not freed or available.
  • NSS Salvage is enabled.
  • In Nautilus Edit->Properties->Behavior (tab)->Trash (section) shows
    • a selected option to "Ask before emptying the Trash or deleting files"
    • an unselected option to "Include a Delete command that bypasses Trash"
  • There is a hidden folder at the root of the NSS volume (/media/nss/VOLUME/) that begins with .Trash

Resolution

  1. Delete the .Trash* folder, and its contents.
    This will immediate free up the space by Nautilus deleted files.
  2. Change the following in Nautilus Edit->Properties->Behavior (tab)->Trash (section) :
    • Uncheck the option to "Ask before emptying the Trash or deleting files"
    • Check the option to "Include a Delete command that bypasses Trash"

Cause

Nautilus includes its own salvage system that operates independent of NSS.  Changing the options in the resolution section will disable Nautilus' salvage and NSS will see all file delete requests and operates on them according to the current NSS Salvage settings.  The NSS pool and volume statistics will then reflect available space accurately.

Additional Information

The above enables a new option, Delete , when you right click a file as well as the standard option of Move to Trash.
The following table represents ways to delete files via Nautilus, and what occurs:

Method/OptionOutcome
<Right Click>-
  Move to Trash
This option moves the selected file(s)/folder(s) to the .Trash-user folder. 
On NSS file systems, each LUM enabled or local user will have their own .Trash-user folder (if they delete files via Nautilus).
<Right Click>-
  Delete
This option removes any reference to the file(s)/folder(s) that are highlighted.  Any file/folder removed in this way cannot be recovered.
<Delete> or <Del> keySame as "Move to Trash" (above)

Side Note: The same is true for using Nautilus to remove files on native linux file systems as well (ext3, reiserFS, etc.).  For native file systems, the .Trash folder is typically stored in the user's home directory.