Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RISOLTO] problema "no space left on device" (postfix?)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Thu Dec 09, 2010 10:33 am    Post subject: [RISOLTO] problema "no space left on device" (post Reply with quote

ho un problema su un server ereditato da una precedente manutenzione

si e' inchiodato tutto con l'errore "no space left on device" qualunque cosa si provi a fare, lo spazio sulla partizione di root c'e', il problema sono gli inode, tutti esauriti. ho scoperto che la causa di questo e' probabilmente una errata configurazione di postfix, e mi trovo nella condizione seguente:

Code:

server ~ # ls -al /var/spool/postfix/
total 14520
drwxr-xr-x 16 root    root         4096 Apr 24  2008 .
drwxr-xr-x  6 root    root         4096 Apr 24  2008 ..
-rw-r--r--  1 root    root            0 Apr 24  2008 .keep_mail-mta_postfix-0
drwx------  2 postfix root         4096 Apr 24  2008 active
drwx------  2 postfix root         4096 Apr 24  2008 bounce
drwx------  2 postfix root         4096 Apr 24  2008 corrupt
drwx------  2 postfix root         4096 Apr 24  2008 defer
drwx------  2 postfix root         4096 Apr 24  2008 deferred
drwx------  2 postfix root         4096 Apr 24  2008 flush
drwx------  2 postfix root         4096 Apr 24  2008 hold
drwx------  2 postfix root         4096 Apr 24  2008 incoming
drwx-wx---  2 postfix postdrop 14786560 Dec  9 11:22 maildrop
drwxr-xr-x  2 root    root         4096 Apr 24  2008 pid
drwx------  2 postfix root         4096 Apr 24  2008 private
drwx--x---  2 postfix postdrop     4096 Apr 24  2008 public
drwx------  2 postfix root         4096 Apr 24  2008 saved
drwx------  2 postfix root         4096 Apr 24  2008 trace


notare la directory "maildrop" che credo sia la causa dell'inghippo

come la svuoto? rm dice "argument list too long", eliminare direttamente la cartella darebbe lo stesso risultato?
cercando in giro ho trovato una cosa del genere

find . -name '*' | xargs rm

ma ci sta mettendo anni... qualcosa di piu' veloce?

grazie
_________________
~~ Per amore della rosa si sopportano le spine... ~~


Last edited by flocchini on Thu Dec 09, 2010 12:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Dec 09, 2010 11:19 am    Post subject: Reply with quote

errore di filesystem?
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
dursino
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2010
Posts: 83

PostPosted: Thu Dec 09, 2010 11:20 am    Post subject: Reply with quote

Invece di usare le pipeline | xargs rm puoi usare il comando -delete, sempre di find:
E.G.
find / -name 'prova' -delete , ma non so se ti cambierà molto in velocità,forse qualcosa si
Back to top
View user's profile Send private message
flocchini
Veteran
Veteran


Joined: 17 May 2003
Posts: 1124
Location: Milano, Italy

PostPosted: Thu Dec 09, 2010 12:27 pm    Post subject: Reply with quote

fs dopo lo controllo, non lo riavviavo perche' non avendo modo nemmeno di lanciarmi uno "screen" avevo paura non ripartisse. ma credo sia a posto

cmq il comando ha funzionato, appena cancellato qualcosa la macchina si e' ripresa, ora devo settare degli aliases umani per postfix perche' la dir maildrop aveva dentro un numero indecoroso di file microscopici... cagnacci:|

grazie cmq del supporto, ero in panico
_________________
~~ Per amore della rosa si sopportano le spine... ~~
Back to top
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Thu Dec 09, 2010 12:34 pm    Post subject: Reply with quote

Con il senno di poi (me ne ero dimenticato, si vede che mi sono un tantino arruginito)
Code:
rmdir --ignore-fail-on-non-empty /var/spool/postfix/maildrop
:roll:

Se hai esaurito gli inode un check approfondito è d'uopo, fidati.
_________________
scita et risus abundant in ore stultorum sed etiam semper severi insani sunt:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum