This example shows setting up Raid 1 using external USB WD drives. This will let you see how OMV works before you go with a full blown systems. You will see by searching the forums that it isnt suggested to use USB drives. In the case of RPi, it is due to a single controller being on the RPI board that doesn’t have as much throughput capacity as regular motherboards.
Since we are using multiple drives, I would suggest using a power USB hub so that you are pulling as much power as two drives have the potential from from the RPi computer.
Adding a 2nd drive to an existing single drive to make a raid 1 (mirrored) configuration
SSH to OMV RPi
- Disable SMB Service
- Delete SMB Share
- Delete Shared Folder (select the option to delete Folder but not data)
- Dismount sda1
Establish a SSH session to your RPi/OMV server
Try ls -l /dev/s*
Do this before plugging in the second drive
Repeat after plugging in 2nd drive to help correctly identify 2nd drive
mdadm –create /dev/md/name /dev/sda1 /dev/sdb1 –level=1 –raid-devices=2
Note:
Name – change this to the name you want the RAID associated to
Sda1 – this is the first drive you started with
Sda2 – this is the second drive you are adding
This command copies the data from the first drive to the second drive. Depending on the USB drives you are using, the drive names may be slightly different (especially if you are using the powered USB hub that I mentioned earlier).
To check status of raid build
mdadm –detail /dev/md127 (change 127 to number shown in OVM portal)
You will find the number under Storage, Raid Management
Status of array build will also be found under Storage, Raid Management
- Setup the drive for being access
a. Click on Storage, File Systems
b. Click on Raid 1 Drive
c. Click on Mount - Setup a user to access the file share
a. Click on Access Rights Management, Users
b. Click on +Add
c. Click on Add
d. Enter name of user and password where indicated
e. Click on Save
f. Click on Apply
g. Click on Yes - Setup Drive for being shared
a. Click on Services, SMB/CIFS
b. Click on Enable
c. Click on Save
d. Click on Apply
e. Click on Yes
f. Change on Workgroup to match what you are using on your windows computers - Setup Drive to be shared
a. Click on Shares
b. Click on +Add
c. Click on + On Shared Folder line
d. Enter name for Share (i.e. NAS) in name field
e. Click on drop down arrow on device line and select the USB drive you connected
f. Click on Save
g. Click on Save
h. Click on Apply
i. Click on Yes
================================================
*** Show Notes, Links and Resources ****
Here are the items mentioned in this video –
CanaKit Raspberry Pi 3 B+ (B Plus) Complete Starter Kit
https://amzn.to/2MhWdvE
Anker 4-Port USB 3.0 Ultra-Slim Portable Data Hub
https://amzn.to/2Dp3jvD
WD 2TB Elements Portable External Hard Drive
https://amzn.to/2Cv4dVM
➥➥➥ SUBSCRIBE FOR MORE VIDEOS ➥➥➥
Never miss a video about creating your own smart home
Subscribe ⇢ http://ronaldnutter.com/subscribe
To listen to an audio version of this episode while trying, TechBytes with Ron Nutter is available on iTunes, Google Podcasts, Stitcher and TuneIn. Go to TechByteswithRonNutter.com to subscribe today!
To subscribe to the TechbytesRN newsletter, click here – http://ronaldnutter.com/sample1
In return for subscribing to the newsletter, I will send you a chapter from my first DIY Smart Home Guide Book.
Visit http://www.ronaldnutter.com to see all the books Ron has written
DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows me to continue to make videos like this. Thank you for the support!
===============================
Become a Patreon supporter
https://www.patreon.com/techbytesrn
===============================
#TechBytesRN #smarthome #IoT #OpenMediaVault #RaspberryPi
Podcast: Play in new window | Download
Subscribe: Apple Podcasts | TuneIn | RSS