* [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
@ 2003-07-08 18:03 Dub
2003-07-08 20:11 ` Martin K. Petersen
0 siblings, 1 reply; 12+ messages in thread
From: Dub @ 2003-07-08 18:03 UTC (permalink / raw)
To: parisc-linux
Hi,
1. The document on
http://www.parisc-linux.org/faq/raidboot-howto.html
is really great. However, there is one exception
Command from FAQ:
mdadm --create /dev/md0 --level 1 --raid-devices=2 missing /dev/sdb2
Command working with curreny woody release:
mdadm -C /dev/md0 --level raid1 --raid-disks 2 missing /dev/sde2
There is no --raid-devices option in my release!
2.
I have mirrored boot, swap and root devices on pair of physical disks. I took
off one hot-plug disk and returned it back.
root device did not want to resync even after reboot.
md0 : active raid1 sde2[1] sda2[0]
33728 blocks [2/2] [UU]
md1 : active raid1 sde3[1] sda3[0]
525248 blocks [2/2] [UU]
md2 : active raid1 sda5[0]
4218752 blocks [2/1] [U_]
I fixed it by command
mdadm /dev/md2 -a /dev/sde5
What's wrong???
Kernel was compiled with CONFIG_HOTPLUG=y
Many thanks in advance for your help!
BR,
Dub
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-08 18:03 [parisc-linux] Corrections for RAID1 howto and Resyncing after failure Dub
@ 2003-07-08 20:11 ` Martin K. Petersen
2003-07-09 8:29 ` Joel Soete
2003-07-09 13:04 ` Dub
0 siblings, 2 replies; 12+ messages in thread
From: Martin K. Petersen @ 2003-07-08 20:11 UTC (permalink / raw)
To: Dub; +Cc: parisc-linux
>>>>> "Dub" == Dub <dub@latnet.lv> writes:
Dub> Command from FAQ: mdadm --create /dev/md0 --level 1
Dub> --raid-devices=2 missing /dev/sdb2
Dub> Command working with curreny woody release: mdadm -C /dev/md0
Dub> --level raid1 --raid-disks 2 missing /dev/sde2
Dub> There is no --raid-devices option in my release!
Odd. I'm running mdadm 1.2.0 and it says:
allegro:~# mdadm --create --help 2>&1 | grep raid-dev
Usage: mdadm --create device -chunk=X --level=Y --raid-devices=Z devices
--raid-devices= -n : number of active devices in array
Maybe Neil changed it in a later version?
Dub> I have mirrored boot, swap and root devices on pair of physical
Dub> disks. I took off one hot-plug disk and returned it back. root
Dub> device did not want to resync even after reboot.
Well. If the disk is no longer part of the metadevice, you manually
have to add it using the mdadm command.
It would be quite dangerous if the RAID code decided to add things to
an array just because a disk is inserted (fine for a storage
appliance, bad idea for a server).
CONFIG_HOTPLUG has nothing to do with it.
--
Martin K. Petersen http://mkp.net/
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-08 20:11 ` Martin K. Petersen
@ 2003-07-09 8:29 ` Joel Soete
2003-07-09 12:27 ` Matthew Wilcox
2003-07-09 13:04 ` Dub
1 sibling, 1 reply; 12+ messages in thread
From: Joel Soete @ 2003-07-09 8:29 UTC (permalink / raw)
To: Martin K. Petersen, Dub; +Cc: parisc-linux
> It would be quite dangerous if the RAID code decided to add things
> to an array just because a disk is inserted (fine for a storage
> appliance, bad idea for a server).
CONFIG_HOTPLUG has nothing to do with it.
Yes read in <http://www.ibiblio.org/pub/Linux/docs/howto/other-formats/html_single/SCSI-2.4-HOWTO.html#mlproc>
that in Linux 2.4: "The SCSI subsystem does not support hot-plugging of SCSI
devices ..."
Well I have no experience with hpux and those new 'hotplugable' devices but
at least on Sun it doesn't mean that you can remove device(s) like this without
taking care to power it off by software!!!
hth,
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-09 8:29 ` Joel Soete
@ 2003-07-09 12:27 ` Matthew Wilcox
2003-07-09 13:43 ` Joel Soete
2003-07-09 15:54 ` Grant Grundler
0 siblings, 2 replies; 12+ messages in thread
From: Matthew Wilcox @ 2003-07-09 12:27 UTC (permalink / raw)
To: Joel Soete; +Cc: Martin K. Petersen, Dub, parisc-linux
On Wed, Jul 09, 2003 at 10:29:08AM +0200, Joel Soete wrote:
> Yes read in <http://www.ibiblio.org/pub/Linux/docs/howto/other-formats/html_single/SCSI-2.4-HOWTO.html#mlproc>
>
> that in Linux 2.4: "The SCSI subsystem does not support hot-plugging of SCSI
> devices ..."
True, it's pretty damn racy. But if you're careful, it can work.
Let's hope we manage to make it better in 2.6 ... there's a pair of BOFs
in two weeks time at OLS (Hotplug & Linux SCSI) that should address this.
> Well I have no experience with hpux and those new 'hotplugable' devices but
> at least on Sun it doesn't mean that you can remove device(s) like this without
> taking care to power it off by software!!!
Well, no, you're always going to have to quiesce the device. Otherwise it's
like turning the machine off without halting -- random things are cached and
simply never make it back to disc.
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-09 12:27 ` Matthew Wilcox
@ 2003-07-09 13:43 ` Joel Soete
2003-07-09 15:54 ` Grant Grundler
1 sibling, 0 replies; 12+ messages in thread
From: Joel Soete @ 2003-07-09 13:43 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Martin K. Petersen, Dub, parisc-linux
> Well, no, you're always going to have to quiesce the device. Otherwise
it's
> like turning the machine off without halting -- random things are cached
and
> simply never make it back to disc.
Ah yes, (my bad, i thought but not write) I would have to specify that I
spok about hotplugable I/O device in general (FC, NIC,... with the famous
blue led) and not about disk which we qualify here as 'hotswapable' disk.
Thanks,
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-09 12:27 ` Matthew Wilcox
2003-07-09 13:43 ` Joel Soete
@ 2003-07-09 15:54 ` Grant Grundler
2003-07-09 15:58 ` Matthew Wilcox
1 sibling, 1 reply; 12+ messages in thread
From: Grant Grundler @ 2003-07-09 15:54 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Joel Soete, Martin K. Petersen, Dub, parisc-linux
On Wed, Jul 09, 2003 at 01:27:00PM +0100, Matthew Wilcox wrote:
> Well, no, you're always going to have to quiesce the device.
Not unless the disk is part of RAID[135] set.
I expect to be able to yank a disk and replace with a new one any time.
grant
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-09 15:54 ` Grant Grundler
@ 2003-07-09 15:58 ` Matthew Wilcox
2003-07-09 16:03 ` Grant Grundler
0 siblings, 1 reply; 12+ messages in thread
From: Matthew Wilcox @ 2003-07-09 15:58 UTC (permalink / raw)
To: Grant Grundler
Cc: Matthew Wilcox, Joel Soete, Martin K. Petersen, Dub, parisc-linux
On Wed, Jul 09, 2003 at 09:54:51AM -0600, Grant Grundler wrote:
> On Wed, Jul 09, 2003 at 01:27:00PM +0100, Matthew Wilcox wrote:
> > Well, no, you're always going to have to quiesce the device.
>
> Not unless the disk is part of RAID[135] set.
> I expect to be able to yank a disk and replace with a new one any time.
Indeed. You are coming to those two BOFs, right? ;-)
--
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead bodies.
Do you think I want to have an academic debate on this subject?" -- Robert Fisk
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-08 20:11 ` Martin K. Petersen
2003-07-09 8:29 ` Joel Soete
@ 2003-07-09 13:04 ` Dub
2003-07-09 13:25 ` Joel Soete
1 sibling, 1 reply; 12+ messages in thread
From: Dub @ 2003-07-09 13:04 UTC (permalink / raw)
To: parisc-linux
Hi,
>
> Odd. I'm running mdadm 1.2.0 and it says:
>
> allegro:~# mdadm --create --help 2>&1 | grep raid-dev
> Usage: mdadm --create device -chunk=X --level=Y
> --raid-devices=Z devices
> --raid-devices= -n : number of active devices in array
>
> Maybe Neil changed it in a later version?
I downloaded the only stable version mdadm 0.7.2-2 from ftp.debian.org.
# mdadm --create --help 2>&1 | grep raid-d
Usage: mdadm --create device -chunk=X --level=Y --raid-disks=Z devices
I guess it would be nice to mention the difference in the FAQ
> Well. If the disk is no longer part of the metadevice, you manually
> have to add it using the mdadm command.
>
> It would be quite dangerous if the RAID code decided to add things to
> an array just because a disk is inserted (fine for a storage
> appliance, bad idea for a server).
OK, thank you!
> Yes read in
<http://www.ibiblio.org/pub/Linux/docs/howto/other-formats/html_single/SCSI-2.4-HOWTO.html#mlproc>
>
> that in Linux 2.4: "The SCSI subsystem does not support hot-plugging
of SCSI
> devices ..."
I just made another test. I pull out 2 mirrored disk (root and var). The system
was running well. However, it seems that md software did not notice absense of
disk until someone tries to write there (I was forced to create a file in /boot
partition so that md understands the failure).
Then I rebooted the system without two disks. PDC told 'warn 80F5' ( Looks Error
executing Entry Init). I do not know why PDC did not try secondary device
automatically, in spite of BOOT ALT worked OK. Looks like PDC was very unhappy
about primary disk and didn't try to try secondary path.
Then Linux didn't find two disks, and reassigned new device names (sda,sdb,...)
according to existing scsi ids. Happily, md software does not care about
symbolic device names and remaps /dev/md for new disk names according to hw paths.
Then I inserted the disks and rebooted the system so that the disks appear as
they should. Mirror were resynced manually without problems.
So, I'm not very happy about Linux hot-plug features.
BR,
Dub
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-09 13:04 ` Dub
@ 2003-07-09 13:25 ` Joel Soete
2003-07-10 8:58 ` dub
0 siblings, 1 reply; 12+ messages in thread
From: Joel Soete @ 2003-07-09 13:25 UTC (permalink / raw)
To: Dub, parisc-linux
> I just made another test. I pull out 2 mirrored disk (root and var). The
> system was running well. However, it seems that md software did not notice
> absense of disk until someone tries to write there (I was forced to create
> a file in /boot partition so that md understands the failure).
>
> Then I rebooted the system without two disks. PDC told 'warn 80F5' ( Looks
> Error executing Entry Init). I do not know why PDC did not try secondary
> device automatically,
> in spite of BOOT ALT worked OK. Looks like PDC was
> very unhappy about primary disk and didn't try to try secondary path.
do you well set autosearch on ?
Have a look at boot prompt: co bootinfo?
hth,
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-09 13:25 ` Joel Soete
@ 2003-07-10 8:58 ` dub
2003-07-10 14:52 ` Joel Soete
0 siblings, 1 reply; 12+ messages in thread
From: dub @ 2003-07-10 8:58 UTC (permalink / raw)
To: parisc-linux
>
> do you well set autosearch on ?
> Have a look at boot prompt: co bootinfo?
>
> hth,
> Joel
Hi,
You are right, autosearch was off. However, setting is on does not help, even
after powering off the system.
BR,
Dub
Configuration Menu: Enter command > bi
BOOT INFORMATION
Processor Boot ID
--------- -------
0 2
1 2
Autoboot: ON
Autosearch: ON
Fastboot: OFF
Primary boot path: 10/0.1 (dec)
0a/0.1 (hex)
Alternate boot path: 10/8.1 (dec)
0a/08.1 (hex)
Console path: 10/4/0.0 (dec)
0a/04/0.0 (hex)
Keyboard path: 10/12/7.0 (dec)
0a/0c/07.0 (hex)
LAN Station Address: 080009-da4488
Thu Jul 10 08:53:10 GMT 2003 (20:03:07:10:08:53:10)
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [parisc-linux] Corrections for RAID1 howto and Resyncing after failure
2003-07-10 8:58 ` dub
@ 2003-07-10 14:52 ` Joel Soete
0 siblings, 0 replies; 12+ messages in thread
From: Joel Soete @ 2003-07-10 14:52 UTC (permalink / raw)
To: dub, parisc-linux
Hi,
> You are right, autosearch was off. However, setting is on does not help,
even
> after powering off the system.
>
> BR,
> Dub
>
>
>
> Configuration Menu: Enter command > bi
>
> BOOT INFORMATION
>
> Processor Boot ID
> --------- -------
> 0 2
> 1 2
>
> Autoboot: ON
> Autosearch: ON
> Fastboot: OFF
>
> Primary boot path: 10/0.1 (dec)
> 0a/0.1 (hex)
> Alternate boot path: 10/8.1 (dec)
> 0a/08.1 (hex)
iirc if you launch 'boot alt' and ask to boot 'without interact with ipl'
it boots fine? If yes, i don't see why it doen't work (sorry).
(may be try to switch boot disks to be sure that the behaviour will not follow
the disk?)
Joel
------------------------------------------------------
Soldes Tiscali ADSL : 27,50 euros/mois jusque fin 2003.
On s'habitue vite à payer son ADSL moins cher!
Plus d'info? Cliquez ici... http://reg.tiscali.be/default.asp?lg=fr
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2003-07-10 14:52 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-08 18:03 [parisc-linux] Corrections for RAID1 howto and Resyncing after failure Dub
2003-07-08 20:11 ` Martin K. Petersen
2003-07-09 8:29 ` Joel Soete
2003-07-09 12:27 ` Matthew Wilcox
2003-07-09 13:43 ` Joel Soete
2003-07-09 15:54 ` Grant Grundler
2003-07-09 15:58 ` Matthew Wilcox
2003-07-09 16:03 ` Grant Grundler
2003-07-09 13:04 ` Dub
2003-07-09 13:25 ` Joel Soete
2003-07-10 8:58 ` dub
2003-07-10 14:52 ` Joel Soete
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox