A database system is reporting it is out of disk... After cleaning up an 8GB root mail file and a few other users... things are OK... but the Free Space is disappearing!
I found a snippet of shell foo that I thought was useful (site listed below)
Unix and Linux System Administ (Google Affiliate Ad)Building Embedded Linux System (Google Affiliate Ad)
sort by size:
sudo lsof -s | awk '$5 == "REG"' | sort -n -r -k 7,7 | head -n 50
process with most files open:
sudo lsof | awk '$5 == "REG" {freq[$2]++ ; names[$2] = $1 ;} END {for (pid in freq) print freq[pid], names[pid], pid ; }' | sort -n -r -k 1,1
References:
http://thegoogleof.blogspot.com/2011/11/lsof-sort.html
http://www.ibm.com/developerworks/aix/library/au-lsof.html
I found a snippet of shell foo that I thought was useful (site listed below)
hdparm -tT /dev/sda
Unix and Linux System Administ (Google Affiliate Ad)Building Embedded Linux System (Google Affiliate Ad)
sort by size:
sudo lsof -s | awk '$5 == "REG"' | sort -n -r -k 7,7 | head -n 50
process with most files open:
sudo lsof | awk '$5 == "REG" {freq[$2]++ ; names[$2] = $1 ;} END {for (pid in freq) print freq[pid], names[pid], pid ; }' | sort -n -r -k 1,1
References:
http://thegoogleof.blogspot.com/2011/11/lsof-sort.html
http://www.ibm.com/developerworks/aix/library/au-lsof.html
Comments
Post a Comment