locking bayes?

Julian Field MailScanner at ecs.soton.ac.uk
Mon May 21 15:47:10 IST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

As opposed to actually stopping (ie shutting down) MailScanner, why not 
just suspend the processes?

PID=`cat /var/run/MailScanner.pid`
kill -STOP -$PID
# Do your snapshot here
kill -CONT -$PID

Will Bayes survive that?

Randal, Phil wrote:
> Why not go for the simple and obvious solution:
>
> stop MailScanner
> snapshot
> restart MailScanner
>
> Cheers,
>
> Phil
> --
> Phil Randal
> Network Engineer
> Herefordshire Council
> Hereford, UK  
>
>   
>> -----Original Message-----
>> From: mailscanner-bounces at lists.mailscanner.info 
>> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf 
>> Of Greg Matthews
>> Sent: 21 May 2007 10:56
>> To: MailScanner discussion
>> Subject: locking bayes?
>>
>> I have developed a shell script that takes uses LVM snapshots 
>> to backup 
>> volumes on a mail server. I am able to get a read-lock on the MySQL 
>> MailWatch table and was wondering if I could do the same with 
>> the bayes 
>> database to ensure it is consistent.
>>
>> At the moment, I am relying on the robustness of BerkeleyDB 
>> to be able 
>> to recover from a possibly inconsistent state. This is not ideal.
>>
>> The snapshot process is very quick so the lock could be 
>> released almost 
>> immediately.
>>
>> GREG
>> -- 
>> Greg Matthews           01491 692445
>> Head of UNIX/Linux, iTSS Wallingford
>>
>> -- 
>> This message (and any attachments) is for the recipient only. NERC
>> is subject to the Freedom of Information Act 2000 and the contents
>> of this email and any reply you make may be disclosed by NERC unless
>> it is exempt from release under the Act. Any material supplied to
>> NERC may be stored in an electronic records management system.
>>
>> -- 
>> MailScanner mailing list
>> mailscanner at lists.mailscanner.info
>> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>>
>> Before posting, read http://wiki.mailscanner.info/posting
>>
>> Support MailScanner development - buy the book off the website! 
>>
>>     

Jules

- -- 
Julian Field MEng CITP
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
For all your IT requirements visit www.transtec.co.uk



-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.6.1 (Build 1012)
Charset: ISO-8859-1

wj8DBQFGUbHOEfZZRxQVtlQRAmjqAKDRmEfJbOhwow+j6a4K7s2Nj6ZGrgCg1dzn
3Ff/icCSgmh7QxK8FQ37pMg=
=dun4
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
For all your IT requirements visit www.transtec.co.uk



More information about the MailScanner mailing list