Re: lug-bg: Kernel panic timeout (LILO)(Safe remote reboot)
- Subject: Re: lug-bg: Kernel panic timeout (LILO)(Safe remote reboot)
- From: danchev@email.domain.hidden (George Danchev)
- Date: Mon, 19 May 2003 21:52:10 +0300
On 19 05 2003 11:15, Plamen Tonev wrote:
<em class="quotelev1">> On Sat, 17 May 2003 20:54:09 +0300
<em class="quotelev1">> George Danchev <danchev_at_spnet.net> wrote:
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev2">> > On 16 05 2003 19:50, Plamen Tonev wrote:
<em class="quotelev2">> >
<em class="quotelev2">> > Õàéäå for the record ;-) äà îñòàíå â àðõèâà.
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev3">> > > Àáå èìàøå ëè òàêîâà íåùî äà ñå ñåòíå òàéìàóò íà boot manager-à (â
<em class="quotelev3">> > > ñëó÷àÿ LIoLiO) êàòî ñðåùíå çîð (kernel panic) da èçòàéìàóòè è äà
<em class="quotelev3">> > > boot-íå äðóã kernel?
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev2">> > Àêî â ìîìåíòà ðàáîòåùèÿ kernel äîñòèãíå äî "kernel panic", òî òîé ìîæå äà
<em class="quotelev2">> > reboot-ne ñèñòåìàòà ñëåä äàäåí èíòåðâàë îò âðåìå. ïðè "0" íÿìà äà ãî
<em class="quotelev2">> > íàïðàâè.
<em class="quotelev2">> > kernel boot parameter - panic=<sec>
<em class="quotelev2">> > proc/sys/kernel/panic <sec> ðàçëè÷íî îò íóëà.
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev3">> > > Àêî íÿìà ñåùàòå ëè ñå çà äîáúð íà÷èí äà ñå îñèãóðè ñèãóðåí safe reboot
<em class="quotelev3">> > > àêî íå óñïåå linux-à äà loadne íîâèÿò êåðíåë è/èëè äà íå ìîæå äà
<em class="quotelev3">> > > mount-íå íåùî è äà óâèñâà çàðàäè òîâà. ;-)
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev2">> > Ïèòàíåòî å çàáëóæäàâàùî, èäå ðå÷ çà ïðåââèäåí èëè íåïðåäâèäåí reboot (see
<em class="quotelev2">> > above) íà ðàáîòåùèÿ â ìîìåíòà êúðíúë è ïîñëå çàðåæäàíå íà ïðîâåðåí
<em class="quotelev2">> > ðàáîòåù image.
<em class="quotelev2">> >
<em class="quotelev1">>
<em class="quotelev1">> Ìäàì ïðàâ ñè óñïåøíî *çàáëóäèõ* âñè÷êè âè êàêâî òî÷íî èñêàì ;-)
<em class="quotelev1">> Áòâ. 10õ è çà íàïîìíÿíåòî çà tunå2fs çà âñåêè ñëó÷àé çà äà íå ñòèãà äî fsck
<em class="quotelev1">> ;-) Áòâ2. Just another hint: Àêî ïî íÿêàêâà ïðè÷èíà ìàøèíàòà ñè çàïàëè áåç
<em class="quotelev1">> ïðîáëåìè ò.å â íîâèÿò kernel íå âúçíèêíå ïðîáëåì ïðè mount-âàíå íà ôàéëîâè
<em class="quotelev1">> ñèñòåìè èëè íåùî îò ñîðòà, âñå îùå ñúùåñòâóâà øàíñ ìàøèíàòà äà íå çàïàëè
<em class="quotelev1">> network, êîåòî ñè å ñúùî òîëêîâà ôàòàëíî ;-) Çàòîâà ñ åäíî ïðîñòî ñêðèïò÷å
<em class="quotelev1">> ìîæå äà ñè îñèãóðèòå ðåñòàðò àêî ñëåä ïúëíî çàðåæäàíå è ñòàðòèðàíå íà
<em class="quotelev1">> äåìîíè è ñêðèïòîâå ñå îïèòà äà ping-íå 2-3 ïúòè ïðåç îïðåäåëåí ïåðèîä 2-3
<em class="quotelev1">> ñúðâúðà è fail-íå...òî òîãàâà åäèí ðåñòàðò îò ñêðèïòà ùå ðåñòàðòèðà îòíîâî
<em class="quotelev1">> è òîâà ùå ïîçâîëè íà Ëèëè äà ñòàðòèðà old and safe kernel.
íàé-âåðîÿòíî ìîãàò äà ñå ïðåäóãàäÿò è äðóãè prevent-âàùè îáñòîÿòåëñòâàòà, òàêà
÷å ìàøèíàòà äà íå ñå ïîÿâè online ïàê ... test çà pidfof sshd, àêî êëå÷è êàòî
äåìîí íà ôîíà? Ùî ïê äà íå ñå ñòàðòèðà ? :-/
(õìì, áàÿ ñå ïî÷óäèõ äàëè Ëèëè å ïåðñîíà îò remote hosting center-a .. íî
ïîñëå âèäÿõ ÷å â áúðçèíàòà ñúì êðúñòèë lilo.cong íà lili.conf .. muahahah)
<em class="quotelev2">> > Äà, ìîæå äà ñå íàïðàâè ïðåäâàðèòåëíî çàïèñ íà òî÷íî îïðåäåëåí boot
<em class="quotelev2">> > command line â (master) boot record-a êîéòî äà ñå èçïúëíè, òàêà ÷å äà
<em class="quotelev2">> > ñå çàðåäè ñëåä ðåñòàðòà òî÷íî îïðåäåëåí image, êîéòî ñå çíàå, ÷å ðàáîòè.
ãîðíîòî ìàé ùå äà å ïî-òî÷íî òàêà:
Ìîæå äà ñå íàïðàâè ïðåäâàðèòåëíî çàïèñ íà òî÷íî îïðåäåëåí boot command line â
(master) boot record-a, êîéòî ñëåä êàòî áúäå ïðî÷åòåí ùå áúäå èçòðèò, è êîéòî
äà çàðåäè íîâèÿ kernel image, êîéòî ïúê àêî äîñòèãíå äî kernel panic äà áúäå
ïðåäâàðèòåëíî èíñòðóêòèðàí äà ñå reboot-âà ñëåä äàäåí âðåìåâè èíòåðâàë, ñëåä
êîåòî äà ñå çàðåäè default (old/safe) kernel image-à. (ùîòî îíÿ boot command
line çà new image ãî íåìà âå÷å;-)
<em class="quotelev2">> > From: Alexander Atanasov <alex_at_ssi.bg>
<em class="quotelev2">> > To: lug-bg_at_linux-bulgaria.org
<em class="quotelev2">> >
<em class="quotelev2">> > default=old
<em class="quotelev2">> > image=/boot/kernel1
<em class="quotelev2">> > label=old
<em class="quotelev2">> > image=/boot/kernel2
<em class="quotelev2">> > label=new
òóê ìàé çàáðàâèõìå append="panic=1" â lilo.conf, àêî èñêàìå îò ñàìîòî íà÷àëî
äà èìàìå kernel ñïîñîáåí äà reboot on kernel panic. Äðóãîòî å äà ñå èçäèðè
êúäå å äåôàóëòíàòà òàÿ ñòîéíîñò â kernel sources è äà ñå ïðîìåíè è
çàêîìïèëèðà òàêà - íå ñè ñòðóâà äèðåíåòî ;-)
<em class="quotelev2">> > lilo -R new
Õìì, äàëè íå ìîæå äà ñå ïîäàäå íà lilo -R new panic=1 ?
<em class="quotelev2">> > reboot
<em class="quotelev2">> > ako stane avtomatichen reboot puska defaultnia (old) koito e v
<em class="quotelev2">> > lilo.conf
<em class="quotelev2">> >
<em class="quotelev2">> >
<em class="quotelev2">> > Âñè÷êî òîâà ìîæå äà ñå èçïðîöåäèðà è íà remote çà âàñ machine...
<em class="quotelev2">> >
<em class="quotelev2">> > "cross your fingers & pray hard till login" ;-)
Çàøî íå ñãëîáèø åäíî dirty mini hotwo "Trying new kernel images on a remote
machine - hints about safe fail on boot, reboot and boot old image HOWTO" ...
èëè îïèò äà îáÿäâàìå áåçïëàòíî ;-)
Ñàìî óòî÷íè, ÷å kernel panic å ðàçëè÷íî îò kernel hang, ïðè ïîñëåäíîòî kernel
e dead, äà ñå èìà ïðåäâèä. Òàêà ÷å ïðåäè äà ñå ëîàä-âà íà remote (âåðîÿòíî
heavy-duty server) maniche íîâ òåñòîâ kernel image ïîëó÷åí îò äàäåí kernel
source è ñúùèÿ .config äà ñå ïîäëîæè íà ñòðåñèðàùè îáñòîÿòåëñòâà ëîêàëíî äà
çà íàìàëè âåðîÿòíîñòòà çà kernel hangs, ÷å òîãàâà ùå ñå ïëàùà íà remote
support team-a äà âðúùà ìàøèíàòà online.
Àáå âñúùíîñò àêî âè ñå íàëàãà äà ñìåíÿòå kernel íà remote machine, ãîðíàòà
ïðîöåäóðà íàé-ìíîãî äà ñïåñòè êîíòàêòâàíåòî íà remote support team (îñîáåíî
ðàäîñòíî àêî å hosting center ñ äåáåëè öåíè) ïî reboot-âàíåòî òàì, à àêî íåùî
ñå îáúðêà êàòî äà ñòàíå kernel hang, ÷àê òîãàâà íåìà íà êúäå è call äà
áóóòíàò ñúîòâåòíèÿ image ;-)
--
pub 4096R/0E4BD0AB 2003-03-18
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB <keyserver.bu.edu>
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|