Saturday, May 4, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 6531  / 2 Years ago, tue, february 1, 2022, 12:35:48

I need to install a software raid-0 array on a Ubuntu 12.04 server with
mdadm through commandline (SSH).




The drive setup is as follows:




  • SDA = OS SSD

  • SDB = HDD for raid 0

  • SDC = HDD for raid 0


More From » 12.04

 Answers
0

Basically, you need the mdadm tools and I'll just assume you have them installed. My best guess would be:



mdadm --create /dev/md0 -n -l0 /dev/sdb /dev/sdc


This should create a block device /dev/md0, which you can use as you please. Typically, I put LVM on top, but you do whatever you want. I couldn't actually test this right now.



Normally, I create partitions with the RAID partition type (Partition ID=FD, "Linux raid autodetect"), which I then raid... But it might work on the bare disks.



Since I like to verify, I googled around and found http://www.tecmint.com/create-raid0-in-linux/, which is pretty much all you need to know to get it up and running.


[#33606] Wednesday, February 2, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
;