Housingserver und eigenes Rettungssystem. Wie machen?

Lesenswerte Artikel, Anleitungen und Diskussionen
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by theomega »

Habe das gleiche Problem, habe auch vor einen Housering-Server mir zuzulegen. Habe mir als Rettungslösung mal das hier überlegt, das ließe sich kostenlos realisieren:

Zwei Partitionen, einer mit einer Minimalkonofiguration und eine mit dem normalen System. Dann Lilo (oder grub) so einrichriten, das es standart-mäßig in das Rettungsystem bootet. Dann schreibe ich mir ein Script, das mir, wenn ich das normale System neustarten will, via dem oben genannten Paramteter Lilo dazu veranlasst mein Richtiges System zu booten.

Wo ist der Hacken?

Danke TO
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by Joe User »

theomega wrote:Zwei Partitionen, einer mit einer Minimalkonofiguration und eine mit dem normalen System. Dann Lilo (oder grub) so einrichriten, das es standart-mäßig in das Rettungsystem bootet. Dann schreibe ich mir ein Script, das mir, wenn ich das normale System neustarten will, via dem oben genannten Paramteter Lilo dazu veranlasst mein Richtiges System zu booten.

Wo ist der Hacken?
Wenn Dein System "blau macht", kommst Du nicht ans Script ;) Nimm grubs fallback-Option...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by theomega »

an welches Script? wenn ich den Server ohne mein Script neustarte lande ich ja wieder in meinem Resuce-Modus!

Wie funktioniert den der Fallback-Modus? Wann tritt der in Kraft? Wenn kein Kernel da ist?
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by Joe User »

theomega wrote:an welches Script?
Dein Reboot-Script ;)
theomega wrote:Wenn kein Kernel da ist?
Ja, ich hatte es in diesem Thread bereits genauer erläutert ;)
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by theomega »

Zu Thema Script: bei meinem Hoster (Houser *G*) habe ich die Möglichkeit meinen Server per Stromschalter übers INet neuzustarten.

Zum Thema Fallback: Was bringt mir das? meine Kernel laden normalerweise schon, nur meistens hängt es an der Netzwerkkarte. Und dann fällt der Grub natürlich nicht in den Fallback-Kernel zurück und ich habe den Salat!
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by Joe User »

Der Default-Kernel wird per init umbenannt, wodurch automatisch bei jedem Reboot der Fallback-Kernel (Rescue-System) geladen wird, sofern Du nicht manuell die richtige Bezeichnung des Default-Kernels wiederherstellst, bevor Du einen manuellen Reboot durchführst.
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by theomega »

ach jetzt versteh ich dass! Kommt ja ungefähr auf meinen Trick hinaus!
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by Joe User »

theomega wrote:ach jetzt versteh ich dass! Kommt ja ungefähr auf meinen Trick hinaus!
Jupp, nur bietet lilo das entscheidende Feature nicht ;)
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by theomega »

so einscheidend ist der Fallback doch nicht! Du kannst doch einfach das Default-Image ändern!
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by Joe User »

theomega wrote:so einscheidend ist der Fallback doch nicht! Du kannst doch einfach das Default-Image ändern!
Und wenn das Kernelimage "beschädigt" ist? Dann hängt lilo, grub nicht...
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
theomega
Userprojekt
Userprojekt
Posts: 696
Joined: 2003-01-27 14:36
Contact:
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by theomega »

egal, streiten wir uns nicht! Hast du das Realisiert mit Grub?
floker
Posts: 82
Joined: 2004-01-04 15:14
 

Re: Housingserver und eigenes Rettungssystem. Wie machen?

Post by floker »

theomega wrote:egal, streiten wir uns nicht! Hast du das Realisiert mit Grub?
HI!

Ich hab das jetzt mit grub und fallback probiert. meine grub.conf:

Code: Select all

#boot=/dev/hda
default=0
fallback=2
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Fedora Core (2.6.0)
        root (hd0,0)
        kernel /vmlinuz-2.6.0
title Fedora Core (2.6.3)
        root (hd0,0)
        kernel /vmlinuz-2.6.3
title Fedora Core (2.4.22-1.2115.nptl)
        root (hd0,0)
        kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/
        initrd /initrd-2.4.22-1.2115.nptl.img
klappt soweit gut.
Post Reply