Friday, 9 November 2018

No space left on device" while fileystem has lots of free space - Inode header full - Unix

No space left on device" while fileystem has lots of free space . Sometime it happens due to inode header is full. Unix keep tack of file details in the inode header. incase if too many files under a file-system or  folder may cause the inode header to become full.


-- df shows it has 61% free space
df -h .
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/rootvg-u01
                      9.8G  5.6G  3.7G  61% /u01


-- df -I  shows it has 100% full.
df -i .
Filesystem           Inodes  IUsed IFree IUse% Mounted on
/dev/mapper/rootvg-u01
                     655360 655360     0  100% /u01






use the below command to find out the folder with huge files




find /u01 -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n




we may need to either house keep or move it to different folder the unwanted files to make the inode header free





No comments:

Post a Comment

ZFS

Public Cloud tools comparison