Re: lug-bg: problem pri boot-vane
- Subject: Re: lug-bg: problem pri boot-vane
- From: valery@xxxxxxxxxxxxx (Valery Dachev)
- Date: Fri, 23 Jun 2000 18:37:11 +0300 (EEST)
On Fri, 23 Jun 2000, Alexander Shopov wrote:
> Zdrasti,
> instlirahme edno RedHat 6.2, koeto raboti ok sedmica i polovina (ne prez
> cialoto vreme - puska li sme go i sme go spirali) Dnes zabi.
Êàêâî ïðàâèõòå ïðåäè äà çàáèå ìàøèíàòà ?
> Sled kato go restartirah ne shte da bootne Minava prez liloto,
> zapochva da vkarva kernela i kogato stigne do
>
> freeing unused kernel memory 64K
>
> prestava da bootva. kato natisna ctl+alt+del - mashinata restartira
> kulturno - izliza mi nadpis
>
> stopping all md devices...
>
> i togava restartira.
Ñëåäîâàòåëíî "init" ìîæå äà å ìèíàë êàòî õîðàòà, òúé êàòî èìåíî â
/etc/inittab ïèøå êàêâî ñå ïðàâè ïðè íàòèñêàíå íà "òðèòå ïðúñòà".
> Togava cheknah diska s e2fsck (ot druga mashina). Imashe duplikate
> blocks am neide po visokite inodi.
Ïðè÷èíàòà ñèãóðíî å, ÷å äèñêîâåòå íå ñà áèëè "sync"-íàòè ïðè
ðåñòàðòèðàíåòî, êîãàòî å çàáèëà ìàøèíàòà. Çàùî íå ñå ïðåêîìïèëèðàòå ÿäðîòî
ñ "Kernel Hacking Support" -> "Magic SysRq", çà äà ìîæå ñ êîìáèíàöèèòå
- Alt+SysRq+S äà "Sync"-íåòå äèñêîâåòå
- Alt+SysRq+U äà "Unmount"-íåòå äÿëîâåòå
- Alt+SysRq+B äà "reBoot"-íåòå ìàøèíàòà
Ñïåñòÿâàòå ñè ïîíå ïðîâåðêàòà ñëåä ðåñòàðòèðàíåòî. Òîâà ðàáîòè àêî ÿäðîòî
íå å çàáèëî òîòàëíî, ðàçáèðà ñå. Íî â òâîÿ ñëó÷àé íå å òàêà, êîåòî òè
ïîçâîëÿâà äà èçïîëçâàø òåçè êîìáèíàöèè.
> Kato vidiah kak proticha procesa na bootvane - sled kato osvobodi
> neizpolzvanata pamet ibva red na init procesa
Ñëåä êîéòî èäâà ïóñêàíåòî íà "swap"-äÿëà (ïîíå â ìîÿ Slackware GNU/Linux
7.0.0) å òàêà ...
> zatova kato izleze liloto napisah (linux e estesveno label-a na image-a
> na kernela)(proveril sam go)
> linux init=/bin/bash rw (star trik za dobivane na root shell) - no
> nishto, situaciata e sashtata.
Ñòàð òðèê, êîéòî îáà÷å ìîæå äà áúäå ïðåäîòâðàòåí ñ îïöèèòå "password" è
"restricted" â /etc/lilo.conf(5).
Òîâà å îùå åäíà ïðè÷èíà äà ñìåòíåø, ÷å ïðîáëåìúò íå å ïðè ïóñêàíåòî íà
"init"-ïðîöåñà, çàùîòî, ñ òàçè îïöèÿ, âìåñòî íåãî, ïóñêàø /bin/bash.
> sashtoto e i sas
> linux init=/sbin/init
... à òîâà ñè å òàêà ïî "default" ('äåò ñú âèêú).
> Sled tova proverih s dmesg-a (/var/log/dmesg) ot poslednoto uspeshno
> bootvane, no tam sled Freeing unused kernel memory idva momenta na
> puskane na swapa, a toi si e veche po vreme na init procesa, znachi
> neshto mezhdu osvobozhdavaneto na kernel memorito i inita se
> opropastiava. Niakakvi idei?
Òà èäåÿòà ìè å òàì, ÷å ïðîáëåìúò íå å â "init"-ïðîöåñà (÷èåòî ñòàðòèðàíå â
ïîâå÷åòî íå ñå log-âà), à â ïîñëåäâàëèÿ ãî "swapon". Èíòåðåñíî ìè å, êúäå
ñå íàìèðà swap-äÿëà òè ? Ñèãóðåí ëè ñè, ÷å íÿìà íÿêàêúâ ïðîáëåì â
"partition" òàáëèöàòà ? Êàêâî êàçâà ÿäðîòî ïðè "Partition check:" ? Äîáðå
áè áèëî äà ñè ÿ ïðîâåðèø. Èìàì ÷óâñòâîòî (íå ÷å ñúì ìíîãî ÷óâñòâåí :-P),
÷å "swap"-äÿëúò òè (ñïîðåä òàçè òàáëèöà), çàïî÷âà êúì êðàÿ íà ãëàâíèÿ
GNU/Linux-êè äÿë. Òîâà áè îáÿñíèëî çàùî ñà òè áèëè ïðåöàêàíè áàø
ïîñëåäíèòå inode-è íà äÿëà.
Èäåÿòà ìîæå äà çâó÷è ìàëêî íàëóäíè÷àâî, íî òîâà å åäèíñòâåíîòî, êîåòî ìè
õðóìíà çà 2 ìèíóòè ðàçìèñúë, à è íå âèäÿõ äðóã äà õóêâà äà îòãîâàðÿ ;)))
ÌÄ (ìåæäó äðóãîòî), ìíîãî ñå íàêåôèõ âåäíúæ, êîãàòî áåç äà èñêàì íàïðàâèõ
"swapon" íà Linux-êèÿ ñè äÿë. Ðàçáèðà ñå, âåäíàãà êîãàòî ñå óñåòèõ,
ðåñòàðòèðàõ. Ñ åäíà õóáàâà äâîéêà boot & root äèñêåòêè íàïðàâèõ "e2fsck",
êîéòî ìè îïðàâè äÿë÷åòî, òàêà ÷å íèùî íå ñå ñêàïà. Âñè÷êî òîâà ïðè
ïîëîæåíèå, ÷å íà ìàøèíàòà ìè ðàáîòÿò Squid, BIND, MySQL, Apache, SSHd è
êóï îùå äåìîíè. Êîìåíòàð ?
. . . . . . . . . Ñ óâàæåíèå, Âàëåðè Äà÷åâ
/* vsprintf.c -- Lars Wirzenius & Linus Torvalds. */
/*
* Wirzenius wrote this portably, Torvalds fucked it up :-)
*/
.........................................................................
: User ID : Valery Dachev <v.dachev@xxxxxxxx> :
: Homepage : http://web.dir.bg/valery/ :
: PGP Key ID : 1024D/1C4C9712 (DSA) :
: Fingerprint : C451 0CC8 8EB4 655C D7C8 9D7F DCE9 C14E 1C4C 9712 :
:..............:........................................................:
: Organization : Bulgarian Linux Society : WWW : http://linux.home.bg/ :
:..............:.........................:.....:........................:
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|