Re: server mirroring

2001-09-25 Thread WHIRLYCOTT

This is a tough nut to crack.

There isn't just a single bullet that will fail over an entire system. 
You really have to look at applications that will need to fail over one
by one and determine how best to deal with these.

Some ideas to consider in your architecture:

* For web apps, you can rsync files from your staging environment to
your live environment as well as your failback box.  If your primary box
fails, you can bring your failback box online.

* If you need failover on web apps, certain J2EE containers will support
this, even to the level of failing over sessions to other machines in
the cluster.

* You can look at linux-ha.org for more ideas

* Think about load balancers and IP redirectors along the lines of F5's
big-IP or a Cisco LocalDirector, although you can easily replicate some
of the functionality that these products provide with a Debian box or
two.

* For spooling mail in the event of a primary machine failing, look at
adding additional MX records to your zone file.

* DNS is easy to handle... the O'Reilly DNS and Bind book is great for
learning about this.

* You do have a backup and recovery plan, don't you? ;)

But your question was about automatic, online mirroring of all file
changes... again, no silver bullet as far as I know of.  Depending on
your need, you could NFS mount filesystems off of a file server.  In the
system fails, mount the filesystems off of another box.  If the NFS box
fails, then you have problems.

For mirroring files, you should definitely look at rsync.  This is the
best solution to mirroring that I have seen.

If you are just talking about files, this is not a terribly difficult
problem, but when your apps have data in memory (i.e. session keys,
etc.) that you need to recover, this is remarkably trickier.

So there are some ideas.

phil.

Marcin Sochacki wrote:
> 
> Hi!
> 
> I would like to set up a secondary server with a complete mirror of my
> main production machine. In case the first one fails I could (manually)
> do a switchover. I don't need things like balancing, IP-takeover, etc.
> 
> The ideal solution should include automatic, online mirroring
> of all file changes from master server to the secondary one.
> 
> What is your suggestion to solve the problem?
> 
> Marcin
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 

Whirlycott
Philip Jacob
[EMAIL PROTECTED]
http://www.whirlycott.com/phil/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fwd: hard drive failure under RAID-1

2001-09-25 Thread WHIRLYCOTT

You know, I had software RAID-1 implemented on some 2.2.x box about 2
years ago using two Western Digital drives until one day, both drives
failed at the same time.  Apparently, there was some hardware bug
whereby after ~99 days of uptime, the drives lost power and the
controller stopped working. 

I had put the two identical drives in after reading some RAID docs
saying that this was preferable for some kind of undetermined mythical
reasons related to "being consistent."  But in my case, the risk of a
hardware bug downing both drives turned out to be what got me.

Software raid is kind of appealing, but ... not sure I'll go down that
path again.  I'm using a 3ware controller now.

phil.

Russell Coker wrote:
> 
> The following is something to consider when setting up RAID arrays.  At the
> moment AFAIK every RAID solution suffers from this problem.  :(
> 
> I have a Linux software RAID-1 array consisting of two IBM IDE hard drives.
> The latest kernel works the same way as the 2.4.2 kernel I am using on that
> machine.
> 
> I have just had them both fail at the same time!  They both had quite a
> number of bad sectors, however there was no sector that was bad on both
> disks!
> 
> The result I would have liked to see would be that when a bad sector is
> encountered during a read from disk 0, then disk 1 should then be read.  If
> the data can be read from disk 1 then it should be written back to disk 0.
> If after that disk 0 can be read (the likely result using sector-sparing in
> hardware) then it should give lots of huge kprintf() errors and keep running.
> 
> The result I saw was that disk 0 was marked as failed, then when a different
> sector failed on disk 1 the ext2 file system saw errors, the system stopped
> functioning correctly and needed a hard reset.  Then it paniced on boot
> because it couldn't add either disk to the RAID-1.  Since then I have been
> trying to recover it.  I wrote a program to read both disks and take data
> from disk 1, but take it from disk 0 when disk 1 returned a bad sector.  But
> this didn't work well because disk 1 had run for some time without disk 0.
> 
> In summary a situation which could have been salvaged by an emergency visit
> to a computer store turned into a catastrophy.  :(
> 
> --
> http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
> http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
> http://www.coker.com.au/projects.html Projects I am working on
> http://www.coker.com.au/~russell/ My home page
> 
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

-- 

Whirlycott
Philip Jacob
[EMAIL PROTECTED]
http://www.whirlycott.com/phil/


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Problems with radiusclient

2001-09-25 Thread Consultoria de Informatica Cathedral





I have configured my radiusclient and put in a line on radiusclient.conf
like that


authserver the ip of my radius server.

The port is the standart one, on the server everything works fine (it
authenticate conections for two cyclades wich came preconfigurated) bu my new
client simple doesn`t send any authentaication to the server, well the
question is, where can i find documentation to configure the radiusclient
Does anyone know how can i do that?

I thank any help you can send me.

---


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Problems with radiusclient

2001-09-25 Thread Rodrigo Cesar Herefeld

I have configured my radiusclient and put in a line on radiusclient.conf
like that


authserver the ip of my radius server.

The port is the standart one, on the server everything works fine (it 
authenticate conections for two cyclades wich came preconfigurated) bu my new 
client simple doesn`t send any authentaication to the server, well the 
question is, where can i find documentation to configure the radiusclient
Does anyone know how can i do that?

I thank any help you can send me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




RE: VERY URGENT

2001-09-25 Thread J.M. \"Jersey\" Miszczyk

:))),

