티스토리 뷰

Script

inode full

니플하임_ 2014.12.09 16:35

$ df -i


Filesystem            Inodes   IUsed   IFree IUse% Mounted on

/dev/cciss/c1d0p1    1332992  1332860    232   99% /

none                  209940       1  209939    1% /dev/shm

/dev/cciss/c1d0p3    7374752   17140 7357612    1% /db

/dev/cciss/c0d0p1    73236480   29098 73207382    1% /data01

/dev/cciss/c0d1p1    73236480     380 73236100    1% /backup1

/dev/cciss/c0d2p1    73236480      29 73236451    1% /backup2

IUsed 값이 Inodes 전체량에 가까워졌다.

파일이 정말정말 너무너무 많아졌음에 틀림없다.


$ cd /var/spool/clientmqueue

$ ls


dfr6G9o14R008106  dfrAGEA28e024788  dfs2MIo1Pf008313  dfs6V3K1A3021277  dfsB3MX2fX002723  qfr8B6e2Pq000596  qfs0M9o1id024358  qfs4PER1Vi010498  qfs926R2Ar017878

dfr6G9o1KB008115  dfrAGEA2bS024763  dfs2MIP1xU028607  dfs6V3K1Mk021577  dfsB3MZ1Gi003954  qfr8B6e2Xb000575  qfs0M9o1Lc024288  qfs4PEs1Ea030052  qfs926R2AS017788

dfr6G9o1mK008088  dfrAGEA2Dn024797  dfs2MIP3ni028679  dfs6V3o2bk009195  dfsB3N015K020755  qfr8B6e39e000742  qfs0M9OFle014352  qfs4PEs1GJ029962  qfs926R2Ij017834

dfr6G9o1qA008071  dfrAGEA2s0024791  dfs2MIR13o029317  dfs6V3P1uv024617  dfsB3N01ra021063  qfr8B6F2lq022389  qfs0M9P14v014529  qfs4PEs1Kr030083  qfs926s2he006094

dfr6G9O4o9031214  dfrAGEe2bJ004315  dfs2MIR173029355  dfs6V3R1bA025914  dfsB3N01wb021195  qfr8B6H2Gd023255  qfs0M9P2wp014615  qfs4PEt1Hx030674  qfs926s2kK006030

dfr6G9P1kh031529  dfrAGEe2c0004326  dfs2MIR1g2029345  dfs6V3R1Lm025978  dfsB3N01ZJ021155  qfr8B6j1QI002425  qfs0M9t2O3026323  qfs4PEU1Bq012410  qfs926s2oc006202

dfr6G9P2C1031562  dfrAGEe2mp004338  dfs2MIs1eC010349  dfs6V3R1X1025925  dfsB3N02D5021518  qfr8B6K15t024424  qfs0M9U1A7016556  qfs4PEv2Z0032442  qfs926s2UA006009

dfr6G9p2jA008745  dfrAGEe2tE004245  dfs2MIs1sM010348  dfs6V3s2ax011899  dfsB3N02DD021519  qfr8B6K17C024406  qfs0M9U1cx016402  qfs4PEZ2im015943  qfs926t1j7006806

dfr6G9t1jm009980  dfrAGEe3RP004487  dfs2MIs1wb010293  dfs6V3s2Ma011863  dfsB3N02Eo021434  qfr8B6K1oO024437  qfs0M9U1tv016248  qfs4PF01DL002043  qfs926U1Mx019975

dfr6G9U1Yd000608  dfrAGEF1nT026419  dfs2MIt2IF010974  dfs6V3s2PO011875  dfsB3N02ml021242  qfr8B6K1tp024510  qfs0M9U2bn016717  qfs4PF01YN001885  qfs926v276008319

dfr6G9U23g000699  dfrAGEH2tZ027215  dfs2MIU12p030722  dfs6V3t1Yg012507  dfsB3N02n2021466  qfr8B6K26C024621  qfs0M9Z1ND018501  qfs4PF02ad002360  qfs926Z17X023993

dfr6G9U2dt000743  dfrAGEj1dr006282  dfs2MIX34v032360  dfs6V3U1un027893  dfsB3N02rt021236  qfr8B6N2Ga025785  qfs0M9Z2lC018599  qfs4PF02aU002152  qfs927015A009918

