Thanks for this. Was planning on using hardware RAID 1 on the motherboard but after messing with it for a long time discovered not only is the driver for AMD RAID on Ubuntu hard to find but it also doesn't support NVME drives on X570. Someone told me to use software RAID 1 you need 4 drives but you proved that to not be the case.
Thank you for this tutorial. I've done RAID dozens of times in Windows, but this is my first Linux install. I just couldn't figure out what was needed. You explained exactly what to do.
Thank you for the excellent video. Setting up a RAID1 to install on was making me tear out my hair. This helped me understand what I was doing wrong and get it going.
Ok, I used this to do this initially (about 6 months ago or so) and it worked great, thanks! That said, unfortunately, I had one of my drives fail, how do I recreate the first part of the second drive (the part about creating the boot partition on drive 2) so that it can boot to either drive? (FYI, these are NVMe drives)
Are you sure your system will start if you remove your first disk ? I just did the test, the system is booting in rescue mode, as if "add as another boot device" on the second disk was not considered.
@3:21 I did all the steps exactly as you did, but it doesn't show me any active devices at all. They're just not listed and "RAID Level '1 (mirrored)' requires at least 2 active devices" is screened. Does anyone know why that is?
Had the same problem. When you go down to the list, where the devices should be, you can see that this list has entries. I think its buggy, you have to go trough them to check the right size to locate your disks
The best video I´ve seen on how to create a mirror, I wonder why this can´t be done with the UI installer, I tested this in virtualbox and it worked great but on real hardware it didn´t work, I guess that the problem is because both SSDs are different models, exactly same size and brand but one is a SATA SSD and the other one is an M.2:... Do you know anything on this limitation?
Sorry for the late reply! There should not be specific limitations on this. I've done many installations with a mix of SATA/SSD or NVMe(M2). What part of the installation is not working?
@@thatlinuxdude6972 Hi. On minute 2.28 when you add another boot device, it only adds the fist one but not the second one. I did it on a small rack mounted Ryzen 9, I send it to the manufacturer for guaranty for other reasons but once I get it back I plan to try it with Ubuntu 23.10 and see.
Thanks. Is there any additional setup one needs to do (perhaps in grub or is fstab) to ensure that both drives are bootable independently ? I found that I can boot from one but not from the other, even though both were selected as boot devices as per your guide.
Hi, sorry for the late reply! No extra actions should be needed. But might be depending on the hardware. Have you tried reinstalling grub on the second device? grub-install /dev/sdb or the name of second disk.
Hi there, if you need to change drives from raid you can use these commands. mdadm --fail /dev/md0 /dev/sdb2 (This is to mark a drive as failed) mdadm --remove /dev/m0 /dev/sdb2 (This to remove the drive from the raid set) fdisk -d /dev/sda | fdisk /dev/sdb (This is to create exact partition setup on the new sdb drive) mdadm --add /dev/md0 /dev/sdb2 Just let u me know if you have questions!
Я видел видеоинструкции, в которых предлагается скопировать EFI-разделы при помощи команды dd, и тогда должна быть возможна загрузка с обоих накопителей независимо друг от друга, но на практике пока не получилось реализовать такую установку Ubuntu, чтобы всё работало как предполагается.
On 10 years old Gigabyte main board I was forced to use LVM mirrors instead of Linux SW RAID1. Ubuntu Server 18.04 installer was unusable because of some weird scrolling issues so I installed Desktop 18.04 LTS. Going to see what will happen with 22.04 LTS.
@@rabinovitch4629 I have not tried booting without RAID1 (complete or degraded). But I assume if you correctly specify source devices using UUID etc. without RAID then GRUB will know what to do. Probably /etc/fstab would have to be modified in advance. Would be interesting to exercise though.
In Ubuntu 22 swap is created using a swapfile instead of a partition. This makes it much more scalable, you can change the size of swap any time you want. After an installation such as above you can use the below to check the swap size: swapon --show Just let me know if anything is unclear!
What issues? I did exactly as he said, just replaced the 1 with a 0. Worked fine. Please be more specific and also ask on the community help page. Hope your issue is solved! 😄
Since everyone want a ssd for the os, and 2 large hds to be mirrored backups, why the F is He setting up the mirrored disks as boot drives !?! ... makes no sense to me ! Does ubu not do this simplest of all setups ?
Yes, thank you. I have been trying to install ubuntu on a RAID 0 array. This is the BEST guide for that process. Nice work.
Thank you! I was looking *everywhere* for that option to mark a disk as a boot disk.
Thanks for this. Was planning on using hardware RAID 1 on the motherboard but after messing with it for a long time discovered not only is the driver for AMD RAID on Ubuntu hard to find but it also doesn't support NVME drives on X570. Someone told me to use software RAID 1 you need 4 drives but you proved that to not be the case.
Same here, I've lost a day trying to make an Asus motherboard raid work.
TY! Way more complicated than I expected. You made it very easy to understand and complete.
Thank you for this tutorial. I've done RAID dozens of times in Windows, but this is my first Linux install. I just couldn't figure out what was needed. You explained exactly what to do.
Thank you for the excellent video. Setting up a RAID1 to install on was making me tear out my hair. This helped me understand what I was doing wrong and get it going.
Had a weird setup to deal with and this helped me a lot. Thanks for this one!
Ok, I used this to do this initially (about 6 months ago or so) and it worked great, thanks!
That said, unfortunately, I had one of my drives fail, how do I recreate the first part of the second drive (the part about creating the boot partition on drive 2) so that it can boot to either drive?
(FYI, these are NVMe drives)
This is exactly how to do this. Consise and correct, wtg!
Thx so much. I couldn't figure it out my self this video helped so much! Thx!
Thanks for this!!!! El mejor video explicando como hacer un RAID1 en este nuevo sistema. Yo lo hice en UEFI pero me resulto muy util tu tutorial
Thank you! Great video and easy explanation.
Thank you, really good stoff, down to earth explanation.... as a help video should be. Good Job!!
Thank you, just saved my semester.
Nice and straight to the point
Thank you for your wonderful tutorial!
I was unable to install Ubuntu, not server, on my asus motherboard raid 0?
Thank you so much, this helpme a lot, greetings from Chile
Thx, this helps me so much! :)
thanks i needed the explanation to make the raid 1
Thank you! I was trying to install mint, pop os, elementary, nothing worked. and ubuntu server is the ONLY ONE which works on raid!!!
Попробуй теперь загрузиться отдельно с каждого из накопителей в массиве отдельно от другого.
Perfekt Job, really Thank you !!
Are you sure your system will start if you remove your first disk ? I just did the test, the system is booting in rescue mode, as if "add as another boot device" on the second disk was not considered.
thank you very much
@3:21
I did all the steps exactly as you did, but it doesn't show me any active devices at all. They're just not listed and "RAID Level '1 (mirrored)' requires at least 2 active devices" is screened.
Does anyone know why that is?
Had the same problem. When you go down to the list, where the devices should be, you can see that this list has entries. I think its buggy, you have to go trough them to check the right size to locate your disks
Thank you!
Thank you bro! 🍺
Thank you very much!
Thank you so much!!!!
The best video I´ve seen on how to create a mirror, I wonder why this can´t be done with the UI installer, I tested this in virtualbox and it worked great but on real hardware it didn´t work, I guess that the problem is because both SSDs are different models, exactly same size and brand but one is a SATA SSD and the other one is an M.2:... Do you know anything on this limitation?
Sorry for the late reply! There should not be specific limitations on this. I've done many installations with a mix of SATA/SSD or NVMe(M2). What part of the installation is not working?
@@thatlinuxdude6972 Hi. On minute 2.28 when you add another boot device, it only adds the fist one but not the second one. I did it on a small rack mounted Ryzen 9, I send it to the manufacturer for guaranty for other reasons but once I get it back I plan to try it with Ubuntu 23.10 and see.
Thanks! Help me a lot!
Very nice video!
Thanks!
Excellent tutorial thanks
Legend! Thank you!
great !!
having issues where after installation setup exactly like yours but on boot im getting something along disk not found.. any idea?
Thank you
can we do that in ubuntu desktop ?
I followed the whole tutorial but here 3:19 the device list is empty 😥
Danke Bruder, hat einfach funktioniert. Ich küss dein Auge
Thank you very much! You would think that the server installer makes it easier to set up a RAID :)
Thanks. Is there any additional setup one needs to do (perhaps in grub or is fstab) to ensure that both drives are bootable independently ? I found that I can boot from one but not from the other, even though both were selected as boot devices as per your guide.
Hi, sorry for the late reply! No extra actions should be needed. But might be depending on the hardware. Have you tried reinstalling grub on the second device? grub-install /dev/sdb or the name of second disk.
Thanks, man! This weird configuration sequence...
Hi, i replaced the drive and it still shows "Clean, Degraded" also under details it shows Removed. Can you please guide me on this
Hi there, if you need to change drives from raid you can use these commands.
mdadm --fail /dev/md0 /dev/sdb2 (This is to mark a drive as failed)
mdadm --remove /dev/m0 /dev/sdb2 (This to remove the drive from the raid set)
fdisk -d /dev/sda | fdisk /dev/sdb (This is to create exact partition setup on the new sdb drive)
mdadm --add /dev/md0 /dev/sdb2
Just let u me know if you have questions!
This doesn't work on actual UEFI hardware. You can't select more than one boot disk in UEFI...
Я видел видеоинструкции, в которых предлагается скопировать EFI-разделы при помощи команды dd, и тогда должна быть возможна загрузка с обоих накопителей независимо друг от друга, но на практике пока не получилось реализовать такую установку Ubuntu, чтобы всё работало как предполагается.
@@rabinovitch4629 I figured it out, you create secondary boot partitions on each RAID member, it'll configure GRUB2 to update those as well.
There was a problem writing disks to me and the instalation failed.
I used a gparted live to clean the disks and it worked.
Hm, seems like it was fixed in the newest update. Worked for me... regardless thanks for the advice just in case mine was a fluke.
Unfortunately the latest server installer now won't RAID discs if there isn't a separate drive to hold /boot
I just downloaded it and tested it on virtualbox and a real pc. It works... how about you record your problem and upload it to the help site?
Does still worth to use Raid 1? some tech says that using ZFS file system for the OS will make Raid 1 obsolete. Thanks for the video!
good luck when your ZFS drive dies ;)
On 10 years old Gigabyte main board I was forced to use LVM mirrors instead of Linux SW RAID1. Ubuntu Server 18.04 installer was unusable because of some weird scrolling issues so I installed Desktop 18.04 LTS. Going to see what will happen with 22.04 LTS.
So what happened?
@@rabinovitch4629 Ubuntu Server 22.04 installer worked without issues. So I used Linux SW RAID device as a PV for system VG.
@@TheRVSN can it boot from both drives independently?
@@rabinovitch4629 I have not tried booting without RAID1 (complete or degraded). But I assume if you correctly specify source devices using UUID etc. without RAID then GRUB will know what to do. Probably /etc/fstab would have to be modified in advance. Would be interesting to exercise though.
Somehow swap partition was skipped in the example?
In Ubuntu 22 swap is created using a swapfile instead of a partition. This makes it much more scalable, you can change the size of swap any time you want. After an installation such as above you can use the below to check the swap size:
swapon --show
Just let me know if anything is unclear!
Can you make a video of doing raid 0?? I keep running into issues with the installation.
What issues? I did exactly as he said, just replaced the 1 with a 0. Worked fine. Please be more specific and also ask on the community help page. Hope your issue is solved! 😄
Since everyone want a ssd for the os, and 2 large hds to be mirrored backups, why the F is He setting up the mirrored disks as boot drives !?! ... makes no sense to me ! Does ubu not do this simplest of all setups ?
... and then if you first drive broken, boot OS will fail
why
@@HTBLuVA because in /etc/fstab only one drive present as boot. Ubuntu installer very badly doing his work..
Thank you!
Thank you! 😃
Thank you!
thank you!