In Jessie (8.0), and I believe Wheezy (7.0), the installer will install GRUB even on RAID installs. Let's assign and format the volumes ( partitions): (which again isn't a good idea, since it's so easy ro resize a partition with LVM) In this example, we wont split the filesystem (we won't even bother to create a swap, which is a bad idea), so I use all the disk space. Our Logical volume (LV) will use some disk space from vg1 (which belongs to md0): Let's create the logical volume (kind pf partitions): Here, I chose the name vg1 for the group: Let's configure the Logical volume manager: (In this example, we have no spare partition).Once you have reach DebianInstaller partitioning screen.Ĭhoose manual partitioning, then on each disk, manually create a partition (same size on both disks).Ĭhoose the type of multidisk device to be created: Those few screenshots show how to install root on lvm on raid : Of course, you need to download a cdrom image. $ kvm -hda hda.qcow2 -hdb hdb.qcow2 -cdrom debian-lenny-i386-netinst.iso -boot d we can play, and break themįormatting 'hda.qcow2', fmt=qcow2, size=4194304 kBįormatting 'hdb.qcow2', fmt=qcow2, size=4194304 kB In this example, we use virtual machine ( qemu or kvm). This page contains some screenshots to demonstrate it, and applies to Debian 5.0 through, at least, 8.0, and probably 11.0. Actually, you can have root on RAID1+LVM partition. From this point on, Ubuntu installation will proceed as normal.Lenny (5.0) and later support having the root and /boot partition on RAID volume. Finish partitioningįinally, navigate down to "Finish partitioning and write changes to disk." Confirm that yes, you want to write changes to disks. Set Mount point to / (the root file system). Go up to "Use as:" and select "swap area".ĭo the same for RAID1 device #1 - 2.7 TB" partition #1, and set "Use as:" to "Ext4 journaling file system". Scroll down to "RAID1 device #0 - 16 GB" partition #1. When you have created both RAID devices, select "Finish". For example, for your swap partition, you would choose the /dev/sda2 (16000MB raid) and /dev/sdb2 (16000MB raid) and then hit Continue.Ħ. Choose matching partitions for each RAID device. Hit Enter to confirm number of spare devices.ĥ. Hit Enter to confirm number of active devicesĤ. Assuming it's RAID 1, then scroll down to select RAID 1.ģ. Scroll up in the "Partition Disks" menu and select "Configure software RAID." The screen will prompt you to write changes to disks. It will automatically fill up the rest of the disk. When you've created swap partitions, follow the same steps above except do not enter partition size. Navigate down to "Use as:" and select " physical volume for RAID" Type in 16000 (or "16 gb") assuming you want a 16 GB swap partition and hit Enter.ĥ. Create partitions for swap and /įollow the same steps as above to create RAID partitions:ģ. Repeat these for each disk in your RAID array. Navigate down to "Use as:" and select " Reserved BIOS boot area" (Ubuntu 14.04), or a variation thereof, such as "GRUB Partition" Navigate to FREE SPACE for each SCSI device (hard disk).ģ. Navigate to each SCSI device, hit Enter and then select Yes when prompted "Create new empty partition table on this device." Create GRUB partition on each diskġ. Disk configurationįor Partitioning Method, select Manual Erase partitioning table from each diskįirst, you need to erase partitioning table from each disk. If you need to set up RAID on GPT disks (larger than 2+TB), you must create a GRUB bootloader partition on each disk. Then, select "Configure software RAID" and add a RAID device for swap and / (root) on their respective partitions. When you get to "Disk Partitioning" portion of the installation, set up your partitions on each disk as follows (assuming you want a 16 GB swap partition): It also requires a separate partition on each disk (minimum size = 200 MB) set aside for the boot loader. Ubuntu requires manual partitioning for the software RAID array. Install Ubuntu on a software RAID array and deal with encounter the "Unable to install GRUB in /dev/sdb" error.
0 Comments
Leave a Reply. |