failed to open stream: No space left on device linode 1

failed to open stream: No space left on device linode

#if you have enough disk space(df -h) and inode space (df -i), the
#folder with lots of files, "cache" folder in this example, may be 
#messed up and will likely be fixed with:
mkdir cache_new   
chmod ugo+rwX cache_new 
mv cache cache_old  
mv cache_new cache  
rsync -av cache_old cache

Here is what the above code is Doing:
1. Create a new folder called cache_new
2. Change the permissions of the new folder to allow everyone to read, write, and execute
3. Move the old cache folder to cache_old
4. Move the new cache folder to cache
5. Copy the contents of the old cache folder to the new cache folder

Similar Posts