파일이 있지 않으나 용량확보가 되어있지 않는경우
본문 바로가기

Linux

파일이 있지 않으나 용량확보가 되어있지 않는경우

디렉토리에 용량이 많지 않으나 많은 양의 데이터가 있는것으로 나온다면

프로세스가 돌고있는동안 파일을 지웠을경우 발생된다.

sendmail   4933 ilms    3uW  REG 104,11 3692077056 696189 /var/spool/clientmqueue/dfp0I4Z29D004933 (deleted)

이와같이 (deleted)라고 나와있으나 3692077056 의 용량이 지워지지않은체 삭제되었다면

관련 프로세스를 재시작하게되면 해결된다.

lsof 가 실행이 안되면 yum install lsof 로 설치 후 다음과 같이 사용하면 됩니다.

 

 

[관련 command] lsof 로 확인가능, ( #lsof /var )

[root@sam ~]# lsof  |grep deleted

python    13730     root    4r      REG              252,1   276806     406016 /var/log/messages-20180224 (deleted)

 

[root@sam ~]# yum install lsof

Loaded plugins: fastestmirror, presto

Setting up Install Process

Determining fastest mirrors

NeoDC-Base                                                                                                         | 4.0 kB     00:00     

NeoDC-chef                                                                                                         | 2.9 kB     00:00     

NeoDC-epel                                                                                                         | 2.9 kB     00:00     

NeoDC-erlang_solutions                                                                                             | 2.9 kB     00:00     

NeoDC-update                                                                                                       | 2.9 kB     00:00     

Tango-rpmforge                                                                                                     | 2.9 kB     00:00     

rhscl-python27-epel-6                                                                                              | 3.0 kB     00:00     

scl_python27                                                                                                       | 3.0 kB     00:00     

Resolving Dependencies

--> Running transaction check

---> Package lsof.x86_64 0:4.82-5.el6 will be installed

--> Finished Dependency Resolution

 

Dependencies Resolved

 

==========================================================================================================================================

 Package                      Arch                           Version                             Repository                          Size

==========================================================================================================================================

Installing:

 lsof                         x86_64                         4.82-5.el6                          NeoDC-Base                         324 k

 

Transaction Summary

==========================================================================================================================================

Install       1 Package(s)

 

Total download size: 324 k

Installed size: 900 k

Is this ok [y/N]: y

Downloading Packages:

Setting up and reading Presto delta metadata

Processing delta metadata

Package(s) data still to download: 324 k

lsof-4.82-5.el6.x86_64.rpm                                                                                         | 324 kB     00:00     

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Warning: RPMDB altered outside of yum.

  Installing : lsof-4.82-5.el6.x86_64                                                                                                 1/1 

  Verifying  : lsof-4.82-5.el6.x86_64                                                                                                 1/1 

 

Installed:

  lsof.x86_64 0:4.82-5.el6                                                                                                                

 

Complete!

 

도움이 되셨다면 공감과 댓글 부탁 드립니다.  *^.^* 

'Linux' 카테고리의 다른 글

CentOS 6.3 hp-health 오류시 수정방법  (0) 2013.02.05
로컬시간 strings 이 있는곳  (0) 2013.01.09
HPFS/NTFS mount  (0) 2013.01.09
***.src.rpm 설치방법  (0) 2013.01.09
e2label, tune2fs 명령어 (LEBEL 정보 변경 command)  (0) 2011.03.11