ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: devel@altlinux.ru
Subject: Re: [devel] Promise ataraid
Date: Tue, 4 Nov 2003 00:03:46 +0300
Message-ID: <20031103210346.GA3662@sirius.home> (raw)
In-Reply-To: <20031103214942.3f6541e5.xmm@altlinux.ru>


[-- Attachment #1.1: Type: text/plain, Size: 2051 bytes --]

On Mon, Nov 03, 2003 at 09:49:42PM +0300, Marat Khairullin wrote:
> В messages появляется:
> Nov  3 18:28:02 nksto kernel: Promise Fasttrak(tm) Softwareraid driver 0.03beta: No raid array found
>                                                    ^^^^^^^^^^^^ - интересное замечание...,

Весьма вероятно, что дело в изменении распознаваемой геометрии диска.
Если сохранились логи от загрузки старого ядра, попробуйте найти в них
строки вида hda: 78165360 sectors (40021 MB) w/2048KiB Cache,
CHS=4865/255/63, UDMA(100) - оттуда нужны параметры CHS.  После этого
добавьте в параметры нового ядра опции hda=C,H,S hde=C,H,S (подставьте
параметры, которые определяет старое ядро).

Я тут нашёл некий патч к ядру по этому поводу (его, правда, пришлось
восстанавливать из испорченного почтовой программой вида).  Если
вариант с CHS поможет - скорее всего, этот патч устранит проблему;
тогда в очередном ядре в Сизифе он появится.

> когда покупал - расчитывал получить hardware raid :). Просветите, кто знает.

В рассылке https://listman.redhat.com/mailman/listinfo/ataraid-list по
этому поводу было много всего написано; в большинстве случаев изделия
фирмы Promise использовать не рекомендуется (впрочем, у HPT репутация
не лучше).  Во всяком случае, считается, что наилучший вариант борьбы
с этими железками, раз уж они есть - использовать в качестве простого
IDE-контроллера, а RAID организовывать программно с помощью драйвера
md (а не ataraid).

Конкретно по pdcraid в режиме RAID1 - в этом драйвере полностью
отсутствует обработка ошибок диска, т.е. основную функцию RAID1 -
обеспечение работоспособности системы при отказе одного из дисков - он
не выполняет.  Как ни странно, в нескольких сообщениях в рассылке
ataraid-list утверждается, что драйвер от Promise в этих ситуациях
тоже не работает.  В md обработка ошибок есть (хотя и не идеальная -
при обнаружении нескольких нечитаемых секторов плохим может быть
объявлен весь диск).  Так что при отсутствии необходимости держать на
RAID рядом другие операционные системы лучше использовать именно md.

[-- Attachment #1.2: linux-2.4.22-pdcraid-geom-fix.patch --]
[-- Type: text/plain, Size: 623 bytes --]

--- kernel-source-2.4.22/drivers/ide/raid/pdcraid.c.pdcraid-geom-fix	2003-10-26 22:10:49 +0300
+++ kernel-source-2.4.22/drivers/ide/raid/pdcraid.c	2003-11-03 23:36:46 +0300
@@ -360,9 +360,13 @@
 		return 0;
 	if (ideinfo->sect==0)
 		return 0;
-	lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
-	lba = lba * (ideinfo->head*ideinfo->sect);
-	lba = lba - ideinfo->sect;
+	if (ideinfo->head!=255) {
+		lba = (ideinfo->capacity / (ideinfo->head*ideinfo->sect));
+		lba = lba * (ideinfo->head*ideinfo->sect);
+		lba = lba - ideinfo->sect; }
+	else {
+		lba = ideinfo->capacity - ideinfo->sect;
+	}
 
 	return lba;
 }

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2003-11-03 21:03 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03 18:49 Marat Khairullin
2003-11-03 20:18 ` Sergey Vlasov
2003-11-03 22:24   ` Marat Khairullin
2003-11-04  5:56     ` Sergey Vlasov
2003-11-04 12:14       ` Marat Khairullin
2003-11-03 21:03 ` Sergey Vlasov [this message]
2003-11-03 22:39   ` Marat Khairullin
2003-11-04  6:05     ` Sergey Vlasov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031103210346.GA3662@sirius.home \
    --to=vsu@altlinux.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git