Mailbox corruption on The NFS server
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
Thanks a lot!!
i would try it out and post the results for perusage.
Would this solve the corruption problem.
Is it that this entire issue is because of pine and sendmail. And configuring either properly would eradicate the problem. So NFS doesnt need to be messed with.
thanks
-shivaji
-- EVERYONE should contribute to THE BEST of their capacity for THE DEVELOPMENT of THE NATION
-- A P J KALAM
Quoted 72 lines · Mark Cooke
You have to wait for the lock to be released - sendmail doesn't know if pine is partway through changing the mailbox file.
Alternatively, switch to using maildir rather than mailbox. Locking isn't required at that point - but I believe you have to patch pine for maildir support.
Mark
Quoted 54 lines · Shivaji Navale
Quoted 12 lines · Trond Myklebust
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Juri Haberland <[email protected]> writes:
> It's considered a bad idea to put mailboxes on a NFS share as > there might be locking issues if two applications simultanously > acces the same mailbox. Either use the maildir format or don't > export your mailboxes via NFS.
Sort of. It can be made to work *provided* that you can guarantee that your mail programs all agree to support the same file locking scheme. Currently that means they must chose one (or both) of the following schemes:
Quoted 7 lines
-
fcntl()(a.k.a. POSIX, a.k.a.lockf()) locking- dotlocking (a.k.a. creating a lock file using something like 'ln mailbox .mailbox.locked')
Note that the BSD
flock()and use ofO_EXCLin a dotlocking scheme are not considered to be reliable within Linux NFS.We use sendmail as our MTA and pine for mails, the dotlocking feature is there with pine. And it appears sendmail on invoking procmail waits for this lock to be released, if it exists.
Is there a way out of this, or rather not have mailboxes exported to clients.
thanks,
shivaji...PS:sorry, for starting new thread from an old one.
Quoted 5 lines
Cheers,
TrondQuoted 9 lines
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfsQuoted 8 lines
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Quoted 4 lines
--
Mark Cooke <[email protected]>
University Of Birmingham
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs
Hi,
Shouldn't need to change the NFS server as maildir was specifically designed to operate with NFS and lockfree schemes.
Useful links:
http://cr.yp.to/proto/maildir.html (Info on maildir)
http://www.firstpr.com.au/web-mail/mb2md/ (Convert mbox to mdir)
Cheers,
Mark
Quoted 95 lines · Shivaji Navale
Thanks a lot!!
i would try it out and post the results for perusage.Would this solve the corruption problem.
Is it that this entire issue is because of pine and sendmail. And configuring either properly would eradicate the problem. So NFS doesnt need to be messed with.
thanks
-shivaji-- EVERYONE should contribute to THE BEST of their capacity for THE DEVELOPMENT of THE NATION
-- A P J KALAMQuoted 76 lines · Mark Cooke
You have to wait for the lock to be released - sendmail doesn't know if pine is partway through changing the mailbox file.
Alternatively, switch to using maildir rather than mailbox. Locking isn't required at that point - but I believe you have to patch pine for maildir support.
Mark
Quoted 54 lines · Shivaji Navale
Quoted 12 lines · Trond Myklebust
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
" " == Juri Haberland <[email protected]> writes:
> It's considered a bad idea to put mailboxes on a NFS share as > there might be locking issues if two applications simultanously > acces the same mailbox. Either use the maildir format or don't > export your mailboxes via NFS.
Sort of. It can be made to work *provided* that you can guarantee that your mail programs all agree to support the same file locking scheme. Currently that means they must chose one (or both) of the following schemes:
Quoted 7 lines
-
fcntl()(a.k.a. POSIX, a.k.a.lockf()) locking- dotlocking (a.k.a. creating a lock file using something like 'ln mailbox .mailbox.locked')
Note that the BSD
flock()and use ofO_EXCLin a dotlocking scheme are not considered to be reliable within Linux NFS.We use sendmail as our MTA and pine for mails, the dotlocking feature is there with pine. And it appears sendmail on invoking procmail waits for this lock to be released, if it exists.
Is there a way out of this, or rather not have mailboxes exported to clients.
thanks,
shivaji...PS:sorry, for starting new thread from an old one.
Quoted 5 lines
Cheers,
TrondQuoted 9 lines
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfsQuoted 8 lines
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs--
Mark Cooke <[email protected]>
University Of Birmingham
Signature · 13 lines
Mark Cooke <[email protected]> University Of Birmingham ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs