Thread View: ch.comp.os.linux
9 messages
9 total messages
Started by Olivier M.
Sat, 23 Jan 1999 00:00
High security server
Author: Olivier M.
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
29 lines
1626 bytes
1626 bytes
Hello,
I'm currently trying to set up a kind of high security linux
server, that could be rebooted even in case of a harddisk
crash.
There are 2 harddisks of the same size, and partitionned exactely
the same way (one /home, one /, one /var/log). Once the system
was correctely installed on the sda disk, I just used "dd" a few
times to mirror the partitions on the sdb disk, configured lilo
and made two different fstab files. Now, at boot time I can choose
on which disk I want to boot, and the results are exactely the same
(exactely what I wanted).
Now, the system works pretty well, and I'd like to automatize the
mirroring process (especialy for /home and /var/log) : do you
think that using "dd" is a good idea ? Or should I rather use
a kind of "tar cfSP - * | (cd /homeBAK && tar xfSpv - )" command ?
Or maybe would RAID help me in this case, but I have no good
docs about that, and it seems to be quite a dangerous system
if not correctely configured.
Thanks for your comments,
Olivier
--
____________________________________________________________
... Please replace "XO*QVV" by "olm" to answer by e-mail...
--- .-.. .. ...- .. . .-. -- ..- .-.. .-.. . .-.
Re: High security server
Author: Urs Keller
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
16 lines
1139 bytes
1139 bytes
Linux RAID Functions: what you are looking for: "Mirroring: Two hard disk partitions are used to create one partition, which is the size of the smallest component partition. Each of the component partitions contain the same information, so if one disk fails, the other takes over without any loss of data." look at this document, too. http://metalab.unc.edu/mdw/HOWTO/Root-RAID-HOWTO.html "Olivier M." wrote: > Hello, > > I'm currently trying to set up a kind of high security linux > There are 2 harddisks of the same size, and partitionned exactely
Re: High security server
Author: Urs Keller
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
16 lines
1111 bytes
1111 bytes
Linux RAID Functions: what you are looking for: "Mirroring: Two hard disk partitions are used to create one partition, which is the size of the smallest component partition. Each of the component partitions contain the same information, so if one disk fails, the other takes over without any loss of data." look at this document, too. http://metalab.unc.edu/mdw/HOWTO/Root-RAID-HOWTO.html "Olivier M." wrote: > Hello, > > I'm currently trying to set up a kind of high security linux > There are 2 harddisks of the same size, and partitionned exactely
Re: High security server
Author: Marc SCHAEFER
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
22 lines
1353 bytes
1353 bytes
Olivier M. <XO*QVV@technologist.com> wrote: > think that using "dd" is a good idea ? Or should I rather use dd is only good provided the fs is umounted, or at least mounted read-only. > Or maybe would RAID help me in this case, but I have no good > docs about that, and it seems to be quite a dangerous system > if not correctely configured. Anyway, if the power fails, BOTH your RAID partitions will be in the same incoherent state, needing fsck, and in the bad cases, manual intervention. Your idea of ``from time to time copies'' is good. If you unmount the backup after the copy, the only ``dangerous'' window is during the copy. By the way, how do you intend to automate the recovery process ? One idea would be to have a partition which is never written to (initrd) and which attempts to mount all the other partitions, doing fsck when needed and if fsck fails, mount the alternate.
Re: High security server
Author: Marc SCHAEFER
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
9 lines
969 bytes
969 bytes
Marc SCHAEFER <schaefer@alphanet.ch> wrote: > By the way, how do you intend to automate the recovery process ? > One idea would be to have a partition which is never written to > (initrd) and which attempts to mount all the other partitions, > doing fsck when needed and if fsck fails, mount the alternate. This partition could be be RAID1, however, I know of no motherboard which supports this: this means that if the disk is dead, you can't boot. However, you can replace the hard-disk.
Re: High security server
Author: Olivier M.
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
49 lines
2800 bytes
2800 bytes
<schaefer@alphanet.ch> ecrivait/schrieb/wrote:
>> think that using "dd" is a good idea ? Or should I rather use
>dd is only good provided the fs is umounted, or at least mounted
>read-only.
you mean both fs ? or is it ok if only the destination fs is
unmounted ? for example if I dd the partition of /home, I don't
really want to mount it read-only : users wouldn't be able to
get mail (qmail: mailboxes _are_ in /home/username/Maildir),
and cgi that need to write to the disk wouldn't work anymore
during this (too long) time.
>Anyway, if the power fails, BOTH your RAID partitions will be
>in the same incoherent state, needing fsck, and in the bad cases,
>manual intervention.
tja, that's exactely what I want to avoid. The server is really
far from my workplace (50km), and in case of problem, the only thing
I can do, is to tell by phone to somebody in the server room : take
the rescue disk (LILO, set up to boot on the _second_ HD) and restart
the PC.
>Your idea of ``from time to time copies'' is good. If you unmount
>the backup after the copy, the only ``dangerous'' window is
>during the copy.
could even be good against low level hackers :)
>By the way, how do you intend to automate the recovery process ?
with a LILO disk as said a few lines before.
>One idea would be to have a partition which is never written to
>(initrd) and which attempts to mount all the other partitions,
>doing fsck when needed and if fsck fails, mount the alternate.
well, it sounds interesting, but I currently don't have the
knowledge to make such a thing, at least not without good docs :)
The final goal is to have 2 separate servers (hosted at different
providers) with same setup and harddisk contents, so that even
if a provider is unreachable, the pages will still be viewable.
I'll have to configure named to make it work, but I don't think
it will be too difficult. If you already tried something like
this, feel free to make comments...
If it works, then I'll write something about this on the linux
server guide project ( http://lisa.8304.ch ).
Olivier
--
____________________________________________________________
... Please replace "XD*NUP" by "olm" to answer by e-mail...
--- .-.. .. ...- .. . .-. -- ..- .-.. .-.. . .-.
Re: High security server
Author: Matthias Scherrer
Date: Sat, 23 Jan 1999 00:00
Date: Sat, 23 Jan 1999 00:00
46 lines
2395 bytes
2395 bytes
Hi, Olivier M. schrieb in Nachricht ... >The final goal is to have 2 separate servers (hosted at different >providers) with same setup and harddisk contents, so that even >if a provider is unreachable, the pages will still be viewable. >I'll have to configure named to make it work, but I don't think >it will be too difficult. If you already tried something like >this, feel free to make comments... there are many issues regarding security, but I think what you're looking for is HA (high availability). As you've always been told, you should mirror your harddisk (RAID). for the backup, just unmount the mirror-side and make an ufsdump (this is a SUN command, don't know the linux equivalent). attention: keep backup time as short as possible, as the new datas won't be saved in this time. for your cluster, do exactly the same. there are two things that aren't that easy to handle: 1. how to mirror the 1st system to the 2nd? on SUN there's software which can do this, which keeps track of the copied files and update them if necessarly. I suppose you will find something similar on linux too. but keep in mind, that it can cause heavily network traffic between the two machines, depending on how often you write on the master system. maybe you need just for this an extra fast ethernet connection. generally you should ask yourself, how high the network traffic is, and how many datas you have to secure. only if you know this, you can design your solution. 2. if the master system crashes, how can the slave system take it over? I guess that at least you have to change the IP adress manually, which means that in this time period your server is down. maybe you should think also about power. some HA-Server have three power supplies! just some thoughts... bye Matthias
Re: High security server
Author: Marc SCHAEFER
Date: Sun, 24 Jan 1999 00:00
Date: Sun, 24 Jan 1999 00:00
34 lines
1872 bytes
1872 bytes
Olivier M. <XD*NUP@technologist.com> wrote: > you mean both fs ? or is it ok if only the destination fs is Both (source AND destination) MUST be unmounted. Having the destination fs mounted may cause system panic. Having the source mounted will at require an e2fsck on the destination before use, since the fs will not be marked as clean. Theoretically, the data on it should be there, since dd also uses the buffer cache (there is no real raw devices on Linux --- well, without Direct IO). > get mail (qmail: mailboxes _are_ in /home/username/Maildir), > and cgi that need to write to the disk wouldn't work anymore > during this (too long) time. that's why tar is best. > I can do, is to tell by phone to somebody in the server room : take > the rescue disk (LILO, set up to boot on the _second_ HD) and restart > the PC. Do it with tar, then. > >By the way, how do you intend to automate the recovery process ? > with a LILO disk as said a few lines before. so it's not really automatic, which is probably enough for now. > it will be too difficult. If you already tried something like > this, feel free to make comments... if you put multiple addresses on a A record, I don't think people try them only if it fails: I think they are served in round-robin fashion (but only a DNS specialist can answer this).
Re: High security server
Author: Marc SCHAEFER
Date: Sun, 24 Jan 1999 00:00
Date: Sun, 24 Jan 1999 00:00
8 lines
922 bytes
922 bytes
Marc SCHAEFER <schaefer@alphanet.ch> wrote: > the data on it should be there, since dd also uses the buffer > cache (there is no real raw devices on Linux --- well, without > Direct IO). But still, there are windows were this won't work either, causing data corruptions: since there are locks in ext2 which will be bypassed by accessing the buffer cache directly.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads