On Fri, Nov 03, 2006 at 12:09:49AM +0500, Igor Goldenberg wrote: > Hello, > > I want to migrate from one-disk installation to RAID1 array where > initial boot disk will be one of the components of array. I created > RAID1 in degraded mode (I have only two IDE disks: wd0 and wd1, but in > raid0.conf I wrote /dev/wd2b and /dev/wd1d). Then I copied my current > boot disk contents to new array (tar -Xcpf - / | tar -C /mnt -xvpf -) > and marked raid0 as root (raidctl -A root raid0). After reboot I have > raid as boot disk. In the raid0 I have now failed component0 and > optimal /dev/wd1b. After adding /dev/wd0b as spare disk, > reconstruction failed component0 to it (raidctl -F component0 raid0) > and initialization of parity (raidctl -P raid0) I have such raid0: > > # raidctl -s raid0 > raid0 Components: > component0: spared > /dev/wd1b: optimal > Spares: > /dev/wd0b: used_spare > Parity status: clean > Reconstruction is 100% complete. > Parity Re-write is 100% complete. > Copyback is 100% complete. > > It's good but I want to have two optimal raid0 components: /dev/wd0b > and /dev/wd1b, not as spared component0 and used_spare /dev/wd0b. What > I need to do for it? > > > And one more question. I have raid0b as swap partition but kernel puts on > boot: > swapmount: no device > Kernel was booted from /dev/wd0a and /dev/wd0b is a raid partition. > Where does it search swap partition 'b': on wd0 or on new root - > raid0?
I'd venture a guess the kernel is happily [1] swapping to wd0b. Don't use the b part of the boot disk for anything other than swap. Joachim [1] For some values of...