• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux: No space left on device while df command shows a lot of free space

by admin

While working on Linux boxes system admin usually get this error “No Space left on device” While df commands show a lot of free space on the same partition or device. In my scenario I have an Apache-based application running on CentOS, I also face the same problem.

space troubleshooting in Linux

Follow the below steps to solve this problem

Step 1: Identify inodes information

To get inodes information of all the flie system, use below command:

# df -i

Linux: No space left on device while df command shows a lot of free space

To get inode information for a particular file system, use below command:

# df -i /dev/mapper/my--vg-my--lv

As we can see in the above output that all the inodes of the filesystem (/dev/mapper/my—vg-my–lv) has been consumed that’s why I am getting no space left on the device while lot free space is available.

Note : We can also get inode information of a filesystem using tune2fs command, as show below:

# tune2fs -l /dev/mapper/my--vg-my--lv

STEP:2 IDENTIFY OBSOLETE OR UNNECESSARY FILES ON THE FILE SYSTEM.

Step 2: Identify obsolete or unnecessary files on the filesystem

Find all the obsolete or unnecessary files and delete them using rm command. After deleting files then we can create files and directories.

Note: There is no way to increase the number of inodes on a file system once it has been created.

Filed Under: Linux

Some more articles you might also be interested in …

  1. What is the purpose of .bashrc file in Linux
  2. kdialog: command not found
  3. kwrite: command not found
  4. cewl Command Examples in Linux
  5. pidof Command Examples in Linux
  6. autorandr: command not found
  7. bmon: command not found
  8. How to use netstat command under Linux (Examples included)
  9. export: command not found
  10. cpufreq-info Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright