Power off and network apcupsd

2009-02-04 Thread Greg Bernard

Hello,


I would like to know if this is possible to keep the network during a  
shutdown as describe and explained below for a Linux system.


How could we do that?

This will be used in a procedure to shutdown the UPS and the system  
after a Power Failure has been detected. Any experience with that will  
be of high interest to me.


---

You may need to take steps to ensure networking stays active during  
your
OS’s shutdown sequence in order for the PCNET driver to power off  
the
UPS (the so-called ”killpower” operation). On a Linux distro, you  
can use

commands such as...

chkconfig --level 0 network on
chkconfig --level 0 iptables on






«?»¥ 
«?»§ 
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 


Grégory Bernard   11, rue de la Tour
Directeur 75116 Paris France
www.ToDoo.biz tel : +(33) 1 40 26 43 14

«?»¥ 
«?»§ 
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 
¯ 


PGP ID -- 0x1BA3C2FD

P Please consider your environmental responsibility before printing  
this e-mail


Ce message et les pièces qui y sont éventuellement jointes sont  
exclusivement transmis à l'intention des personnes physiques ou  
morales auxquelles ils sont destinés.
Si vous avez reçu ce message par erreur, merci d'en avertir  
immédiatement la société ToDoo par téléphone ou par courrier  
électronique de retour à l'expéditeur et de supprimer toute copie de  
ce message.
Par ailleurs, il vous est notifié que toute divulgation, reproduction,  
distribution ou utilisation quelconque de tout ou partie de ce message  
(y compris de ses éventuelles pièces jointes) et des informations qui  
y sont contenues est interdite.
Internet ne permettant pas d'assurer l'intégrité de ce message, ToDoo  
et l'expéditeur déclinent toute responsabilité au cas où il aurait  
été intercepté ou modifié par quiconque.



This message and any possible attachments are transmitted for the  
exclusive use of the intended recipient(s).
Should you receive this message by mistake, please notify ToDoo or the  
sender at once by telephone or return e-mail and delete it from your  
system.
Moreover, any form of reproduction dissemination, copying, disclosure,  
modification, distribution and/or use of this message - or part of its  
contents, as well as its possible attachments by any unauthorized  
person or legal entity, is strictly prohibited.
The nature of the Internet means that the integrity of this message  
cannot be guaranteed. ToDoo and the sender therefore disclaim any  
liability whatsoever in the event of this message having been  
intercepted and/or altered.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


HA cluster based on promise Vtrack Mxxx

2006-10-25 Thread Greg Bernard

Hello,

I am trying to figure out which hardware to build my HA cluster with.

I have seen various promise systems which seems quite interesting  
(VTrack M210p) but FreeBSD is not mentionned as an official suported  
OS on their brochure.


Has anyone build such cluster with this kind of attachement.


The cluster I was thinking about will be built with :

