My linux root OS device is /dev/sda, and my external hard drive is /dev/sdb (empty drive)
I don't want to loss data on /dev/sda, and setup raid level 0.
Is this possible?
My linux root OS device is /dev/sda, and my external hard drive is /dev/sdb (empty drive)
I don't want to loss data on /dev/sda, and setup raid level 0.
Is this possible?
With RAID 0, your data is split in half (evens and odds) between the drives. In other words, there are chunks 1, 3, 5, .... etc. on the first drive, and a second group of chunks 2, 4, 6, etc. are on the second drive. If one of the drives dies, you've instantly lost 50% of the chunks. Imagine opening up your program and deleting every other line out of it. That's what happens when you lose a striped disk. Depending on the stripe size, you may be able to recover some data or even whole files out of the remaining disk (it's very possible that a 10KB file would be completely intact on one disk since your blocks should be larger than that). However, a file that's ten times your block size would have 5 blocks on each disk, meaning you just lost 50% of your file.
Important to note that you can't set up RAID 0 without formatting (initializing) the drives as RAID 0. You would have to back-up your data before creating the raid.
Why people don't understand statistical mathematics?
Almost all HDDs fail slowly - one bad (recoverable) sector at a time - giving the user plenty of opportunity to replace a failing drive - true of all single drives, stripe sets, and concatenations.
The odds of a catastrophic failure given the average HDD is something like 0.1% in the most liberal terms - likely it's more like 0.01%. Over 80% of catastrophic failures happen within the first month of use. That puts my numbers here at 0.02 and 0.002 respectively if the user is dealing with drives they've been using for a month or so - and according to the OP, at least one of them qualifies. Multiplying the drives by two does NOT increase the odds 200% - that's not how statistical math works. But even if it did that's still only 0.04% chance to fail unrecoverably. This is literally zero and two times zero is still zero.
I know it's popular for people to repeat this falsehood regarding RAID0 but get ahold of yourselves. RAID0 is likely the best most fitting solution option for gamers and other home computerists who typically store only very replicable files on their systems.
The average HDD these days does about 200MB/s for the first 80% of the platter surface. A two-drive RAID0 stripe does 380 to 390MB/s which is quite near the typical SSD but typically less than half the price per gigabyte - and available in HUGE storage sizes.
A three drive RAID0 composed to 3TB drives offers a NINE TERABYTE storage device capable of about 550MB/s costing less than $200. The same thing in SSD form start at $1,500 and are not noticeably faster! Nor all that much safer for that matter.
Unfortunately for the OP I do not know of a utility or application off hand which would allow you to create a RAID0 stripe without first formatting both drives. It absolutely is possible, I just do not know where to direct you.