Tuesday, May 21, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 9570  / 2 Years ago, mon, september 19, 2022, 5:22:27

OK, so I've got three image files in /home/, and they each reside on different physical drives:



image1.img

image2.img

image3.img


Each image is the same size, and I want to put the images themselves into RAID0.



How should I go about RAIDing them?



EDIT: Using mdadm I get this error:



enter image description here



EDIT: Output of cat /proc/mdstat



enter image description here



EDIT: Output of sudo gparted /dev/md0



enter image description here


More From » mount

 Answers
1

To install the Linux software RAID you need to install the mdadm package.



sudo apt-get install mdadm


If you want to make a software RAID-0 from the three image files, you need to create loop devices for each image files:



sudo losetup /dev/loop1 image1.img
sudo losetup /dev/loop2 image2.img
sudo losetup /dev/loop3 image3.img


After you can create a RAID-0 array from them:



sudo mdadm --create /dev/md0 --level=0 --raid-devices=3 /dev/loop1 /dev/loop2 /dev/loop3

[#18657] Tuesday, September 20, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ligdesig

Total Points: 164
Total Questions: 106
Total Answers: 114

Location: Japan
Member since Sat, Jun 6, 2020
4 Years ago
;