I'm encountering this error during installation (24.04.1 LTS), usually just as I'm entering what I want my password to be towards the end of installation. I looked around a bit and saw some issues to do with how partitions are set up. I double checked the options during install, I let Ubuntu itself set that all up, giving it an empty logical RAID 5 drive. Do I need to manually partition it all and set up all the different settings or can it do that itself? The machine is a HPE ProLiant DL380 G10, with HPE Smart Array E208i-a, RAID 5 array with 3 800GB Intel SSD DC S3610 series SSDs, so nothing too fancy or complicated by any means. I assume this is an ID-10-T error but wanted to check. Seen a couple posts relating to similar situations but nothing quite the same as this one. I can provide the full error log maybe, it's maybe not the easiest thing to copy. Image of screen displaying error
2 Answers
Usually, once the disk is physically connected to the computer, when it is started for the first time, the BIOS will automatically detect it. If this has not been the case, you will have to consult your computer's documentation to enable automatic device detection.
If the detection has been correct, to begin the installation you must install mdadm, a tool that allows us to configure and manage RAID devices.
To do this, you must run in the terminal:
sudo apt update
sudo apt install mdadm rsync initramfs-tools -y
The next step is to create a partition for each of the disks involved, which will occupy all the available space.
Then run:
sudo fdisk -l
It will tell you how the disks are recognized, let's say they are /dev/sdam /dev/sdb and /dev/sdc, for each of them you run fdisk as follows:
sudo fdisk /dev/sda
The fdisk command acts interactively, so it will ask us for information:
The first time it asks us for a command, we press the n key, which means that we want to create a new partition.
Next, we must indicate that the partition is primary. Therefore, following the instructions of the command itself, we will press the p key.
We will indicate that it is the first partition on the device, for which we will press the 1 key.
Then, we must indicate where the partition begins (first sector) and where it ends (last sector) we just press the Enter key twice.
With this we will have defined the partition, but, before concluding the work of fdisk, we must indicate the type of partition that it is:
In response to the following request for a command, we press the t key, to indicate that we want to establish the type of partition.
Next, we should indicate the number of the partition on which we will act, but since there is only one, the command automatically assumes the value 1.
Finally, we write the letters fd, which indicate that it is a RAID partition.
Next, we use the p command, to get fdisk to show us a summary of what we have just done and, if everything is correct, we write the w command, to save the changes.
To continue, we will apply the same changes to the second disk drive, and to the third.
Once the previous process is finished, it is necessary to create the new RAID-5 volume, using the command:
sudo mdadm -C /dev/md0 -l raid5 -n 3 /dev/sd[a-c]1
Where the -C argument means create and is followed by the device file to be used. The -l argument indicates the level, which in this case must be raid5 (or striping with distributed parity), but for other RAID levels we will use raid0, raid1, raid4, etc. The -n argument indicates the number of devices involved. And at the end of the line, we must identify said devices.
Once the process is complete, it is necessary to format the volume.
sudo mkfs.ext4 /dev/md0
Once the process is complete, when restarting, the RAID5 should be created.
- 17,808
I figured out what the issue was, the installation USB must have been corrupted or something, making a new one worked like a charm. Should have tried that from the start.