No liberaba espacio en el /home y el du -sh /home me mostraba que habia solo 1.8gb ocupado.
[root@p home]# df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-lv_home 7.8G 6.5G 877M 89% /home [root@ home]#
[root@p home]# /usr/sbin/lsof | grep deleted java 1570 x001187 1w REG 253,105 292 525209 /var/log/ambari-server/ambari-server.out (deleted) java 1570 x001187 2w REG 253,105 292 525209 /var/log/ambari-server/ambari-server.out (deleted) java 1570 x001187 131w REG 253,105 10837 524293 /var/log/ambari-server/ambari-eclipselink.log (deleted) sas 11849 x001186 4u REG 253,104 1656927 1008 /tmp/sctEpm73H (deleted) sas 11849 x001186 49uW REG 253,103 5096518424 130491 /home/x001186/PR_CONV_PuntScore.lst (deleted) elssrv 11892 root 3w REG 253,104 0 1000 /tmp/edscan.lck (deleted) elssrv 11892 root 4u REG 253,104 1656927 1008 /tmp/sctEpm73H (deleted)
Una busqueda mas fina , directamente sobre el fs /home
[root@ home]# /usr/sbin/lsof | grep deleted |grep home sas 11849 x001186 49uW REG 253,103 5103541064 130491 /home/x001186/PR_CONV_PuntScore.lst (deleted) [root@phome]# ps -ef|grep 11849 root 8908 14726 0 10:34 pts/15 00:00:00 grep 11849 x001186 11849 11844 97 Feb19 ? 2-05:58:59 /sasbin94/SASHome/SASFoundation/9.4/sasexe/sas /sasFiles/PANA/bin/Jobs/PR_CONV_PuntScore.sas -log /sasFiles/PANA/bin/Logs/PR_CONV_PuntScore_190220_0322.log -autoexec /sasFiles/PANA/bin/Parametros/appserver_autoexec.sas root 11892 11849 0 Feb19 ? 00:00:00 sasels 14 11 15 2 49589 [root@ home]#
Si quiero saber el tamaño total en Bloques, de los archivos borrados en el filesystem /home
[root@ home]# lsof -Fn -Fs |grep -B1 -i deleted | grep ^s | cut -c 2- | awk '{s+=$1} END {print s}' 5494756694 [root@ home]#
Ya identificamos el proceso que quedo estaba ejecutandose y cuanto ocupaba, ahora vamos a liberar ese espacio.
[root@home]# /usr/sbin/lsof | grep deleted |grep /home sas 11849 x001186 49uW REG 253,103 5119778048 130491 /home/x001186/PR_CONV_PuntScore.lst (deleted) [root@ home]# [root@home]# df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-lv_home 7.8G 5.4G 2.1G 73% /home [root@ home]# file /proc/11849/fd/49 /home/x001186/PR_CONV_PuntScore.lst (deleted) [root@ home]# echo > /proc/11849/fd/49 [root@ home]# df -h . Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-lv_home 7.8G 542M 6.9 3% /home [root@ home]#
No hay comentarios:
Publicar un comentario
Comentarios