2-3 years ago I was in an active correspondence with some dr. Araba Salim from Lagos, 
Nigeria. At the end of the day the money is ready to be transferred but... some tax on 
transaction must be paid :)))... ...  not much taking into account the total 
sum... some 50 000 US$... Lots of people in RSA went for it... greed I think :)).

Have a nice day
"Jersey"

P.S. Sorry that this does not have much to do with Debian but... a bit of warning 
might help someone :))

--
From:   Dmitriy
Sent:   Tuesday, September 25, 2001 5:48 AM
To: [EMAIL PROTECTED]
Subject:Re: VERY  URGENT

<><>



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




server mirroring

2001-09-25 Thread Marcin Sochacki

Hi!

I would like to set up a secondary server with a complete mirror of my
main production machine. In case the first one fails I could (manually)
do a switchover. I don't need things like balancing, IP-takeover, etc.

The ideal solution should include automatic, online mirroring
of all file changes from master server to the secondary one.

What is your suggestion to solve the problem?

Marcin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fwd: hard drive failure under RAID-1

2001-09-25 Thread Russell Coker

On Tue, 25 Sep 2001 14:01, James wrote:
> A question a bit apart, what has happened to RAID autodetect in the 2.4.x
> kernels?

Works fine for me in 2.4.2, I have several machines doing autodetect in 
2.4.2.  I have tested autodetect on newer kernels that that but don't recall 
the details.

If you use a kernel with RAID-1 as a module and/or the hard drive driver as a 
module with an initrd then it won't be autodetected.  I suspect that this is 
the issue you encountered as we seem to all be going to initrd now...

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Mailserver with accounts seperated from unix-accounts

2001-09-25 Thread Gavin Hamill

On Tue, Sep 25, 2001 at 09:09:39AM +0200, Erik Tews wrote:
> Hi
> But I have not yet heard of an
> possibility which makes it possible to have really all account
> informations in a sql or ldap-database.

It's possible, I've been doing it for about a year.  A set of qmail
patches that make a MySQL database authoritative for all qmail
functions. Advanced mappings and even regexes are possible.

The whole system allows completely virtual users with POP3, IMAP and
webmail pickup, and allows ESMTP authentication so users can roam and
still send mail through our SMTP servers.

http://www.iain.cx/unix/qmail/

I'll write a HOWTO if anyone's interested :)

gdh


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




globally enabling procmail with exim

2001-09-25 Thread Pierfrancesco Caci


Hello,
I would like to activate a virus scanning system that is based on
procmail.
I would like to do this globally for every user on my system, but from
the configuration examples and docs of exim, I understand that
procmail is by default called only if a ~/.procmailrc file is
present. 
How should I modified exim's config so as to check for existance of
/etc/procmailrc first and then continue as before to check for the
private ones?

Thanks 

Pf

-- 

---
 Pierfrancesco Caci | ik5pvx | mailto:[EMAIL PROTECTED]  -  http://gusp.dyndns.org
  Firenze - Italia  | Office for the Complication of Otherwise Simple Affairs 
 Linux penny 2.4.7 #1 Thu Jul 26 14:48:56 CEST 2001 i686 unknown


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: converting ext2 to softraid 1 or 5

2001-09-25 Thread Alson van der Meulen

On Tue, Sep 25, 2001 at 02:17:46PM +0200, Kai Koehler wrote:
> hello
> 
> we want to install an software raid system on an existing debian server
> the server contains his data on one partition/hd
> 
> whats the easiest way to initialize an software raid 1 or 5 and convert the 
> existing data with the lowest downtime
Put the RAID disks in the server, configure software RAID with these
disks, copy your data (dump/restore, tar, cp, whatever), then remove the
old disk. 
You could, if you want to use the original disk in your array, temporary 
insert an extra disk, mkraid, copy data, and remove the disk and raidhotadd
the original disk.

For more info look at the Software-RAID-HOWTO.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




converting ext2 to softraid 1 or 5

2001-09-25 Thread Kai Koehler

hello

we want to install an software raid system on an existing debian server
the server contains his data on one partition/hd

whats the easiest way to initialize an software raid 1 or 5 and convert the 
existing data with the lowest downtime

thx

kai
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Fwd: hard drive failure under RAID-1

