[CentOS] Install CentOS with degraded raid

Daniel Bareiro daniel-listas at gmx.net
Sat Aug 21 22:24:09 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

El jueves 19 de agosto del 2010 a las 19:41:09 -0300,
Robert Heller escribió:

>> >But if I try to make the installation in a RAID-1 with a single
>> >disk, the system does not allow it. There is any way to do it?
>> 
>> Drop into a shell, create (force) the md devices, partition etc then
>> drop into the installer and go...

> Eg: Ctrl-Alt-F2 will get you a shell.  Manually create the RAID set
> (but with only one disk).  That is, use fdisk to partition the disk.
> It is important to set the partition types to Linux RAID auto-detect
> -- the kernel needs this to start the RAID early in the boot process.
> You'll want two partitions: a small one for /boot, and the rest for a
> LVM volume group (to be broken up into /, /home, swap, etc.). Once the
> RAID sets are up and running, use Ctrl-Alt-F1 to get back to the
> installer.  You'll want to be sure to go back far enough in the
> process, so that going forward will get you to where the RAID-1 / LVM
> volumn group will be picked up.  You can then set up the file systems
> you need, etc.
>
> Later, when you get the second disk, you can use sfdisk to 'dup' the
> partitioning onto the new disk ('sfdisk -d /dev/sda|sfdisk /dev/sdb'),
> then use mdadm to add the partitions to the RAID arrays.

I tested this by switching to a console from the installer in text mode.
Despite I specified in the installer that the partitions were of type
'fd'. According to what I was checking after to switching to the
console, the installer did not make the corresponding changes in the
partitions so I had to manually make changes with fdisk. Then I created
md devices making second member is 'missed'.

But to return to the partitioner of the installer in text mode, this did
not take the changes. Even going a step back and choosing a custom
design, I can not see the md devices created through the console.

Have I to perform some additional operations to take the changes in the
installer?


Thanks for your replies.

Regards,
Daniel

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkxwUrYACgkQZpa/GxTmHTclBQCfbmfO+7eywcpBst/LZ+BgRgJe
97YAnA6festNd8e7Yg0ahggkTX1574mQ
=DG8Y
-----END PGP SIGNATURE-----




More information about the CentOS mailing list