Daniel , If I have two disks that both have data on them and use 'mdadm' to create a raid zero , will I lose data on either of the disks ? Or will it just combine them and sync the storage up so when reading/writing everything is where it is supposed to be ? I of course would be hoping for the second scenario as the outcome. I do not have anything too terribly important on these drives , but I do have a large iso library that I would hate to lose. I could back it up but if I need not go through that trouble and I can just put them into a raid0 config without data loss that would be excellent .. Hoping to hear back , I would like to implement the software raid asap, thanks.
Hi Steve, creating a raid array with mdadm will destroy the data on both drives for all practical purposes. If you want to combine drives to gain more storage space, you might consider using lvm. One trick I have used to create a mirror raid 1 configuration out of a standalone drive is this: Add the second drive Create a new raid 1 array on the new drive, in degraded mode with one drive missing. Copy the data from the standalone drive to the array Finally, add the original drive in to the array. Of course, if you intend to boot you will need to update your fstab and rebuild your initrd and bootloader.
@@DDBAA24 notice that I said "raid 1" (mirror) configuration. RAID 0 will not work with this trick as there is no redundancy. I really dislike using RAID 0 or LVM across raw disks, as it is very risky. In my experience, it's exponentially more likely that you will have data loss on a multi-disk system without redundancy than even a single-disk system. Storage is cheap--replacing lost data isn't!
@Imperfect Servant I am not familiar with cockpit, but it looks interesting. I believe it is a Fedora/RedHat project, but the site says it supports Debian and Ubuntu. cockpit-project.org/running.html
Thank you! The most clean and understandable explanation that I ever saw! 🔥
Still use this when I forget thank you ❣️
If you're having trouble with fdisk not existing try doing "anna-install fdisk-udeb" in the shell
Dude you are my personal hero. I was going nuts.
New server, same yt vid. Happy new year
Thank you for this demo.
nice thanks, works good on debian 11, just whate i need !!
Unfortunately, fdisk is not available at "Execuate Shell" in Debian 10.3.
Daniel , If I have two disks that both have data on them and use 'mdadm' to create a raid zero , will I lose data on either of the disks ? Or will it just combine them and sync the storage up so when reading/writing everything is where it is supposed to be ? I of course would be hoping for the second scenario as the outcome. I do not have anything too terribly important on these drives , but I do have a large iso library that I would hate to lose. I could back it up but if I need not go through that trouble and I can just put them into a raid0 config without data loss that would be excellent .. Hoping to hear back , I would like to implement the software raid asap, thanks.
Hi Steve, creating a raid array with mdadm will destroy the data on both drives for all practical purposes. If you want to combine drives to gain more storage space, you might consider using lvm.
One trick I have used to create a mirror raid 1 configuration out of a standalone drive is this:
Add the second drive
Create a new raid 1 array on the new drive, in degraded mode with one drive missing.
Copy the data from the standalone drive to the array
Finally, add the original drive in to the array.
Of course, if you intend to boot you will need to update your fstab and rebuild your initrd and bootloader.
@@DanielMcFeeters That actually makes a lot of sense. I had to read it twice , but yes that will work. I will give that try. Thank you.
@@DDBAA24 notice that I said "raid 1" (mirror) configuration. RAID 0 will not work with this trick as there is no redundancy. I really dislike using RAID 0 or LVM across raw disks, as it is very risky. In my experience, it's exponentially more likely that you will have data loss on a multi-disk system without redundancy than even a single-disk system. Storage is cheap--replacing lost data isn't!
@Imperfect Servant I am not familiar with cockpit, but it looks interesting. I believe it is a Fedora/RedHat project, but the site says it supports Debian and Ubuntu. cockpit-project.org/running.html