dfr6G9U2Tm000755  dfrAGEK1Bd028369  dfs2MIZ1dw000701  dfs6V3v2wu014155  dfsB3N31C9023417  qfr8B6o1NM004431  qfs0MA01gM028348  qfs4PF02nE002236  qfs92701D7010376

dfr6G9Z1Gq002700  dfrAGEK1Eo028390  dfs2MIZ2OD000909  dfs6V3Z1ZI031413  dfsB3N52IR024437  qfr8B6o1PI004389  qfs0MA01iS028309  qfs4PF03Ca002532  qfs92701KZ010273

dfr6G9Z2X3002737  dfrAGEK1HJ028295  dfs2MJ0232013771  dfs6V4023W016093  dfsB3N62qb025393  qfr8B6o1sC004472  qfs0MA01sm028182  qfs4PF527e005765  qfs92701ZV010346

dfr6GA01aB011609  dfrAGEK1qr028391  dfs2MJ02Kd013573  dfs6V4025F016183  dfsB3N9202027223  qfr8B6o1TX004492  qfs0MA01UM028016  qfs4PF62tQ006851  qfs92702DC010472

dfr6GA01Aj011635  dfrAGEK2lV028551  dfs2MJ02kU013619  dfs6V402VR016217  dfsB3N92TZ027197  qfr8B6OLZ1026623  qfs0MA0231028606  qfs4PF91ja008616  qfs92702k8010532

dfr6GA01PG011406  dfrAGEN1Dq029591  dfs2MJ02lC013629  dfs6V402Xk015800  dfsB3N92Um027373  qfr8B6P13f026782  qfs0MA029t028600  qfs4PF91Zg008666  qfs92702L3010593

dfr6GA02dY011651  dfrAGEo20m008271  dfs2MJ04lK014064  dfs6V403Ar016469  dfsB3N92ZP027162  qfr8B6P1XF026835  qfs0MA51as030069  qfs4PF92cX008763  qfs92702lF010579

dfr6GA02ZI011946  dfrAGEo27h008331  dfs2MJ04oX014047  dfs6V403nH016457  dfsB3NA1iY027778  qfr8B6t203006386  qfs0MAA1AW031939  qfs4PFa2B0028352  qfs92702mJ010597

dfr6GA03bs011982  dfrAGEo2df008306  dfs2MJ26It014984  dfs6V403o8016385  dfsB3Na24K013175  qfr8B6U21k028701  qfs0MAA1eb031973  qfs4PFA2Bp009326  qfs927519U013434

dfr6GA51Gi013407  dfrAGEo2Wv008316  dfs2MJ51OP016429  dfs6V451Sm019312  dfsB3Na28S013147  qfr8B6U29Y028776  qfs0MAA1I5032023  qfs4PFa2d0028264  qfs92792c3016276

dfr6GAA15b015273  dfrAGEO8Rq030383  dfs2MJ91Dd018553  dfs6V4915T021943  dfsB3Na2OA013439  qfr8B6U2R3028498  qfs0MAA1tQ031987  qfs4PFa2GQ028320  qfs92792fT016247

dfr6GAA1BR015253  dfrAGEP1NJ030534  dfs2MJ91Mc018577  dfs6V491NZ021940  dfsB3Na2sA013153  qfr8B6U2Sw028728  qfs0MAe2gJ011916  qfs4PFC3f6011132  qfs92792RN016199

dfr6GAA1mD015187  dfrAGEP2s3030582  dfs2MJ91sB018522  dfs6V491vt021871  dfsB3NC245029547  qfr8B6Z2ae030954  qfs0MAe2HP011894  qfs4PFe19b031042  qfs927a1gU003907


$ rm -rf *

-bash: /bin/rm: Argument list too long 



오노.. 끝이없다.

여기서는 rm -rf * 도 

-bash: /bin/rm: Argument list too long 

에러를 떨구면서 실행되지 않는다.


좋아.. 그렇다면, 


cd /var/spool/clientmqueue; find . -type f | xargs rm -rf


요러케 지워보자.

주기적으로 크론으로 등록해도 되겠지마는, 

크론작업들이 output을 메일로 보내지 않도록 셋팅을 하여야 한다.(일단 지워서 장애메세지 부터 처리 -_-;)

댓글
댓글쓰기 폼