# mdadm -create /dev/md1 -level=1 -raid-devices=3 /dev/sd2 ![]() # mdadm -create /dev/md0 -level=5 -raid-devices=3 /dev/sd3 It is an advanced tool for RAID management that will be used to create a /etc/nf within the installation environment. If you are using GPT, then you can use sgdisk to clone the partition table from /dev/sda to the other two hard drives:Īfter creating the physical partitions, you are ready to setup the /boot, /swap, and / arrays with mdadm. If a group of partitions of different sizes are assembled to create a RAID partition, it will work, but the redundant partition will be in multiples of the size of the smallest partition, leaving the unallocated space to waste. Note: Make sure to create the same exact partitions on each disk. You may need to reboot to allow the kernel to recognize the new tables. Repeat this process for /dev/sdb and /dev/sdc or use the alternate sgdisk method below. Select Linux RAID as the partition type: fd00.For sda3 just hit Enter to select the remainder of the disk. For sda1 and sda2 type the appropriate size in MB (i.e.Use the default for the first sector: Enter.Select the default partition number: Enter.Sda2 Primary linux_raid_m 2000.00 # /swapĪnd type the following commands at the prompt: Sda1 Boot Primary linux_raid_m 100.00 # /boot We will use gdisk to create three partitions on each of the three hard drives (i.e. ![]() fdisk, sfdisk) you will need to install gptfdisk to set the partition type of the boot loader partitions. Since most disk partitioning software does not support GPT (i.e. Finally, the partition you boot from must not be striped (i.e. Additionally, if there is a problem with one boot partition, the boot loader can boot normally from the other two partitions in the /boot array. Any other level will prevent your system from booting. The boot partition must be RAID1, because GRUB does not have RAID drivers. This can be achieved with alternative partitioning software (see: Article).Įach hard drive will have a 100MB /boot partition, 2048MB /swap partition, and a / partition that takes up the remainder of the disk. Note: If your hard drives are already prepared and all you want to do is activate RAID and LVM jump to Activate existing RAID devices and LVM volumes. The following example makes use of RAID1 and RAID5. raid0, raid1, raid5, raid6, raid10) and LVM (i.e. Follow the directions outlined there until you have configured your network.Įnter another TTY terminal by typing Alt+ F2. ![]() Obtain the latest installation media and boot the Parabola installer as outlined in the Beginners' Guide, or alternatively, in the Official Parabola Install Guide. ![]() If you would like to use one of those boot loaders make sure to add the option -metadata=0.90 to the /boot array during RAID installation. GRUB, LILO) will not support any 1.x metadata versions, and instead require the older version, 0.90. SYSLINUX only supports version 1.0, and therefore requires the -metadata=1.0 option. 1.2) when combined with an initramfs, which has replaced in Arch Linux with mkinitcpio. GRUB2 supports the default style of metadata currently created by mdadm (i.e. Additionally, the 2011.08.19 Arch Linux installer does not support GRUB2. GRUB2 when used in conjunction with GPT requires an additional BIOS Boot Partition. This tutorial will use SYSLINUX instead of GRUB2. Although GPT provides a significant improvement over a MBR, it does require the additional step of creating an additional partition at the beginning of each disk for GRUB2 (see: GPT specific instructions). GUID Partition Table (GPT) is a new standard for the layout of the partition table based on the UEFI specification derived from Intel. The widespread Master Boot Record (MBR) partitioning scheme, dating from the early 1980s, imposed limitations which affected the use of modern hardware. See the Wikipedia article on this subject for more information: GUID Partition Table
0 Comments
Leave a Reply. |