- 2 nodes Pentium Xeon with SCSI card
- 1 VTrack External Storage M210p (this one has automatic failure  
detection included on It's hardware).

- Linux-HA as a control solution


Has anyone built such cluster with these hardware ?

If not what have you been using ?


Sincerly yours.


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Grégory Bernard   11, rue de la Tour
Directeur 75116 Paris France
www.ToDoo.biz tel : +(33) 1 40 26 43 14

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

PGP ID -- 0x1BA3C2FD

P Please consider your environmental responsibility before printing  
this e-mail


Ce message et les pièces qui y sont éventuellement jointes sont  
exclusivement transmis à l'intention des personnes physiques ou  
morales auxquelles ils sont destinés.
Si vous avez reçu ce message par erreur, merci d'en avertir  
immédiatement la société ToDoo par téléphone ou par courrier  
électronique de retour à l'expéditeur et de supprimer toute copie de  
ce message.
Par ailleurs, il vous est notifié que toute divulgation,  
reproduction, distribution ou utilisation quelconque de tout ou  
partie de ce message (y compris de ses éventuelles pièces jointes) et  
des informations qui y sont contenues est interdite.
Internet ne permettant pas d'assurer l'intégrité de ce message, ToDoo  
et l'expéditeur déclinent toute responsabilité au cas où il aurait  
été intercepté ou modifié par quiconque.



This message and any possible attachments are transmitted for the  
exclusive use of the intended recipient(s).
Should you receive this message by mistake, please notify ToDoo or  
the sender at once by telephone or return e-mail and delete it from  
your system.
Moreover, any form of reproduction dissemination, copying,  
disclosure, modification, distribution and/or use of this message -  
or part of its contents, as well as its possible attachments by any  
unauthorized person or legal entity, is strictly prohibited.
The nature of the Internet means that the integrity of this message  
cannot be guaranteed. ToDoo and the sender therefore disclaim any  
liability whatsoever in the event of this message having been  
intercepted and/or altered.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Cluster mail system using FreeBSD

2006-08-23 Thread Greg Bernard

Hello,


I am looking for the best possible solution in order to setup a High  
availability mail cluster using FreeBSD (smtp/imap/pop server with  
1000 accounts).




Selected software are as followed :
---

- Postfix
- Amavisd-new
- SpamAssassin
- Courier Imap
- DCC-DCCD
- Clamav
- a web mail (not yet selected but probably horde)


The idea is to offer a simple and very efficient solution in order  
for the server to have a 100% uptime under any circumstances.



I would like (if possible) to stick to software available in the  
ports (for ease of maintenance).



I was first thinking about using Linux-HA aka. heartbeat and  
syncing the two boxes using rsync ?


What other solution would you think of ?

Any pointer will be very appreciated I need to build my offer quite  
fast.



Sincerly yours.


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Grégory Bernard   11, rue de la Tour
Directeur 75116 Paris France
www.ToDoo.biz tel : +(33) 1 40 26 43 14

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

PGP ID -- 0x1BA3C2FD

P Please consider your environmental responsibility before printing  
this e-mail


Ce message et les pièces qui y sont éventuellement jointes sont  
exclusivement transmis à l'intention des personnes physiques ou  
morales auxquelles ils sont destinés.
Si vous avez reçu ce message par erreur, merci d'en avertir  
immédiatement la société ToDoo par téléphone ou par courrier  
électronique de retour à l'expéditeur et de supprimer toute copie de  
ce message.
Par ailleurs, il vous est notifié que toute divulgation,  
reproduction, distribution ou utilisation quelconque de tout ou  
partie de ce message (y compris de ses éventuelles pièces jointes) et  
des informations qui y sont contenues est interdite.
Internet ne permettant pas d'assurer l'intégrité de ce message, ToDoo  
et l'expéditeur déclinent toute responsabilité au cas où il aurait  
été intercepté ou modifié par quiconque.



This message and any possible attachments are transmitted for the  
exclusive use of the intended recipient(s).
Should you receive this message by mistake, please notify ToDoo or  
the sender at once by telephone or return e-mail and delete it from  
your system.
Moreover, any form of reproduction dissemination, copying,  
disclosure, modification, distribution and/or use of this message -  
or part of its contents, as well as its possible attachments by any  
unauthorized person or legal entity, is strictly prohibited.
The nature of the Internet means that the integrity of this message  
cannot be guaranteed. ToDoo and the sender therefore disclaim any  
liability whatsoever in the event of this message having been  
intercepted and/or altered.



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Updating from RELENG_5_1_2_RELEASE to ... ??

2005-11-21 Thread Greg Bernard

Hello,



I am going to update one of my customer's server from  
RELENG_5_2_1_RELEASE to RELENG_5_3 or RELENG_5_4 or RELENG_5


Which version would you advise me ??


This is a mail server in production (postfix - amavisd -  
spamassassin) so It obviously needs stability.

There is no GUI (X11 or so).


Which version of the system should I stick to ??

What are the risks ?

Which long term policy would you advise me to get this server up and  
running as long as possible ?





«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Other ways than quotas to limit mail files size ??

2004-01-12 Thread Greg Bernard
Le 11/01/04 23:12, « Mike Maltese » [EMAIL PROTECTED] a écrit :

 Is there another way to limit the amount of space occupied by mail files
 on
 a per user basis using another method than quotas ?
 
 I would like to limit the amount of space available for each user's e.mail
 so e.mail file size will not go crazy.
 
 Is there an option to limit message size with the MTA you are using?
 

Well I don't know, that's my question...

I am using sendmail.


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober --- PGP ID -- 0x1BA3C2FD
omni_osx_ml @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Other ways than quotas to limit mail files size ??

2004-01-11 Thread Greg Bernard
Is there another way to limit the amount of space occupied by mail files on
a per user basis using another method than quotas ?

I would like to limit the amount of space available for each user's e.mail
so e.mail file size will not go crazy.


Thanks for your advices...


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Grégory Bernard   11, rue de la Tour
Directeur 75116 Paris France
www.ToDoo.biz tel : +(33) 1 40 26 43 14

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

PGP ID -- 0x1BA3C2FD

I have always wished that my computer would be as easy to use as my
telephone. My wish has come true. I no longer know how to use my
telephone. - Bjarne Stroustrup



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Clamd sendmail ??

2004-01-02 Thread Greg Bernard
Hello, 

I am trying to have sendmail used clamd in order to filter incoming mail for
viruses on my mail server.

I have configured clamav following the instruction found here :
http://linux-sxs.org/administration/clamav-milter.html


I have modified my settings in order to have sendmail parsed these messages
with smthg like this added in my .mc file :


dnl ## milter clamav
INPUT_MAIL_FILTER(`clmilter',`S=local:/var/clamav/clmilter.sock, F=, T=S:4m;
R:4m')dnl
define(`confINPUT_MAIL_FILTERS', `clmilter')


When I start sendmail and tries to send a test mail containing a virus
signature, I have a send: Broken pipe message...


Has anyone got a working way to use clam as a filter for incoming mail with
sendmail... ?? 


Thanks. 



«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober --- PGP ID -- 0x1BA3C2FD
omni_osx_ml @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rsync and unattended ssh syncing 2 machines

2003-12-21 Thread Greg Bernard
Le 21/12/03 1:56, « Brent Bailey » [EMAIL PROTECTED] a écrit :

 ive been trying to get rsync to work with  unattended SSH and syncing of
 file systems
 between 2 machines running FBSD 4.9RC. I have rsync installed and i run a
 script like
 
 #!/bin/sh
 
 remote=192.168.25.12
 
 fslist=/var/mail /var/db/mysql /usr/local/www/data /user2
 
   for fs in $fslist ;
   do
 /usr/local/bin/rsync -avz --delete ${remote}:${fs}/ ${fs}/
   done
 

You need to specify the -e option (cf man rsync).

/usr/local/bin/rsync -e ssh -avz --delete ${remote}:${fs}/ ${fs}/


If you intent to use It as root you need to set up your ssh server so that
It does not require a password when rsync initiate the connexion.

This can be done in a quite not so secure manner by providing an empty
password when you generate the ssh key you will be using. Other more tricky
and safer solutions could be used...

More info and quick setup at this link :

http://killyridols.net/tutorials/rsyncssh.html


Good luck... Once It works, It works steadily and for long !

 but when i tail the logs of the remote machine i see..
 Dec 20 19:23:26 doppleganger sshd[24493]: Failed password for root from
 192.168.25.1 port 4476
 
 Anyone have any good luck with doing this ? suggestions ?? any all all
 help is greatly appreciated
 
 
 
 -- 
 Brent
 


«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Gregober --- PGP ID -- 0x1BA3C2FD
omni_osx_ml @at@ todoo.biz

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§



___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


TX Threshold TX Underrun ???

2003-11-06 Thread Greg Bernard
I have this message that has showed up in the security run output

I don't really know what It means ?

 backup.xxx.fr kernel log messages:
 dc0: TX underrun -- increasing TX threshold


Any idea ?


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


[FreeBSD 5.0] Problem with /etc/crontab -- /usr/libexec/save-entropy //

2003-11-03 Thread Greg Bernard
I have a problem with the /usr/libexec/save-entropy script executed by
crontab in /etc/crontab :


 # Save some entropy so that /dev/random can re-seed on boot.
 */11   *   *   *   *   operator /usr/libexec/save-entropy


When I let the /etc/crontab script execute normally I have a mail generated
automatically complaining about --: not found

  1
 Message 1:
 From [EMAIL PROTECTED]  Sun Nov  2 23:11:00 2003
 Date: Sun, 2 Nov 2003 23:11:00 +0100 (CET)
 From: [EMAIL PROTECTED] (Cron Daemon)
 To: [EMAIL PROTECTED]
 Subject: Cron [EMAIL PROTECTED] /usr/libexec/save-entropy
 X-Cron-Env: SHELL=/bin/sh
 X-Cron-Env: PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
 X-Cron-Env: HOME=/
 X-Cron-Env: LOGNAME=operator
 X-Cron-Env: USER=operator
 X-Spam-Status: No, hits=0.8 required=5.0
   tests=CRON_ENV,FROM_AND_TO_SAME_5,SPAM_PHRASE_00_01
   version=2.43
 X-Spam-Level: 
 
 --: not found


I had to comment the line in /etc/crontab so that It stopped generating
error every 11 minutes, could this be a potential problem ?

I don't exactly see what seems to go wrong with the script !?




Here is the script /usr/libexec/save-entropy


#!/bin/sh
#
# Copyright (c) 2001  The FreeBSD Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
#notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions and the following disclaimer in the
#documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
#
# $FreeBSD: src/libexec/save-entropy/save-entropy.sh,v 1.2 2001/01/14
07:18:31 d
ougb Exp $

# This script is called by cron to store bits of randomness which are
# then used to seed /dev/random on boot.

# Originally developed by Doug Barton, [EMAIL PROTECTED]

PATH=/bin:/usr/bin

# If there is a global system configuration file, suck it in.
#
if [ -r /etc/defaults/rc.conf ]; then
. /etc/defaults/rc.conf
source_rc_confs
elif [ -r /etc/rc.conf ]; then
. /etc/rc.conf
fi

case ${entropy_dir} in
[Nn][Oo])
exit 0
;;
*)
entropy_dir=${entropy_dir:-/var/db/entropy}
;;
esac

entropy_save_sz=${entropy_save_sz:-2048}
entropy_save_num=${entropy_save_num:-8}

if [ ! -d ${entropy_dir} ]; then
umask 077
mkdir ${entropy_dir} || {
logger -is -t $0 The entropy directory ${entropy_dir} does
not \
exist, and cannot be created.  Therefore no entropy can be saved. ;
exit 1;}
/usr/sbin/chown operator:operator ${entropy_dir}
chmod 0700 ${entropy_dir}
fi

umask 377

for file_num in `jot ${entropy_save_num} ${entropy_save_num} 1`; do
if [ -e ${entropy_dir}/saved-entropy.${file_num} ]; then
if [ -f ${entropy_dir}/saved-entropy.${file_num} ]; then
new_num=$(($file_num + 1))
if [ ${new_num} -gt ${entropy_save_num} ]; then
rm -f
${entropy_dir}/saved-entropy.${file_num}
else
mv
${entropy_dir}/saved-entropy.${file_num} \
   
${entropy_dir}/saved-entropy.${new_num}
fi
else
logger -is -t $0 \
${entropy_dir}/saved-entropy.${file_num} is not a regular file, and
therefore \
it will not be rotated. Entropy file harvesting is aborted.
exit 1
fi
fi
done

dd if=/dev/random of=${entropy_dir}/saved-entropy.1 \
bs=2048 count=1 2 /dev/null

exit 0
 





«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

Grégory Bernard   21, rue JJ Rousseau
Directeur 75001 Paris France
www.ToDoo.biz tel : +(33) 1 40 26 43 14

«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§

PGP ID -- 0x1BA3C2FD

I have always