* [Comm] raid
@ 2002-12-25 9:25 Андрей Заика
2002-12-25 10:10 ` Владимир
2002-12-27 22:15 ` Andrew Grechko
0 siblings, 2 replies; 5+ messages in thread
From: Андрей Заика @ 2002-12-25 9:25 UTC (permalink / raw)
To: Рассылка Altlinux
Извините что отнимаю у Вас время у меня возникла проблема
по райду 1 никак не могу найти человека разбирающегося может поможете
У меня рейд 1 массив - два винта
Решил добавить еще два. Сделал raidhotadd 3 и 4 винта
Написало все ОК
Подправил raidtab
=================================
raiddev /dev/md1
raid-level 1
nr-raid-disks 4
chunk-size 32
nr-spare-disks 0
persistent-superblock 1
device /dev/scsi/host1/bus0/target0/lun0/disc
raid-disk 0
device /dev/scsi/host1/bus0/target1/lun0/disc
raid-disk 1
device /dev/scsi/host1/bus0/target2/lun0/disc
raid-disk 2
device /dev/scsi/host1/bus0/target3/lun0/disc
raid-disk 3
========================
смотрю /proc/mdstat
========================
Personalities : [raid1]
read_ahead 1024 sectors
md1 : active raid1 scsi/host1/bus0/target3/lun0/disc[3]
scsi/host1/bus0/target2/lun0/disc[2]
scsi/host1/bus0/target1/lun0/disc[1]
scsi/host1/bus0/target0/lun0/disc[0]
35843584 blocks [2/2] [UU]
unused devices: <none>
========================
Все винты стали, но только два винта в зеркале.
Смотрю /var/log/messages
========================
raid1: spare disk scsi/host1/bus0/target3/lun0/disc
raid1: spare disk scsi/host1/bus0/target2/lun0/disc
raid1: device scsi/host1/bus0/target1/lun0/disc operational as mirror 1
raid1: device scsi/host1/bus0/target0/lun0/disc operational as mirror 0
raid1: raid set md1 active with 2 out of 2 mirrors
========================
т.е. два винта которые я добавил стали spare disk
А мне нужно чтоб они стали operational as mirror 2 и 3
соответственно.
В чем грабли в soft-raid HOW-TO про такое не написано. Может сталкивались.
Спасибо за внимание
Ice.
_______________________________________
@Mail.ru Национальная почтовая служба
http://www.mail.ru
_______________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] raid
2002-12-25 9:25 [Comm] raid Андрей Заика
@ 2002-12-25 10:10 ` Владимир
2002-12-27 22:15 ` Andrew Grechko
1 sibling, 0 replies; 5+ messages in thread
From: Владимир @ 2002-12-25 10:10 UTC (permalink / raw)
To: community
Андрей Заика пишет:
>Извините что отнимаю у Вас время у меня возникла проблема
>по райду 1 никак не могу найти человека разбирающегося может поможете
>
>
>У меня рейд 1 массив - два винта
>Решил добавить еще два. Сделал raidhotadd 3 и 4 винта
>Написало все ОК
>
>Подправил raidtab
>=================================
>raiddev /dev/md1
>raid-level 1
>nr-raid-disks 4
>chunk-size 32
>nr-spare-disks 0
>persistent-superblock 1
>device /dev/scsi/host1/bus0/target0/lun0/disc
>raid-disk 0
>device /dev/scsi/host1/bus0/target1/lun0/disc
>raid-disk 1
>device /dev/scsi/host1/bus0/target2/lun0/disc
>raid-disk 2
>device /dev/scsi/host1/bus0/target3/lun0/disc
>raid-disk 3
>========================
>
>
Для четырех дисков используйте raid-10 или LVM поверх raid1.
Для raid10:
sda и sdc - raid0 => md1
sdb и sdd - raid0 => md2
md1 и md2 - raid1 => md3
из них только md3 рабочий.
Howto примерно по этой штуке есть, если не ошибаюсь,
название содержит raid & boot
--
Best regards
Vladimir
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] raid
2002-12-25 9:25 [Comm] raid Андрей Заика
2002-12-25 10:10 ` Владимир
@ 2002-12-27 22:15 ` Andrew Grechko
2002-12-28 9:25 ` [Comm] raid Michael Shigorin
1 sibling, 1 reply; 5+ messages in thread
From: Andrew Grechko @ 2002-12-27 22:15 UTC (permalink / raw)
To: community,
Андрей
Заика
25 Декабрь 2002 12:25, Андрей Заика wrote:
> Извините что отнимаю у Вас время у меня возникла проблема
> по райду 1 никак не могу найти человека разбирающегося может
> поможете
>
>
> У меня рейд 1 массив - два винта
> Решил добавить еще два. Сделал raidhotadd 3 и 4 винта
> Написало все ОК
Вроде я так делал:
прописал в /etc/raidtab в зеркале новый диск как failed-disk
остановил зеркало
сделал для этого зеркала mkraid --force
raidhotadd
За последствия - не ручаюсь:), но у меня все нормально прошло.
--
With best regards,
Andrew Grechko
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Comm] Re: raid
2002-12-27 22:15 ` Andrew Grechko
@ 2002-12-28 9:25 ` Michael Shigorin
2002-12-28 9:53 ` Andrew Grechko
0 siblings, 1 reply; 5+ messages in thread
From: Michael Shigorin @ 2002-12-28 9:25 UTC (permalink / raw)
To: community
On Sat, Dec 28, 2002 at 01:15:32AM +0300, Andrew Grechko wrote:
> прописал в /etc/raidtab в зеркале новый диск как failed-disk
> остановил зеркало сделал для этого зеркала mkraid --force
> raidhotadd
> За последствия - не ручаюсь:), но у меня все нормально прошло.
Ну не знаю. Неправильная кувалда.
Зачем failed, а не hotspare? И зачем тормозить и mkraid?
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Comm] Re: raid
2002-12-28 9:25 ` [Comm] raid Michael Shigorin
@ 2002-12-28 9:53 ` Andrew Grechko
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Grechko @ 2002-12-28 9:53 UTC (permalink / raw)
To: community
28 Декабрь 2002 12:25, Michael Shigorin wrote:
> On Sat, Dec 28, 2002 at 01:15:32AM +0300, Andrew Grechko wrote:
> > прописал в /etc/raidtab в зеркале новый диск как failed-disk
> > остановил зеркало сделал для этого зеркала mkraid --force
> > raidhotadd
> > За последствия - не ручаюсь:), но у меня все нормально
> > прошло.
>
> Ну не знаю. Неправильная кувалда.
>
> Зачем failed, а не hotspare? И зачем тормозить и mkraid?
Затем, что и мне и автору начавшего тред письма хотелось именно
добавления в зеркало еще винтов не как горячей замены, а в
качестве используемых для зеркалирования. Степень избыточности -
это уже идеологический вопрос, IMHO. По тому варианту, который я
использовал - а что, mkraid для пересоздания суперблока можно
спокойно на неразмонтированном/ неостановленном зеркале делать?
Охотно готов поверить, что добавлять дополнительные диски (т.е.
не прописанные в raidtab на момент создания зеркала) в зеркало
можно и нужно через hotspare, но тогда прошу пояснить как это
делается так, чтобы они становились равноправными со старыми.
Отсылка в _конкретную_ документацию с удовольствием
принимается:)
--
With best regards,
Andrew Grechko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-12-28 9:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-25 9:25 [Comm] raid Андрей Заика
2002-12-25 10:10 ` Владимир
2002-12-27 22:15 ` Andrew Grechko
2002-12-28 9:25 ` [Comm] raid Michael Shigorin
2002-12-28 9:53 ` Andrew Grechko
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git