Hoi,
Ik heb de volgende situatie:
2x 30G zelfde schijven, alle partities draaien inmiddels RAID1, geen probleem. Het ging zo:
Debian op de eerste schijf, partitietabel gekopieerd naar schijf twee en een voor een mkraiden, geen probleem.
Nu het root-filesystem. Ik moet dus de installatie-schijf (hda2) in de raidarray zien te hangen van schijf2.
Nu is het dus zo:
hda2 => Goeie setup, moet in de raid gegooid worden
hdc2 => Lege schijf, moet mirror worden van hda2, is nu in z'n eentje /dev/md4
Normaal gesproken (bij die andere schijven deed ik dat ook) doe ik dan een `find . -xdev | cpio -pm /path/to/mounted-array`. Dus nu zou dat een kopie van hda2 => /path/to/mounted-md4 worden.
Zodra dat gekopieerd had moet je het root-filesystem unmounten en dan met raidhotadd /dev/hda2 deze partitie ook in de raid hangen.
Dan krijg je dus:
md4 => /dev/hdc2 [1], /dev/hda2 [2]
dat wil ik dus bereiken, erna snel ff /etc/fstab aanpassen naar md4 en draaien.
Maaruh, kan dit hierbovenstaande, zo in een keer? ik durf dit niet in een keer te proberen, vandaar. En het jammere is dat er geen spare-schijf in zit waar ik de boel op instal en dan hup, in een keer in de complete array gooien.
De Software RAID-howto zegt er dit over:
Iemand ervaring?
De onderstreepte quote is het probleem, wat bedoelen ze daarmee?
Ik heb de volgende situatie:
2x 30G zelfde schijven, alle partities draaien inmiddels RAID1, geen probleem. Het ging zo:
Debian op de eerste schijf, partitietabel gekopieerd naar schijf twee en een voor een mkraiden, geen probleem.
Nu het root-filesystem. Ik moet dus de installatie-schijf (hda2) in de raidarray zien te hangen van schijf2.
Nu is het dus zo:
hda2 => Goeie setup, moet in de raid gegooid worden
hdc2 => Lege schijf, moet mirror worden van hda2, is nu in z'n eentje /dev/md4
Normaal gesproken (bij die andere schijven deed ik dat ook) doe ik dan een `find . -xdev | cpio -pm /path/to/mounted-array`. Dus nu zou dat een kopie van hda2 => /path/to/mounted-md4 worden.
Zodra dat gekopieerd had moet je het root-filesystem unmounten en dan met raidhotadd /dev/hda2 deze partitie ook in de raid hangen.
Dan krijg je dus:
md4 => /dev/hdc2 [1], /dev/hda2 [2]
dat wil ik dus bereiken, erna snel ff /etc/fstab aanpassen naar md4 en draaien.
Maaruh, kan dit hierbovenstaande, zo in een keer? ik durf dit niet in een keer te proberen, vandaar. En het jammere is dat er geen spare-schijf in zit waar ik de boel op instal en dan hup, in een keer in de complete array gooien.
De Software RAID-howto zegt er dit over:
Waar begin ik, hdc2 is dus leeg, hoe pak ik dit in vredesnaam aan?You can only use this method on RAID levels 1 and above. The idea is to install a system on a disk which is purposely marked as failed in the RAID, then copy the system to the RAID which will be running in degraded mode, and finally making the RAID use the no-longer needed ``install-disk'', zapping the old installation but making the RAID run in non-degraded mode.
* First, install a normal system on one disk (that will later become part of your RAID). It is important that this disk (or partition) is not the smallest one. If it is, it will not be possible to add it to the RAID later on!
* Then, get the kernel, the patches, the tools etc. etc. You know the drill. Make your system boot with a new kernel that has the RAID support you need, compiled into the kernel.
* Now, set up the RAID with your current root-device as the failed-disk in the raidtab file. Don't put the failed-disk as the first disk in the raidtab, that will give you problems with starting the RAID. Create the RAID, and put a filesystem on it.
* Try rebooting and see if the RAID comes up as it should
Copy the system files, and reconfigure the system to use the RAID as root-device, as described in the previous section.
* When your system successfully boots from the RAID, you can modify the raidtab file to include the previously failed-disk as a normal raid-disk. Now, raidhotadd the disk to your RAID.
* You should now have a system that can boot from a non-degraded RAID.
Iemand ervaring?
De onderstreepte quote is het probleem, wat bedoelen ze daarmee?