No space left on device error often means you are over quota in the directory you're trying to create or move files to.


To check your quota in the home directory, use:

kinit or ccrkinit (if you have two factor auth enabled)
NOTE: You will see "Enter OTP Token Value:" - Enter your password AND one-time token all in the same line here

 

iquota -u

Project directories:

iquota -p /projects/academic/yourgroup 

iquota -p /projects/industry/yourgroup

iquota -p /projects/rpci/yourgroup


Scratch directories:

iquota -p /panasas/scratch/grp-yourgroup


More info on quotas can be found here


If you're certain you are not over quota, then it may be an issue of file permissions.  In the project spaces and in the Panasas scratch directories, users must ensure the group ownership of a file or directory is set to the faculty or project group of that directory.  If you get this error, this is definitely the problem:


mv: failed to preserve ownership for 'filename': no space left on device


1.  If you are trying to move a file from another location, change the group ownership of the file before moving it or use the copy command instead.



2.  If you get this error when trying to edit an existing file or trying to create a new one, it is because the 'sticky bit' is not set correctly on the subdirectory you are trying to write in.  You must add the sticky bit to the group permissions on the subdirectory to fix this:

chmod g+s directory_name


Please see this article for more details on group file permissions in the shared project and scratch spaces



3. It could be that your permissions are correct but the code you're compiling is using your primary unix group when creating new files.  Check out this article for more info