2001-09-25 Thread James


A question a bit apart, what has happened to RAID autodetect in the 2.4.x
kernels? 

Thanks


On Tue, 25 Sep 2001, Russell Coker wrote:

> The following is something to consider when setting up RAID arrays.  At the
> moment AFAIK every RAID solution suffers from this problem.  :(
> 
> 
> I have a Linux software RAID-1 array consisting of two IBM IDE hard drives.
> The latest kernel works the same way as the 2.4.2 kernel I am using on that
> machine.
> 
> I have just had them both fail at the same time!  They both had quite a
> number of bad sectors, however there was no sector that was bad on both
> disks!
> 
> The result I would have liked to see would be that when a bad sector is
> encountered during a read from disk 0, then disk 1 should then be read.  If
> the data can be read from disk 1 then it should be written back to disk 0.
> If after that disk 0 can be read (the likely result using sector-sparing in
> hardware) then it should give lots of huge kprintf() errors and keep running.
> 
> The result I saw was that disk 0 was marked as failed, then when a different
> sector failed on disk 1 the ext2 file system saw errors, the system stopped
> functioning correctly and needed a hard reset.  Then it paniced on boot
> because it couldn't add either disk to the RAID-1.  Since then I have been
> trying to recover it.  I wrote a program to read both disks and take data
> from disk 1, but take it from disk 0 when disk 1 returned a bad sector.  But
> this didn't work well because disk 1 had run for some time without disk 0.
> 
> In summary a situation which could have been salvaged by an emergency visit
> to a computer store turned into a catastrophy.  :(
> 
> -- 
> http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
> http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
> http://www.coker.com.au/projects.html Projects I am working on
> http://www.coker.com.au/~russell/ My home page
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Fwd: hard drive failure under RAID-1

2001-09-25 Thread Russell Coker

The following is something to consider when setting up RAID arrays.  At the
moment AFAIK every RAID solution suffers from this problem.  :(


I have a Linux software RAID-1 array consisting of two IBM IDE hard drives.
The latest kernel works the same way as the 2.4.2 kernel I am using on that
machine.

I have just had them both fail at the same time!  They both had quite a
number of bad sectors, however there was no sector that was bad on both
disks!

The result I would have liked to see would be that when a bad sector is
encountered during a read from disk 0, then disk 1 should then be read.  If
the data can be read from disk 1 then it should be written back to disk 0.
If after that disk 0 can be read (the likely result using sector-sparing in
hardware) then it should give lots of huge kprintf() errors and keep running.

The result I saw was that disk 0 was marked as failed, then when a different
sector failed on disk 1 the ext2 file system saw errors, the system stopped
functioning correctly and needed a hard reset.  Then it paniced on boot
because it couldn't add either disk to the RAID-1.  Since then I have been
trying to recover it.  I wrote a program to read both disks and take data
from disk 1, but take it from disk 0 when disk 1 returned a bad sector.  But
this didn't work well because disk 1 had run for some time without disk 0.

In summary a situation which could have been salvaged by an emergency visit
to a computer store turned into a catastrophy.  :(

-- 
http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/   Postal SMTP/POP benchmark
http://www.coker.com.au/projects.html Projects I am working on
http://www.coker.com.au/~russell/ My home page


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: Mailserver with accounts seperated from unix-accounts

2001-09-25 Thread Erik Tews

Hi

Perhaps my description about what I am looking for was a little bit
wrong. My problem is not authentification, I would like to have the
complete account-database in an sql-database (or ldap). Cyrus for
example can authenticate agains nearly everything but I still need to
create accounts with cyradm. Postfix for example is able to get
username-mapping-informations out of mysql, for example [EMAIL PROTECTED]
mapped to local unix user blubf. But I have not yet heard of an
possibility which makes it possible to have really all account
informations in a sql or ldap-database. But I currently don't know what
is possible with postfix and courier. I would like to add new users to
my mail-system with an sql-statement like insert into accounts
(username, passwort) values..  Does anybody know if this is
currently possible with open source software or should I better use for
example cyrus and let it authenticate agains mysql or something similar
(for example with pam) and create all accounts by hand with cyradm?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: pop3s package

2001-09-25 Thread Craig Sanders

On Tue, Sep 25, 2001 at 01:34:22PM +1000, Nathan Ridge wrote:
> Does anyone know of a debian package for pop3s ? I have been trying to
> setup using stunnel but am having a few hassles and was looking around
> for a deb package.

it's pretty easy to get stunnel working with just about any pop daemon.
e.g.

stunnel -d 995 -l /usr/sbin/ipop3d ipop3d

ditto for imapd and many other daemons (i use it for uucico, to provide
encrypted uucp-over-tcp connections)

craig

-- 
craig sanders <[EMAIL PROTECTED]>

Fabricati Diem, PVNC.
 -- motto of the Ankh-Morpork City Watch


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]