[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: disk full message?!



On Mon, 26 Apr 1999, Matti Aarnio wrote:

Dear Matti,

thanks for your prompt reply!

> > The strange thing is that there are definetely enough space/inodes on the
> > receiving server.
> 
> Do  "df -k ." at the  POSTOFFICE/ directory in there.

$ pwd
/var/spool/postoffice
$ df -k .
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sdb2               513179    333354    153318  68% /var

$df -i .
Filesystem            Inodes   IUsed   IFree IUse% Mounted on
/dev/sdb2             132600   10636  121964    8% /var

looks like enough space and inodes left.


> >From the  smtpserver/smtpcmds.c  sources:
> .........
>     availspace = fd_statfs(FILENO(SS->mfp));
>     if (availspace < 0)
>         availspace = 2000000000;        /* Over 2G ? */
>     availspace >>= 1;
> .........
>     } else if (SS->sizeoptval > availspace) {
>         type(SS, 452, m431, "Try again later, insufficient storage available at the moment");
>         mail_abort(SS->mfp);
> .........
> 
> Now I wonder, that is the size in the system ?  What the 'availspace'
> reports ?

Could it be a 64bit problem or glibc-2.1 related?

> In the  smtpserver directory, you can also build a test tool:
> 
> 	make fdstatfs-test
> 	touch  /path/to/postoffice/public/test.file
> 	./fdstatfs-test /path/to/postoffice/public/test.file
> 
> What does it tell ?

alpha# ./fdstatfs-test /var/spool/postoffice/public/test.file
result: 0

Regards,
-- martin