Showing posts with label space. Show all posts
Showing posts with label space. Show all posts

Monday, February 8, 2016

my system is full

 all my space is being eaten up on /. hmm. not here...  
   
 [root@fullsystem ~]# df -i  
 Filesystem                    Inodes  IUsed   IFree IUse% Mounted on  
 /dev/mapper/rhel-root              141920 137849   4071  98% /  
   
 [root@fullsystem ~]# du -x / | awk '{ if ($1 > 500000) { print $0} }'  
 755656 /usr/lib64  
 1567956 /usr/share  
 3222024 /usr  
 3431904 /  
 
 this is cool, too:
 [root@fullsystem ~]# du -xh / | egrep "[0-9]+G.?*|[5-9][0-9][0-9]M.*?" | sort -n  >> /tmp/space.sorted
 [root@fullsystem ~]# mail -s "space used" me@here < /tmp/space.sorted
  
 [root@fullsystem ~]# du -xh / | egrep "[0-9]+G.?*|[5-9][0-9][0-9]M.*?"  
 738M  /usr/lib64  
 1.5G  /usr/share  
 3.1G  /usr  
 3.3G  /  
   
 it is probably under an nfs mount...